@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {

  --cream:      #F6F0E6;
  --cream-lift: #FBF6EE;
  --cream-deep: #EDE3D3;
  --sand:       #E7D8C4;

  --teal-700: #1F6E6A;
  --teal-600: #2A8580;
  --teal-500: #369A93;
  --teal-400: #58B3AD;
  --teal-300: #8FCCC7;
  --teal-100: #DDEDEA;

  --mauve:      #C6A9A6;
  --mauve-deep: #A87F7C;
  --gold:       #D8A85A;

  --ink:      #16302E;
  --ink-soft: #4C605D;
  --ink-mute: #7E908D;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px -3px rgba(22,48,46,.16);
  --sh-md: 0 14px 34px -18px rgba(22,48,46,.30);
  --sh-lg: 0 40px 80px -40px rgba(22,48,46,.45);
  --sh-teal: 0 18px 40px -16px rgba(31,110,106,.45);

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

#app {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 82% 8%,  rgba(143,204,199,.42), transparent 70%),
    radial-gradient(55% 45% at 12% 92%, rgba(198,169,166,.34), transparent 72%),
    radial-gradient(90% 70% at 50% 50%, rgba(246,240,230,0), rgba(237,227,211,.55) 120%);
}

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 4vw, 34px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.topbar.is-visible { opacity: 1; transform: none; }
.topbar .brand-mark { height: 22px; width: auto; flex: none; opacity: .92; }

.topbar .back {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  color: var(--ink); background: rgba(255,255,255,.5);
  border: 1.5px solid rgba(22,48,46,.12);
  pointer-events: auto; transition: transform .25s var(--ease-out), background .25s, opacity .3s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.topbar .back:hover { transform: translateX(-2px); background: rgba(255,255,255,.85); }
.topbar .back[hidden] { opacity: 0; pointer-events: none; }

.progress { flex: 1; display: flex; align-items: center; gap: 12px; }
.progress__track {
  position: relative; flex: 1; height: 7px; border-radius: var(--r-pill);
  background: rgba(22,48,46,.10); overflow: visible;
}
.progress__fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: 0%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width .7s var(--ease-out);
}

.progress__spark {
  position: absolute; top: 50%; left: 0%; width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  color: var(--teal-500);
  transition: left .7s var(--ease-out);
  filter: drop-shadow(0 0 6px rgba(88,179,173,.7));
}
.progress__count {
  flex: none; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.progress__count b { color: var(--ink); }

#stage { position: absolute; inset: 0; z-index: 10; }

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  will-change: transform, opacity;
}

.screen--enter { opacity: 0; transform: translateY(22px) scale(.985); }
.screen--in    { opacity: 1; transform: none;
  transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); }
.screen--exit  { opacity: 0; transform: translateY(-20px) scale(.985); pointer-events: none;
  transition: opacity .4s var(--ease-smooth), transform .45s var(--ease-smooth); }

.stagger > * { opacity: 0; transform: translateY(16px); }
.screen--in .stagger > * {
  animation: rise .62s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 1ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.wrap {
  width: 100%; max-width: 620px; margin: 0 auto;
  padding: clamp(88px, 14vh, 128px) clamp(20px, 5vw, 28px) clamp(28px, 6vh, 44px);
  flex: 1; display: flex; flex-direction: column;
}

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-600); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--teal-400); border-radius: 2px;
}

.q-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 7.4vw, 3.15rem);
  line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 6px; color: var(--ink);
  text-wrap: balance;
}
.q-title em { font-style: italic; color: var(--teal-600); font-weight: 500; }
.q-sub {
  font-size: 1rem; line-height: 1.5; color: var(--ink-soft);
  margin: 10px 0 0; max-width: 46ch;
}

.options { list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px; }
.options.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }

.option {
  --oc: var(--teal-500);
  position: relative; width: 100%; text-align: left;
  display: flex; align-items: center; gap: 15px;
  padding: 17px 18px;
  background: var(--cream-lift);
  border: 1.6px solid rgba(22,48,46,.11);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease-spring), border-color .25s, box-shadow .3s, background .25s;
}
.option:hover { transform: translateY(-3px); border-color: var(--teal-300); box-shadow: var(--sh-md); }
.option:active { transform: translateY(-1px) scale(.995); }

.option__icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--teal-600); background: var(--teal-100);
  transition: background .3s, color .3s, transform .3s var(--ease-spring);
}
.option__icon svg { width: 24px; height: 24px; }
.option__body { flex: 1; min-width: 0; }
.option__label { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.option__desc { font-size: .84rem; color: var(--ink-mute); margin-top: 2px; }

.option__tick {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-pill);
  border: 2px solid rgba(22,48,46,.18);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .3s var(--ease-spring);
}
.option__tick svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.3) rotate(-40deg); transition: opacity .25s, transform .4s var(--ease-spring); }

