/* ============================================================
   FunnelHound: homepage v2 (product-first)
   Design language from the 2026-09 slide deck: espresso + cream
   sections, one orange section, spaced orange eyebrows, heavy
   headlines, big phones bleeding off the edges, handwritten notes.
   Guides keep using styles.css; this file is homepage-only.
   ============================================================ */

:root {
  --espresso: #2b1d11;
  --espresso-2: #37271a;
  --espresso-3: #46331f;
  --cream: #fff7f0;
  --peach: #fde2cf;
  --white: #ffffff;

  --ink: #21160d;
  --ink-2: #5b4a3c;
  --ink-muted: #8a7867;
  --on-dark: #fff5ec;
  --on-dark-2: rgba(255, 245, 236, 0.74);
  --on-dark-3: rgba(255, 245, 236, 0.5);

  --orange: #ff6f1d;
  --orange-2: #ff941a;
  --orange-deep: #eb5d0f;
  --orange-text: #c24a0c;   /* orange that passes 4.5:1 on cream */
  --pink: #e34d82;
  --pink-text: #c23566;
  --green: #22a565;
  --amber: #f0a020;

  --hair-light: rgba(33, 22, 13, 0.1);
  --hair-dark: rgba(255, 245, 236, 0.12);

  --radius: 22px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto, the width/height attributes (kept for layout-shift-free
   loading) would otherwise pin the rendered height and stretch images. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

section, header.hero { position: relative; overflow: hidden; }
section { padding: 120px 0; }
@media (max-width: 720px) { section { padding: 84px 0; } }

/* ---------- section surfaces ---------- */
.dark { background: var(--espresso); color: var(--on-dark); }
.cream { background: linear-gradient(160deg, var(--white) 0%, var(--cream) 45%, var(--peach) 100%); }
.cream-flat { background: var(--cream); }
.white { background: var(--white); }
.orange { background: var(--orange); color: var(--ink); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 22px;
}
.dark .eyebrow { color: var(--orange); }
.orange .eyebrow { color: var(--ink); }

h1, h2, h3 { letter-spacing: -0.028em; line-height: 1.02; font-weight: 800; }
h1 { font-size: clamp(52px, 7.6vw, 104px); }
h2 { font-size: clamp(40px, 5.4vw, 76px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }
.accent { color: var(--orange); }
.cream .accent, .white .accent, .cream-flat .accent { color: var(--orange-deep); }
.underline { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.dark .lede { color: var(--on-dark-2); }
.orange .lede { color: var(--ink); }
.lede strong { color: var(--ink); }
.dark .lede strong { color: var(--on-dark); }

.hand {
  font-family: var(--hand);
  font-size: 30px;
  line-height: 1;
  color: var(--orange-deep);
  font-weight: 600;
}
.dark .hand { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head h2 + .lede { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--orange);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(255, 111, 29, 0.7);
}
.btn:hover { transform: translateY(-2px); background: var(--orange-deep); }
.btn.store { background: #000; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.btn.store:hover { background: #1c1c1e; }
.dark .btn.store { background: var(--on-dark); color: var(--ink); }
.dark .btn.store:hover { background: #fff; }
.btn.store svg { width: 20px; height: 20px; fill: currentColor; }
.btn.ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }
.dark .cta-note { color: var(--on-dark-3); }
.cta-web { margin-top: 6px; }
.cta-web a { color: var(--orange-text); font-weight: 700; text-underline-offset: 3px; }
.dark .cta-web a { color: var(--orange-2); }

/* QR to the App Store, desktop pointers only; phones get the button
   and Safari's Smart App Banner instead. */
.cta-qr { display: none; }
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .cta-qr {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding: 8px 18px 8px 8px;
    background: var(--espresso-2);
    border: 1px solid var(--hair-dark);
    border-radius: 18px;
  }
}
.cta-qr img { width: 84px; height: 84px; border-radius: 10px; }
.cta-qr p { font-size: 13px; line-height: 1.45; color: var(--on-dark-2); max-width: 22ch; }
.cta-qr strong { color: var(--on-dark); }

/* ---------- phone frame ---------- */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  flex: none;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(150deg, #4a4a4e 0%, #1a1a1c 38%, #050506 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 4px rgba(0, 0, 0, 0.6),
    0 50px 90px -30px rgba(20, 10, 0, 0.55),
    0 18px 40px -18px rgba(20, 10, 0, 0.35);
}
.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: calc(var(--pw) * 0.058);
  left: 50%;
  width: 30%;
  height: calc(var(--pw) * 0.085);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: calc(var(--pw) * 0.132);
  background: #111;
}
.dark .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), inset 0 0 0 4px rgba(0, 0, 0, 0.6), 0 60px 100px -30px rgba(0, 0, 0, 0.8); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  color: var(--on-dark);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.scrolled {
  background: rgba(43, 29, 17, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--hair-dark);
  padding: 10px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--on-dark-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--on-dark); }
