/* Yearbar landing page. Tokens mirror the app (src/theme/theme.ts) and the logo. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/BricolageGrotesque_700Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/BricolageGrotesque_800ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_600SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_700Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_800ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_900Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/DMMono_500Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  /* brand */
  --night: #23205C; --ink-border: #14123A; --track-dark: #3A3685; --lavender: #7C76D6;
  --sunny: #FFC83D; --pink: #FF6F91; --tangerine: #FF5A36; --hot: #FF2E93;
  --deep: #100F26;
  /* light surfaces (app light theme) */
  --bg: #F2EEFF; --surface: #FFFFFF; --surface2: #F6F3FF; --ink: #19183A; --muted: #5E5B85;
  --line: #E2DCF7; --track: #ECE8FA; --ledge: #D8D0F2;
  --good: #0B9A63; --good-bg: #D9F7E9; --warn: #D7333A; --warn-bg: #FFE3E3; --info-bg: #E8E4FF;
  --gold: #FFB400; --gold2: #FF8A00;
  /* type */
  --f-display: "Bricolage", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* shape: the app's chunky, tactile style */
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --b: 2px solid var(--line);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
/* No double-tap zoom on taps (pinch zoom still works) */
a, button, summary, label, input, select, textarea, [role="button"] { touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.55 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.noscript { color: var(--muted); font-size: 15px; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.95; letter-spacing: -0.035em; margin: 0; color: var(--night); }
.display--md { font-size: clamp(36px, 5.4vw, 68px); color: #fff; }
.hl { background: linear-gradient(100deg, var(--tangerine), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; color: var(--night); }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--night); }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 30em; margin: 22px 0 30px; }
.kicker { font: 900 13px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tangerine); margin: 0 0 14px; }
.kicker--light { color: var(--sunny); }
.label { font: 900 12px/1.2 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 19px; max-width: 36em; margin: 16px 0 0; }
.sub--light { color: #C9C5F0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { text-align: center; }
.sec-head--center .sub { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: var(--b); border-radius: var(--r-pill); background: var(--surface); font-size: 15px; color: var(--muted); }
.eyebrow b { color: var(--night); }
.dot--live { width: 9px; height: 9px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 4px rgba(255, 90, 54, .18); }

/* ---------- buttons: the app's tactile style (2px border + darker ledge) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  border: 2px solid var(--line); border-bottom: 5px solid var(--ledge); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, border-bottom-width .12s ease, filter .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); border-bottom-width: 7px; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; border-bottom-width: 5px; }
.btn--primary { background: linear-gradient(135deg, var(--tangerine), var(--hot)); color: #fff; border-color: transparent; border-bottom-color: #B3204F; }
.btn--primary:hover { filter: saturate(1.1) brightness(1.03); }
.btn--ghost { background: transparent; border-color: transparent; border-bottom-color: transparent; color: var(--night); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn--ghost:hover { background: var(--surface2); border-bottom-width: 5px; }
.btn--gold { background: linear-gradient(135deg, #FFE066, var(--gold), var(--gold2)); color: #2A1600; border-color: transparent; border-bottom-color: #B35F00; }
.btn--warn { color: var(--warn); border-color: #F3C3C5; }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn--xs { min-height: 34px; padding: 4px 12px; font-size: 14px; border-radius: 10px; border-bottom-width: 4px; }
.btn--lg { min-height: 54px; padding: 13px 26px; font-size: 18px; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reassure { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.reassure--light { color: #C9C5F0; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font: 800 13px/1.4 var(--f-body); background: var(--surface2); color: var(--ink); white-space: nowrap; }
.chip--good { background: var(--good-bg); color: var(--good); }
.chip--info { background: var(--info-bg); color: var(--night); }
.chip--warm { background: #FFEBD9; color: #B24A00; }
.chip--gold { background: var(--gold); color: #2A1600; }
.chip--flag { background: color-mix(in srgb, var(--fc) 16%, white); color: color-mix(in srgb, var(--fc) 70%, black); }
.badge { --c: var(--lavender); flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 22px;
  background: color-mix(in srgb, var(--c) 16%, white); border: 2px solid color-mix(in srgb, var(--c) 35%, white); }
.badge--sm { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }

/* ---------- the bar (goal bar with year marker) ---------- */
.bar { --p: 50; --y: 50; --c: var(--lavender); --h: 18px; position: relative; height: var(--h); border-radius: var(--r-pill); background: var(--track); }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); min-width: var(--h); border-radius: inherit; background: var(--c); overflow: hidden;
  transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar__fill::after { content: ""; position: absolute; left: 8px; right: 8px; top: 20%; height: max(3px, 20%); border-radius: 4px; background: rgba(255,255,255,.45); }
