/* Components — all values via tokens.css */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/outfit-var.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/satoshi-500.woff2) format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/satoshi-700.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/manrope-500.woff2) format('woff2'); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); font-weight: 500; color: var(--color-primary); background: var(--color-white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; }
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--color-primary); }
h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-line); }
h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-line); }
.wrap { max-width: var(--content-width); margin: 0 auto; }

/* appear-animation initial states */
.pre { opacity: .001; }

/* label-roll hover */
.roll { display: inline-flex; flex-direction: column; height: 1.3em; overflow: hidden; line-height: 1.3; vertical-align: middle; }
.roll span { display: block; }

/* ---------- nav ---------- */
nav { position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 50; pointer-events: none; }
nav .bar { display: flex; align-items: center; justify-content: space-between; padding: 7px var(--page-pad); }
nav .bar > * { pointer-events: auto; }
.logo img { width: 125px; height: 38px; object-fit: contain; }
.pill-nav { display: flex; align-items: center; gap: 28px; background: var(--color-white); border-radius: var(--radius-pill); height: 52px; padding: 0 23px; box-shadow: var(--shadow-nav-pill); }
.pill-nav a { font-size: var(--text-nav-size); font-weight: 500; color: var(--color-primary); }
.try-free { background: var(--color-terra); color: var(--color-primary); font-weight: 500; font-size: var(--text-nav-size); border-radius: var(--radius-pill); height: 52px; display: flex; align-items: center; padding: 0 17.5px; box-shadow: var(--shadow-try-glow); }

/* ---------- hero ---------- */
.hero { background: var(--grad-hero); border-radius: 0 0 var(--radius-section) var(--radius-section); padding: var(--hero-pad-top) 0 37px; text-align: center; overflow: hidden; }
.hero .sub { font-size: var(--text-sub-size); line-height: var(--text-sub-line); color: var(--color-primary); max-width: 455px; margin: 16px auto 0; }
.hero .btns { display: flex; gap: var(--grid-gap); justify-content: center; margin-top: 24px; }
.btn-dark { background: var(--color-primary); color: var(--color-white); border-radius: var(--radius-pill); padding: 13px 22px; font-size: var(--text-nav-size); font-weight: 500; display: inline-block; }
.btn-ghost { background: var(--color-scrim-15); color: var(--color-white); border-radius: var(--radius-pill); padding: 13px 22px; font-size: var(--text-nav-size); font-weight: 500; display: inline-block; }
.hero .visual { margin: 44px auto 0; width: var(--phone-w); }
.hero .visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(61, 0, 0, .25)); }

/* ---------- why (features header) ---------- */
.why { padding: var(--section-pad-lg) 0 0; }
.why .grid { display: grid; grid-template-columns: 500px 520px; gap: 60px; align-items: start; }
.why h2 em { font-style: italic; }
.why p { color: var(--color-body); font-size: 16px; line-height: 1.3; max-width: 520px; }

/* ---------- features bento ---------- */
#features { padding-top: 78px; padding-bottom: 96px; }
.bento { display: grid; gap: var(--grid-gap); }
.bento .row { display: grid; gap: var(--grid-gap); }
.bento .r1 { grid-template-columns: 1fr 1fr; }
.bento .r2 { grid-template-columns: 356fr 712fr; }
.card { background: var(--color-peach-card); border-radius: var(--radius-card); padding: var(--card-pad) var(--card-pad) 0; position: relative; overflow: hidden; display: flex; flex-direction: column; height: var(--card-h); }
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-card-glow); opacity: var(--glow-opacity); pointer-events: none; }
.card > * { position: relative; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h3-size); line-height: var(--text-h3-line); color: var(--color-primary); }
.card .copy { margin-top: auto; padding-bottom: 40px; }
.card .copy p { color: var(--color-body); font-size: var(--text-body-size); line-height: 1.3; margin-top: 8px; }
.panel { background: var(--color-white); border-radius: var(--radius-panel); box-shadow: var(--shadow-panel); }