.nav .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 150px 0 110px; min-height: 100svh; display: flex; align-items: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 520px at 78% 45%, rgba(255, 111, 29, 0.22), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(227, 77, 130, 0.1), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 .accent { display: inline-block; }
.hero .lede { margin-top: 30px; }
.hero .bark-line { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--on-dark); }
.hero .bark-line span { color: var(--on-dark-3); font-weight: 600; }

/* The cone art barks up-right; mirrored here so it barks up-left into
   open space instead of over the phone screen. */
.hero-stage { position: relative; height: 780px; }
.hero-stage .phone { --pw: 350px; position: absolute; right: 4%; top: 0; transform: rotate(6deg); }
.hero-cone {
  position: absolute;
  width: 300px;
  left: -20px;
  bottom: 0;
  z-index: 3;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  animation: bob 5s ease-in-out infinite;
}
.hero-bark { position: absolute; width: 100px; left: -34px; bottom: 262px; z-index: 3; animation: bark 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(-4deg); } 50% { transform: scaleX(-1) translateY(-12px) rotate(-2deg); } }
@keyframes bark { 0%, 100% { opacity: 0.35; transform: scaleX(-1) scale(0.94); } 40% { opacity: 1; transform: scaleX(-1) scale(1.04); } }
.made-in { position: absolute; left: 24px; bottom: 28px; font-size: 26px; color: var(--on-dark-2); }

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { height: 680px; max-width: 520px; margin: 20px auto 0; width: 100%; }
  .hero-stage .phone { --pw: 300px; right: 6%; }
  .hero-cone { width: 250px; left: 10px; }
  .hero-bark { width: 84px; left: 0; bottom: 220px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .hero-stage { height: 540px; }
  .hero-stage .phone { --pw: 240px; right: 0; }
  .hero-cone { width: 190px; left: -6px; }
  .hero-bark { width: 64px; left: -6px; bottom: 168px; }
  .made-in { display: none; }
}

/* ---------- why: downloads are not revenue ---------- */
.why .wrap { position: relative; }
.why-story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; margin-bottom: 96px; }
.why-story .lede + .lede { margin-top: 18px; }
.why-sign { margin-top: 18px; font-size: 32px; }
/* MRR phone with Houndy sitting on its top edge (the art's floor line
   lands on the bezel), phone and dog tilt together. */
.why-stage { display: flex; justify-content: center; padding-top: 140px; }
.why-phone { position: relative; transform: rotate(4deg); }
.why-phone .phone { --pw: 300px; }
.why-dog { position: absolute; width: 170px; left: 34%; bottom: 100%; margin-bottom: -12px; z-index: 3; }
@media (max-width: 860px) {
  .why-story { grid-template-columns: 1fr; }
  .why-stage { padding-top: 110px; }
  .why-phone .phone { --pw: 250px; }
  .why-dog { width: 140px; margin-bottom: -10px; }
}

.stops { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.stop {
  background: var(--white);
  border: 1px solid var(--hair-light);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 20px 50px -30px rgba(80, 40, 10, 0.35);
}
.stop-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  background: color-mix(in srgb, var(--c) 14%, white);
  margin-bottom: 18px;
}
.stop h3 { margin-bottom: 10px; }
.stop p { color: var(--ink-2); font-size: 16px; }
.stop-arrow { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--orange-deep); }
@media (max-width: 860px) {
  .stops { grid-template-columns: 1fr; }
  .stop-arrow { transform: rotate(90deg); }
}

/* ---------- the funnel ---------- */
.funnel-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.funnel-hero .lede { margin-top: 26px; }
.funnel-stage-wrap { position: relative; height: 700px; }
.funnel-stage-wrap .phone { --pw: 320px; position: absolute; left: 12%; top: 0; transform: rotate(-9deg); }
.target-card {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 280px;
  z-index: 3;
  background: #1c1c1e;
  color: #fff;
  border-radius: 26px;
  padding: 22px 22px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 70px -24px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.target-card small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5); }
