/*
 * The landing page (/). The legal pages and /verify keep style.css: light only,
 * system faces — README.md → "Design". This page carries both themes of
 * AttunoIosAppDesign and the system's own faces, IBM Plex Sans and Mono,
 * served from this origin (the CSP allows nothing else). Subsets are split by
 * unicode-range, so a page in English never downloads the Cyrillic files.
 * Fonts: @ibm/plex-sans / @ibm/plex-mono 1.1.0, SIL Open Font License
 * (assets/fonts/OFL.txt).
 */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Light-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Light-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Light-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Regular-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Regular-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Regular-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Medium-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Medium-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexSans-Medium-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Light-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Light-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Light-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Regular-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Regular-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Regular-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Medium-Latin1.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Medium-Cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Medium-Pi.woff2') format('woff2'); unicode-range: U+0E3F, U+2000-200D, U+2015, U+2028-2029, U+202F, U+2032-2033, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+ECE0, U+EFCC, U+FEFF, U+FFFD; }

/* Tokens: AttunoIosAppDesign/ds/foundations — colors, type roles, six spacing steps. */
:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #ECF1F2; --rule: #CCD3D4; --hair: #E0E5E5;
  --text: #0B0B0B; --muted: #5D5D5D; --accent: #009CB5; --on-accent: #0B0B0B;
  /* Electric as text: #009CB5 is 3.3:1 on white, short of the 4.5:1 small text needs.
     Marks and fills keep --accent; words in the accent use this. */
  --accent-ink: #007488;
  /* A control's own outline (the checkboxes) needs 3:1; --rule is a hairline. */
  --control: #879294;
  --stable: #00884C; --fragmented: #9F6300; --drifting: #B34D3B;
  --tight: 6px; --snug: 10px; --base: 16px; --loose: 22px; --section: 32px; --screen: 24px;
  /* Fluid scale: grows with the viewport between a 360 px phone and a 1280 px desktop. */
  --section-pad: clamp(48px, 4.4vw + 32px, 96px);
  --split-gap: clamp(32px, 4vw + 18px, 72px);
  --h1: clamp(36px, 3.2vw + 24px, 60px);
  --h2: clamp(26px, 1.1vw + 22px, 36px);
  --lede: clamp(16px, 0.25vw + 15px, 18px);
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #050505; --surface: #111111; --rule: #2C2C2C; --hair: #1F1F1F;
    --text: #FAFAFA; --muted: #8E8E8E; --accent: #00CAE3; --on-accent: #050505; --accent-ink: #00CAE3; --control: #666666;
    --stable: #51BD7E; --fragmented: #D6972D; --drifting: #EE826D;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505; --surface: #111111; --rule: #2C2C2C; --hair: #1F1F1F;
  --text: #FAFAFA; --muted: #8E8E8E; --accent: #00CAE3; --on-accent: #050505;
  --stable: #51BD7E; --fragmented: #D6972D; --drifting: #EE826D;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans), sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--screen); }
.num { font-family: var(--mono), monospace; font-variant-numeric: tabular-nums; }
.eyebrow {
  margin: 0 0 var(--tight); font-family: var(--mono), monospace; font-size: 11px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }
.caption { font-size: 13px; line-height: 1.5; color: var(--muted); }
p { margin: 0 0 var(--base); max-width: 62ch; text-wrap: pretty; }
h1, h2, h3, summary { text-wrap: balance; }
/* Big figures that are not the app's score: the sans with tabular digits. The
   mono puts a full cell around "." and spaces, so "$9.99" read as "$9 . 99". */