/* voice card */
.voice-panel { width: var(--panel-w); max-width: 100%; height: var(--panel-h); display: flex; flex-direction: column; align-items: center; padding-top: 34px; margin-bottom: 10px; }
.voice-panel .q { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: rgb(0, 0, 0); margin-bottom: 16px; }
.micbtn { width: 84px; height: 79px; margin-bottom: 24px; border-radius: 50%; background: var(--color-white); border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 8px 20px rgba(64, 134, 243, .25), 0 2px 4px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; }
.micbtn img { width: 41px; height: 49px; }
.waveform { width: 152px; height: 64px; background: url(../assets/waveform.svg) no-repeat center / 100% 100%; }

/* symptoms card */
.symptoms-img { width: 341px; height: 295px; margin: 0 auto 10px; }

/* pattern (score) card */
.pattern-note { font-family: var(--font-display); font-weight: 300; font-size: var(--text-note-size); line-height: 20px; color: rgb(0, 0, 0); margin: 46px auto 52px; text-align: center; }
.temp-panel { width: 275px; height: 125px; padding: 8px 16px 0; margin: 0 auto 24px; border-radius: 12px; }
.temp-head { display: flex; justify-content: space-between; align-items: center; }
.temp-head .t { font-size: var(--text-label-size); font-weight: 700; color: var(--color-panel-ink); margin: 0 auto; }
.temp-head img { width: 4px; height: 8px; }
.temps { display: flex; justify-content: space-between; font-size: 10px; color: var(--color-temp-gray); margin-top: 8px; padding: 0 12px; }
.suns { position: relative; width: 206px; margin: 6px auto 0; height: 25px; }
.suns .s { position: absolute; inset: 0; background: url(../assets/temp-suns.svg) no-repeat center / 100% 100%; }
.suns .l { position: absolute; left: 2px; top: 4px; width: 199px; height: 18px; background: url(../assets/temp-line.svg) no-repeat center / 100% 100%; }
.tdays { display: flex; justify-content: space-between; font-size: 9px; color: var(--color-day-gray); width: 206px; margin: 12px auto 0; }
.tdays i { font-style: normal; position: relative; }
.tdays i.dot::after { content: ""; position: absolute; left: 50%; top: -7px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--color-sun); }
.tdays b { color: var(--color-sev-text); }

/* photo card */
.photo-row { display: flex; gap: 66px; justify-content: center; margin: 19px 0 13px; }
.photo-card { padding: 20px 16px 25px; width: 286px; }
.photo-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-label-size); font-weight: 700; color: var(--color-panel-ink); }
.sev { background: var(--color-sev-bg); color: var(--color-sev-text); font-size: 10px; font-weight: 700; border-radius: 10px; padding: 4px 9px; }
.photo-card img { width: 251px; height: 140px; border-radius: var(--radius-photo); margin-top: 19px; object-fit: fill; }
.photo-card img.flip { transform: rotate(180deg); }
.photo-note { font-family: var(--font-display); font-weight: 300; font-size: 21px; line-height: 20px; color: rgb(0, 0, 0); text-align: center; width: 451px; margin: 0 auto; }
.photo-note.fade { opacity: 0; }

/* ---------- testimonials ---------- */
.testi { padding: var(--section-pad) 0 147px; }
.testi h2 { max-width: 540px; margin-top: 20px; margin-bottom: 80px; }
.slideshow { position: relative; }
.sviewport { overflow: hidden; padding: 0 8px; height: 296px; }
.strack { display: flex; gap: var(--tcard-gap); will-change: transform; }
.tcard { flex: 0 0 var(--tcard-w); height: var(--tcard-h); background: var(--color-peach-card); border-radius: var(--radius-tcard); padding: var(--card-pad); position: relative; overflow: hidden; }
.tcard::before { content: ""; position: absolute; inset: 0; background: var(--grad-card-glow); opacity: var(--glow-opacity); }
.tcard p { position: relative; font-size: var(--text-quote-size); line-height: 1.3; color: var(--color-primary); }
.sarrow { position: absolute; top: 128px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--color-scrim-20); cursor: pointer; z-index: 2; transition: background .3s; padding: 0; }
.sarrow img { width: 40px; height: 40px; }
.sarrow:hover { background: rgba(61, 0, 0, .45); }
.sarrow.l { left: 20px; } .sarrow.r { right: 20px; }
.sdots { display: flex; gap: 8px; justify-content: center; margin: 32px auto 0; background: var(--color-peach-card); width: max-content; padding: 9px 12px; border-radius: var(--radius-pill); }
.sdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary-25); cursor: pointer; transition: background .3s; }
.sdots i.on { background: var(--color-primary); }