.target-card strong { display: block; font-size: 16px; margin-top: 4px; }
.target-card .big { font-size: 40px; font-weight: 800; margin: 14px 0 12px; letter-spacing: -0.02em; }
.target-card .big .unit { font-size: 18px; color: rgba(255, 255, 255, 0.6); }
/* The slider: our own track + fill + thumb (driven by --pct), with an
   invisible native range input on top for drag, touch and keyboard. The
   input's thumb is sized to the visual one so their centres line up. */
.target-track { --pct: 30%; display: block; position: relative; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); margin: 0 6px 18px; cursor: pointer; }
.target-track::before { content: ""; position: absolute; inset: 0 calc(100% - var(--pct)) 0 0; background: var(--orange); border-radius: inherit; pointer-events: none; }
.target-track::after { content: ""; position: absolute; left: var(--pct); top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform 0.15s; pointer-events: none; }
.target-track:focus-within::after, .target-track:hover::after { transform: translate(-50%, -50%) scale(1.12); }
.target-track:focus-within::after { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 111, 29, 0.45); }
.target-track input { position: absolute; z-index: 1; top: 50%; left: -10px; width: calc(100% + 20px); height: 36px; margin: 0; transform: translateY(-50%); opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: none; }
.target-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; }
.target-track input::-moz-range-thumb { width: 20px; height: 20px; border: 0; }
.target-track .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.target-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.target-btns button { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; padding: 10px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.1); transition: background 0.15s, transform 0.15s; }
.target-btns button:hover { background: rgba(255, 255, 255, 0.18); }
.target-btns button:active { transform: scale(0.97); }
.target-btns button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.target-btns button:last-child { background: var(--orange); }
.target-btns button:last-child:hover { filter: brightness(1.08); background: var(--orange); }
.target-card.saved { box-shadow: inset 0 0 0 2px var(--orange), 0 40px 70px -24px rgba(0, 0, 0, 0.8); }
.hand-target { position: absolute; right: 30px; bottom: 330px; transform: rotate(-6deg); z-index: 3; }
@media (max-width: 960px) {
  .funnel-hero { grid-template-columns: 1fr; }
  .funnel-stage-wrap { height: 620px; max-width: 520px; width: 100%; margin: 0 auto; }
  .funnel-stage-wrap .phone { --pw: 280px; left: 4%; }
}
@media (max-width: 520px) {
  .funnel-stage-wrap { height: 540px; }
  .funnel-stage-wrap .phone { --pw: 230px; }
  .target-card { width: 220px; padding: 16px; bottom: 10px; }
  .target-card .big { font-size: 32px; }
  .hand-target { display: none; }
}

.funnel-detail { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; margin-top: 110px; align-items: start; }
.funnel-detail h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.funnel-detail > div > p { color: var(--on-dark-2); margin-bottom: 26px; }
.funnel-copy p { color: var(--on-dark-2); margin-bottom: 14px; }
.funnel-copy em { color: var(--on-dark); font-style: normal; font-weight: 700; }
.funnel-copy .note { font-size: 14px; color: var(--on-dark-3); border-left: 2px solid var(--orange); padding-left: 14px; margin-top: 22px; }
@media (max-width: 900px) { .funnel-detail { grid-template-columns: 1fr; } }

