/* FurBud website. Colors match the app's light and dark themes (FurBud/Views/DesignSystem.swift). */
:root {
  color-scheme: light;
  --bg: #f6f9f9;
  --surface: #ffffff;
  --blush: #fff1ed;
  --mint: #e3f3f2;
  --sky: #ecf5f6;
  --teal: #057878;
  --teal-deep: #00616b;
  --fill: #057878;
  --coral: #d23f28;
  --coral-bright: #ff5a45;
  --navy: #122e3d;
  --muted: #55696e;
  --line: #d9e3e6;
  --outline: #8fb3b5;
  --shadow: 0 14px 40px rgba(18, 46, 61, 0.10);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* The website is always light, whatever the visitor's device setting. */
.logo-dark { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral-bright); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 12px; }

/* Scroll progress: a paw walks along the top of the page. */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral-bright), var(--teal)); border-radius: 0 4px 4px 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--mint); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.pill.primary { background: linear-gradient(135deg, var(--fill), var(--teal-deep)); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--fill) 35%, transparent); }
.pill.ghost { border: 2px solid var(--outline); color: var(--navy); background: var(--surface); }
.pill:hover { transform: translateY(-1px); }
@media (max-width: 760px) { .site-nav a:not(.pill) { display: none; } }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal); background: var(--mint); padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 900; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--coral-bright); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.fineprint { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.9; will-change: transform; }
.blob.one { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, var(--blush), transparent 70%); left: -40px; top: 0; }
.blob.two { width: 380px; height: 380px; background: radial-gradient(circle at 60% 40%, var(--mint), transparent 70%); right: -30px; bottom: 10px; }
.paw { position: absolute; width: 34px; height: 34px; color: var(--teal); opacity: 0.22; will-change: transform; }
.paw svg { width: 100%; height: 100%; fill: currentColor; }
.hero-logo { position: absolute; width: 140px; left: 0; bottom: 5%; z-index: 3; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.14)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; }
}