/* ---------- how it works ---------- */
.how { background: var(--grad-how); border-radius: var(--radius-section) var(--radius-section) 0 0; padding: var(--section-pad-lg) 0 104px; overflow: hidden; }
.how .sub { color: var(--color-body); font-size: var(--text-body-size); line-height: 1.3; max-width: 362px; margin-top: 23px; }
.how .grid { display: grid; grid-template-columns: 400px 1fr; gap: 80px; margin-top: 26px; align-items: start; position: relative; }
.how .grid > div:first-child { margin-top: 95px; }
.step { padding: 20px 60px 20px 20px; border-radius: 18px; margin-bottom: 13px; cursor: pointer; transition: background .35s; }
.step:hover { background: var(--color-peach-card); }
.step h4 { font-size: var(--text-step-size); font-weight: 500; line-height: 1.3; color: var(--color-primary); }
.step p { font-size: 16px; line-height: 1.3; color: var(--color-body); margin-top: 7px; }
.step.on { background: var(--color-peach-card); }
.step.on p { color: var(--color-primary); }
.phone-fan { position: relative; margin-top: 72px; height: 675px; -webkit-mask-image: linear-gradient(#000 55%, transparent 85%); mask-image: linear-gradient(#000 55%, transparent 85%); }
.mini { position: absolute; width: 300px; height: 605px; transition: left .65s cubic-bezier(.3,1.05,.35,1), top .65s cubic-bezier(.3,1.05,.35,1), transform .65s cubic-bezier(.3,1.05,.35,1), opacity .28s ease-out; }
.mini .frame { position: absolute; inset: 0; width: 300px; height: 605px; z-index: 2; pointer-events: none; }
.mini .appimg { position: absolute; top: 10px; left: 15px; width: 270px; height: 585px; border-radius: 30px; object-fit: cover; }
.mini.slot0 { left: -5px; top: 14px; transform: rotate(-6deg); z-index: 3; opacity: 1; }
.mini.slot1 { left: 125px; top: 33px; transform: rotate(9deg); z-index: 2; opacity: 1; }
.mini.slot2 { left: 219px; top: 96px; transform: rotate(18deg); z-index: 1; opacity: 1; }
.mini.gone { left: -120px; top: 20px; transform: rotate(-12deg); z-index: 4; opacity: 0; pointer-events: none; }

/* ---------- faq ---------- */
.faq { padding: 130px 0 var(--section-pad); border-radius: var(--radius-section); position: relative; overflow: hidden; }
.faq::after { content: ""; position: absolute; left: 0; right: 0; bottom: -40%; height: 80%; background: var(--grad-faq-glow); opacity: 0; transition: opacity 1s; pointer-events: none; }
.faq.lit::after { opacity: 1; }
.faq h2 { text-align: center; }
.faq .sub { text-align: center; color: var(--color-body); font-size: var(--text-body-size); line-height: 1.3; margin: 14px 0 70px; }
.faq-list { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.faq-item { border-bottom: 1px solid var(--color-primary-12); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; cursor: pointer; padding: 26px 4px; font-family: var(--font-display); font-weight: 400; font-size: var(--text-faq-q-size); line-height: 1.4; color: var(--color-primary); text-align: left; }
.plus { width: 34px; height: 34px; border-radius: 50%; background: var(--color-terra-45); position: relative; flex: none; transition: transform var(--roll-dur) cubic-bezier(.3, 1.3, .4, 1), background .4s; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--color-primary); left: 50%; top: 50%; transition: background .4s, opacity .4s; }
.plus::before { width: 13px; height: 1.8px; transform: translate(-50%, -50%); }
.plus::after { width: 1.8px; height: 13px; transform: translate(-50%, -50%); }
.faq-item.open .plus { transform: rotate(180deg); background: var(--color-primary); }
.faq-item.open .plus::before { background: var(--color-white); }
.faq-item.open .plus::after { opacity: 0; }
.faq-a { overflow: hidden; height: 0; }
.faq-item.open .faq-a { height: auto; }
.faq-a p { color: var(--color-body); font-size: var(--text-body-size); line-height: 1.3; max-width: 612px; padding: 0 4px 26px; }

/* ---------- cta ---------- */
.cta { padding: 150px 0 170px; text-align: center; }
.cta .sub { color: var(--color-primary); font-size: var(--text-body-size); line-height: 1.3; margin: 16px 0 28px; }

/* ---------- footer ---------- */
footer { background: var(--grad-footer); padding: 90px 0 40px; }
footer .wrap { max-width: 1040px; }
.f-logo { display: flex; justify-content: center; margin-bottom: 34px; }
.f-logo img { width: 256px; }
.f-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.f-tag { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.4; color: var(--color-primary); }
.f-disc { width: 46px; height: 46px; border-radius: 50%; background: var(--color-white); display: flex; align-items: center; justify-content: center; margin-top: 26px; box-shadow: var(--shadow-nav-pill); }
.f-disc img { width: 21px; height: 16px; }
.f-cols { display: flex; gap: 70px; }
.f-col h5 { font-size: var(--text-label-size); font-weight: 700; letter-spacing: 1px; color: var(--color-primary-80); margin-bottom: 18px; }
.f-col a { display: block; font-size: var(--text-nav-size); font-weight: 500; line-height: 1.3; color: var(--color-primary); margin-bottom: 14px; }
.f-bottom { display: flex; justify-content: space-between; font-family: var(--font-footnote); font-weight: 500; font-size: var(--text-foot-size); line-height: 1.3; color: var(--color-primary); margin-top: 153px; }
.f-bottom .r { display: flex; gap: 18px; }

/* stepper controls (tablet/phone only) */
.stepper { display: none; gap: 12px; z-index: 5; justify-content: center; width: 100%; margin: -174px 0 52px; position: relative; }
.sbtn { width: 44px; height: 44px; border-radius: 50%; border: none; background: rgb(0, 0, 0); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.sbtn img { width: 24px; height: 24px; display: block; }
.sbtn:disabled { background: rgb(158, 158, 158); cursor: default; }

/* ---------- tablet (matches original's 810-1199 breakpoint) ---------- */
@media (max-width: 1199px) {
  :root { --text-h1-size: 51px; --text-h1-line: 51px; --text-h2-size: 48px; --text-h2-line: 48px; --page-pad: 50px; }
  .wrap { max-width: none; padding: 0 var(--page-pad); }
  nav { position: absolute; top: 8px; }
  nav .bar { padding: 0 var(--page-pad); justify-content: center; }
  .logo, .try-free { display: none; }
  .why .grid { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  #features { padding-top: 44px; }
  .testi h2 { margin-bottom: 40px; }
  .bento .r2 { grid-template-columns: 381fr 507fr; }
  .voice-panel, .symptoms-img { max-width: 100%; height: auto; min-height: 280px; }
  .photo-row { gap: 16px; }
  .photo-card { width: calc(50% - 8px); }
  .photo-card img { width: 100%; height: auto; aspect-ratio: 251 / 140; }
  .photo-note { max-width: 100%; }
  /* how-it-works becomes a stepper: phones on top, arrows, steps track below */
  .how .grid { display: flex; flex-direction: column; gap: 0; }
  .phone-fan { order: -2; }
  .stepper { order: -1; }
  .how .grid > div:first-child { margin-top: 0; display: flex; gap: 24px; overflow: hidden; }
  .step { flex: 0 0 min(340px, calc(100vw - 74px)); padding: 16px 12px; background: var(--color-step-active); margin-bottom: 0; transition: opacity .4s; }
  .how .grid { margin-top: 0; }
  .how { padding-bottom: 192px; }
  .f-bottom { margin-top: 113px; }
  .phone-fan {
    margin: 0 auto; height: 700px; width: 640px; max-width: 100%; position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 60%, transparent 79%); mask-image: linear-gradient(#000 60%, transparent 79%);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  }
  .mini { transform-origin: center; }
  .mini.slot0 { left: calc(50% - 200px); top: 20px; transform: rotate(-6deg) scale(.92); z-index: 3; opacity: 1; }
  .mini.slot1 { left: calc(50% - 50px); top: 40px; transform: rotate(9deg) scale(.92); z-index: 2; opacity: 1; }
  .mini.slot2 { left: calc(50% + 30px); top: 85px; transform: rotate(18deg) scale(.92); z-index: 1; opacity: 1; }
  .mini.gone { left: calc(50% - 480px); top: 45px; transform: rotate(-12deg) scale(.92); z-index: 4; opacity: 0; }
  .m1, .m2, .m3 { /* slot classes drive position on tablet/phone */ }
  .stepper { display: flex; }
  .f-grid { flex-direction: column; }
  .f-grid > div:first-child { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .f-disc { margin-top: 0; }
  .f-cols { margin-top: 44px; }
}

/* ---------- phone (matches original's <=809 breakpoint) ---------- */
@media (max-width: 809px) {
  :root { --text-h1-size: 41px; --text-h1-line: 41px; --text-h2-size: 38px; --text-h2-line: 40px; --page-pad: 20px; }
  .hero .sub { font-size: 24px; line-height: 1.3; max-width: 351px; }
  .why { padding-top: 70px; }
  .why .grid { grid-template-columns: 1fr; gap: 24px; }
  .why p { font-size: 16px; }
  #features { padding-top: 40px; }
  .bento .r1, .bento .r2 { grid-template-columns: 1fr; }
  .card { min-height: 520px; height: auto; }
  /* photos become an overlapping deck, as on the original */
  .photo-row { position: relative; height: 224px; display: block; }
  .photo-card { position: absolute; left: 50%; transform: translate(-53%, 0); }
  .photo-card + .photo-card { transform: translate(-51%, 5px); z-index: 2; }
  .photo-card img { width: 251px; height: 140px; }
  .testi { padding: 44px 0 60px; }
  .how { padding-top: 118px; padding-bottom: 104px; }
  .tcard { flex: 0 0 min(348px, calc(100vw - 70px)); }
  .phone-fan { width: 100%; height: 620px; margin: 20px auto 0;
    -webkit-mask-image: linear-gradient(#000 68%, transparent 84%); mask-image: linear-gradient(#000 68%, transparent 84%);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  .stepper { margin: -130px 0 66px; }
  .f-grid > div:first-child { flex-direction: column; gap: 20px; }
  .mini.slot0 { left: calc(50% - 160px); top: 10px; }
  .mini.slot1 { left: calc(50% - 33px); top: 27px; }
  .mini.slot2 { left: calc(50% + 59px); top: 71px; }
  .faq { padding-bottom: 40px; }
  .cta { padding: 120px 0 140px; }
  .f-grid { flex-direction: column; align-items: center; text-align: center; }
  .f-tag { max-width: 340px; }
  .f-disc { margin: 26px auto 0; }
  .f-cols { flex-direction: column; gap: 24px; margin-top: 30px; }
  .f-col h5 { margin-bottom: 12px; }
  .f-bottom { flex-direction: column; align-items: center; gap: 14px; margin-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini, .roll span, .plus, .sbtn { transition: none !important; }
}
