/* spendory.app — tokens mirror the app's Spendory/Colors and type (Figma: Landing page). */
:root {
  --bg: #F4F4EF;
  --surface: #FFFFFF;
  --ink: #101114;
  --muted: #5C616B; /* ink/600, a shade darker so it passes 4.5:1 on the grey bands */
  --soft: #A6AAB3;
  --track: #E7E7DF;
  --line: #E8E8E1;
  --dark: #14151A;
  --dark-2: #23252D;
  --dark-dim: #9EA3AE;
  --lime: #CDF463;
  --lime-hover: #BFE84F;
  --income: #17A34A;
  --income-soft: #E6F5EB;
  --expense: #E5484D;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --text: Manrope, 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; /* Manrope has no ₦; Space Grotesk draws it */

  --gutter: clamp(16px, 3.4vw, 48px);
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 160ms;
  --t-swap: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .inside :focus-visible { outline-color: var(--lime); }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top var(--t-fast) var(--ease); }
.skip:focus { top: 16px; }
.soft { color: var(--muted); }

h2 { font: 700 clamp(32px, 3.1vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; }
h3 { font: 700 22px/1.25 var(--display); letter-spacing: -0.02em; }

/* Buttons and fields: one shape, fully round */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 700 16px/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2C33; }
.btn--block { width: 100%; }
.btn.is-busy .btn-label { opacity: .0; }
.btn.is-busy { position: relative; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { width: 100%; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px var(--text); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field::placeholder { color: var(--soft); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(205, 244, 99, .55); } /* taste-skill-ignore: focus ring */
.field--dark { background: var(--dark-2); border-color: #3A3D47; color: #fff; }
.field--dark::placeholder { color: var(--dark-dim); }
.field--dark:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(205, 244, 99, .18); } /* taste-skill-ignore: focus ring */
.field[aria-invalid="true"] { border-color: var(--expense); }
.form-msg { font-size: 14px; min-height: 22px; }
.form-msg.is-error { color: var(--expense); font-weight: 600; }

/* Masked lines (headline reveal) */
.masked .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.masked .line > span { display: block; }
.js .masked.is-waiting .line > span { transform: translateY(105%); }
.js .masked.is-in .line > span { transform: none; transition: transform 900ms var(--ease); }
.js .masked.is-in .line:nth-child(2) > span { transition-delay: 110ms; }

/* ───────── Hero ───────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 980px); background: var(--dark); color: #fff; }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 112px; }
.hero-copy .wordmark { position: absolute; top: 40px; left: var(--gutter); }
.wordmark { font: 700 28px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.wordmark span { color: var(--lime); }
.hero h1 { font: 700 min(64px, calc((50vw - 2 * var(--gutter)) / 10.2))/1.02 var(--display); letter-spacing: -0.035em; }
.hero h1 .line > span { white-space: nowrap; }
.hero-sub { margin-top: 28px; max-width: 34em; font-size: 18px; line-height: 1.55; color: #C9CCD3; }
.hero-form { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 330px) auto; gap: 10px; max-width: 560px; }
.hero-form .form-msg { grid-column: 1 / -1; color: #C9CCD3; }
.hero-form .form-msg.is-error { color: #FF8A8E; }
.hero-form .form-msg.is-ok { color: var(--lime); font-weight: 600; }
.stores { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 9px 22px 9px 18px; border-radius: 999px; background: var(--dark-2); color: #fff; cursor: default; }
.store strong { display: block; font-size: 15px; line-height: 20px; }
.store small { display: block; font-size: 13px; line-height: 18px; color: var(--dark-dim); font-weight: 500; }
.js [data-hero-late] { opacity: 0; transform: translateY(16px); }
.js .hero.is-in [data-hero-late] { opacity: 1; transform: none; transition: opacity 700ms var(--ease) 420ms, transform 700ms var(--ease) 420ms; }

.hero-stage { position: relative; display: grid; place-items: center; padding: 120px var(--gutter) 112px; background: var(--dark-2); }
.top-link { position: absolute; top: 40px; right: var(--gutter); font-weight: 600; font-size: 16px; color: #fff; text-decoration: underline 1.5px transparent; text-underline-offset: 6px; transition: text-decoration-color var(--t-swap) var(--ease); }
.top-link:hover { text-decoration-color: currentColor; }

/* The Inbox fragment (product conventions inside data-ui) */
.inbox { width: min(468px, 100%); display: grid; gap: 16px; position: relative; }
.currency { display: flex; flex-wrap: wrap; gap: 6px; }
.currency button { padding: 8px 14px; border-radius: 999px; background: var(--dark); color: var(--dark-dim); font: 700 14px/1 var(--text); transition: color 220ms var(--ease), background-color 220ms var(--ease), transform var(--t-fast) var(--ease); }
.currency button:active { transform: scale(.95); }
.currency button:hover { color: #fff; }
.currency button[aria-checked="true"] { color: var(--ink); background: var(--lime); }
.readout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 24px; background: var(--dark); }
.readout-label { font-size: 14px; color: var(--dark-dim); font-weight: 500; }
.readout-amount { font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pending { padding: 7px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.pending.is-bump { animation: bump 420ms var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }

.stack { position: relative; min-height: 330px; }
.rc { position: absolute; inset: 0 0 auto; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 20px 20px 22px; display: grid; gap: 12px; transform-origin: 50% 0; transform: translateY(calc(var(--i, 0) * 20px)) scale(calc(1 - var(--i, 0) * .05)); opacity: calc(1 - var(--i, 0) * .45); z-index: calc(10 - var(--i, 0)); transition: transform 520ms var(--spring), opacity 400ms var(--ease); }
.rc--ghost { height: 100%; min-height: 300px; padding: 0; background: var(--surface); pointer-events: none; }
.rc--ghost[data-depth="1"] { opacity: .45; }
.rc--ghost[data-depth="2"] { opacity: .2; }
.rc--ghost.is-gone { opacity: 0; }
.rc.is-leaving-up { transform: translateY(-90px) scale(.55); opacity: 0; transition: transform 460ms var(--ease), opacity 360ms var(--ease); }
.rc.is-leaving-left { transform: translateX(-56px) rotate(-2.5deg); opacity: 0; transition: transform 320ms var(--ease), opacity 280ms var(--ease); }
.rc.is-entering { transform: translateY(20px) scale(.95); opacity: .45; transition: none; }
.rc.is-entering.is-first { transform: translateY(28px); opacity: 0; }
.rc--static { position: relative; inset: auto; transform: none; opacity: 1; }
.rc-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bank { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; }
.bank--none { display: grid; place-items: center; background: var(--track); color: var(--ink); font-size: 16px; }
.rc-src { flex: 1; min-width: 0; }
.rc-edit { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); /* taste-skill-ignore: app control (data-ui) */ font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color var(--t-fast) var(--ease); }
.rc-edit:hover { background: var(--bg); }
.rc-edit svg { font-size: 14px; }
.rc-alert { font-size: 15px; color: var(--muted); }
.rc-amt { font: 700 32px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rc-amt.is-in { color: var(--income); }
.rc-cat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px 0 10px; border: 1px solid var(--line); /* taste-skill-ignore: app control (data-ui) */ border-radius: 16px; font-weight: 600; transition: border-color var(--t-fast) var(--ease); }
.rc-cat:hover, .rc-cat:focus-within { border-color: var(--ink); }
.rc-cat .cat-name { flex: 1; }
.rc-cat .chev { font-size: 18px; color: var(--muted); }
.rc-cat select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.cat-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s); color: var(--c); font-size: 20px; flex: none; }
.cat-ic--m { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.rc-actions { display: flex; gap: 10px; }
.btn-o, .btn-d { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.btn-o { border: 2px solid var(--ink); }
.btn-o:hover { background: var(--bg); }
.btn-d { background: var(--ink); color: #fff; }
.btn-d:hover { background: #2A2C33; }
.btn-o:active, .btn-d:active, .btn-d.is-pressed { transform: scale(.96); }
.empty { position: absolute; inset: 0 0 auto; display: grid; justify-items: start; gap: 10px; padding: 28px 24px; border-radius: 24px; background: var(--dark); color: #fff; }
.empty p { color: var(--dark-dim); }
.empty .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.inbox > .toast { position: absolute; left: 0; right: 0; bottom: -64px; z-index: 20; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); /* taste-skill-ignore: floating toast */ transition: transform 420ms var(--spring), opacity 260ms var(--ease); }
.inbox > .toast.is-hidden { transform: translateY(16px); opacity: 0; pointer-events: none; }
.toast-ic { font-size: 20px; color: var(--income); flex: none; }
.toast span { flex: 1; }
.toast-undo { color: var(--lime); font-weight: 700; padding: 6px 4px; }

/* ───────── How it works ───────── */
.how { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: min(88svh, 860px); position: relative; background: var(--bg); }
/* With JavaScript the section pins while scrolling moves it through the four steps, then lets go. */
.js .how-pin { height: 440svh; } /* one screen + 240svh of steps + 100svh while the next section slides over */
.js .how-pin .how { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; transform-origin: 50% 0; }
.js .how-pin + .inside { margin-top: -100svh; z-index: 2; border-radius: 28px 28px 0 0; }
.how::after { content: ''; position: absolute; inset: 0; z-index: 5; background: #000; opacity: var(--dim, 0); pointer-events: none; }
/* Scroll-scrubbed: the script drives these every frame, so no CSS easing on top. */
.how.is-scrub .stage { transition: none; will-change: transform, opacity; }
.how.is-scrub .range-fill { transition: none; }
.how.is-scrub .range-thumb { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.how.is-scrub .how-copy { transform: translate3d(0, var(--enter, 0px), 0); opacity: var(--enter-o, 1); will-change: transform, opacity; }
.hero-text, .inbox { will-change: transform, opacity; }
.how > * { position: relative; }
.how-copy { padding: clamp(80px, 9vw, 128px) var(--gutter) 48px; }
.how-clause { font: 700 clamp(40px, 5vw, 76px)/1.02 var(--display); letter-spacing: -0.035em; }
.how-note { margin-top: 28px; max-width: 26em; font-size: 18px; color: var(--muted); transition: opacity var(--t-swap) var(--ease); }
.how-note.is-swapping { opacity: 0; }
.how-stage { position: relative; grid-column: 2; grid-row: 1 / -1; display: grid; place-items: center; padding: 72px var(--gutter) 150px; background: var(--track); overflow: hidden; }
.stage { grid-area: 1 / 1; width: min(440px, 100%); opacity: 0; visibility: hidden; transform: translateX(var(--from, 12px)); transition: opacity var(--t-swap) var(--ease), transform 480ms var(--ease), visibility 0s linear var(--t-swap); }
.stage.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-swap) var(--ease), transform 480ms var(--ease), visibility 0s; }
.no-js .how-stage { gap: 24px; }
.no-js .stage { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
.panel { background: var(--surface); border-radius: 24px; padding: 24px; display: grid; gap: 16px; }
.panel-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.mail-head { display: flex; align-items: center; gap: 12px; }
.mail-head .bank { width: 40px; height: 40px; }
.mail-head div { flex: 1; display: grid; }
.mail-head strong { font-size: 15px; }
.mail-head span, .mail-head time { font-size: 14px; color: var(--muted); }
.mail-subject { font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: right; }
.kv--boxed { padding: 16px; border-radius: 14px; background: var(--bg); }
.code-box { padding: 14px 16px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--lime); font-weight: 700; overflow-wrap: anywhere; }
.chip-dark { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; }
.ok-line { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--income); }
.big-amt { font: 700 38px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.suggest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F2EDFE; font-weight: 600; font-size: 15px; }
.stage-confirm { display: grid; gap: 14px; }
.toast--static { margin: 0; }
.how-slider { grid-column: 1 / -1; grid-row: 2; z-index: 1; padding: 0 var(--gutter) 40px; }
.range { position: relative; height: 40px; }
.range::before, .range-fill { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 8px; border-radius: 4px; background: var(--soft); }
.range-fill { right: auto; width: calc(var(--k, 0) * (100% - 36px) + 18px); background: var(--ink); transition: width 520ms var(--ease); }
.range-thumb { position: absolute; top: 2px; left: calc(var(--k, 0) * (100% - 36px)); width: 36px; height: 36px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--ink); pointer-events: none; transition: left 520ms var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.range:hover .range-thumb { transform: scale(1.08); }
.range:focus-within .range-thumb { box-shadow: 0 0 0 5px rgba(16, 17, 20, .18); } /* taste-skill-ignore: focus ring */
.range input { position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.range input:active { cursor: grabbing; }
.range input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.range input::-moz-range-track { height: 40px; background: transparent; }
/* The real thumb is invisible (it keeps the drag and keyboard); .range-thumb draws it so it can glide. */
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: 2px; border-radius: 50%; opacity: 0; }
.range input::-moz-range-thumb { width: 36px; height: 36px; border: 0; border-radius: 50%; opacity: 0; }
.range input:focus-visible { outline: none; }
.stops { position: relative; height: 36px; margin-top: 8px; }
.stops button { position: absolute; top: 0; left: calc(var(--k) * 100% / 3); transform: translateX(calc(var(--k) * -100% / 3)); font-size: 16px; font-weight: 500; color: var(--muted); padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.stops button:nth-child(1) { --k: 0; }
.stops button:nth-child(2) { --k: 1; }
.stops button:nth-child(3) { --k: 2; }
.stops button:nth-child(4) { --k: 3; }
.stops button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.stops button:hover { color: var(--ink); }

/* ───────── Inside the app ───────── */
.inside { position: relative; background: var(--dark); color: #fff; padding: 96px 0 104px; overflow: hidden; --shot: clamp(250px, 23.4vw, 337px); --gap: clamp(24px, 26vw, 374px); }
.inside h2 { padding: 0 var(--gutter); }
.shots { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 56px calc(50% - var(--shot) / 2) 8px; outline: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: var(--shot); scroll-snap-align: center; opacity: .22; transform: scale(.94); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.shot.is-lit { opacity: 1; transform: none; }
.shot img { width: 100%; border-radius: 8.3% / 3.85%; background: var(--bg); }
.shot-caption { position: absolute; top: calc(96px + 56px + 52px); left: calc(50% + var(--shot) / 2 + 48px); width: min(300px, calc(50% - var(--shot) / 2 - 48px - var(--gutter))); display: grid; gap: 12px; }
.shot-caption h3 { font: 500 28px/1.2 var(--display); letter-spacing: -0.02em; }
.shot-caption p { color: #C9CCD3; font-size: 17px; }
.shot-caption.is-swapping h3, .shot-caption.is-swapping p { opacity: 0; transform: translateY(6px); }
.shot-caption h3, .shot-caption p { transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.shot-nav { display: flex; gap: 10px; margin-top: 12px; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--dark-2); color: #fff; font-size: 22px; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.round:hover { background: #33363F; }
.round:active { transform: scale(.94); }

/* ───────── Everyday ───────── */
.everyday { padding: var(--section) var(--gutter) 120px; }
.modules { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 104px; }
.module { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.module-text { display: grid; gap: 10px; max-width: 300px; }
.module-text p { font-size: 16px; }
.proof { background: var(--surface); border-radius: 20px; padding: 20px; display: grid; gap: 10px; align-content: center; min-height: 104px; }
.bank-grid { display: grid; grid-template-columns: repeat(5, 40px); gap: 10px; }
.bank-grid img { width: 40px; height: 40px; border-radius: 50%; }
.file-row, .notif, .tx-row { display: flex; align-items: center; gap: 14px; }
.file-row span:last-child, .notif > span:nth-child(2), .tx-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.file-row strong, .notif strong, .tx-row strong { font-size: 15px; }
.file-row small, .notif small { font-size: 14px; color: var(--muted); }
.file-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #E6F7F1; color: #10B981; font-size: 22px; }
.notif { padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.notif time { font-size: 14px; color: var(--muted); }
.notif-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.delta { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--income-soft); color: #0E6E31; font-weight: 700; font-size: 14px; }
.tag { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--muted); font-size: 13px; font-weight: 600; }
.tx-amt { font: 700 17px var(--display); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--muted); }
.chips li.is-on { background: var(--ink); color: #fff; }

/* ───────── Reports ───────── */
.reports { padding: 0 var(--gutter) 140px; }
.reports-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.reports-head h2 { font-size: clamp(36px, 3.9vw, 56px); }
.reports-body { margin-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.tabs { display: grid; gap: 8px; position: relative; }
.tabs [role="tab"] { display: grid; gap: 2px; text-align: left; padding: 14px 20px; border-radius: 16px; background: var(--surface); transition: background-color var(--t-swap) var(--ease), color var(--t-swap) var(--ease), transform var(--t-fast) var(--ease); }
.tabs [role="tab"]:hover { transform: translateX(3px); }
.tabs [role="tab"] span { font-size: 16px; font-weight: 600; }
.tabs [role="tab"] strong { font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs [role="tab"][aria-selected="true"] strong { color: var(--lime); }
.bands { display: grid; gap: 6px; }
.band { display: grid; grid-template-columns: 44px 220px 1fr 56px 130px; align-items: center; gap: 16px; min-height: 80px; padding: 0 24px 0 20px; border-radius: 16px; background: var(--surface); }
.band:nth-child(even) { background: var(--track); }
.band .cat-ic { background: var(--s); color: var(--c); }
.band-name { display: grid; }
.band-name strong { font-size: 18px; font-weight: 600; }
.band-name small { font-size: 14px; color: var(--muted); }
.bar { height: 10px; }
.bar span { display: block; height: 10px; border-radius: 5px; background: var(--c); width: var(--w); transform-origin: 0 50%; transition: width 600ms var(--ease); }
.js .reports:not(.is-in) .bar span { width: 0; }
.pc { font-size: 15px; font-weight: 600; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.band-amt { font: 700 22px var(--display); letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }

/* ───────── Letter ───────── */
.why { background: var(--surface); padding: clamp(112px, 11vw, 160px) var(--gutter); display: grid; justify-items: center; }
.letter { width: min(560px, 100%); display: grid; gap: 24px; }
.letter-head { display: flex; align-items: center; gap: 16px; }
.letter-head h2 { font-size: 28px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.letter p { font-size: 18px; line-height: 1.62; }
.sign { display: grid; gap: 2px; margin-top: 4px; }
.sign strong { font: 700 22px var(--display); }
.sign span { font-size: 15px; color: var(--muted); }

/* ───────── Questions ───────── */
.faq { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 96px; padding: var(--section) var(--gutter) 140px; }
.faq-list { display: grid; gap: 6px; align-content: start; }
.faq-list h2 { margin-bottom: 24px; }
.q { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 9px 0; font-size: 18px; font-weight: 500; color: var(--muted); transition: color var(--t-fast) var(--ease); }
.q::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--soft); flex: none; transition: background-color var(--t-swap) var(--ease), transform var(--t-swap) var(--spring); }
.q:hover { color: var(--ink); }
.q[aria-expanded="true"] { color: var(--ink); font-weight: 700; }
.q[aria-expanded="true"]::before { background: var(--lime); border: 1.5px solid var(--ink); transform: scale(1.2); }
.a p { font-size: 18px; line-height: 1.55; padding: 4px 0 14px 24px; }
.faq-pane { align-self: start; padding-top: 92px; }
.faq-pane p { font: 500 clamp(22px, 2vw, 28px)/1.36 var(--display); letter-spacing: -0.02em; max-width: 19em; transition: opacity 150ms var(--ease), transform 220ms var(--ease); }
.faq-pane p.is-swapping { opacity: 0; transform: translateY(8px); }
.js .faq-pane { display: block; }
.no-js .faq-pane { display: none; }
@media (min-width: 900px) {
  .js .faq .a { display: none; }
}

/* ───────── Get it first ───────── */
.cta { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; align-items: end; min-height: min(90svh, 860px); padding: 120px calc(var(--gutter) + 60px) 80px var(--gutter); background: var(--lime); }
.cta-copy { display: grid; gap: 24px; }
.cta h2 { font: 700 clamp(56px, 8.4vw, 124px)/.92 var(--display); letter-spacing: -0.04em; }
.cta h2 .line { display: block; }
.cta-copy p { max-width: 25em; font-size: 18px; }
.dialog { align-self: center; background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 24px 48px rgba(16, 17, 20, .12); overflow: hidden; /* taste-skill-ignore: an open dialog, the app's own */ transition: height 420ms var(--ease); }
.dialog form { display: grid; gap: 10px; }
.dialog h3 { font-size: 28px; margin-bottom: 8px; }
.lbl { font-size: 14px; font-weight: 600; }
.dialog .field { border-radius: 16px; border-color: #D9D9D2; }
.seg { border: 0; padding: 0; margin: 10px 0 8px; display: grid; gap: 8px; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--bg); }
.seg-row label { position: relative; z-index: 1; }
.seg-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-row span { display: grid; place-items: center; min-height: 42px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color var(--t-swap) var(--ease); }
.seg-row input:checked + span { color: var(--ink); }
.seg-row input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg-glide { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--lime); transition: transform 380ms var(--ease); }
.seg-row:has(input[value="android"]:checked) .seg-glide { transform: translateX(100%); }
.dialog .btn { margin-top: 6px; border-radius: 16px; }
.dialog .form-msg { color: var(--muted); }
.done { display: grid; gap: 14px; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--lime); font-size: 26px; }
.done h3 { font-size: 28px; }
.done p { color: var(--muted); }

/* ───────── Footer ───────── */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 200px var(--gutter) 32px; font-size: 15px; }
.foot nav { display: flex; gap: 28px; }
.foot a { font-weight: 600; text-decoration: underline 1.5px transparent; text-underline-offset: 5px; transition: text-decoration-color var(--t-swap) var(--ease); }
.foot a:hover { text-decoration-color: currentColor; }
.foot p:last-child { text-align: right; }

/* Section entrances: heading, text, picture */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(24px); }
.js .is-revealed[data-reveal], .js .is-revealed[data-reveal-group] > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease) var(--d, 0ms), transform 800ms var(--ease) var(--d, 0ms); }
.js [data-reveal-group].is-revealed > :nth-child(2) { --d: 90ms; }

/* ───────── Tablet ───────── */
@media (max-width: 1100px) {
  .modules { grid-template-columns: 1fr; row-gap: 72px; }
  .band { grid-template-columns: 44px minmax(0, 1fr) minmax(60px, 1fr) 48px 112px; }
  .faq { gap: 56px; }
  .cta { padding-right: var(--gutter); }
}

/* ───────── Phone ───────── */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .hero { position: relative; grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; padding: 84px 16px 96px; }
  .top-link { top: 26px; font-size: 15px; }
  .hero-copy { position: static; padding: 36px 16px 48px; gap: 0; }
  .hero-copy .wordmark { position: absolute; z-index: 3; top: 22px; left: 16px; font-size: 24px; }
  .hero h1 { font-size: min(8.2vw, 52px); }
  .hero-sub { font-size: 17px; margin-top: 20px; }
  .hero-form { grid-template-columns: 1fr; margin-top: 24px; }
  .readout { padding: 16px 18px; border-radius: 20px; }
  .readout-amount { font-size: 32px; }
  .stack { min-height: 316px; }
  .rc { padding: 16px 16px 18px; gap: 10px; border-radius: 20px; }
  .rc-amt { font-size: 28px; }
  .currency button { padding: 7px 11px; font-size: 13px; }

  .how { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; min-height: 0; }
  .how-stage { order: -1; grid-column: auto; grid-row: auto; padding: 28px 16px 16px; }
  .how-slider { order: 0; grid-column: auto; grid-row: auto; background: var(--track); padding: 0 16px 28px; }
  .how-copy { order: 1; padding: 24px 16px 32px; }
  .how-clause { font-size: min(9.2vw, 44px); }
  .how-note { font-size: 16px; margin-top: 20px; }

  .inside { padding: 72px 0 80px; --shot: min(78vw, 340px); --gap: 16px; }
  .shots { padding-top: 40px; }
  .shot-caption { position: static; width: auto; padding: 28px 16px 0; }
  .shot-caption h3 { font-size: 22px; }
  .shot-caption p { font-size: 16px; }

  .everyday { padding: 112px 16px 56px; }
  .modules { margin-top: 48px; row-gap: 64px; }
  .module { grid-template-columns: 1fr; gap: 18px; }
  .module-text { max-width: none; }

  .reports { padding: 56px 16px 112px; }
  .reports-head { flex-direction: column; align-items: stretch; }
  .reports-head h2 { font-size: min(9.2vw, 44px); }
  .reports-body { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .tabs { grid-template-columns: repeat(3, 1fr); gap: 6px; position: sticky; top: 8px; z-index: 2; }
  .tabs [role="tab"] { padding: 12px; }
  .tabs [role="tab"] span { font-size: 13px; }
  .tabs [role="tab"] strong { font-size: 16px; }
  .tabs [role="tab"]:hover { transform: none; }
  .band { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 0 16px 0 14px; }
  .band .bar, .band .pc { display: none; }
  .band-amt { font-size: 20px; }

  .why { padding: 112px 16px; }
  .letter p { font-size: 17px; }

  .faq { grid-template-columns: 1fr; padding: 112px 16px; }
  .faq-pane, .js .faq-pane { display: none; }
  .js .q-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
  .js .q-item .a > p { overflow: hidden; min-height: 0; transition: padding 360ms var(--ease); }
  .js .q-item:not(.is-open) .a > p { padding-block: 0; }
  .js .q-item.is-open .a { grid-template-rows: 1fr; }
  .q { font-size: 18px; align-items: flex-start; }
  .q::before { margin-top: 8px; }

  .cta { grid-template-columns: 1fr; padding: 72px 16px 96px; min-height: 0; align-items: start; }
  .cta h2 { font-size: min(14vw, 64px); }
  .cta h2 .line { display: inline; }
  .cta-copy p { font-size: 16px; }
  .dialog { padding: 24px 20px; }

  .foot { grid-template-columns: 1fr; gap: 8px; padding: 112px 16px 24px; font-size: 14px; }
  .foot nav { flex-wrap: wrap; gap: 8px 20px; }
  .foot p:last-child { text-align: left; }
}

/* Screens too short to hold the pinned section: it scrolls normally. */
@media (max-height: 600px) {
  .js .how-pin { height: auto; }
  .js .how-pin .how { position: relative; height: auto; overflow: visible; }
  .js .how-pin + .inside { margin-top: 0; border-radius: 0; }
}

/* Reduced motion: no travel, no scaling; swaps become quick fades */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js .masked.is-waiting .line > span, .js [data-hero-late], .js [data-reveal], .js [data-reveal-group] > * { transform: none !important; }
  .rc, .stage, .shot, .seg-glide, .bar span, .range-fill, .range-thumb { transition-duration: 120ms !important; }
  .rc { transform: none; }
  .rc.is-leaving-up, .rc.is-leaving-left { transform: none; }
  .stage { transform: none; }
  .shot { transform: none; }
}