.option.is-selected {
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  border-color: var(--teal-700);
  box-shadow: var(--sh-teal);
  transform: translateY(-2px);
}
.option.is-selected .option__label { color: #FBFDFC; }
.option.is-selected .option__desc  { color: rgba(255,255,255,.72); }
.option.is-selected .option__icon  { background: rgba(255,255,255,.16); color: #fff; transform: scale(1.05) rotate(-4deg); }
.option.is-selected .option__tick  { background: #fff; border-color: #fff; transform: scale(1.06); }
.option.is-selected .option__tick svg { opacity: 1; transform: none; color: var(--teal-600); }

.option.is-selected::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.35), transparent 55%);
  animation: sheen .6s var(--ease-out) forwards; pointer-events: none;
}
@keyframes sheen { from { opacity: 1; } to { opacity: 0; } }

.option.chip { justify-content: center; padding: 22px 14px; }
.option.chip .option__label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; text-decoration: none;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .25s;
}
.btn--primary {
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  color: #FBFDFC; box-shadow: var(--sh-teal);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -18px rgba(31,110,106,.6); }
.btn--primary:active { transform: translateY(-1px) scale(.99); }
.btn--primary svg { transition: transform .3s var(--ease-spring); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: rgba(255,255,255,.5); color: var(--ink); border: 1.6px solid rgba(22,48,46,.14); }
.btn--block { width: 100%; }

.intro { flex-direction: column; }
.intro__hero {
  position: relative; flex: 1 1 auto; min-height: 40vh;
  display: flex; align-items: flex-end;
  background: var(--teal-300);
  overflow: hidden;
}
.intro__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 30%;
  transform: scale(1.06); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.intro__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,110,106,.10) 0%, rgba(31,110,106,0) 40%, rgba(20,44,42,.66) 100%);
}
.intro__logo {
  position: absolute; top: clamp(20px, 5vw, 30px); left: clamp(20px, 5vw, 30px); z-index: 3;
  height: 26px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
}
.intro__badge {
  position: absolute; top: clamp(22px, 5vw, 32px); right: clamp(20px, 5vw, 30px); z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
}
.intro__hero-copy { position: relative; z-index: 2; padding: clamp(22px, 6vw, 40px); color: #fff; }
.intro__hero-copy .eyebrow { color: #CFEBE7; }
.intro__hero-copy .eyebrow::before { background: rgba(255,255,255,.6); }

.intro__panel {
  flex: none; background: var(--cream);
  padding: clamp(26px, 6vw, 40px) clamp(20px, 5vw, 34px) clamp(30px, 5vh, 42px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-top: -24px; position: relative; z-index: 2;
  box-shadow: 0 -24px 50px -30px rgba(22,48,46,.4);
}
.intro__panel-inner { max-width: 560px; margin: 0 auto; }
.intro__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.intro__title em { font-style: italic; color: var(--teal-600); }
.intro__lead { font-size: 1.06rem; line-height: 1.55; color: var(--ink-soft); margin: 16px 0 24px; max-width: 42ch; }

.intro__meta { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); margin-left: -10px; box-shadow: var(--sh-sm); }
.avatars img:first-child { margin-left: 0; }
.intro__meta-txt { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.intro__meta-txt b { color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .8rem; }

.trust-row { display: flex; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.trust-row svg { width: 17px; height: 17px; color: var(--teal-500); flex: none; }

.cta-note { display: block; text-align: center; margin-top: 12px; font-size: .8rem; color: var(--ink-mute); }

@media (min-width: 860px) {
  .intro { flex-direction: row; }
  .intro__hero { flex: 1 1 52%; min-height: 100dvh; align-items: flex-end; }
  .intro__bg { object-position: 55% 30%; }
  .intro__hero::after { background: linear-gradient(120deg, rgba(31,110,106,.15), rgba(20,44,42,.35)); }
  .intro__panel {
    flex: 1 1 48%; margin: 0; border-radius: 0;
    display: flex; align-items: center; box-shadow: none;
    padding: 6vh 5vw;
  }
  .intro__hero-copy { display: none; }
}

.screen-a { justify-content: center; align-items: center; }
.analyzing {
  max-width: 460px; margin: 0 auto; padding: 96px 26px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(22,48,46,.10); stroke-width: 8; }
.ring__fill  { fill: none; stroke: var(--teal-500); stroke-width: 8; stroke-linecap: round; }
.ring__center { position: absolute; inset: 0; display: grid; place-items: center; }
.ring__val {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 2.5rem; line-height: 1; transform: translateY(2px);
}
.ring__val i { font-style: normal; font-size: 1.05rem; font-weight: 600; color: var(--teal-600); }
.a-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 0; }
.a-title em { font-style: italic; color: var(--teal-600); }
.asteps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; text-align: left; }
.astep {
  display: flex; align-items: center; gap: 11px; font-size: .98rem; font-weight: 500;
  color: var(--ink-mute); opacity: .45; transition: opacity .4s var(--ease-out), color .4s;
}
.astep__dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(22,48,46,.18); color: transparent;
  transition: background .35s var(--ease-spring), border-color .35s, color .35s, transform .4s var(--ease-spring);
}
.astep__dot svg { width: 14px; height: 14px; }
.astep.is-done { opacity: 1; color: var(--ink); }
.astep.is-done .astep__dot { background: var(--teal-500); border-color: var(--teal-500); color: #fff; transform: scale(1.08); }
.a-note { font-size: .84rem; color: var(--ink-mute); margin: 8px 0 0; }

.screen-r { }
.results {
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: clamp(84px, 12vh, 108px) clamp(20px, 5vw, 26px) clamp(40px, 8vh, 64px);
  display: flex; flex-direction: column; gap: 22px;
}
.results__head { text-align: center; }
.match {
  display: inline-flex; align-items: baseline; gap: 7px; margin-bottom: 14px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--teal-100); color: var(--teal-700);
}
.match__num { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.match__num i { font-style: normal; font-size: .82rem; }
.match__lbl { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; }
.r-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 7vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.r-line { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; margin: 12px auto 0; max-width: 40ch; }
.results__body { display: flex; flex-direction: column; gap: 20px; }
.results__proof { display: flex; flex-direction: column; gap: 18px; }

.reco {
  background: var(--cream-lift); border: 1.6px solid rgba(22,48,46,.10);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md);
}
.reco__media { aspect-ratio: 16 / 9; background: var(--teal-100); }
.reco__media img { width: 100%; height: 100%; object-fit: cover; }
.reco__body { padding: 20px 22px 24px; }
.reco__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); margin: 0; }
.reco__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 6px 0 14px; letter-spacing: -.01em; }
.reco__benefits { list-style: none; margin: 0; padding: 0; }
.reco__benefits li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 1rem; font-weight: 500; border-top: 1px solid rgba(22,48,46,.08); }
.reco__benefits li:first-child { border-top: none; }
.reco__benefits .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-500); color: #fff; }