.figure { font-family: var(--sans), sans-serif; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ─ Masthead ─ */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--loose); padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--snug);
  font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none;
}
/* The mark is Electric — the brand colour, the same mark as the app icon. */
.brand svg { width: 28px; height: 28px; display: block; fill: var(--accent); }
.primary { display: flex; align-items: center; gap: var(--loose); font-size: 15px; margin-left: auto; }
.primary a { color: var(--text); text-decoration: none; }
.primary a:hover { color: var(--accent-ink); }
.controls { display: flex; align-items: center; gap: var(--snug); flex-shrink: 0; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer;
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.burger { display: none; }
.theme-btn .i-sun { display: none; }
.theme-btn[data-shows="dark"] .i-moon { display: none; }
.theme-btn[data-shows="dark"] .i-sun { display: block; }
.menu-theme { display: none; }

/* Below the width the five links fit in, they fold into a menu under the bar. */
@media (max-width: 1020px) {
  .burger { display: grid; }
  .primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 0 var(--screen) var(--base); background: var(--bg); border-bottom: 1px solid var(--rule);
    font-size: 17px;
  }
  .primary.open { display: flex; }
  .primary a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .primary a:nth-last-child(2) { border-bottom: 0; }
}
.select-wrap { position: relative; display: inline-block; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  font: 500 13px/1 var(--sans), sans-serif; color: var(--text); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 6px; padding: 8px 28px 8px 10px; cursor: pointer;
}
.select-wrap::after {
  content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.select-wrap select { height: 36px; }
.select-wrap select:focus-visible, .pain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─ Release status (see the comment in the hero) ─ */
.get { display: flex; align-items: center; gap: var(--base); }
.get p { margin: 0; }
.get-status { font-size: 17px; font-weight: 500; line-height: 1.35; }
.appicon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 13px; background: #0B0B0B; display: grid; place-items: center; border: 1px solid var(--rule); }
.appicon svg { width: 40px; height: 40px; fill: #00CAE3; }

/* ─ Sections: rules and space, never cards ─ */
section { border-bottom: 1px solid var(--rule); padding: var(--section-pad) 0; scroll-margin-top: 64px; }
section h2 {
  margin: 0 0 var(--snug); font-size: var(--h2); font-weight: 500;
  line-height: 1.18; letter-spacing: -0.5px; max-width: 24ch;
}
.lede { font-size: var(--lede); line-height: 1.5; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap); align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  /* One column: the screen mock lines up with the text instead of floating mid-page. */
  .phone { margin-left: 0; }
}

/* ─ Hero ─ */
.hero { padding: calc(var(--section-pad) * 0.9) 0 var(--section-pad); }
.hero h1 {
  margin: 0 0 var(--base); font-size: var(--h1); font-weight: 500;
  line-height: 1.06; letter-spacing: -0.025em; max-width: 15ch;
}
.hero .lede { margin-bottom: var(--section); }

/* ─ Phone: the app's own screens, drawn with the app's rules ─ */
.phone {
  width: 100%; max-width: 320px; margin: 0 auto; border: 1px solid var(--rule);
  background: var(--bg); padding: 28px 22px 24px;
}
.phone .bigscore { font-family: var(--mono), monospace; font-weight: 300; font-size: 76px; line-height: .9; letter-spacing: -2px; }
.phone .bar { display: flex; height: 3px; margin: 16px 0 14px; background: var(--hair); }
.phone .bar i { display: block; background: var(--stable); }
.phone .state { font-size: 17px; font-weight: 500; line-height: 1.35; }
.phone .rule { height: 1px; background: var(--rule); margin: 18px 0 4px; }
.phone .line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--snug); font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.phone p { font-size: 15px; color: var(--muted); margin: 8px 0 0; }