/* interactive stage list (rows injected by home.js) */
.funnel-stage-list { display: flex; flex-direction: column; }
.funnel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  cursor: default;
  outline: none;
  overflow: hidden;
  isolation: isolate;
}
.funnel-stage .bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-2));
  border-radius: 16px;
  z-index: -1;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0.9;
}
.funnel-stage.in .bar { width: var(--w); }
.funnel-stage .name { font-weight: 700; font-size: 17px; }
.funnel-stage .value { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.funnel-stage .hint {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--on-dark-2);
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.funnel-stage:hover .hint, .funnel-stage:focus .hint { max-height: 60px; margin-top: 8px; }
.funnel-stage:hover, .funnel-stage:focus { background: rgba(255, 255, 255, 0.05); }
.conv-arrow { font-size: 13px; font-weight: 700; color: var(--orange-2); padding: 6px 20px; letter-spacing: 0.02em; }
.conv-arrow::before { content: "↓ "; }

/* ---------- diagnosis ---------- */
.diag { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.symptoms { margin-top: 40px; list-style: none; }
.symptoms li { padding: 22px 0; border-top: 1px solid var(--hair-light); }
.symptoms li:last-child { border-bottom: 1px solid var(--hair-light); }
.symptoms small { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.symptoms strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.015em; }
.diag-stage { position: relative; height: 700px; }
.diag-stage .phone.back { --pw: 280px; position: absolute; right: 0; top: 40px; transform: rotate(6deg); opacity: 0.96; }
.diag-stage .phone.front { --pw: 310px; position: absolute; left: 0; top: 0; z-index: 2; transform: rotate(-4deg); }
.hand-green { position: absolute; right: 10px; bottom: 30px; transform: rotate(-5deg); }
@media (max-width: 960px) {
  .diag { grid-template-columns: 1fr; }
  .diag-stage { height: 640px; max-width: 540px; width: 100%; margin: 0 auto; }
  .diag-stage .phone.front { --pw: 270px; }
  .diag-stage .phone.back { --pw: 240px; }
}
@media (max-width: 520px) {
  .diag-stage { height: 520px; }
  .diag-stage .phone.front { --pw: 220px; }
  .diag-stage .phone.back { --pw: 200px; }
  .hand-green { display: none; }
}

.plug { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 100px; align-items: center; }
.plug h3 { font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.028em; }
.plug p { margin-top: 18px; }
/* badge → title → text, stacked */
.ai-callout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: #000;
  color: #fff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.ai-badge {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6f1d, #e34d82, #7a5cff, #2a9df4);
  color: #fff;
  white-space: nowrap;
}
.ai-callout h4 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.ai-callout p { font-size: 15px; color: rgba(255, 255, 255, 0.72); margin: 0; }
@media (max-width: 860px) { .plug { grid-template-columns: 1fr; } }

/* ---------- focus: three phones ---------- */
.focus-phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 20px; }
.focus-phones figure { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.focus-phones figure:nth-child(1) .phone { --pw: 270px; transform: rotate(-5deg) translateY(30px); }
.focus-phones figure:nth-child(2) .phone { --pw: 310px; }
.focus-phones figure:nth-child(3) .phone { --pw: 270px; transform: rotate(5deg) translateY(30px); }
.focus-phones figcaption { text-align: center; max-width: 250px; margin-top: 30px; }
.focus-phones figcaption strong { display: block; font-size: 18px; }
.focus-phones figcaption span { font-size: 15px; color: var(--on-dark-2); }
@media (max-width: 960px) {
  .focus-phones { overflow-x: auto; justify-content: flex-start; padding: 10px 18px 20px; margin: 0 -18px; scroll-snap-type: x mandatory; }
  .focus-phones figure { scroll-snap-align: center; }
  .focus-phones figure .phone { --pw: 240px !important; transform: none !important; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--orange); color: var(--ink); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 48px; font-size: 16px; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- milestones ---------- */
.milestones-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.milestones-grid .lede { margin-top: 26px; }
.milestones-grid .lede + .lede { font-size: 16px; color: var(--ink-muted); margin-top: 14px; }
.ms-pill {
  display: inline-block;
  margin-top: 36px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  padding: 16px 26px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(227, 77, 130, 0.8);
}
.ms-stage { position: relative; height: 700px; }
.ms-stage .phone { --pw: 320px; position: absolute; right: 10%; top: 40px; }
.hand-fav { position: absolute; right: 0; top: 0; transform: rotate(-4deg); z-index: 2; }
/* runs from the pink pill (left column) up to the chart's milestone pin */
.ms-arrow { position: absolute; left: -110px; top: 250px; width: 420px; z-index: 3; overflow: visible; }
@media (max-width: 960px) {
  .milestones-grid { grid-template-columns: 1fr; }
  .ms-stage { height: 640px; max-width: 520px; width: 100%; margin: 0 auto; }
  .ms-stage .phone { --pw: 280px; right: auto; left: 50%; transform: translateX(-50%); }
  .ms-arrow { display: none; }
  .hand-fav { right: 4%; }
}
@media (max-width: 520px) { .ms-stage { height: 560px; } .ms-stage .phone { --pw: 240px; } }

/* ---------- widgets ---------- */
.widgets-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.widgets-grid .lede { margin-top: 26px; }
.homescreen {
  position: relative;
  border-radius: 44px;
  padding: 34px;
  background:
    radial-gradient(420px 320px at 20% 20%, rgba(255, 148, 26, 0.85), transparent 70%),
    radial-gradient(380px 300px at 85% 30%, rgba(227, 77, 130, 0.75), transparent 70%),
    radial-gradient(420px 360px at 60% 95%, rgba(122, 92, 255, 0.55), transparent 70%),
    #f6c7a6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 40px 80px -40px rgba(120, 50, 10, 0.55);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
/* Widget snapshots are rendered on white, clip to the widget's own
   corner radius (~22pt) so no white shows in the corners. */
.homescreen img { width: 100%; box-shadow: 0 16px 30px -12px rgba(80, 30, 0, 0.35); }
/* iOS proportions: large and medium span the full row, small is one column */
.homescreen .w-large { grid-column: 1 / -1; border-radius: 6.8% / 6.8%; }
.homescreen .w-medium { grid-column: 1 / -1; border-radius: 6.8% / 14.6%; }
.homescreen .w-small { border-radius: 14.4% / 14.8%; }
.homescreen .clock { grid-column: 1 / -1; color: #fff; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
@media (max-width: 900px) { .widgets-grid { grid-template-columns: 1fr; } .homescreen { padding: 22px; gap: 16px; border-radius: 32px; } }

/* ---------- share ---------- */
.share-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.share-card {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--orange-2), var(--orange-deep));
  color: #fff;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px -30px rgba(235, 93, 15, 0.7);
}
.sc-title { font-size: 14px; font-weight: 800; letter-spacing: 0.3em; opacity: 0.85; }
.sc-bars { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.sc-bar { display: block; height: 44px; width: var(--w); background: var(--c); border-radius: 14px; }
.sc-brand { font-weight: 800; font-size: 18px; }
.sc-play { position: absolute; right: 30px; bottom: 30px; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); display: grid; place-items: center; font-size: 18px; }
.share-copy ul { list-style: none; margin-top: 30px; }
.share-copy li { padding: 18px 0; border-top: 1px solid var(--hair-light); color: var(--ink-2); }
.share-copy li:last-child { border-bottom: 1px solid var(--hair-light); }
.share-copy li strong { color: var(--ink); }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; } }