.bar__marker { position: absolute; top: -5px; bottom: -5px; left: calc(var(--y) * 1%); width: 5px; margin-left: -2.5px; border-radius: 3px; background: #14102A; border: 1px solid #fff;
  transition: left .6s cubic-bezier(.2,.8,.2,1); }
.bar--lg { --h: 24px; }
.bar--xl { --h: 34px; }
.ms { position: absolute; top: 50%; left: calc(var(--at) * 1%); width: 12px; height: 12px; margin: -6px 0 0 -12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.ms--done { background: var(--night); border-color: var(--night); }
.flag { position: absolute; top: -22px; left: calc(var(--at) * 1%); margin-left: -5px; color: var(--fc); font: 900 16px/1 var(--f-body); }

/* the big "year" bar, drawn like the logo: night-ink track, sunny fill, star at the end */
.bigbar { --p: 80; position: relative; height: 54px; border-radius: var(--r-pill); background: var(--track-dark); border: 6px solid var(--ink-border); }
.bigbar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); min-width: 42px; border-radius: inherit; background: var(--sunny); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bigbar__marker { position: absolute; top: -14px; bottom: -14px; left: calc(var(--p) * 1%); width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--ink-border);
  transition: left 1.4s cubic-bezier(.2,.8,.2,1); }
