/*
 * Years Ahead — marketing site stylesheet (the only one; the landing page and /privacy/, /terms/,
 * /support/ share it). Dark "Private Office + luminosity" direction, champagne #C9A96A as the one
 * metal. Sizes and tokens mirror apps/mobile/src/theme.ts.
 *
 * The site's Content-Security-Policy (deployment/Caddyfile.yearsahead-site) allows this file and
 * nothing inline: no style="" attributes, no <style> blocks, no script. Everything below is the whole
 * presentation. Fonts are self-hosted, subset WOFF2 (apps/web/scripts/build-assets.mjs) with
 * metric-matched local fallbacks so the swap does not shift layout.
 */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin.v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-400-latin.v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-500-latin.v1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin.v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 75.9%; ascent-override: 130.4%; descent-override: 40.8%; line-gap-override: 0%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"); size-adjust: 96.6%; ascent-override: 100.3%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Menlo"); size-adjust: 99.7%; ascent-override: 102.8%; descent-override: 27.6%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  /* surfaces */
  --ink-page: #05070B;
  --ink-deep: #080B11;
  --ink: #0C111A;
  --ink-hi: #141A25;
  --surface: #141B26;
  --raised: #1B2330;
  --card-a: #18202C;
  --card-b: #111721;
  /* hairlines */
  --line: #2C3543;
  --line-soft: #1E2530;
  --line-strong: #3A4456;
  --line-gold: rgba(201, 169, 106, .45);
  /* text tiers (all AA on every surface above; --dim is decoration only) */
  --text: #F7F5F1;
  --muted: #B5BDCA;
  --faint: #9AA5B6;
  --dim: #6F7887;
  /* champagne */
  --gold: #C9A96A;
  --gold-lt: #DFCA9E;
  --gold-hi: #F3E7CB;
  --gold-deep: #B98935;
  --gold-hover: #D6BA80;
  --gold-06: rgba(201, 169, 106, .06);
  --gold-08: rgba(201, 169, 106, .08);
  --gold-12: rgba(201, 169, 106, .12);
  --gold-18: rgba(201, 169, 106, .18);
  --you: #88ABF5;
  --danger: #F0A6A6;
  /* type */
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --sans: "Inter Tight", "Sans Fallback", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Mono Fallback", ui-monospace, Menlo, monospace;
  --sys: -apple-system, "SF Pro Text", system-ui, sans-serif;
  --fs-xl: clamp(3.25rem, 1.9rem + 5.2vw, 6rem);
  --fs-l: clamp(2.375rem, 1.679rem + 2.857vw, 4.25rem);
  --fs-m: clamp(1.625rem, 1.393rem + .952vw, 2.25rem);
  --fs-s: clamp(1.25rem, 1.111rem + .571vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.032rem + .381vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1.039rem + .095vw, 1.125rem);
  --fs-small: clamp(.875rem, .852rem + .095vw, .9375rem);
  --fs-label: clamp(.6875rem, .664rem + .095vw, .75rem);
  /* light */
  --halo: radial-gradient(70% 55% at 22% 14%, rgba(201, 169, 106, .15), rgba(201, 169, 106, .04) 60%, transparent 75%);
  --lamp: linear-gradient(225deg, rgba(201, 169, 106, .2) 0%, rgba(201, 169, 106, .05) 30%, transparent 55%);
  --sunburst: repeating-conic-gradient(rgba(223, 202, 158, .03) 0deg .9deg, transparent .9deg 1.8deg);
  /* space */
  --section-y: clamp(4.5rem, 3.4rem + 2.8vw, 6.5rem);
  --margin: clamp(20px, 5vw, 48px);
  --gutter: clamp(16px, 1rem + .5vw, 24px);
  --ease-settle: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink-page); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    var(--halo) top left / 100% 1100px no-repeat,
    var(--lamp) top right / 100% 1200px no-repeat,
    linear-gradient(var(--ink-deep), var(--ink) 820px) top / 100% 820px no-repeat,
    var(--ink);
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; color: var(--text); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 500; color: var(--text); }
::selection { background: rgba(201, 169, 106, .3); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1200px, 100% - 2 * var(--margin)); margin-inline: auto; }
.accent { color: var(--gold); }
.accent--line { display: block; }
.glyph { font-family: var(--sans); }
.frac { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.ui { color: var(--text); font-weight: 500; }
.nw { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 12px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header, .notice-band { position: relative; z-index: 1; } /* above the hero, whose dial reaches up behind the header on phones */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding-top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -.013em; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__links { display: flex; gap: 32px; }
.site-nav__links a, .site-nav > a:not(.nav-pill) {
  font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; transition: color .16s;
}
.site-nav__links a:hover, .site-nav > a:not(.nav-pill):hover { color: var(--text); }
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .16s, background-color .16s;
}
.nav-pill:hover { border-color: var(--gold); background: var(--gold-06); }

.notice-band:empty { display: none; }
.notice-band { padding-top: 4px; }
.doc-notice {
  border-left: 2px solid var(--gold); background: var(--surface); border-radius: 12px;
  padding: 14px 18px; margin: 0 0 8px;
}
.doc-notice p { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.doc-notice strong { color: var(--gold-lt); font-weight: 400; }
.doc-notice code { font-family: var(--mono); color: var(--text); background: var(--raised); padding: 1px 5px; border-radius: 4px; }

/* ---------------------------------------------------------------- shared atoms */
.kicker { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); flex: none; }
.kicker--center { justify-content: center; }

.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
  border-radius: 28px; font-weight: 500; font-size: 17px; letter-spacing: .01em; text-decoration: none;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s;
}
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: inset 0 1px 0 rgba(243, 231, 203, .5); }
.btn--primary:hover { background: var(--gold-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-lt); }
.text-link {
  color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--line-gold); transition: text-decoration-color .16s;
}
.text-link:hover { text-decoration-color: var(--gold); }
.text-link--quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; font-size: 16px; }
.mono-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.attribution { font-size: var(--fs-small); color: var(--faint); line-height: 1.55; }
.attribution .mono { display: block; margin-top: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section-y); position: relative; }
.section--deep { background: linear-gradient(var(--ink), var(--ink-deep) 120px, var(--ink-deep) calc(100% - 120px), var(--ink)); }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--wide { max-width: 860px; }
.section-head h2, .math__copy h2, .faq__head h2, .cta h2 { font-family: var(--serif); font-size: var(--fs-l); line-height: 1.06; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 62ch; letter-spacing: -.005em; }
.section-head__note { font-size: var(--fs-small); color: var(--faint); max-width: 62ch; }
.section-caption { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; letter-spacing: .04em; color: var(--faint); max-width: 78ch; }
.horizon { position: relative; height: 1px; }
.horizon span { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .5) 30% 70%, transparent); }
.horizon span::after { content: ""; position: absolute; left: 66%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 10px 2px rgba(223, 202, 158, .6); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(24px, 3vw, 48px) clamp(72px, 8vw, 128px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 6vw, 96px); }
.hero__copy { display: flex; flex-direction: column; padding-bottom: 72px; position: relative; }
.hero__text { position: relative; display: flex; flex-direction: column; }
.hero__title { margin-top: 28px; font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.02; letter-spacing: -.012em; }
.hero__sub { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; color: var(--muted); }
.hero__facts { margin-top: 22px; font-size: var(--fs-body); color: var(--gold-lt); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__status { margin-top: 22px; font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.device--hero { --device-w: 340px; position: relative; margin-right: clamp(0px, 3vw, 48px); }
/* Wide screens: the dial stands clear of the phone's right edge, so the phone never cuts its hub or
   monogram; only its left markers pass behind the phone. 1024-1279 px has no room for it (below). */
.hero__dial {
  position: absolute; z-index: -2; left: calc(100% + 110px); top: 43%; width: clamp(560px, 46vw, 660px); height: auto; aspect-ratio: 1; max-width: none;
  transform: translate(-50%, -50%); opacity: .52; pointer-events: none;
}
/* In the hero, the drawn screen ends above the tab bar and its fade starts below the save button,
   so the page's brightest champagne is never dimmed. */
.device--hero .app { gap: calc(14 * var(--pt)); }
.device--hero .device__fade { height: calc(100 * var(--pt)); }
.device--hero::before { /* the phone's champagne bloom */
  content: ""; position: absolute; z-index: -1; inset: 18% -18% -6%;
  background: radial-gradient(closest-side, rgba(201, 169, 106, .16), transparent); pointer-events: none;
}

/* ---------------------------------------------------------------- device (an HTML drawing of the app) */
.device { width: var(--device-w, 300px); margin: 0; display: grid; gap: 16px; }
.device__frame {
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 410 / 864; padding: 2.44%;
  border-radius: 13.4% / 6.37%;
  background: linear-gradient(145deg, #2A2E36, #0B0D11 40%, #1A1D23 70%, #2A2E36);
  box-shadow: 0 0 0 1px #2A2E36, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 140px -40px rgba(201, 169, 106, .2);
}
.device__frame::before, .device__frame::after { /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #22262D;
}
.device__frame::before { left: -3px; top: 21%; height: 7%; box-shadow: 0 9cqi 0 #22262D; }
.device__frame::after { right: -3px; top: 27%; height: 11%; }
.device__screen {
  --pt: calc(100cqi / 393);
  position: relative; height: 100%; overflow: hidden; border-radius: calc(54 * var(--pt));
  background: radial-gradient(70% 38% at 22% 14%, rgba(201, 169, 106, .17), rgba(201, 169, 106, .04) 55%, transparent 75%), linear-gradient(162deg, var(--ink-hi) 0%, var(--ink) 48%, var(--ink-deep) 100%);
  color: var(--text); font-family: var(--sans); line-height: 1.35;
}
.device__screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .045) 0 18%, transparent 18.5%);
}
.device__island { position: absolute; z-index: 7; top: calc(11 * var(--pt)); left: 50%; transform: translateX(-50%); width: calc(124 * var(--pt)); height: calc(36 * var(--pt)); border-radius: calc(20 * var(--pt)); background: #000; }
.device__status {
  position: relative; z-index: 6; display: flex; justify-content: space-between; align-items: center;
  height: calc(54 * var(--pt)); padding: calc(4 * var(--pt)) calc(34 * var(--pt)) 0 calc(42 * var(--pt));
  font-family: var(--sys); font-weight: 600; font-size: calc(16 * var(--pt)); letter-spacing: -.01em;
}
.device__bat { position: relative; width: calc(26 * var(--pt)); height: calc(12.5 * var(--pt)); border: calc(1.3 * var(--pt)) solid var(--faint); border-radius: calc(4 * var(--pt)); }
.device__bat::after { content: ""; position: absolute; inset: calc(1.6 * var(--pt)); right: calc(5 * var(--pt)); background: var(--text); border-radius: calc(1.5 * var(--pt)); }
.device__fade { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(170 * var(--pt)); background: linear-gradient(to bottom, rgba(8, 11, 17, 0), var(--ink-deep) 70%); pointer-events: none; }
.device__home { position: absolute; z-index: 7; left: 50%; bottom: calc(8 * var(--pt)); transform: translateX(-50%); width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 3px; background: rgba(247, 245, 241, .85); }
.device__caption { font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .03em; color: var(--faint); }
.device--trio .device__caption { min-height: 3.2em; } /* two lines, so the three columns below start level */

.tabbar {
  position: absolute; z-index: 6; left: 50%; bottom: calc(28 * var(--pt)); transform: translateX(-50%);
  display: flex; gap: calc(6 * var(--pt)); padding: calc(7 * var(--pt)); border-radius: 999px;
  background: rgba(30, 37, 50, .72); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.tab { display: grid; justify-items: center; gap: calc(2 * var(--pt)); padding: calc(6 * var(--pt)) calc(12 * var(--pt)); border-radius: 999px; font-family: var(--sys); font-size: calc(11 * var(--pt)); font-weight: 500; color: var(--faint); }
.tab svg { width: calc(23 * var(--pt)); height: calc(23 * var(--pt)); }
.tab--on { color: var(--gold); background: var(--gold-12); }

/* the app's own screen, in app points */
.app { position: relative; z-index: 2; display: flex; flex-direction: column; gap: calc(18 * var(--pt)); padding: calc(4 * var(--pt)) calc(22 * var(--pt)) 0; }
.app p { margin: 0; }
.app .app-cap { margin-top: calc(-12 * var(--pt)); }
.app-hdr { display: flex; align-items: center; justify-content: space-between; min-height: calc(40 * var(--pt)); }
.app-brand { display: flex; align-items: center; gap: calc(7 * var(--pt)); font-family: var(--serif); font-size: calc(23 * var(--pt)); letter-spacing: -.01em; }
.app-brand svg { width: calc(23 * var(--pt)); height: calc(23 * var(--pt)); }
.app-pills { display: flex; gap: calc(6 * var(--pt)); }
.app-pill { font-family: var(--mono); font-size: calc(11.5 * var(--pt)); color: var(--gold); border: 1px solid var(--line); border-radius: calc(24 * var(--pt)); padding: calc(7 * var(--pt)) calc(11 * var(--pt)); line-height: 1; }
.app-tag { align-self: flex-start; font-size: calc(12.5 * var(--pt)); color: var(--gold-lt); background: var(--gold-08); border: 1px solid rgba(201, 169, 106, .25); border-radius: 999px; padding: calc(4 * var(--pt)) calc(11 * var(--pt)); margin-top: calc(6 * var(--pt)); }
.app-count { display: flex; align-items: baseline; gap: calc(10 * var(--pt)); margin-top: calc(-4 * var(--pt)); }
.app-count__n { font-family: var(--serif); font-size: calc(104 * var(--pt)); line-height: .9; font-variant-numeric: tabular-nums; }
.app-count__u { font-family: var(--serif); font-size: calc(33 * var(--pt)); color: var(--gold-lt); }
.app-cap { font-family: var(--serif); font-size: calc(25 * var(--pt)); line-height: 1.15; }
.app-cap sup { color: var(--gold); font-size: .6em; }
.app-comparison { display: grid; gap: calc(6 * var(--pt)); padding-block: calc(10 * var(--pt)); }
.app-comparison__h { font-family: var(--serif); font-size: calc(28 * var(--pt)); line-height: 1.15; }
.app-until { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(12 * var(--pt)); padding: calc(15 * var(--pt)) 0; border-block: 1px solid var(--line-soft); }
.app-until__dot { width: calc(8 * var(--pt)); height: calc(8 * var(--pt)); border-radius: 50%; background: var(--gold); }
.app-until__t { display: grid; gap: calc(4 * var(--pt)); }
.app-until__text { font-size: calc(17 * var(--pt)); }
.app-until__detail { font-family: var(--mono); font-size: calc(11 * var(--pt)); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.app-chev { color: var(--dim); font-size: calc(20 * var(--pt)); line-height: 1; font-family: var(--sans); }
.app-label { font-family: var(--mono); font-size: calc(11 * var(--pt)); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.app-label--mt { margin-top: calc(8 * var(--pt)); }
.app-label--center { text-align: center; }
.app-peer { display: grid; gap: calc(7 * var(--pt)); }
.app .strip { width: 100%; height: auto; }
.app-peer__line { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--pt)); font-family: var(--serif); font-size: calc(21 * var(--pt)); line-height: 1.18; }
.app-source { font-family: var(--mono); font-size: calc(10.5 * var(--pt)); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); line-height: 1.6; }
.app-basis { font-family: var(--mono); font-size: calc(11 * var(--pt)); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); line-height: 1.7; }
.app-edit { color: var(--gold); }
.app-card { display: grid; gap: calc(10 * var(--pt)); padding: calc(16 * var(--pt)); border-radius: calc(20 * var(--pt)); border: 1px solid var(--line); background: linear-gradient(170deg, var(--card-a), var(--card-b)); }
.app-card__h { font-family: var(--serif); font-size: calc(24 * var(--pt)); line-height: 1.15; }
.app-body { font-size: calc(14.5 * var(--pt)); line-height: 1.5; color: var(--muted); }
.app-btn { display: block; text-align: center; border-radius: calc(28 * var(--pt)); padding: calc(14 * var(--pt)); font-weight: 500; font-size: calc(15.5 * var(--pt)); background: var(--gold); color: var(--ink); }
.app-btn--ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.app-foot { font-size: calc(12 * var(--pt)); line-height: 1.5; color: var(--faint); }
.app-links { display: flex; flex-wrap: wrap; gap: calc(6 * var(--pt)) calc(18 * var(--pt)); font-size: calc(14 * var(--pt)); color: var(--gold); }
.app-levers { display: grid; }
.app-lever { display: grid; grid-template-columns: 1fr auto; gap: calc(3 * var(--pt)) calc(12 * var(--pt)); align-items: baseline; padding: calc(14 * var(--pt)) 0; border-bottom: 1px solid var(--line); }
.app-lever__l { font-size: calc(16 * var(--pt)); line-height: 1.35; }
.app-lever__m { font-family: var(--serif); font-size: calc(21 * var(--pt)); color: var(--gold-lt); text-align: right; white-space: nowrap; }
.app-lever__w { grid-column: 2; text-align: right; font-family: var(--mono); font-size: calc(11 * var(--pt)); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.app-fields { display: grid; gap: calc(8 * var(--pt)); }
.app-field { display: grid; gap: calc(6 * var(--pt)); background: var(--raised); border: 1px solid var(--line); border-radius: calc(14 * var(--pt)); padding: calc(10 * var(--pt)) calc(12 * var(--pt)); }
.app-field__k { font-size: calc(12 * var(--pt)); color: var(--faint); }
.app-field__v { height: calc(16 * var(--pt)); border-left: 1.5px solid var(--gold); width: 0; }
.app-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: calc(44 * var(--pt)); font-size: calc(16 * var(--pt)); }
.app-nav__back { color: var(--gold); }
.app-nav__title { font-weight: 500; }
.app-group { display: grid; background: rgba(20, 27, 38, .8); border: 1px solid var(--line-soft); border-radius: calc(16 * var(--pt)); padding-inline: calc(14 * var(--pt)); margin-top: calc(-8 * var(--pt)); }
.app-group + .app-group { margin-top: 0; }
.app-kv { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--pt)); padding: calc(10.5 * var(--pt)) 0; border-bottom: 1px solid var(--line-soft); font-size: calc(14.5 * var(--pt)); }
.app-kv:last-child { border-bottom: 0; }
.app-kv > span:last-child { font-family: var(--mono); font-size: calc(12.5 * var(--pt)); color: var(--muted); white-space: nowrap; }
.app-kv--danger > span:first-child { color: var(--danger); }
.strip__t { font-family: var(--mono); font-size: 8.5px; }
.strip__t--top { font-size: 9px; }