/* ─ Pain checklist ─ */
.pains { border-top: 1px solid var(--rule); }
.pain {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--base); align-items: start; text-align: left; width: 100%;
  padding: var(--base) 0; border: 0; border-bottom: 1px solid var(--hair); background: none; cursor: pointer; font-size: var(--lede); line-height: 1.45;
}
.pain .box { width: 22px; height: 22px; border: 1.5px solid var(--control); border-radius: 6px; margin-top: 1px; display: grid; place-items: center; }
.pain .box svg { width: 14px; height: 14px; stroke: var(--on-accent); stroke-width: 2.5; fill: none; opacity: 0; }
.pain[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.pain[aria-pressed="true"] .box svg { opacity: 1; }
.pain:hover .box { border-color: var(--accent); }
.pain-result { margin-top: var(--loose); font-size: var(--lede); line-height: 1.5; min-height: 3em; }
.pain-result .count { font-family: var(--mono), monospace; color: var(--accent-ink); }

/* ─ Research ─ */
.studies { margin-top: var(--section); border-top: 1px solid var(--rule); }
.study { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--loose); padding: var(--loose) 0; border-bottom: 1px solid var(--hair); }
.study .stat { font-size: clamp(32px, 1.2vw + 28px, 44px); line-height: 1; }
.study .stat.word { font-size: clamp(20px, 0.4vw + 19px, 24px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; padding-top: 4px; }
.study p { margin: 0 0 var(--tight); font-size: var(--lede); line-height: 1.5; max-width: 60ch; }
.study .src { font-size: 13px; }
.good { margin-top: var(--section); padding: var(--loose); background: var(--surface); font-size: var(--lede); line-height: 1.5; }
.good p { margin: 0; max-width: none; }
@media (max-width: 700px) { .study { grid-template-columns: 1fr; gap: var(--snug); } }

/* ─ Calculator ─ */
.calc-out { border-top: 1px solid var(--rule); }
.calc-out .row { padding: var(--loose) 0; border-bottom: 1px solid var(--hair); }
.big { font-family: var(--mono), monospace; font-weight: 300; font-size: clamp(52px, 1.6vw + 46px, 68px); line-height: .95; letter-spacing: -2px; }
.calc label { display: block; font-size: 15px; font-weight: 500; margin: var(--loose) 0 var(--snug); }
.calc .hours { font-size: clamp(32px, 1.2vw + 28px, 44px); line-height: 1.1; margin-bottom: var(--base); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0 0 var(--snug); }
.tone-stable { color: var(--stable); } .tone-fragmented { color: var(--fragmented); } .tone-drifting { color: var(--drifting); }

/* ─ The scale ─ */
.scale { margin-top: var(--section); }
.scale-track { height: 3px; background: linear-gradient(90deg, var(--stable) 0%, var(--stable) 37.5%, var(--fragmented) 37.5%, var(--fragmented) 75%, var(--drifting) 75%); }
.scale-ticks { display: grid; grid-template-columns: repeat(9, 1fr); margin-top: var(--snug); }
.scale-ticks > div { border-left: 1px solid var(--rule); padding: var(--tight) 0 0 var(--tight); }
.scale-ticks .h { font-family: var(--mono), monospace; font-size: 12px; color: var(--muted); }
.scale-ticks .s { font-family: var(--mono), monospace; font-size: 20px; font-variant-numeric: tabular-nums; }
.scale-ticks .zero .s { color: var(--accent-ink); }
@media (max-width: 640px) {
  .scale-ticks { grid-template-columns: repeat(5, 1fr); row-gap: var(--base); }
  .scale-ticks .odd { display: none; }
}

/* ─ Columns of three ─ */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--section); border-top: 1px solid var(--rule); }
.three > div { padding: var(--loose) var(--loose) 0 0; }
.three > div + div { padding-left: var(--loose); border-left: 1px solid var(--hair); }
.three h3 { margin: var(--snug) 0 var(--tight); font-size: 17px; font-weight: 500; }
.three p { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .three { grid-template-columns: 1fr; }
  .three > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
}

/* ─ Feature list ─ */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: var(--section); }
.features > div { padding: var(--loose) 0; border-top: 1px solid var(--rule); }
.features h3 { margin: 0 0 var(--tight); font-size: 17px; font-weight: 500; }
.features p { font-size: 15px; color: var(--muted); margin: 0; }
.features.one { grid-template-columns: 1fr; margin-top: var(--loose); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.stake { display: flex; gap: var(--snug); margin-top: var(--base); }
.stake span { font-family: var(--mono), monospace; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; }
.stake span.on { border-color: var(--accent); color: var(--accent-ink); }
.widget-inline { font-family: var(--mono), monospace; font-size: 15px; padding: var(--snug) var(--base); background: var(--surface); display: inline-block; margin-top: var(--base); }

/* ─ League ─ */
.ladder { margin-top: var(--loose); border-top: 1px solid var(--rule); }
.ladder > div { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--base); padding: var(--snug) 0; border-bottom: 1px solid var(--hair); font-size: 15px; align-items: baseline; }
.ladder .tiers { font-family: var(--mono), monospace; font-size: 12px; color: var(--muted); }
.ladder .div { font-weight: 500; }
.ladder .top .div { color: var(--accent-ink); }
.rows .r { display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--snug); padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.rows .r .num { color: var(--muted); }
.rows .r.me { font-weight: 500; }
.rows .r.me .num:first-child { color: var(--accent-ink); }