/* ---------- dashboard (dark) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  background: var(--espresso-2);
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}
.card .glow { position: absolute; width: 160px; height: 160px; border-radius: 50%; top: -70px; right: -60px; filter: blur(40px); opacity: 0.35; }
.card .icon { font-size: 28px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- setup (orange) ---------- */
.setup-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.setup-grid .lede { margin-top: 26px; }
.setup-grid .lede strong { color: var(--ink); }
/* three numbered steps; the optional Vendor Number sits apart, dashed */
.steps { list-style: none; counter-reset: step; margin-top: 40px; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(33, 22, 13, 0.12);
  border-radius: 18px;
  padding: 18px 22px;
}
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; opacity: 0.55; line-height: 1.1; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { font-size: 15px; color: rgba(33, 22, 13, 0.82); }
.step-optional {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1.5px dashed rgba(33, 22, 13, 0.4);
  border-radius: 18px;
}
.opt-pill { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--orange-2); margin-top: 1px; }
.step-optional p { font-size: 15px; color: rgba(33, 22, 13, 0.82); }
.step-optional strong { color: var(--ink); }
.setup-note { margin-top: 24px; font-size: 14px; color: rgba(33, 22, 13, 0.78); max-width: 46em; }
.setup-stage { position: relative; height: 700px; }
.setup-stage .phone { --pw: 320px; position: absolute; right: 8%; top: 20px; transform: rotate(6deg); }
@media (max-width: 960px) {
  .setup-grid { grid-template-columns: 1fr; }
  .setup-stage { height: 640px; max-width: 480px; width: 100%; margin: 0 auto; }
  .setup-stage .phone { --pw: 280px; right: auto; left: 50%; transform: translateX(-50%) rotate(4deg); }
}
@media (max-width: 620px) { .setup-stage { height: 560px; } .setup-stage .phone { --pw: 240px; } }

