:root {
  color-scheme: dark;
  --ink: #f4fff9;
  --muted: #a9c2b8;
  --deep: #04100d;
  --panel: rgba(12, 37, 30, .78);
  --line: rgba(196, 255, 225, .16);
  --mint: #6ff5b5;
  --mint-bright: #b7ffdb;
  --cyan: #65d9f3;
  --coral: #ff8f83;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--deep); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -5%, rgba(25, 154, 110, .35), transparent 34rem),
    radial-gradient(circle at 95% 30%, rgba(21, 99, 120, .23), transparent 38rem),
    linear-gradient(145deg, #061611 0%, #071f19 42%, #04100d 100%);
  overflow-x: hidden;
}

a { color: var(--mint-bright); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .22; border-radius: 999px; }
.ambient-one { width: 18rem; height: 18rem; background: var(--mint); left: -8rem; top: 34vh; }
.ambient-two { width: 24rem; height: 24rem; background: var(--cyan); right: -15rem; bottom: 4vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.5rem;
  padding: calc(.75rem + env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) .75rem max(1.1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(22px) saturate(145%);
  background: linear-gradient(180deg, rgba(3, 15, 12, .9), rgba(3, 15, 12, .55));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); font-weight: 820; letter-spacing: -.03em; text-decoration: none; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border-radius: .72rem;
  background: linear-gradient(145deg, #d7ffeb 0%, #6ff5b5 42%, #1e9b73 100%);
  color: #052019; box-shadow: 0 9px 25px rgba(80, 244, 174, .25), inset 0 1px 1px rgba(255,255,255,.8);
}

.quiet-button { appearance: none; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.055); border-radius: 999px; min-height: 2.75rem; padding: .65rem 1rem; text-decoration: none; cursor: pointer; }
.page-shell { width: min(100% - 2rem, 70rem); margin: 0 auto; padding: clamp(2rem, 6vw, 5.5rem) 0 7rem; position: relative; z-index: 1; }

.hero { display: grid; align-items: center; gap: clamp(3rem, 7vw, 6rem); min-height: 68vh; }
.hero-copy { max-width: 42rem; }
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.5rem, 9vw, 5.9rem); line-height: .97; letter-spacing: -.065em; }
h1 span { color: var(--mint-bright); text-shadow: 0 0 32px rgba(111,245,181,.26); }
h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.lead { max-width: 39rem; margin: 1.55rem 0 0; color: #c8ded5; font-size: clamp(1.05rem, 2.4vw, 1.27rem); line-height: 1.62; }
.muted, .field-help { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.primary-button, .secondary-button {
  min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.3rem; border-radius: 1rem;
  text-decoration: none; font-weight: 800; cursor: pointer; border: 0;
}
.primary-button { color: #042017; background: linear-gradient(145deg, #dbffed 0%, #74f6b9 48%, #49d29b 100%); box-shadow: 0 15px 40px rgba(70, 226, 158, .23), inset 0 1px 1px #fff; }
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.secondary-button { color: var(--ink); border: 1px solid rgba(208,255,233,.2); background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.035)); box-shadow: inset 0 1px rgba(255,255,255,.13); }
.full { width: 100%; }
.trust-line { color: #819d92; margin: 1rem 0 0; font-size: .85rem; }

.hero-orb {
  position: relative; width: min(78vw, 20rem); aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 36% 20%, rgba(255,255,255,.65), transparent 10%), radial-gradient(circle at 45% 35%, #66e9b0, #137053 58%, #06281f 78%);
  box-shadow: 0 36px 90px rgba(24, 190, 127, .24), inset -20px -26px 58px rgba(0,0,0,.35), inset 12px 12px 35px rgba(255,255,255,.18);
  color: #effff7;
}
.hero-orb::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.orb-shine { position: absolute; width: 45%; height: 24%; left: 14%; top: 8%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.42), transparent); filter: blur(7px); transform: rotate(-24deg); }
.hero-orb strong { font-size: clamp(2.6rem, 11vw, 4.8rem); letter-spacing: -.07em; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.orb-caption { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; opacity: .85; margin-bottom: .7rem; }
.hero-orb small { margin-top: .65rem; opacity: .8; }

.feature-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.glass-card, .center-card, .auth-card, .metric-card, .help-card {
  border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21, 59, 48, .78), rgba(7, 29, 23, .7));
  backdrop-filter: blur(24px) saturate(135%); box-shadow: var(--shadow); border-radius: 1.6rem;
}
.glass-card { min-height: 14rem; padding: 1.5rem; }
.glass-card p { color: var(--muted); line-height: 1.6; }
.feature-number { display: inline-block; color: var(--mint); margin-bottom: 2.7rem; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.center-card { max-width: 38rem; margin: 8vh auto; padding: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.center-card h1, .auth-card h1 { font-size: clamp(2.2rem, 8vw, 4rem); }

.auth-card { width: min(100%, 31rem); margin: 2vh auto; padding: clamp(1.35rem, 5vw, 2.5rem); }
.auth-card.wide { width: min(100%, 39rem); }
.form-stack { display: grid; gap: .62rem; margin-top: 1.7rem; }
.wizard { gap: 1rem; }
.wizard-step { padding: clamp(1.2rem, 4vw, 1.8rem); }
.wizard-step .feature-number { margin-bottom: 1.2rem; }
.wizard-step h2 { margin-bottom: 1rem; }
.choice-grid, .motivation-grid { display: grid; gap: .65rem; margin: 1rem 0; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { display: flex; flex-direction: column; gap: .2rem; min-height: 4rem; padding: .9rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(2,15,11,.45); }
.choice-card small { color: var(--muted); }
.choice-card input:checked + span { color: #052219; border-color: transparent; background: linear-gradient(145deg, #d7ffeb, #69efb2); box-shadow: inset 0 1px white, 0 9px 24px rgba(65,218,154,.16); }
.choice-card input:checked + span small { color: #185944; }
.choice-card input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.choice-card.compact > span { min-height: 3.2rem; justify-content: center; }
.two-columns { display: grid; gap: .7rem; }
.two-columns > div { display: grid; gap: .5rem; }
.sticky-action { position: sticky; bottom: 5.3rem; z-index: 10; }
.personal-why { color: var(--ink) !important; font-size: 1.15rem; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 1.7rem 1fr; gap: .8rem; padding: 0 0 1.6rem; color: #88a298; }
.timeline-item::before { content: ""; position: absolute; width: 2px; left: .54rem; top: 1rem; bottom: 0; background: rgba(255,255,255,.13); }
.timeline-item:last-child::before { display: none; }
.timeline-item.reached { color: var(--ink); }
.timeline-dot { position: relative; z-index: 1; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid #557167; background: var(--deep); }
.timeline-item.reached .timeline-dot { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 20px rgba(111,245,181,.45); }
.timeline-item small { color: var(--mint); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.timeline-item p { color: var(--muted); line-height: 1.55; }
.disclaimer-card { margin-top: 1rem; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 750; }
.journal-list { display: grid; gap: .7rem; }
.journal-entry { min-height: auto; padding: 1rem; }
.journal-entry > div { display: flex; justify-content: space-between; gap: .7rem; }
.journal-entry small { color: var(--muted); }
.journal-entry blockquote { margin: .8rem 0 0; padding-left: .8rem; border-left: 2px solid var(--mint); color: #c7ddd4; }
.profile-card { display: flex; flex-direction: column; align-items: start; gap: .5rem; }
.profile-card p { margin-top: 0; }
.action-list { padding: .45rem; display: grid; }
.action-list a, .action-list button { min-height: 4.3rem; display: flex; flex-direction: column; justify-content: center; align-items: start; gap: .2rem; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.action-list a:last-child, .action-list button:last-child { border-bottom: 0; }
.action-list span { color: var(--muted); font-size: .8rem; }
.danger { color: var(--coral); }
.danger-button { min-height: 3.1rem; padding: .7rem 1rem; border: 0; border-radius: 1rem; color: #2a0805; background: linear-gradient(145deg, #ffd7d2, #ff8f83); font-weight: 850; cursor: pointer; }
.legal-page { width: min(100%, 48rem); margin: 0 auto; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-page p { color: #bfd5cc; line-height: 1.7; }
.timer { margin: 1rem 0; font-size: clamp(3.5rem, 18vw, 6rem); font-weight: 900; letter-spacing: -.07em; text-align: center; color: var(--mint-bright); }
.timer-phase { min-height: 3rem; text-align: center; font-size: 1.1rem; }
.form-stack label:not(.check-row):not(.consent-box) { font-weight: 750; font-size: .9rem; margin-top: .45rem; }
input, select, textarea {
  width: 100%; min-height: 3.2rem; color: var(--ink); background: rgba(2, 15, 11, .72); border: 1px solid rgba(198,255,226,.18); border-radius: .9rem; padding: .75rem .9rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.25);
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #698278; }
.check-row, .consent-box { display: grid; grid-template-columns: 1.3rem 1fr; gap: .75rem; align-items: start; color: #c6ddd4; line-height: 1.45; margin: .8rem 0; }
.check-row input, .consent-box input { width: 1.2rem; min-height: 1.2rem; margin-top: .15rem; accent-color: var(--mint); }
.consent-box { padding: 1rem; border-radius: 1rem; background: rgba(111,245,181,.07); border: 1px solid rgba(111,245,181,.2); font-size: .9rem; }
.field-help { margin: -.25rem 0 .2rem; font-size: .78rem; line-height: 1.4; }
.validation { color: #ffb4ac; font-size: .84rem; line-height: 1.4; }
.validation:empty { display: none; }
.validation ul { margin: .4rem 0; padding-left: 1.1rem; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 1.25rem; font-size: .9rem; }
.success-box { margin: 1.5rem 0 0; padding: 1rem; border-radius: 1rem; color: #d9ffeb; background: rgba(75, 212, 151, .13); border: 1px solid rgba(111,245,181,.3); line-height: 1.55; }

.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dashboard-head h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
.duration-card { position: relative; overflow: hidden; padding: clamp(1.3rem, 5vw, 2.2rem); border-radius: 1.8rem; background: linear-gradient(135deg, #d6ffea 0%, #75efb6 42%, #1d9f74 100%); color: #05241b; box-shadow: 0 28px 70px rgba(49, 210, 145, .22), inset 0 1px #fff; }
.duration-card::after { content: ""; position: absolute; width: 70%; height: 70%; right: -22%; top: -38%; border-radius: 50%; background: rgba(255,255,255,.35); filter: blur(3px); }
.duration-card .duration-value { display: block; max-width: 90%; font-size: clamp(2rem, 8vw, 4.2rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.02; }
.duration-card p { margin: .8rem 0 0; max-width: 36rem; font-weight: 620; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: .8rem; }
.metric-card { padding: 1.1rem; min-height: 8.4rem; }
.metric-card small { display: block; color: var(--muted); margin-bottom: 1.4rem; }
.metric-card strong { display: block; font-size: clamp(1.45rem, 6vw, 2.2rem); letter-spacing: -.04em; }
.metric-card span { color: #8eaaa0; font-size: .76rem; }
.section-title { margin: 2rem 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.section-title h2 { font-size: 1.35rem; }
.help-card { padding: 1.25rem; }
.help-card p { color: var(--muted); line-height: 1.55; }
.lapse-button { width: 100%; margin-top: 1rem; min-height: 3.2rem; border-radius: 1rem; border: 1px solid rgba(255,143,131,.25); background: rgba(255,143,131,.07); color: #ffd4cf; font-weight: 780; cursor: pointer; }

.bottom-nav {
  position: fixed; z-index: 40; left: 50%; bottom: max(.65rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 1rem), 34rem); min-height: 4rem; display: grid; grid-template-columns: repeat(4, 1fr); padding: .35rem;
  border-radius: 1.35rem; border: 1px solid rgba(210,255,235,.18); background: rgba(5, 23, 18, .88); backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 18px 55px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.12);
}
.bottom-nav a { display: grid; place-items: center; color: #87a69a; text-decoration: none; border-radius: 1rem; font-size: .75rem; font-weight: 740; }
.bottom-nav a.active { color: #062119; background: linear-gradient(145deg, #caffdf, #64e9ad); box-shadow: inset 0 1px white, 0 7px 20px rgba(65,218,154,.18); }

.footer { width: min(100% - 2rem, 70rem); margin: 0 auto; padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #789288; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; }
.footer a { color: #abc7bc; }

dialog { color: var(--ink); width: min(calc(100% - 1rem), 33rem); max-height: calc(100dvh - 2rem); overflow-y: auto; border: 1px solid var(--line); border-radius: 1.5rem; padding: 0; background: linear-gradient(145deg, #12362b, #071c16); box-shadow: 0 30px 90px #000; }
dialog::backdrop { background: rgba(1,8,6,.72); backdrop-filter: blur(8px); }
.dialog-body { padding: 1.3rem; }
.dialog-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.2rem; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.35fr .65fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .motivation-grid { grid-template-columns: repeat(3, 1fr); }
  .two-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orb { animation: float 5s ease-in-out infinite; }
  .primary-button { transition: transform .18s ease, filter .18s ease; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Calm, light surfaces keep the app encouraging instead of clinical. */
:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #617069;
  --deep: #e9eeea;
  --panel: #fbfcfa;
  --line: #dce5df;
  --mint: #176a4a;
  --mint-bright: #0f5138;
  --cyan: #6ca58b;
  --coral: #b9584f;
  --shadow: 0 18px 48px rgba(28, 64, 44, .09);
}

html { background: var(--deep); }
body {
  background:
    radial-gradient(circle at 10% -8%, rgba(198, 226, 209, .58), transparent 33rem),
    radial-gradient(circle at 100% 38%, rgba(205, 222, 214, .44), transparent 36rem),
    linear-gradient(145deg, #f7faf7, #e7ece8);
}
a { color: var(--mint); }
.ambient { opacity: .07; }
.topbar {
  background: rgba(250, 252, 249, .88);
  border-bottom-color: rgba(23, 106, 74, .1);
  box-shadow: 0 4px 22px rgba(28, 64, 44, .04);
}
.quiet-button { background: #fff; box-shadow: 0 5px 18px rgba(28, 64, 44, .05); }
h1 span { color: var(--mint); text-shadow: none; }
.lead, .trust-line, .legal-page p { color: var(--muted); }
.secondary-button { color: var(--ink); border-color: var(--line); background: #fff; box-shadow: 0 8px 24px rgba(28, 64, 44, .06); }
.glass-card, .center-card, .auth-card, .metric-card, .help-card {
  border-color: var(--line);
  background: rgba(251, 252, 250, .92);
  box-shadow: var(--shadow);
}
.choice-card > span { background: #fff; }
.choice-card input:checked + span { color: #123d2d; background: #dff2e9; border-color: #91c7ac; box-shadow: 0 8px 24px rgba(23, 106, 74, .09); }
.choice-card input:checked + span small { color: #416d59; }
.timeline-item { color: #78867f; }
.timeline-item::before { background: #d9e2dc; }
.timeline-dot { background: #fff; border-color: #aab9b1; }
.journal-entry blockquote { color: #43534c; }
input, select, textarea {
  color: var(--ink);
  background: #fff;
  border-color: #cfdad3;
  box-shadow: 0 2px 8px rgba(28, 64, 44, .035);
}
input::placeholder, textarea::placeholder { color: #8c9992; }
.check-row, .consent-box { color: #43534c; }
.consent-box { background: #edf7f1; border-color: #c3dfcf; }
.validation { color: #a23830; }
.success-box { color: #174d37; background: #e6f5ec; border-color: #b9ddc8; }
.metric-card span { color: #718079; }
.lapse-button { color: #91453e; background: #fff4f2; border-color: #eac7c3; }
.bottom-nav {
  border-color: rgba(23, 106, 74, .14);
  background: rgba(250, 252, 249, .94);
  box-shadow: 0 18px 55px rgba(28, 64, 44, .15), inset 0 1px #fff;
}
.bottom-nav a { color: #697970; }
.bottom-nav a.active { color: #124a34; background: #dff2e9; box-shadow: none; }
.footer { color: #68776f; }
.footer a { color: #355f4b; }
dialog { background: #fbfcfa; box-shadow: 0 30px 90px rgba(16, 43, 29, .24); }
dialog::backdrop { background: rgba(20, 33, 26, .48); }

/* The original StopEasy flow: five short, focused screens. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body:has([data-wizard]) .topbar,
body:has([data-wizard]) > .bottom-nav,
body:has([data-wizard]) > .footer,
.onboarding-active .topbar,
.onboarding-active > .bottom-nav,
.onboarding-active > .footer { display: none; }
body:has([data-wizard]) .page-shell,
.onboarding-active .page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body:has([data-wizard]) .ambient,
.onboarding-active .ambient { display: none; }
.onboarding-shell { min-height: 100svh; background: #e9eeea; }
.onboarding-canvas {
  width: min(100%, 33rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(1rem + env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  color: #17211d;
  background: #fbfcfa;
  box-shadow: 0 0 56px rgba(28, 64, 44, .12);
}
.onboarding-header {
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  gap: .8rem;
  align-items: center;
}
.onboarding-header > a {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: #17211d;
  background: #f0f4f1;
  border: 1px solid #e0e7e2;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
}
.onboarding-header small { color: #66746d; font-weight: 750; text-align: right; }
.step-progress { height: .35rem; overflow: hidden; border-radius: 99px; background: #e4eae6; }
.step-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: #176a4a; transition: width .25s ease; }
.wizard-validation { margin: .45rem 0 0; padding: .7rem .85rem; border-radius: .8rem; background: #fff1ef; }
.onboarding-step { flex: 1; padding: clamp(2.25rem, 7vh, 4.2rem) .1rem 1.4rem; }
.onboarding-step .eyebrow { margin-bottom: .75rem; color: #176a4a; }
.onboarding-step h1 { max-width: 29rem; font-size: clamp(2rem, 9vw, 3.15rem); line-height: 1.01; letter-spacing: -.055em; }
.onboarding-step > p { margin: 1rem 0 1.65rem; color: #617069; line-height: 1.55; }
.choice-stack { display: grid; gap: .65rem; }
.onboarding-choice {
  position: relative;
  min-height: 4.7rem;
  padding: .72rem .8rem;
  display: grid;
  grid-template-columns: 2.8rem 1fr 1.5rem;
  gap: .75rem;
  align-items: center;
  cursor: pointer;
  border: 1px solid #dce5df;
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(28, 64, 44, .035);
}
.onboarding-choice:has(input:checked) { border-color: #79b99a; background: #edf7f1; box-shadow: 0 7px 22px rgba(23, 106, 74, .08); }
.onboarding-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-symbol, .catalog-logo {
  width: 2.75rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  color: #145239;
  background: #dff2e9;
  font-weight: 900;
}
.onboarding-choice strong, .onboarding-choice small { display: block; }
.onboarding-choice strong { font-size: .98rem; }
.onboarding-choice small { margin-top: .16rem; color: #6b7972; font-size: .79rem; line-height: 1.3; }
.onboarding-choice > i { color: #176a4a; opacity: 0; font-style: normal; font-weight: 900; }
.onboarding-choice:has(input:checked) > i { opacity: 1; }
.onboarding-choice input:focus-visible ~ span { outline: 3px solid #75ad93; outline-offset: 3px; }
.source-note { margin-top: 1.15rem; padding: .85rem 1rem; color: #66746d; background: #f1f5f2; border-radius: .85rem; font-size: .77rem; line-height: 1.45; }
.search-field, .manual-product-field, .why-field { display: grid; gap: .5rem; font-weight: 760; }
.search-field > span, .manual-product-field > label, .why-field > span { font-size: .85rem; }
.search-field input, .manual-product-field input, .why-field textarea { min-height: 3.65rem; border-radius: 1rem; }
.catalog-summary { margin: 1.1rem 0 .65rem; display: flex; justify-content: space-between; gap: .75rem; color: #69776f; font-size: .72rem; }
.catalog-summary strong { color: #365747; }
.catalog-results { display: grid; gap: .55rem; }
.catalog-results button, .manual-product-button {
  width: 100%;
  min-height: 4.5rem;
  padding: .62rem .72rem;
  display: grid;
  grid-template-columns: 2.75rem 1fr 1.4rem;
  gap: .75rem;
  align-items: center;
  color: #17211d;
  text-align: left;
  cursor: pointer;
  border: 1px solid #dce5df;
  border-radius: 1rem;
  background: #fff;
}
.catalog-results button.selected, .manual-product-button.selected { border-color: #71b392; background: #edf7f1; }
.catalog-results button > span:nth-child(2), .manual-product-button > span:nth-child(2) { min-width: 0; }
.catalog-results strong, .catalog-results small, .manual-product-button strong, .manual-product-button small { display: block; }
.catalog-results strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-results small, .manual-product-button small { margin-top: .15rem; color: #718078; font-size: .74rem; }
.catalog-results i, .manual-product-button i { color: #176a4a; font-style: normal; font-size: 1.2rem; text-align: center; }
.manual-product-button { margin-top: .55rem; }
.catalog-logo.manual { background: #eef2ef; color: #56665e; font-size: 1.2rem; }
.manual-product-field { margin-top: .8rem; }
.empty-note { margin: .75rem 0; padding: .8rem; border-radius: .8rem; background: #f4f6f4; font-size: .8rem; }
.value-form { display: grid; gap: .75rem; }
.value-form > label { display: grid; gap: .42rem; }
.value-form > label > span:first-child { display: flex; justify-content: space-between; gap: .75rem; font-size: .84rem; font-weight: 800; }
.value-form em { color: #78867f; font-size: .7rem; font-style: normal; font-weight: 650; }
.value-form > label > div { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid #cfdad3; border-radius: 1rem; background: #fff; }
.value-form input { min-height: 3.5rem; border: 0; border-radius: 0; box-shadow: none; }
.value-form b { padding: 0 .9rem; color: #637169; font-size: .78rem; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-bottom: 1.2rem; }
.focus-grid label { cursor: pointer; }
.focus-grid input { position: absolute; opacity: 0; pointer-events: none; }
.focus-grid span { min-height: 3.35rem; padding: .75rem; display: flex; align-items: center; gap: .55rem; border: 1px solid #dce5df; border-radius: .95rem; background: #fff; font-weight: 780; }
.focus-grid i { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border: 1px solid #b9c7bf; border-radius: .38rem; color: transparent; font-size: .72rem; font-style: normal; }
.focus-grid input:checked + span { border-color: #71b392; background: #edf7f1; color: #164c36; }
.focus-grid input:checked + span i { border-color: #176a4a; color: #fff; background: #176a4a; }
.focus-grid input:focus-visible + span { outline: 3px solid #75ad93; outline-offset: 3px; }
.why-field textarea { min-height: 7.5rem; }
.ready-card { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid #b9ddc8; border-radius: 1.15rem; background: #eaf6ef; }
.ready-card strong { color: #155139; font-size: 1.1rem; }
.ready-card p { margin: .45rem 0 0; color: #50645a; line-height: 1.5; }
.onboarding-footer { margin-top: auto; padding-top: .8rem; display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.back-button, .continue-button { min-height: 3.55rem; padding: .8rem 1.15rem; border: 0; border-radius: 1rem; font-weight: 850; cursor: pointer; }
.back-button { color: #335145; background: #edf1ee; }
.continue-button { color: #fff; background: #176a4a; box-shadow: 0 12px 26px rgba(23, 106, 74, .18); }
.continue-button:disabled { color: #849089; background: #e2e7e4; box-shadow: none; cursor: not-allowed; }
.back-button[hidden] + .continue-button { grid-column: 1 / -1; }

@media (max-width: 390px) {
  .onboarding-canvas { padding-inline: 1rem; }
  .onboarding-step { padding-top: 1.8rem; }
  .onboarding-step h1 { font-size: 1.9rem; }
  .onboarding-choice { min-height: 4.25rem; }
  .catalog-summary { display: grid; }
}

@media (min-width: 700px) {
  .onboarding-canvas { padding-inline: 2rem; }
}

/* Public homepage */
.home-landing { display: grid; gap: clamp(3.5rem, 8vw, 7rem); padding-bottom: 1rem; }
.home-kicker { display: block; color: #176a4a; font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.home-hero { display: grid; gap: 1.5rem; align-items: center; min-height: calc(100svh - 10rem); }
.home-hero-copy { position: relative; z-index: 2; }
.home-hero h1 { margin-top: .75rem; max-width: 42rem; color: #17211d; font-size: clamp(3.1rem, 13vw, 6.7rem); line-height: .9; letter-spacing: -.075em; }
.home-hero h1 span { color: #176a4a; }
.home-lead { max-width: 39rem; margin: 1.4rem 0 0; color: #586860; font-size: clamp(1rem, 2.2vw, 1.22rem); line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.home-actions .primary-button { color: #fff; background: #176a4a; box-shadow: 0 13px 30px rgba(23, 106, 74, .2); }
.home-actions .secondary-button { background: rgba(255,255,255,.84); }
.home-trust { display: grid; gap: .55rem; margin: 1.4rem 0 0; padding: 0; color: #526159; list-style: none; font-size: .83rem; }
.home-trust li { display: flex; align-items: center; gap: .55rem; }
.home-trust i { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; color: #fff; background: #176a4a; font-size: .67rem; font-style: normal; font-weight: 900; }
.home-visual { position: relative; width: min(100%, 34rem); min-height: 25rem; margin: 0 auto; display: grid; place-items: center; isolation: isolate; }
.home-visual-glow { position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(150, 222, 185, .48), rgba(234, 246, 239, .08) 67%, transparent 69%); filter: blur(13px); }
.home-visual img { display: block; width: min(100%, 31rem); height: auto; filter: drop-shadow(0 28px 28px rgba(30, 78, 51, .16)); }
.home-float-card { position: absolute; z-index: 2; padding: .78rem .9rem; border: 1px solid rgba(255,255,255,.9); border-radius: 1rem; color: #183e2e; background: rgba(251, 253, 250, .82); backdrop-filter: blur(14px); box-shadow: 0 15px 35px rgba(28, 64, 44, .13); }
.home-float-card small, .home-float-card strong { display: block; }
.home-float-card small { margin-bottom: .18rem; color: #6b7972; font-size: .65rem; }
.home-float-card strong { font-size: .82rem; }
.home-float-time { top: 16%; left: 0; }
.home-float-kind { right: 1%; bottom: 15%; display: flex; align-items: center; gap: .48rem; }
.home-float-kind span { display: grid; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 50%; color: #fff; background: #176a4a; font-size: .72rem; }
.home-free-banner { position: relative; overflow: hidden; display: grid; gap: 1.2rem; padding: clamp(1.35rem, 4vw, 2.1rem); align-items: center; border: 1px solid #bcdccb; border-radius: 1.75rem; background: linear-gradient(135deg, #f0faf4, #dcefe5); box-shadow: 0 18px 45px rgba(28, 64, 44, .08); }
.home-free-banner::after { position: absolute; width: 12rem; height: 12rem; right: -5rem; top: -7rem; border-radius: 50%; background: rgba(255,255,255,.7); content: ""; }
.home-zero { width: 5.8rem; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 1.65rem; color: #fff; background: linear-gradient(145deg, #20805a, #0e4d35); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 14px 28px rgba(23,106,74,.18); }
.home-zero strong { font-size: 2.6rem; line-height: .8; letter-spacing: -.08em; }
.home-zero span { margin-top: .35rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.home-free-banner h2, .home-section-heading h2, .coffee-card h2 { margin: .4rem 0 0; font-size: clamp(1.8rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -.05em; }
.home-free-banner p { max-width: 43rem; margin: .7rem 0 0; color: #52655b; line-height: 1.6; }
.home-section-heading { max-width: 45rem; }
.home-feature-grid { display: grid; gap: .85rem; margin-top: 1.5rem; }
.home-feature-grid article { min-height: 16rem; padding: 1.35rem; display: flex; flex-direction: column; border: 1px solid #dde6e0; border-radius: 1.45rem; background: rgba(255,255,255,.82); box-shadow: 0 13px 35px rgba(28, 64, 44, .055); }
.home-feature-icon { width: 3.25rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 1rem; font-size: 1.25rem; font-weight: 900; }
.home-feature-icon.mint { color: #145239; background: #dff2e9; }
.home-feature-icon.blue { color: #245b68; background: #e0f0f4; }
.home-feature-icon.sand { color: #73553d; background: #f5eadc; }
.home-feature-grid h3 { margin: auto 0 .45rem; font-size: 1.2rem; letter-spacing: -.025em; }
.home-feature-grid p { margin: 0; color: #617069; font-size: .88rem; line-height: 1.6; }
.home-steps { display: grid; gap: 1.35rem; padding: clamp(1.4rem, 5vw, 2.6rem); border-radius: 2rem; background: #17211d; box-shadow: 0 24px 55px rgba(23, 33, 29, .16); }
.home-steps .home-kicker { color: #7fe0af; }
.home-steps h2 { color: #fff; }
.home-steps ol { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 2.35rem 1fr; gap: .8rem; padding: .8rem; align-items: start; border-radius: 1rem; background: rgba(255,255,255,.06); }
.home-steps li > span { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: .8rem; color: #0d3d2b; background: #bcebd3; font-weight: 900; }
.home-steps strong { color: #fff; }
.home-steps p { margin: .25rem 0 0; color: #afbeb6; font-size: .82rem; line-height: 1.5; }
.home-steps .primary-button { justify-self: start; color: #113d2d; background: #bcebd3; box-shadow: none; }
.coffee-card { display: grid; gap: 1rem; padding: clamp(1.3rem, 4vw, 2rem); align-items: center; border: 1px solid #eadbc8; border-radius: 1.75rem; background: linear-gradient(135deg, #fffaf2, #f5ecdf); }
.coffee-cup { width: 4.7rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 1.35rem; background: rgba(255,255,255,.75); box-shadow: inset 0 1px #fff, 0 11px 28px rgba(99, 73, 48, .1); }
.coffee-cup span { font-size: 2.15rem; filter: grayscale(.15); }
.coffee-card .home-kicker { color: #8a5e38; }
.coffee-card p { max-width: 45rem; margin: .65rem 0 0; color: #6f6257; line-height: 1.58; }
.coffee-button { min-height: 3.1rem; padding: .75rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .95rem; color: #fff; background: #745036; font-weight: 820; text-decoration: none; white-space: nowrap; }
.home-return-card { color: #17211d; }
.home-return-card h1 { margin-top: .65rem; }
.home-return-card p { color: #617069; line-height: 1.55; }
.home-return-card .primary-button { margin-top: .7rem; color: #fff; background: #176a4a; }

@media (min-width: 600px) {
  .home-free-banner { grid-template-columns: auto 1fr; }
  .coffee-card { grid-template-columns: auto 1fr; }
  .coffee-button { grid-column: 2; justify-self: start; }
}

@media (min-width: 760px) {
  .home-hero { grid-template-columns: 1.05fr .95fr; gap: clamp(1rem, 3vw, 3rem); }
  .home-visual { min-height: 34rem; }
  .home-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .home-steps { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .home-steps .home-section-heading { align-self: start; }
  .home-steps ol { grid-column: 2; grid-row: 1 / span 2; }
  .home-steps .primary-button { grid-column: 1; }
  .coffee-card { grid-template-columns: auto 1fr auto; }
  .coffee-button { grid-column: 3; grid-row: 1; }
}

@media (max-width: 430px) {
  .home-hero { min-height: auto; }
  .home-actions { display: grid; }
  .home-actions a { width: 100%; }
  .home-visual { min-height: 24rem; margin-top: -.5rem; }
  .home-float-time { top: 12%; }
  .home-float-kind { bottom: 10%; }
  .home-free-banner { margin-top: -1rem; }
  .home-feature-grid article { min-height: 13.5rem; }
}