/* ─ Parents ─ */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 26px 0 24px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text); }
.pin-dots i.on { background: var(--text); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.keypad span { text-align: center; padding: 12px 0; min-height: 50px; font-family: var(--mono), monospace; font-size: 22px; font-weight: 300; border-bottom: 1px solid var(--hair); }
.keypad span:nth-child(3n+2) { border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.honest { margin-top: var(--loose); padding-top: var(--base); border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); max-width: none; }

/* ─ Privacy ─ */
.privacy-note { padding: var(--loose); background: var(--surface); }
.privacy-note p:last-child { margin-bottom: 0; }

/* ─ Pricing ─ */
.plans .price { font-size: clamp(32px, 0.8vw + 29px, 40px); line-height: 1.1; margin: var(--snug) 0 var(--tight); }
.plans .best .eyebrow { color: var(--accent-ink); }

/* ─ FAQ ─ */
details { border-bottom: 1px solid var(--hair); padding: var(--base) 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--base); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono), monospace; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { margin: var(--snug) 0 0; font-size: 15px; color: var(--muted); }

/* ─ Closing + footer ─ */
.closing { border-bottom: 0; }
.colophon { border-top: 1px solid var(--rule); padding: var(--loose) 0 var(--section); }
.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--snug) var(--loose); font-size: 13px; color: var(--muted); }
.colophon nav { display: flex; flex-wrap: wrap; gap: var(--snug) var(--loose); }

/* ─ Phones ─ */
@media (max-width: 700px) {
  .phone { padding: 22px 18px 20px; }
  .phone .bigscore { font-size: 64px; }
  .study { padding: var(--base) 0; }
  .good { padding: var(--base); }
  .ladder > div { grid-template-columns: 3.5rem 1fr; row-gap: 2px; }
  .ladder .caption { grid-column: 2; }
  summary { font-size: 16px; }
  .colophon .wrap { flex-direction: column; }
}
@media (max-width: 380px) {
  :root { --screen: 16px; }
  .brand { font-size: 16px; }
  .select-wrap select { padding-right: 24px; max-width: 128px; }
  .masthead .wrap { gap: var(--snug); }
  /* The theme follows the device here; the bar has room for the menu and the language. */
  #theme { display: none; }
  .menu-theme {
    display: block; text-align: left; padding: 14px 0; border: 0; border-top: 1px solid var(--hair);
    background: none; color: var(--text); font-size: 17px; cursor: pointer;
  }
}


/* ─ Classes that replace inline styles (the CSP allows none) ─ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph-score { margin-top: 22px; }
.eyebrow.ph-label { margin-bottom: 8px; }
.phone .bar i.w78 { width: 78%; }
.ph-synced { text-align: right; }
.after { margin-top: var(--base); }
.after-loose { margin-top: var(--loose); }
.days-label { margin: var(--tight) 0 0; }
.calc-state { margin: var(--snug) 0 0; font-weight: 500; }
.calc-pace { margin: var(--tight) 0 0; }
.ph-title { font-size: 30px; font-weight: 500; letter-spacing: -0.4px; line-height: 1.2; }
.phone .ph-sub { margin: 8px 0 18px; }
.phone .ph-foot { margin-top: 14px; }
.phone .ph-link { text-align: center; margin-top: 16px; }
.get-close { margin-top: var(--loose); }

/* ─ Environment banner (staging and local builds only) ─ */
.env-banner {
  padding: var(--tight) var(--screen); background: var(--fragmented); color: #fff;
  font-family: var(--mono), monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; text-align: center;
}