/* ---------- team + shipaton ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  background: var(--white);
  border: 1px solid var(--hair-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 20px 50px -34px rgba(80, 40, 10, 0.4);
}
.member-avatar { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; background: var(--peach); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--hair-light); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 22px; }
.member-role { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); margin: 6px 0 14px; }
.member p { color: var(--ink-2); font-size: 15px; }
.member-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--orange-text); text-decoration: none; }
.member-link:hover { text-decoration: underline; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; max-width: 520px; } }

.stack { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--hair-light); padding-top: 40px; }
.stack strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.stack span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* ---------- guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--hair-light);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(80, 40, 10, 0.5); border-color: rgba(235, 93, 15, 0.35); }
.guide-card .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.guide-card h3 { font-size: 19px; line-height: 1.25; }
.guide-card p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.guide-card .more { font-size: 14px; font-weight: 700; color: var(--ink); }
.guides-more { margin-top: 16px; }
.guides-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  width: fit-content;
  margin: 18px auto 0;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.guides-more summary::-webkit-details-marker { display: none; }
.guides-more[open] summary { display: none; }
.guides-more .guides-grid { margin-top: 16px; }
@media (max-width: 960px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- subscribe ---------- */
/* FAQ follows and supplies the gap; on phones FAQ is cut, see slim version */
#waitlist { padding-bottom: 0; }
.subscribe {
  position: relative;
  background: var(--espresso);
  color: var(--on-dark);
  border-radius: 34px;
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}
.subscribe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 50% 0%, rgba(255, 111, 29, 0.3), transparent 70%); pointer-events: none; }
.subscribe > * { position: relative; }
.subscribe h2 { font-size: clamp(34px, 4.4vw, 58px); }
.subscribe .lede { margin: 20px auto 0; }
.waitlist-form { display: flex; gap: 10px; max-width: 480px; margin: 32px auto 0; }
.waitlist-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--hair-dark);
  background: var(--espresso-2);
  color: var(--on-dark);
}
.waitlist-form input::placeholder { color: var(--on-dark-3); }
.waitlist-form input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.waitlist-note { margin-top: 14px; font-size: 13px; color: var(--on-dark-3); }
.waitlist-success { margin: 32px auto 0; font-weight: 700; font-size: 18px; }
.waitlist-success .check { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.subscribe .dog-sit { position: absolute; width: 170px; right: 30px; bottom: -6px; }
@media (max-width: 720px) { .subscribe { padding: 48px 22px; } .waitlist-form { flex-direction: column; } .subscribe .dog-sit { display: none; } }

/* ---------- faq ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-top: 1px solid var(--hair-light); }
.faq-item:last-child { border-bottom: 1px solid var(--hair-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  font-size: 19px;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--orange-deep); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq-a a { color: var(--orange-text); font-weight: 700; }
.faq-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: end; }
.dog-rest { text-align: center; }
.dog-rest img { width: 220px; margin: 0 auto; }
.dog-rest p { margin-top: 6px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- final cta ---------- */
.final { text-align: center; padding: 140px 0; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 420px at 50% 30%, rgba(255, 111, 29, 0.28), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final-icon { width: 128px; height: 128px; border-radius: 30px; margin: 0 auto 36px; box-shadow: 0 30px 60px -20px rgba(255, 111, 29, 0.6); }
.final h2 { max-width: 16ch; margin: 0 auto; }
.final .lede { margin: 24px auto 0; }
.final .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--espresso); color: var(--on-dark-3); padding: 36px 0 48px; border-top: 1px solid var(--hair-dark); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; color: var(--on-dark-2); }
.foot-links a:hover { color: var(--on-dark); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 0.4s ease; }
  .hero-cone, .hero-bark, .marquee-track { animation: none; }
  .funnel-stage .bar { transition: none; }
}

/* ---------- slim phone version ----------
   Phones get the product story only: hero → why → funnel → fixes →
   focus → milestones → subscribe → download.
   Everything else is hidden, not removed: it stays in the DOM, so
   mobile-first indexing still sees the copy and every guide link. */
@media (max-width: 720px) {
  section { padding: 64px 0; }

  /* cut */
  #why .section-head, #why .stops,
  #funnel .funnel-detail,
  #diagnosis .phone.back, #diagnosis .hand-green, #diagnosis .plug,
  .marquee, #share, #dashboard, #team, #faq,
  #widgets, #setup, #guides { display: none; }

  /* tighter art */
  .hero-stage { height: 440px; }
  .hero-stage .phone { --pw: 200px; }
  .hero-cone { width: 160px; }
  .hero-bark { width: 56px; bottom: 140px; }
  .why-story { margin-bottom: 0; }
  .why-stage { padding-top: 96px; }
  .why-phone .phone { --pw: 210px; }
  .why-dog { width: 120px; }
  .funnel-stage-wrap { height: 460px; }
  .funnel-stage-wrap .phone { --pw: 210px; }
  .diag-stage { height: 470px; display: flex; justify-content: center; align-items: flex-start; }
  .diag-stage .phone.front { --pw: 210px; position: relative; left: auto; }
  .ms-stage { height: 490px; }
  .ms-stage .phone { --pw: 210px; }
  .focus-phones figure .phone { --pw: 200px !important; }
  #waitlist { padding-bottom: 64px; }


  .final { padding: 88px 0; }
}