.ings { text-align: center; }
.ings__title { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.ings__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ing { background: var(--cream-lift); border: 1.4px solid rgba(22,48,46,.09); border-radius: var(--r-md); padding: 14px 14px; text-align: left; }
.ing b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--teal-700); }
.ing span { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; }

.capture {
  background: linear-gradient(180deg, var(--cream-lift), #fff);
  border: 1.8px solid var(--teal-300);
  border-radius: var(--r-lg); padding: 26px 22px 24px;
  box-shadow: var(--sh-md); margin-top: 4px;
}
.capture__title { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.capture__title em { font-style: italic; color: var(--teal-600); }
.capture__sub { font-size: .92rem; color: var(--ink-soft); margin: 8px 0 18px; line-height: 1.45; }
.field { margin-bottom: 12px; }
.field input {
  width: 100%; padding: 15px 16px; font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.6px solid rgba(22,48,46,.16); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3.5px rgba(88,179,173,.22); }
.field small { display: block; color: #C15A4E; font-size: .78rem; font-weight: 500; max-height: 0; overflow: hidden; transition: max-height .2s, padding .2s; }
.field.has-error input { border-color: #C15A4E; }
.field.has-error small { max-height: 24px; padding-top: 5px; }
.capture .btn { margin-top: 6px; }
.capture__trust { display: flex; justify-content: center; margin-top: 14px; }
.capture__trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--teal-700); }
.capture__trust svg { width: 17px; height: 17px; }
.capture__legal { text-align: center; font-size: .72rem; color: var(--ink-mute); margin: 12px 0 0; line-height: 1.4; }

@media (max-width: 899px) {
  .capture { order: -1; }
}

@media (min-width: 900px) {
  .results { max-width: 1080px; }
  .results__head { text-align: center; }
  .results__body { display: grid; grid-template-columns: 1fr 0.86fr; gap: 32px; align-items: start; }
  .results__proof { order: -1; }
  .capture { position: sticky; top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .05s !important; }
  .intro__bg { animation: none; transform: none; }
}