.bigbar__tag { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: var(--night); color: #fff; font-size: 13px; white-space: nowrap; }
.bigbar__dot { position: absolute; top: 50%; left: calc(var(--at) * 1%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lavender); }
.bigbar__dot { background: color-mix(in srgb, var(--lavender) 100%, transparent); }
.bigbar__star { position: absolute; right: 14px; top: 50%; transform: translateY(-52%); color: #fff; font-size: 20px; line-height: 1; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: -0.02em; color: var(--night); }
.brand img { border-radius: 9px; }
.brand--sm { font-size: 18px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--night); background: var(--surface); }
@media (max-width: 820px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__visual { display: grid; gap: 22px; min-width: 0; }
.yearlane__head { display: flex; justify-content: space-between; margin-bottom: 46px; font-size: 15px; color: var(--muted); }
.yearlane__head [data-year] { color: var(--night); font-size: 17px; }
.board { position: relative; background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); border-radius: var(--r-lg); padding: 20px; }
.board__top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 12px; }
.board__hello { margin: 0; color: var(--muted); font-size: 14px; }
.board__title { margin: 0; font: 800 28px/1 var(--f-display); letter-spacing: -0.02em; color: var(--night); }
.board__score { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.board__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sample-note { margin: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.sample-note--center { text-align: center; margin-top: 22px; }
.gcard { min-width: 0; border: 2px solid color-mix(in srgb, var(--c) 35%, white); border-bottom-width: 5px; border-bottom-color: color-mix(in srgb, var(--c) 50%, white); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: #fff; container-type: inline-size; }
.gcard__top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.gcard__name { min-width: 0; flex: 1; }
.gcard__name b { display: block; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.gcard__name span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard__pct { font: 800 20px/1 var(--f-display); color: var(--night); }
.gcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.gcard__foot .chip { font-size: 12px; padding: 4px 8px; }
.gcard__foot .small { font-size: 12px; white-space: nowrap; }
.gcard__plus { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--c); color: #fff; font: 900 20px/1 var(--f-body); border: 0; border-bottom: 4px solid color-mix(in srgb, var(--c) 70%, black); cursor: pointer; }
.gcard__plus:hover { transform: translateY(-1px); }
.gcard__plus:active { transform: translateY(2px); border-bottom-width: 1px; }
.wkdots { display: flex; gap: 3px; }
.wkdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--track); }
.wkdots i.on { background: var(--c); }
/* narrow cards: drop the week dots and cadence before the footer can overflow */
@container (max-width: 181px) { .gcard__foot .wkdots, .gcard__foot .small { display: none; } }
@container (max-width: 145px) { .gcard__foot .chip { font-size: 11px; padding: 3px 6px; } }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
}
@media (max-width: 560px) {
  .board__cards { grid-template-columns: 1fr; }
  .board__cards .gcard:nth-child(n+4) { display: none; } /* phone: 3 cards, like the app */
  .bigbar { height: 44px; border-width: 5px; }
  .hero__copy .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- C. demo ---------- */
.demo { background: var(--surface); border-top: var(--b); border-bottom: var(--b); }
.demo__stage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.streakapp { border-radius: var(--r-lg); padding: 24px; background: #F4F4F6; border: 2px solid #E4E4EA; color: #2B2B33; display: flex; flex-direction: column; gap: 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.streakapp .label { color: #6B6B78; }
.streakapp__count { display: flex; align-items: baseline; gap: 10px; }
.streakapp__num { font-size: clamp(64px, 9vw, 96px); line-height: 1; font-weight: 500; color: #2B2B33; transition: color .3s; }
.streakapp__unit { font-weight: 700; color: #6B6B78; }
.streakapp__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streakapp__days i { aspect-ratio: 1; border-radius: 6px; background: #4CAF50; opacity: .85; }
.streakapp__days i.off { background: #D6D6DD; opacity: 1; }
.streakapp__msg { margin: auto 0 0; font-weight: 700; color: #6B6B78; }
.streakapp.is-broken .streakapp__num { color: #B9B9C3; }
.streakapp.is-broken .streakapp__msg { color: #C62828; }
.card { background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); border-radius: var(--r-lg); }
.yb { padding: 24px; display: flex; flex-direction: column; gap: 16px; border-color: color-mix(in srgb, #00A884 35%, white); border-bottom-color: color-mix(in srgb, #00A884 50%, white); }
.yb__head { display: flex; gap: 12px; align-items: center; }
.yb__name { flex: 1; min-width: 0; }
.yb__name h3 { margin: 0; font: 800 22px/1.1 var(--f-display); color: var(--night); }
.yb__name p { margin: 2px 0 0; font-size: 15px; }
.yb .bar { --h: 26px; margin: 6px 0; }
.yb__meta { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; font-size: 15px; color: var(--muted); }
.yb__msg { margin: 0; min-height: 3em; font-weight: 700; }
.yb__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.chip.is-pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }
@media (max-width: 760px) { .demo__stage { grid-template-columns: 1fr; } .yb__actions .btn { flex: 1 1 40%; } }

/* ---------- D. problem ---------- */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pains { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pains li { position: relative; padding-left: 30px; font-size: 19px; }
.pains li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 3px; border-radius: 2px; background: var(--pink); }
.contrast { display: grid; gap: 20px; }
.frags { position: relative; height: 200px; border: 2px dashed var(--ledge); border-radius: var(--r-lg); overflow: hidden; }
.frag { position: absolute; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 2px solid var(--line); font-weight: 800; color: var(--muted); white-space: nowrap; }
.frag--zero { left: 8%; top: 18%; font-size: 52px; line-height: 1; padding: 6px 18px; color: var(--warn); transform: rotate(-6deg); }
.frag--box { left: 46%; top: 12%; transform: rotate(4deg); }
.frag--note { left: 34%; top: 56%; background: #FFF6C9; border-color: #F2E39A; color: #6B5A00; transform: rotate(-3deg); font-style: italic; }
.frag--box2 { left: 6%; top: 70%; transform: rotate(2deg); }
.frag--lost { right: 6%; top: 36%; color: var(--warn); background: var(--warn-bg); border-color: #F3C3C5; transform: rotate(7deg); }
.whole { background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); border-radius: var(--r-lg); padding: 22px; }
.whole__chip { margin: 16px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

/* ---------- E. how ---------- */
.how { padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px 22px; border-top: 4px solid var(--night); }
.step__n { position: absolute; top: -20px; left: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--sunny); font-size: 17px; }
.step h3 { font: 800 24px/1.1 var(--f-display); margin: 6px 0 4px; color: var(--night); letter-spacing: -0.02em; }
.step p { margin: 0 0 18px; color: var(--muted); }
.ui { margin-top: auto; background: var(--surface); border: var(--b); border-bottom: 5px solid var(--ledge); border-radius: 18px; padding: 16px; display: grid; gap: 12px; font-size: 15px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface2); border: 2px solid var(--line); font-weight: 800; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.seg span { padding: 5px 9px; border-radius: 9px; }
.seg .on { background: #fff; color: var(--night); box-shadow: 0 1px 0 var(--ledge); }
.seg--sm { font-size: 12px; }
.ui__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.field { padding: 6px 12px; min-width: 64px; border: 2px solid var(--line); border-radius: 10px; }
.ui__hint { margin: 0; color: var(--muted); }
.ui__hint b { color: var(--night); }
.mini { display: flex; align-items: center; gap: 10px; }
.mini__name { flex: 1; font-weight: 800; }
.plus { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #E7A100; color: #fff; font: 900 18px/1 var(--f-body); border-bottom: 3px solid #A87500; }
.note { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface2); }
.note img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.toast { justify-self: start; padding: 6px 12px; border-radius: 10px; background: var(--night); color: #fff; font-size: 13px; font-weight: 800; }
.toast u { color: var(--sunny); margin-left: 6px; }
.ui__reward { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 44px; max-width: 560px; } }

/* ---------- F. features ---------- */
.pace { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); margin-bottom: 20px; }
.pace__copy p { color: var(--muted); }
.pace__chips { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.pace__chips li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pace__fig { margin: 0; min-width: 0; }
.anno { padding: 44px 0 10px; }
.anno__labels { position: relative; height: 0; }
.anno__labels span { position: absolute; bottom: 14px; transform: translateX(-50%); font-weight: 800; font-size: 14px; white-space: nowrap; padding: 3px 9px; border-radius: 8px; }
.anno__you { left: calc(var(--at) * 1% - 6%); color: #B24A00; background: #FFEBD9; }
.anno__yr { left: calc(var(--at) * 1%); color: #fff; background: var(--night); top: -30px; bottom: auto !important; }
.anno__scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pace__fig figcaption { margin-top: 18px; font-size: 15px; }
@media (max-width: 860px) { .pace { grid-template-columns: 1fr; } }

.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.f { min-width: 0; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); }
.f p { color: var(--muted); margin: 0 0 16px; }
.f--journal { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #FFF 0%, #FFF4F7 100%); border-color: #FFD3DE; border-bottom-color: #F7B5C6; }
.f--rewards { grid-column: span 2; }
.f--dates { grid-column: span 2; }
.f--sched { grid-column: span 3; background: var(--night); border-color: var(--night); border-bottom-color: var(--ink-border); color: #fff; }
.f--sched .h3 { color: #fff; }
.f--sync { grid-column: span 3; }
.journal { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: auto; }
.month { background: #fff; border: var(--b); border-radius: 18px; padding: 14px; }
.month__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.month__head b { font: 800 18px/1 var(--f-display); color: var(--night); }
.month__head span { font-size: 12px; }
.month__dow, .month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month__dow span { text-align: center; font-size: 11px; color: var(--muted); }
.month__grid { margin-top: 4px; }
.mday { position: relative; aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--line); font: 800 10px/1 var(--f-body); padding: 3px; color: var(--ink); overflow: hidden; background-size: cover; background-position: center; }
.mday.is-empty { border: 0; }
.mday.has-photo { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); border-color: transparent; }
.mday.is-today { border-color: var(--tangerine); border-width: 2px; }
.mday i { position: absolute; bottom: 3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.wall { background: #fff; border: var(--b); border-radius: 18px; padding: 14px; }
.wall__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wall__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.rw { display: grid; gap: 10px; }
.rw .bar { margin: 8px 0 6px; }
.rw__row { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.rw__row span:nth-child(2) { flex: 1; min-width: 0; }
.rw__row--next { color: var(--muted); }
.rw__row .mono { width: 44px; }
.kd { padding-top: 22px; }
.kd .bar { margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--good-bg); color: var(--good); font: 900 12px/1 var(--f-body); margin-top: 3px; }
.f--sched .ticks li::before { background: var(--sunny); color: var(--night); }
.devices { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .f--journal { grid-column: span 2; grid-row: auto; }
  .f--rewards, .f--dates { grid-column: span 1; }
  .f--sched, .f--sync { grid-column: span 2; }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; }
  .f--journal, .f--rewards, .f--dates, .f--sched, .f--sync { grid-column: auto; }
  .journal { grid-template-columns: 1fr; }
  .f { padding: 20px; }
}

/* ---------- G. year in perspective (dark) ---------- */
.section--dark { background: var(--deep); color: #EDEBFF; }
.section--dark .h2 { color: #fff; }
.journey { margin: 0; padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: #1C1B3B; border: 2px solid #312F62; border-bottom: 6px solid #09081C; }
.journey__chart { width: 100%; min-height: 240px; }
.journey__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.journey__legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; font-weight: 800; color: #C9C5F0; }
.journey__legend .muted { color: #A9A5D6; margin-left: auto; }
.lg { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.lg--you { background: var(--sunny); }
.lg--pace { background: repeating-linear-gradient(90deg, #7C76D6 0 6px, transparent 6px 10px); }
.journey__story { max-width: 640px; margin: 36px 0 0; font-size: 20px; color: #DCD9FF; }
.jy-moment { font: 800 12px var(--f-body); fill: #fff; }
.jy-moment-sub { font: 600 11px var(--f-body); fill: #A9A5D6; }
.jy-axis { font: 500 11px var(--f-mono); fill: #A9A5D6; }

/* ---------- H. real life ---------- */
.real__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.real__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; font-size: 18px; }
.real__list b { color: var(--night); }
.why { margin: 0; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 2px solid #FFD3DE; border-bottom: 6px solid #F7B5C6; position: relative; font-size: 19px; }
.why::before { content: ""; position: absolute; top: -2px; right: 28px; width: 30px; height: 46px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.why p { margin: 0 0 14px; }
.why footer { font-weight: 800; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .real__grid { grid-template-columns: 1fr; } }

/* ---------- I. pricing ---------- */
.pricing { padding-top: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: var(--b); border-bottom: 6px solid var(--ledge); display: flex; flex-direction: column; gap: 16px; }
.plan .h3 { display: flex; align-items: center; gap: 10px; }
.plan__price { margin: 0; font-weight: 800; color: var(--muted); }
.plan__price .mono { font-size: 40px; color: var(--night); margin-right: 4px; }
.plan .ticks { margin-bottom: 8px; flex: 1; }
.plan--pro { border-color: #FFCF7A; border-bottom-color: #F0A93A; background: linear-gradient(180deg, #FFFBF0, #fff 60%); }
.plan .small { margin: -6px 0 0; text-align: center; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- J. final ---------- */
.section--ink { background: var(--night); color: #fff; }
.final__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final__logo { border-radius: 18px; }
.final .display { max-width: 15em; }
.bigbar--final { width: min(760px, 100%); margin-top: 26px; }
.final__left { margin: 0; font-size: 19px; color: #C9C5F0; }
.final__left b { color: var(--sunny); font-size: 22px; }

/* ---------- K. FAQ & footer ---------- */
.faq__in { max-width: 820px; }
.faq .h2 { margin-bottom: 28px; }
details { border-bottom: 2px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 800 19px/1.3 var(--f-body); color: var(--night); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font: 900 18px/1 var(--f-body); color: var(--tangerine); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--muted); max-width: 44em; }
.foot { border-top: var(--b); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; flex: 1; justify-content: center; }
.foot nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 6px 0; }
.foot nav a:hover { color: var(--night); text-decoration: underline; }
.foot p { margin: 0; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- fixes & additions (Oct 19) ---------- */
/* in-page links stop below the sticky header instead of hiding the section title */
[id] { scroll-margin-top: 92px; }
/* sections that keep their top padding: skip it so the heading, not the padding, sits under the header */
#features, #faq, #waitlist { scroll-margin-top: calc(92px - var(--sec)); }
.btn--warn { border-bottom-color: #EBA4A8; }

/* waitlist vs open mode */
[data-mode="waitlist"] .only-open, [data-mode="open"] .only-waitlist { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl { width: min(620px, 100%); display: grid; gap: 14px; justify-items: center; }
.wl__lead { margin: 0; font-size: 19px; color: #DCD9FF; max-width: 30em; }
.wl__form { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; justify-content: center; }
.wl__form input[type=email] { flex: 1 1 260px; min-height: 54px; padding: 12px 16px; border-radius: var(--r-md); border: 2px solid #4E4A92; border-bottom-width: 5px;
  background: #fff; color: var(--ink); font: 700 17px var(--f-body); }
.wl__form input[type=email]:focus-visible { outline: 3px solid var(--sunny); outline-offset: 2px; }
.wl__msg { margin: 0; min-height: 1.5em; font-weight: 800; color: var(--sunny); }
.wl__msg.is-error { color: #FFB3B8; }
.chip--pink { background: #FFE0E8; color: #B0244A; }

/* pricing: three cards whose rows line up (name, price, note, each inclusion, button) */
.plans { max-width: 1080px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(8, auto); column-gap: 20px; row-gap: 0; }
.plan { grid-row: span 8; display: grid; grid-template-rows: subgrid; gap: 12px; }
.plan__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font: 700 clamp(22px, 2.2vw, 28px)/1.1 var(--f-display); color: var(--night); letter-spacing: -0.02em; }
.plan__note { margin: 0; color: var(--muted); font-size: 15px; }
.plan .plan__list { grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: 12px; margin: 6px 0 10px; }
.plan .btn { align-self: end; }
.plan--life { border-color: #FFC2D1; border-bottom-color: #F59AB2; background: linear-gradient(180deg, #FFF3F6, #fff 60%); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; grid-template-rows: none; max-width: 520px; row-gap: 20px; } .plan { grid-row: auto; grid-template-rows: none; } .plan .plan__list { grid-row: auto; grid-template-rows: none; } }