/* ---------------------------------------------------------------- the app (trio) */
.section--app { padding-top: clamp(4.5rem, 3rem + 5vw, 8.5rem); }
.trio { display: grid; grid-template-columns: repeat(3, 300px); justify-content: center; gap: 56px; position: relative; }
.trio::before { /* the dial's 3–9 axis, behind all three phones */
  content: ""; position: absolute; left: -4%; right: -4%; top: calc(300px * 864 / 410 * .58); height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .35) 20% 80%, transparent);
}
.trio:focus-visible { outline-offset: 12px; border-radius: 20px; }
.trio__item { position: relative; z-index: 1; display: grid; align-content: start; gap: 28px; }
.trio__item--raised { margin-top: -40px; }
.device--trio { --device-w: 300px; }
.trio__text { display: grid; gap: 10px; max-width: 34ch; }
.trio__text h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.35rem + .5vw, 1.875rem); line-height: 1.15; }
.trio__text p:not(.tag):not(.mono-note) { font-size: 16px; color: var(--muted); line-height: 1.55; }
.trio__hint { display: none; }
.app__bridge { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-soft); max-width: 64ch; color: var(--muted); }

/* ---------------------------------------------------------------- how it works */
.how { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gutter); align-items: start; }
.how__head { margin-bottom: 0; padding-right: 24px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3vw, 48px); border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0 32px; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 3px; height: 14px; border-radius: 1px; background: linear-gradient(var(--gold-lt), #9C7D47); }
.step__i { font-family: var(--serif); font-size: 44px; line-height: .9; color: var(--gold-lt); padding-top: 4px; }
.step__body { display: grid; gap: 12px; align-content: start; }
.step h3 { font-weight: 500; font-family: var(--sans); font-size: 20px; letter-spacing: -.005em; }
.step p { color: var(--muted); max-width: 58ch; }
.step__aside { font-size: var(--fs-small); color: var(--faint) !important; }


/* ---------------------------------------------------------------- the example (specimen) */
.specimen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.panel { position: relative; border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.panel__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 18px; }
.panel__note { margin-top: 22px; font-size: var(--fs-small); color: var(--faint); line-height: 1.55; max-width: 56ch; }
.panel__date { font-family: var(--serif); font-size: var(--fs-l); line-height: 1.1; color: var(--text); }
.panel--stand { grid-column: 1 / span 7; border-top: 0; padding: 36px clamp(24px, 3vw, 44px) 36px; border-radius: 28px; background: var(--halo), linear-gradient(170deg, var(--card-a), var(--card-b)); border: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.panel--stand::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--sunburst); -webkit-mask: radial-gradient(closest-side, #000 25%, transparent); mask: radial-gradient(closest-side, #000 25%, transparent); }
.panel--entries { grid-column: 8 / span 5; padding-top: 36px; border-top: 0; }
.panel--moves { grid-column: 1 / span 6; margin-top: 56px; }
.panel--stand-where { grid-column: 7 / span 6; margin-top: 56px; }
.panel--date { grid-column: 1 / span 7; margin-top: 72px; }
.panel--date .appquote { margin-top: 0; }
.panel--why { grid-column: 8 / span 5; margin-top: 72px; }

.count { display: flex; align-items: baseline; gap: clamp(10px, 1.2vw, 18px); }
.count__n { font-family: var(--serif); font-size: clamp(7.5rem, 5.643rem + 7.619vw, 12.5rem); line-height: .86; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.count__u { font-family: var(--serif); font-size: clamp(2.25rem, 1.693rem + 2.286vw, 3.75rem); line-height: 1; color: var(--gold-lt); }
.count__cap { margin-top: 10px; font-family: var(--serif); font-size: var(--fs-m); line-height: 1.15; color: var(--text); }
.fn-ref { color: var(--gold); text-decoration: none; font-size: .62em; vertical-align: super; line-height: 0; padding: 0 2px; }
.fn-ref:hover { color: var(--gold-lt); }
.until { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 4px; margin-top: 30px; padding: 18px 0; border-block: 1px solid var(--line); }
.until__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(201, 169, 106, .6); grid-row: span 2; }
.until__text { font-size: 19px; color: var(--text); }
.until__detail { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.basis { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); line-height: 1.75; }

.ledger { display: grid; }
.ledger > div { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.ledger > div::after { content: none; }
.ledger dt { font-size: 16px; color: var(--muted); display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
.ledger dt::after { content: ""; flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.ledger dd { font-family: var(--mono); font-size: 14.5px; color: var(--text); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger--tight > div { padding: 9px 0; }

.levers { display: grid; margin: 16px 0 18px; }
.lever { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lever:first-child { border-top: 1px solid var(--line); }
.lever__l { color: var(--text); font-size: 17px; }
.lever__m { font-family: var(--serif); font-size: var(--fs-s); color: var(--gold-lt); text-align: right; white-space: nowrap; }
.lever__w { grid-column: 2; text-align: right; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.panel__headline { font-family: var(--serif); font-size: var(--fs-s); line-height: 1.25; color: var(--text); }
.panel__detail { margin-top: 8px; font-size: 16px; color: var(--muted); }
.strip--wide { width: 100%; height: auto; margin: 26px 0 16px; }
.more { margin-top: 16px; }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--gold); font-weight: 500; font-size: 15px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; content: "+" / ""; font-family: var(--sans); font-size: 18px; line-height: 1; transition: transform .32s var(--ease-settle); }
.more[open] summary::after { transform: rotate(45deg); }
.more__body { display: grid; gap: 14px; padding: 6px 0 4px; }
.more__body p { display: grid; gap: 4px; }
.more__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.more__v { color: var(--text); font-size: 16px; }

.why { font-family: var(--serif); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.875rem); line-height: 1.32; color: var(--text); hanging-punctuation: first; quotes: "“" "”"; }
.why::before { content: open-quote; color: var(--gold); }
.why::after { content: close-quote; color: var(--gold); }
.why__cite { margin-top: 22px; font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.appquote { margin-top: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 24px; display: grid; gap: 12px; }
.appquote__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.appquote__date { font-family: var(--serif); font-size: var(--fs-m); line-height: 1.1; color: var(--text); }
.appquote__phrase { color: var(--muted); }
.levels { display: grid; margin: 6px 0; }
.levels li { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.levels li span:last-child { font-family: var(--mono); font-size: 13px; color: var(--text); text-align: right; }
.levels__on span:first-child { color: var(--gold-lt); }
.appquote__note { font-size: 14px; color: var(--faint); line-height: 1.55; }

.footnote { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); color: var(--faint); max-width: 80ch; scroll-margin-top: 120px; }
.footnote__back { color: var(--gold); text-decoration: none; padding: 4px; }

/* ---------------------------------------------------------------- the math (caseback) */
.math { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.math__copy { display: grid; gap: 22px; align-content: start; }
.math__copy h3 { margin-top: 18px; font-family: var(--serif); font-size: var(--fs-m); line-height: 1.15; }
.math__copy > p:not(.kicker):not(.lead) { max-width: 60ch; }
.spec { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.spec dd { color: var(--text); font-size: 16px; }

.caseback { position: relative; width: min(480px, 100%); aspect-ratio: 1; margin-inline: auto; overflow: clip; } /* the ring turns into place; its square must not widen the page */
.caseback__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.caseback__ring text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; }
.cb-engrave { fill: var(--faint); }
.cb-shadow { fill: #05070B; opacity: .6; }
.caseback__sunburst { position: absolute; inset: 19%; border-radius: 50%; background: var(--sunburst); -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }
.caseback__dial { position: absolute; left: 50%; top: 50%; width: 64%; height: auto; transform: translate(-50%, -50%); }
.method-quote { margin: clamp(64px, 8vw, 112px) auto 0; max-width: 980px; display: grid; gap: 22px; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--gold); }
.method-quote blockquote { display: grid; gap: 18px; hanging-punctuation: first; }
.method-quote p { font-family: var(--serif); font-size: clamp(1.375rem, 1.18rem + .8vw, 2rem); line-height: 1.32; color: var(--text); }
.method-quote p + p { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.4rem); color: var(--muted); }
.method-quote figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.basis-row { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 56px); padding-top: 40px; border-top: 1px solid var(--line-soft); }
.basis-col { display: flex; flex-direction: column; gap: 16px; }
.basis-col h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.35rem + .5vw, 1.875rem); line-height: 1.15; }
.basis-col p, .basis-col li { font-size: 16px; line-height: 1.55; }
.basis-col__fine { margin-top: auto; padding-top: 4px; font-size: var(--fs-small) !important; color: var(--faint); }
.batons { display: grid; gap: 12px; }
.batons li { position: relative; padding-left: 20px; }
.batons li::before { content: ""; position: absolute; left: 0; top: .42em; width: 3px; height: 14px; border-radius: 1px; background: linear-gradient(var(--gold-lt), #9C7D47); }
.limits__quote { margin-top: clamp(48px, 6vw, 72px); font-family: var(--serif); font-size: var(--fs-s); line-height: 1.35; color: var(--text); max-width: 46ch; }
.check { margin-top: 56px; border-block: 1px solid var(--line); }
.check--spec { margin-top: 4px; }
.check--spec .spec { margin: 0 0 24px; }
.check > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; font-family: var(--serif); font-size: var(--fs-s); color: var(--text); }
.check > summary::-webkit-details-marker { display: none; }
.check > summary:hover { color: var(--gold-lt); }
.check[open] > summary .faq__icon { rotate: 45deg; border-color: var(--gold); }
.disclosure { margin-top: 0; scroll-margin-top: 24px; }
.disclosure + .disclosure { border-top: 0; }
.disclosure > summary { padding-block: 16px; }
.disclosure__body { padding-block: 28px 48px; }
.disclosure__body .section-head { margin-bottom: 40px; }
.disclosure__title { font-family: var(--serif); font-size: var(--fs-m); line-height: 1.15; }
.check__body { display: grid; gap: 16px; padding: 4px 0 32px; max-width: 760px; }
.check__table { border-collapse: collapse; width: 100%; max-width: 560px; margin-top: 4px; }
.check__table caption { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-bottom: 10px; caption-side: top; }
.check__table th, .check__table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; font-size: 15.5px; }
.check__table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.check__table td { font-family: var(--mono); color: var(--text); text-align: right; font-size: 14px; }
.check__table thead th:last-child { text-align: right; }

/* ---------------------------------------------------------------- households */
.plates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.plate { position: relative; display: grid; align-content: start; gap: 6px; padding: 30px 22px 30px; border-left: 1px solid var(--line-soft); }
.plate:first-child { border-left: 0; padding-left: 0; }
.plate::before { content: ""; position: absolute; left: 22px; top: -1px; width: 3px; height: 14px; border-radius: 1px; background: linear-gradient(var(--gold-lt), #9C7D47); }
.plate:first-child::before { left: 0; }
.plate__age { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.plate__win { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.plate__fig { margin-top: 18px; font-family: var(--serif); font-size: clamp(2.125rem, 1.8rem + 1.333vw, 3rem); line-height: 1; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.plate__se { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.7; color: var(--faint); }
.plate__se span { display: block; }
.plates__caption { margin-top: 18px; font-size: var(--fs-small); color: var(--faint); max-width: 80ch; }
.households { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(40px, 6vw, 96px); }
.households__col { display: grid; gap: 14px; align-content: start; }
.households__col h3 { font-family: var(--serif); font-size: var(--fs-m); line-height: 1.15; }
.households__col h3:not(:first-child) { margin-top: 26px; }
.caveats { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.caveats li { padding: 16px 0 16px 20px; border-bottom: 1px solid var(--line-soft); color: var(--text); position: relative; }
.caveats li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 3px; height: 14px; border-radius: 1px; background: linear-gradient(var(--gold-lt), #9C7D47); }
.caveats__cite { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.attribution--section { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.check + .attribution--section { margin-top: 0; border-top: 0; } /* the disclosure's own rule already closes the section */

/* ---------------------------------------------------------------- privacy */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.tile { position: relative; display: grid; align-content: start; gap: 14px; padding: 34px 28px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); }

.tile h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.35rem + .5vw, 1.875rem); line-height: 1.15; }
.tile p { font-size: 16px; line-height: 1.55; }
.seal { margin-top: 48px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.seal__mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.seal__mark svg { width: 15px; height: 17px; }
.seal__text { max-width: 60ch; font-size: var(--fs-small); color: var(--faint); }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gutter); align-items: start; }
.faq__head { position: sticky; top: 48px; display: grid; gap: 22px; padding-right: 24px; }
.faq__lede { color: var(--muted); max-width: 30ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-size: var(--fs-s); line-height: 1.3; color: var(--text); transition: color .16s; }
.faq__item summary:hover .faq__q { color: var(--gold-lt); }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-gold); transition: rotate .32s var(--ease-settle), border-color .16s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--gold); translate: -50% -50%; }
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { rotate: 45deg; border-color: var(--gold); }
.faq__a { padding: 0 52px 26px 0; }
.faq__a p { max-width: 64ch; color: var(--muted); }

/* ---------------------------------------------------------------- final CTA */
.cta { overflow: hidden; isolation: isolate; text-align: center; }
/* The dial as a seal above the closing lines: in the flow, so no marker can cross the copy. */
.cta__art { position: relative; width: clamp(128px, 11vw, 168px); aspect-ratio: 1; margin-bottom: 6px; }
.cta__sunburst { position: absolute; z-index: -1; inset: -140%; border-radius: 50%; background: var(--sunburst); -webkit-mask: radial-gradient(closest-side, #000 18%, transparent); mask: radial-gradient(closest-side, #000 18%, transparent); }
.cta__dial { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.cta__inner { display: grid; justify-items: center; gap: 26px; position: relative; }
.cta h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); line-height: 1.04; max-width: 15em; }
.cta__body { max-width: 56ch; font-size: var(--fs-lead); line-height: 1.5; }
.cta__plate { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: rgba(8, 11, 17, .7); text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 8px; }
.cta__actions .text-link { display: inline-flex; gap: 6px; min-height: 44px; align-items: center; font-weight: 500; }
.cta__small { font-size: var(--fs-small); color: var(--faint); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-page); border-top: 1px solid var(--line-soft); padding-block: 64px 72px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 5fr); gap: 40px var(--gutter); }
.site-footer__brand { display: grid; gap: 12px; align-content: start; }
.site-footer__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.site-footer__h { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 15.5px; transition: color .16s; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal { display: grid; gap: 12px; align-content: start; }
.site-footer__legal p { font-size: 13.5px; line-height: 1.6; color: var(--faint); }

/* ---------------------------------------------------------------- document pages (privacy, terms, support) */
.doc { padding-block: 24px 120px; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 40px 0 24px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); flex: none; }
.doc h1 { font-family: var(--serif); font-size: clamp(2.75rem, 1.9rem + 3.4vw, 5rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 28px; }
.doc h1 em { font-style: normal; color: var(--gold); }
.doc h2 { font-family: var(--serif); font-size: var(--fs-m); line-height: 1.15; margin-bottom: 16px; }
.doc section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line-soft); }
.doc p, .doc li { color: var(--muted); max-width: 66ch; }
.doc p + p { margin-top: 14px; }
.doc ul { display: grid; gap: 10px; margin-top: 12px; }
.doc li { position: relative; padding-left: 20px; }
.doc li::before { content: ""; position: absolute; left: 0; top: .42em; width: 3px; height: 14px; border-radius: 1px; background: linear-gradient(var(--gold-lt), #9C7D47); }
.doc strong { color: var(--text); font-weight: 500; }
.doc em { font-style: normal; color: var(--text); }
.doc-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text) !important; }
.doc-meta { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.7; color: var(--faint) !important; }
.doc-callout { border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 16px 16px 0; padding: 20px 24px; color: var(--text) !important; }
.doc-contact { margin-top: 14px; }
.doc-contact a { color: var(--gold); }
.doc-unset { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px 18px; background: var(--ink-deep); }
.doc .doc-notice { margin-top: 12px; }
.doc-footer { background: var(--ink-page); border-top: 1px solid var(--line-soft); padding-block: 40px 56px; }
.doc-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.doc-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.doc-footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc-footer__links a:hover { color: var(--text); }
.doc-footer__note { flex-basis: 100%; font-size: 13px; color: var(--faint); max-width: 80ch; }

/* ---------------------------------------------------------------- responsive */
/* Wide screens: copy, the phone, and the dial's lit half beside it (hand at rest, lume at 3 o'clock). */
@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 340px 290px; column-gap: 40px; }
  .device--hero { margin-right: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__dial { display: none; } /* the phone sits at the right edge here; a sliver of dial read as debris */
}
@media (max-width: 1180px) {
  .trio { grid-template-columns: repeat(3, 272px); gap: 36px; }
  .device--trio { --device-w: 272px; }
  .trio::before { top: calc(272px * 864 / 410 * .58); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate:nth-child(4) { border-left: 0; padding-left: 0; }
  .plate:nth-child(4)::before { left: 0; }
  .plate:nth-child(n + 4) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 1023px) {
  .site-nav__links { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-top: 308px; padding-bottom: 56px; } /* the dial's own zone: its lower markers end above the kicker */
  /* The app landing's scrim, tied to the text rather than the screen: ink is 90% opaque by the
     kicker, so nothing of the dial reaches the type. */
  .hero__text::before {
    content: ""; position: absolute; z-index: -1; top: -120px; bottom: -56px; left: calc(-1 * var(--margin)); right: calc(-1 * var(--margin));
    background: linear-gradient(180deg, rgba(12, 17, 26, 0) 0, rgba(12, 17, 26, .9) 120px, var(--ink) 200px);
  }
  .device--hero { position: static; justify-self: center; margin: 0; --device-w: min(340px, 82vw); }
  .device--hero::before { display: none; }
  /* As on the app's landing: 400 px at right -150, its top marker just below the header, and the
     type below it. */
  .hero__dial { left: auto; right: -150px; top: -28px; width: 400px; transform: none; opacity: .55; }
  .trio { display: flex; justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding: 48px var(--margin) 8px; margin-inline: calc(-1 * var(--margin)); scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio:focus-visible { outline-offset: -3px; border-radius: 0; } /* the scroller spans the viewport, so the ring goes inside it */
  .trio:focus-visible + .trio__hint { color: var(--gold); }
  .trio::before { display: none; }
  .trio__item { flex: none; width: 272px; scroll-snap-align: start; }
  .trio__item--raised { margin-top: 0; }
  .trio__hint { display: block; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

  .how { grid-template-columns: minmax(0, 1fr); }
  .how__head { padding-right: 0; }
  .specimen { grid-template-columns: minmax(0, 1fr); }
  .specimen > * { grid-column: 1 / -1 !important; }
  .panel--entries, .panel--moves, .panel--stand-where, .panel--why, .panel--date { margin-top: 48px; }
  .panel--entries { border-top: 1px solid var(--line); padding-top: 22px; }
  .ledger, .strip--wide { max-width: 560px; }
  .math { grid-template-columns: minmax(0, 1fr); }
  .caseback { width: min(400px, 100%); grid-row: 2; }
  .basis-row { grid-template-columns: minmax(0, 1fr); max-width: 64ch; }
  .households { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; padding-right: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand, .site-footer__legal { grid-column: 1 / -1; }
}

/* Tablets: a larger dial, same composition (its top marker at the hero's top, type below it). */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero__dial { width: 480px; right: -170px; top: -34px; }
  .hero__copy { padding-top: 390px; }
}

/* Tablets: room for two columns where the single phone column would stretch rows across 700 px. */
@media (min-width: 700px) and (max-width: 1023px) {
  .specimen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen > * { grid-column: auto !important; }
  .specimen > .panel--date, .specimen > .panel--why { grid-column: 1 / -1 !important; }
  .panel--entries { margin-top: 0; border-top: 0; padding-top: 36px; }
  .panel--stand { padding: 30px 26px; }
  .basis-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .basis-col:last-child { grid-column: 1 / -1; }
  .households { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .cta__plate { border-radius: 16px; } /* it wraps to two lines here, so a pill would turn into a lozenge */
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 68px; padding-top: 6px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__word { font-size: 26px; }
  .nav-pill { min-height: 44px; font-size: 11px; }
  .hero__title { margin-top: 22px; }
  .hero__sub { margin-top: 18px; }
  .hero__facts { margin-top: 20px; }
  .hero__actions { margin-top: 30px; }
  .hero__actions .btn { width: 100%; }
  .hero__status { margin-top: 16px; letter-spacing: .08em; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate, .plate:nth-child(4) { padding: 24px 0 24px 18px; border-left: 1px solid var(--line-soft); }
  .plate::before, .plate:nth-child(4)::before { left: 18px; }
  .plate:nth-child(odd) { border-left: 0; padding-left: 0; }
  .plate:nth-child(odd)::before { left: 0; }
  .plate:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .step__i { font-size: 36px; }

  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tile { padding: 26px 22px; }
  .panel--stand { padding: 28px 22px; border-radius: 24px; }
  .levels li { grid-template-columns: 1fr auto; }
  .levels li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--faint); }
  .faq__a { padding-right: 0; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ledger dt { font-size: 15px; }
  .ledger dd { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .brand__word { font-size: 24px; } /* after the 640 px block, so it wins */
  .btn { padding: 0 20px; font-size: 16px; }
}

/* ---------------------------------------------------------------- motion (only when welcome) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .device--hero .device__frame { animation: ya-settle .9s var(--ease-settle) .12s both; }
  .hero__dial { animation: ya-lume 1.6s ease-out backwards; }
  .device, .device__frame { transition: transform .4s var(--ease-settle); }
  .trio__item:hover .device__frame { transform: translateY(-4px); }
  @supports (animation-timeline: view()) {
    .section-head h2, .math__copy h2, .faq__head h2, .trio__item .device {
      animation: ya-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 30%;
    }
    .caseback__ring { animation: ya-bezel linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes ya-settle { from { transform: translateY(24px); } to { transform: none; } }
@keyframes ya-lume { from { opacity: .3; } } /* no end frame: it settles on each breakpoint's own opacity */
@keyframes ya-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes ya-bezel { from { transform: rotate(-8deg); } to { transform: none; } }

@media (prefers-reduced-transparency: reduce) {
  .tabbar { background: #191F2B; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --faint: #B5BDCA; --line: #3A4456; --line-soft: #3A4456; }
}
@media (forced-colors: active) {
  .btn, .nav-pill, .tile, .panel--stand { border: 1px solid CanvasText; }
  .accent, .text-link, .tag { color: LinkText; }
  .cta__sunburst, .caseback__sunburst, .panel--stand::after { display: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .hero__dial, .cta__art, .device, .trio, .trio__hint { display: none; }
}