/* Phone mock-up. The screens are drawn in HTML so they stay sharp at any size. */
.phone { position: relative; width: 290px; height: 590px; border-radius: 46px; background: #0c1416; padding: 11px; box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,0.06) inset; flex: none; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 16px; background: #000; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.screen { position: absolute; inset: 0; padding: 54px 14px 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2,.8,.2,1); pointer-events: none; font-size: 12.5px; }
.screen.is-active { opacity: 1; transform: none; }
.s-title { text-align: center; font-weight: 800; font-size: 13px; margin-bottom: 2px; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 6px 14px rgba(0,0,0,0.05); }
.s-card.tint-sky { background: var(--sky); }
.s-card.tint-mint { background: var(--mint); }
.s-hero { background: linear-gradient(135deg, var(--blush), var(--mint)); border-radius: 20px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-hero b { font-size: 16px; line-height: 1.15; display: block; font-weight: 900; }
.s-hero small { color: var(--muted); font-weight: 600; }
.s-hero img { width: 58px; height: 58px; object-fit: contain; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 11.5px; }
.chip.on { background: linear-gradient(135deg, var(--fill), var(--teal-deep)); color: #fff; }
.chip.off { border: 2px solid var(--outline); background: var(--surface); }
.row { display: flex; align-items: center; gap: 10px; }
.badge { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); font-size: 16px; flex: none; }
.badge.coral { background: color-mix(in srgb, var(--coral-bright) 18%, transparent); color: var(--coral); }
.row b { display: block; font-size: 12.5px; }
.row small { color: var(--muted); }
.row .time { margin-left: auto; font-weight: 800; color: var(--teal); font-size: 11.5px; white-space: nowrap; }
.banner { background: linear-gradient(135deg, var(--fill), var(--teal-deep)); color: #fff; border-radius: 18px; padding: 12px; }
.banner small { opacity: 0.9; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile b { font-size: 20px; font-weight: 900; display: block; }
.line { padding: 9px 10px; border-radius: 11px; border: 1px solid var(--outline); color: var(--muted); }
.line.filled { color: var(--navy); }
.turn { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.turn .who { font-weight: 900; color: var(--teal); }
.turn.you .who { color: var(--coral); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 4px; border-radius: 3px; background: var(--coral-bright); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { background: var(--teal); }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 2px 2px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); font-weight: 700; }
.tabbar span { display: grid; justify-items: center; gap: 2px; padding: 4px 8px; border-radius: 12px; }
.tabbar .on { color: var(--teal); background: var(--mint); }
.tabbar i { font-style: normal; font-size: 15px; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 900; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.center { text-align: center; margin-inline: auto; }

/* Scroll story: the phone stays put while the story scrolls past it. */
.story { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint) 55%, transparent) 20%, color-mix(in srgb, var(--blush) 55%, transparent) 80%, transparent); }
.story-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.story-phone { position: sticky; top: 104px; display: grid; place-items: center; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transform: translateX(22px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.step.is-active { opacity: 1; transform: none; }
.step .num { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--outline); font-weight: 900; color: var(--teal); margin-bottom: 16px; }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { padding-left: 30px; position: relative; font-weight: 600; }
.step li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--teal); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 17.2 4.8 12.5l1.9-1.9 2.8 2.8 7.8-7.8 1.9 1.9z"/></svg>') center/contain no-repeat; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 17.2 4.8 12.5l1.9-1.9 2.8 2.8 7.8-7.8 1.9 1.9z"/></svg>') center/contain no-repeat; }
.tag { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 800; color: var(--coral); background: var(--blush); padding: 5px 12px; border-radius: 999px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-phone { top: 76px; z-index: 2; padding: 10px 0 18px; background: linear-gradient(180deg, var(--bg) 82%, transparent); }
  .story-phone .phone { width: 208px; height: 424px; border-radius: 36px; padding: 8px; }
  .story-phone .phone::before { top: 15px; width: 62px; height: 18px; }
  .story-phone .phone-screen { border-radius: 28px; }
  .story-phone .screen { transform-origin: top left; width: 139.5%; height: 139.5%; scale: 0.717; padding-top: 50px; }
  .story-phone .screen.is-active { transform: none; }
  .step { min-height: 62vh; justify-content: flex-start; padding-top: 28px; transform: translateY(18px); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.pop { transform: scale(0.86); }
.reveal.is-in { opacity: 1; transform: none; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.28rem; font-weight: 900; margin: 14px 0 8px; }
.card p { color: var(--muted); }
.icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--teal) 15%, transparent); }
.icon.coral { background: color-mix(in srgb, var(--coral-bright) 16%, transparent); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

/* Voice demo */
.voice { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.transcript { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.bubble { padding: 12px 16px; border-radius: 18px; max-width: 92%; opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.8,.2,1); }
.bubble.is-in { opacity: 1; transform: none; }
.bubble b { display: block; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 2px; }
.bubble.vet { background: var(--mint); justify-self: start; border-bottom-left-radius: 6px; }
.bubble.vet b { color: var(--teal); }
.bubble.you { background: var(--blush); justify-self: end; border-bottom-right-radius: 6px; }
.bubble.you b { color: var(--coral); }
.summary { border: 2px dashed var(--outline); border-radius: 18px; padding: 14px 16px; opacity: 0; transform: scale(0.96); transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s; }
.summary.is-in { opacity: 1; transform: none; }
.summary b { color: var(--teal); }
@media (max-width: 900px) { .voice { grid-template-columns: 1fr; } }

/* Light and dark showcase */
.modes { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; perspective: 1200px; }
.modes .phone { transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.modes .phone.tilt-l { transform: rotateY(18deg) rotateZ(-3deg); }
.modes .phone.tilt-r { transform: rotateY(-18deg) rotateZ(3deg); }
.modes.is-in .phone { transform: none; }
.force-light { --bg: #f6f9f9; --surface: #fff; --blush: #fff1ed; --mint: #e3f3f2; --sky: #ecf5f6; --teal: #057878; --teal-deep: #00616b; --fill: #057878; --coral: #d23f28; --navy: #122e3d; --muted: #55696e; --line: #d9e3e6; --outline: #8fb3b5; color: var(--navy); }
.force-dark { --bg: #0b1214; --surface: #162023; --blush: #32201d; --mint: #132b2b; --sky: #1c2a2e; --teal: #4ac7bf; --teal-deep: #2ea6a3; --fill: #0a8280; --coral: #ff8570; --navy: #edf4f4; --muted: #a3b8bb; --line: #2e3d42; --outline: #4d7073; color: var(--navy); }
.force-light .logo-light, .force-dark .logo-dark { display: block !important; }
.force-light .logo-dark, .force-dark .logo-light { display: none !important; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-inline: auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.plan.plus { border: 2px solid var(--teal); background: linear-gradient(160deg, var(--surface), var(--mint)); }
.plan h3 { font-size: 1.5rem; font-weight: 900; }
.price { font-size: 2.2rem; font-weight: 900; margin: 8px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "🐾"; position: absolute; left: 0; font-size: 0.9rem; top: 2px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ and documents */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal); transition: rotate 0.25s ease; }
details[open] summary::after { rotate: 45deg; }
details > div { padding: 0 0 18px; color: var(--muted); }
details > div p + p, details > div ul { margin-top: 10px; }

.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc header { background: linear-gradient(135deg, var(--mint), var(--sky)); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.doc header h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; }
.doc header p { color: var(--muted); margin-top: 8px; }
.doc .meta { font-weight: 700; font-size: 0.95rem; }
.doc section { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin-bottom: 14px; }
.doc section h2 { font-size: 1.22rem; font-weight: 900; margin-bottom: 10px; }
.doc section p + p, .doc section ul, .doc section ol { margin-top: 10px; }
.doc section ul, .doc section ol { padding-left: 22px; }
.doc section li + li { margin-top: 6px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.doc-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--outline); background: var(--surface); color: var(--navy); font-size: 0.95rem; }
.doc-links a[aria-current="page"] { background: var(--fill); border-color: var(--fill); color: #fff; }

/* Closing call to action and footer */
.closing { text-align: center; }
.closing .box { background: linear-gradient(135deg, var(--fill), var(--teal-deep)); color: #fff; border-radius: 40px; padding: 56px 24px; position: relative; overflow: hidden; }
.closing h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; }
.closing p { opacity: 0.92; margin: 14px auto 24px; max-width: 34rem; font-size: 1.12rem; }
.closing .pill { background: #fff; color: #00616b; }
.closing img { width: 150px; margin: 0 auto 18px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .step, .bubble, .summary, .screen, .modes .phone { transition: none !important; opacity: 1 !important; transform: none !important; }
  .screen:not(.is-active) { opacity: 0 !important; }
  .hero-logo, .wave i { animation: none !important; }
}
