/* SubMac — one design language for the whole site (2026-11-15).
   Loaded LAST on every page, after site.css, audit.css, the page stylesheet and
   dark.css. Nothing below changes markup; it re-skins the shared components and
   remaps the legacy tokens, so the audit house (white/blue-grey page, navy ink,
   marker yellow, Schibsted Grotesk, square blocks, big lifts) leaves no trace.

   The language is the homepage's: quiet Apple / modern glass. The page and every
   surface share one tone — pure white in light, true black (OLED) in dark.
   Panels are told apart by a glossy edge (a specular gradient rim, an inner
   highlight) and by near-zero shadows, never by a fill difference. ONE muted
   steel-blue accent marks meaning only. System type. iOS motion. No navy, no
   yellow, no brand red except danger, no serif, no mono labels. */

/* =====================================================================
   1 · tokens
   ===================================================================== */
:root {
  color-scheme: light;

  /* --- the language --- */
  --ios-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ios-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ios-bg: #f8f7f4;
  --ios-card: #ffffff;
  --ios-label: #1d1d1f;
  --ios-label-2: #6e6e73;
  --ios-label-3: #a1a1a6;
  --ios-sep: rgba(0, 0, 0, 0.09);
  --ios-fill: rgba(29, 29, 31, 0.05);
  --ios-fill-2: rgba(29, 29, 31, 0.09);
  --ios-tint: #34618f;
  --ios-tint-2: #2b5178;
  --ios-action: #1d1d1f;
  --ios-action-ink: #ffffff;
  --ios-cta-bg: #1d1d1f;
  --ios-cta-ink: #f5f5f7;
  --ios-r: 12px;
  --ios-r-lg: 20px;
  --ios-pill: 980px;
  --ios-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ios-dur-1: 0.2s;
  --ios-dur-2: 0.32s;
  --ios-dur-3: 0.44s;
  --ios-nav: rgba(255, 255, 255, 0.72);
  --ios-edge: rgba(0, 0, 0, 0.10);
  --ios-rim: linear-gradient(160deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.075) 45%, rgba(0, 0, 0, 0.13) 100%);
  --ios-btn-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.02) 100%);
  --ios-btn-rim-lite: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 0, 0, 0.07) 42%, rgba(0, 0, 0, 0.14) 100%);
  --ios-cta-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0.02) 100%);
  --ios-gloss-top: rgba(255, 255, 255, 0.7);
  --ios-gloss-bot: rgba(0, 0, 0, 0.05);
  --ios-surface-bg: linear-gradient(var(--ios-card), var(--ios-card)) padding-box, var(--ios-rim) border-box;
  --ios-ring: inset 0 1px 0 var(--ios-gloss-top), inset 0 -1px 1px var(--ios-gloss-bot);
  --ios-field: inset 0 0 0 1px var(--ios-edge), inset 0 2px 5px -2px rgba(0, 0, 0, 0.09);
  --ios-cta-surface: linear-gradient(var(--ios-cta-bg), var(--ios-cta-bg)) padding-box, var(--ios-cta-rim) border-box;
  --ios-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  --ios-shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.02);

  /* --- legacy token names, remapped so the old palette cannot survive --- */
  --bg: #f8f7f4;
  --paper: #f8f7f4;
  --paper-2: #f5f5f7;
  --sheet: #ffffff;
  --surface: #f5f5f7;
  --tone: rgba(29, 29, 31, 0.05);
  --tone-2: rgba(29, 29, 31, 0.09);
  --line: rgba(0, 0, 0, 0.10);
  --rule: rgba(0, 0, 0, 0.09);
  --rule-2: rgba(0, 0, 0, 0.12);
  --field: rgba(0, 0, 0, 0.16);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-hover: #000000;
  --faint: #86868b;
  --mark: rgba(52, 97, 143, 0.14);
  --navy: #1d1d1f;
  --btn-bg: #1d1d1f;
  --btn-fg: #ffffff;
  --brand-red: #1d1d1f;
  --red: #34618f;
  --red-ink: #b3261e;
  --red-wash: rgba(52, 97, 143, 0.10);
  --ok: #34618f;
  --danger: #b3261e;

  --font: var(--ios-font);
  --serif: var(--ios-font);
  --sans: var(--ios-font);
  --mono: var(--ios-font);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --radius: 12px;
  --r: 8px;
  --r-pill: 999px;

  --t-h1: clamp(2rem, 1.2rem + 4.2vw, 3.5rem);
  --t-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  --t-h3: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-lede: clamp(1.0625rem, 0.98rem + 0.5vw, 1.25rem);
  --t-small: 0.9375rem;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.05);
  --ease: var(--ios-ease);
  --settle: var(--ios-ease-out);
  --wrap: 72rem;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --ios-bg: #0a0a0b;
  --ios-card: #000000;
  --ios-label: #f5f5f7;
  --ios-label-2: #a1a1a6;
  --ios-label-3: #6e6e73;
  --ios-sep: rgba(255, 255, 255, 0.14);
  --ios-fill: rgba(255, 255, 255, 0.08);
  --ios-fill-2: rgba(255, 255, 255, 0.14);
  --ios-tint: #9ab8d6;
  --ios-tint-2: #b9d0e6;
  --ios-action: rgba(255, 255, 255, 0.10);
  --ios-action-ink: #f5f5f7;
  --ios-cta-bg: #000000;
  --ios-cta-ink: #f5f5f7;
  --ios-nav: rgba(0, 0, 0, 0.66);
  --ios-edge: rgba(255, 255, 255, 0.16);
  --ios-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 22%, rgba(255, 255, 255, 0.07) 56%, rgba(255, 255, 255, 0.20) 100%);
  --ios-btn-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.24) 26%, rgba(255, 255, 255, 0.09) 58%, rgba(255, 255, 255, 0.22) 100%);
  --ios-btn-rim-lite: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.16) 100%);
  --ios-cta-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 30%, rgba(255, 255, 255, 0.05) 64%, rgba(255, 255, 255, 0.16) 100%);
  --ios-gloss-top: rgba(255, 255, 255, 0.12);
  --ios-gloss-bot: rgba(255, 255, 255, 0.03);
  --ios-ring: inset 0 1px 0 var(--ios-gloss-top), inset 0 -1px 1px var(--ios-gloss-bot);
  --ios-field: inset 0 0 0 1px var(--ios-edge), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ios-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ios-shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.22);

  --bg: #0a0a0b;
  --paper: #0a0a0b;
  --paper-2: #0b0d10;
  --sheet: #0b0d10;
  --surface: #0b0d10;
  --tone: rgba(255, 255, 255, 0.08);
  --tone-2: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.16);
  --rule: rgba(255, 255, 255, 0.14);
  --rule-2: rgba(255, 255, 255, 0.18);
  --field: rgba(255, 255, 255, 0.24);
  --ink: #f5f5f7;
  --ink-2: #b0b0b5;
  --ink-3: #a1a1a6;
  --ink-hover: #ffffff;
  --faint: #86868b;
  --mark: rgba(154, 184, 214, 0.22);
  --navy: #f5f5f7;
  --btn-bg: #f5f5f7;
  --btn-fg: #000000;
  --brand-red: #f5f5f7;
  --red: #9ab8d6;
  --red-ink: #ff9e95;
  --red-wash: rgba(154, 184, 214, 0.16);
  --ok: #9ab8d6;
  --danger: #ff9e95;

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* =====================================================================
   2 · base
   ===================================================================== */
html { background: var(--ios-bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html body {
  margin: 0;
  background: var(--ios-bg);
  color: var(--ios-label);
  font-family: var(--ios-font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* dark.css paints body #000; the black-paper page wins by loading later */
html[data-theme="dark"] body { background: var(--ios-bg); }
html ::selection { background: rgba(52, 97, 143, 0.2); color: var(--ios-label); }
html[data-theme="dark"] ::selection { background: rgba(154, 184, 214, 0.3); color: var(--ios-label); }
html :focus-visible { outline: 3px solid rgba(52, 97, 143, 0.55); outline-offset: 2px; border-radius: 6px; }
html a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
html a:hover { color: var(--ios-label); }
html .wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 0.5rem + 2.5vw, 2rem); }
html main section[id], html main [id] { scroll-margin-top: 84px; }
html body::before, html body::after { display: none !important; }
html .hidden { display: none !important; }
html .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; }

/* no sideways scroll, ever */
html, body { overflow-x: clip; max-width: 100%; }

/* quiet, glassy, themed scrollbars */
html::-webkit-scrollbar, html *::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner, html *::-webkit-scrollbar-track, html *::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-thumb, html *::-webkit-scrollbar-thumb {
  background: rgba(29, 29, 31, 0.24); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover, html *::-webkit-scrollbar-thumb:hover { background: rgba(29, 29, 31, 0.4); background-clip: padding-box; }
html[data-theme="dark"]::-webkit-scrollbar-thumb, html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: rgba(245, 245, 247, 0.28); background-clip: padding-box; }
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover, html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover { background: rgba(245, 245, 247, 0.44); background-clip: padding-box; }
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(29, 29, 31, 0.3) transparent; }
  html[data-theme="dark"] { scrollbar-color: rgba(245, 245, 247, 0.32) transparent; }
}

/* =====================================================================
   3 · type
   ===================================================================== */
html .display, html .h2, html .h3, html .serif, html .app-title, html .prose h1, html .prose h2 {
  font-family: var(--ios-font); font-weight: 700; letter-spacing: -0.025em;
}
html .display { font-size: var(--t-h1); line-height: 1.05; }
html .h2 { font-size: var(--t-h2); line-height: 1.1; }
html .h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.015em; }
html .display em, html .h2 em, html .article-title em {
  font-style: normal; color: var(--ios-tint); background: none;
}
html[data-theme="dark"] .display em, html[data-theme="dark"] .h2 em { color: var(--ios-tint); }
html mark { background: var(--ios-fill); color: inherit; border-radius: 4px; padding: 0 0.15em; }
html[data-theme="dark"] mark { background: var(--ios-fill); color: var(--ios-label); }
html .hc-line mark, html .hd-new mark, html .ex-new b, html .ex-dlg .ex-new b {
  background: var(--ios-fill); color: inherit; border-bottom: 0; border-radius: 4px; padding: 0 0.18em; font-weight: 600;
}
html .kicker, html .blog-kicker, html .article-cat, html .blog-card-cat, html .crumbs,
html .blog-crumbs, html .seo-main .crumbs, html .pg-hero .crumbs {
  font: 600 0.8125rem/1.4 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2);
}
html .lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ios-label-2); max-width: 46ch; }
html .small { font-size: var(--t-small); }
html .muted { color: var(--ios-label-2); }
html .crumbs a, html .blog-crumbs a { color: var(--ios-label-2); text-decoration: none; }
html .crumbs a:hover, html .blog-crumbs a:hover { color: var(--ios-label); }
html code, html .mono, html kbd { font-family: var(--ios-mono); }
html .article-body code { border: 1px solid var(--ios-sep); background: var(--ios-fill); border-radius: 6px; }

/* =====================================================================
   4 · header, menu, account
   ===================================================================== */
html .site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--ios-nav);
  -webkit-backdrop-filter: saturate(140%) blur(22px); backdrop-filter: saturate(140%) blur(22px);
  border-bottom: 1px solid var(--ios-sep);
  box-shadow: inset 0 -1px 0 var(--ios-gloss-bot);
}
html .site-head .wrap { height: 60px; }
html .wordmark { font-family: var(--ios-font); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ios-label); align-items: center; }
html .wordmark .dot { background: currentColor; border-radius: 50%; transform: none; }
html .head-right { gap: 8px; }
html .acct { color: var(--ios-label-2); }
html .avatar { border: 1px solid transparent; border-radius: var(--r-pill); background: var(--ios-surface-bg); box-shadow: var(--ios-ring); color: var(--ios-label); }
html .avatar:hover { background: var(--ios-fill); color: var(--ios-label); border-color: transparent; }

html .menu-btn {
  border: 0; background: var(--ios-fill); color: var(--ios-label); border-radius: var(--r-pill);
  font-family: var(--ios-font); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0; text-transform: none;
}
html .menu-btn:hover, html .menu-btn[aria-expanded="true"] { background: var(--ios-fill-2); color: var(--ios-label); }
html .menu-btn .bars, html .menu-btn .bars::before, html .menu-btn .bars::after { background: currentColor; transition: transform var(--ios-dur-2) var(--ios-ease), background var(--ios-dur-2) var(--ios-ease); }

html .theme-toggle {
  width: 50px; height: 30px; padding: 2px; flex: none;
  display: inline-flex; align-items: center; justify-content: flex-start;
  border: 0; border-radius: var(--r-pill);
  background: var(--ios-fill-2); box-shadow: inset 0 0 0 1px var(--ios-sep);
  transition: background var(--ios-dur-1) var(--ios-ease);
}
html .theme-toggle::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform var(--ios-dur-2) var(--ios-ease);
}
html .theme-toggle[aria-pressed="true"] { background: var(--ios-tint); box-shadow: inset 0 0 0 1px transparent; }
html .theme-toggle[aria-pressed="true"]::before { transform: translateX(20px); }
html .theme-toggle:hover { background: var(--ios-fill-2); }
html .theme-toggle[aria-pressed="true"]:hover { background: var(--ios-tint); filter: brightness(1.05); }
html .theme-toggle svg { display: none; }

html .site-nav {
  background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg);
  box-shadow: var(--ios-ring), 0 6px 18px -14px rgba(0, 0, 0, 0.16);
  transform-origin: top right;
  transition: opacity var(--ios-dur-2) var(--ios-ease), transform var(--ios-dur-2) var(--ios-ease), visibility 0s linear var(--ios-dur-2);
}
html .site-head.menu-open .site-nav { transition: opacity var(--ios-dur-2) var(--ios-ease), transform var(--ios-dur-2) var(--ios-ease), visibility 0s; }
html .nav-kicker { color: var(--ios-label-2); border-bottom: 0; padding-bottom: 4px; }
html .nav-kicker .dot { background: var(--ios-label-3); border-radius: 50%; }
html .nav-list a { border-bottom: 1px solid var(--ios-sep); border-radius: var(--r); color: var(--ios-label); }
html .nav-list a:hover, html .nav-list a:focus-visible { background: var(--ios-fill); color: var(--ios-label); }
html .nav-t { color: var(--ios-label); font-family: var(--ios-font); font-weight: 600; display: inline-flex; align-items: baseline; gap: 6px; }
html .nav-d { font: 500 0.8125rem/1.3 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); text-align: right; }
html .nav-list a[aria-current='page'] .nav-t { color: var(--ios-tint); }
html .nav-list a[aria-current='page'] .nav-t::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ios-tint); display: inline-block; transform: translateY(-3px); }
html .nav-foot { background: transparent; border-top: 1px solid var(--ios-sep); }
html .nav-link { color: var(--ios-label-2); }
html .nav-link:hover { color: var(--ios-label); }

html .acct-pop {
  background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-md);
  box-shadow: var(--ios-ring), 0 6px 18px -14px rgba(0, 0, 0, 0.16); overflow: hidden;
}
html .acct-pop a:hover, html .acct-pop button:hover { background: var(--ios-fill); }
html .acct-pop .acct-credits { color: var(--ios-label-2); }

/* =====================================================================
   5 · buttons
   ===================================================================== */
html .btn {
  font-family: var(--ios-font); font-weight: 600; font-size: 1.0625rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box;
  color: var(--ios-action-ink);
  min-height: 50px; padding: 0 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.14s var(--ios-ease), background-color var(--ios-dur-1) var(--ios-ease), filter var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease);
}
html .btn:hover { background: linear-gradient(var(--ios-action), var(--ios-action)) padding-box, var(--ios-btn-rim) border-box; filter: brightness(1.1); color: var(--ios-action-ink); }
html .btn:active { transform: scale(0.96); transition-duration: 0.09s; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22); }
html .btn:focus-visible { outline: 3px solid rgba(52, 97, 143, 0.55); outline-offset: 2px; }
html .btn[disabled] { background: var(--ios-fill); color: var(--ios-label-3); border-color: transparent; box-shadow: none; opacity: 1; }
html .btn-ghost { background: var(--ios-surface-bg); color: var(--ios-label); border-color: transparent; box-shadow: var(--ios-ring); }
html .btn-ghost:hover { background: var(--ios-surface-bg); color: var(--ios-label); border-color: transparent; filter: brightness(0.985); }
html .btn-ghost[disabled] { background: var(--ios-fill); color: var(--ios-label-3); }
html .btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
html .btn-link { color: var(--ios-tint); text-decoration: none; font-family: var(--ios-font); font-weight: 600; }
html .btn-link:hover { color: var(--ios-tint); text-decoration: underline; }
html .arrow::after { content: '→'; font-family: var(--ios-font); }
html .btn.arrow:hover::after { transform: none; }
html .btn-danger, html .btn.btn-danger { background: var(--ios-tint); border-color: transparent; color: #ffffff; }
html .btn-danger:hover, html .btn.btn-danger:hover { background: var(--ios-tint-2); border-color: transparent; color: #ffffff; }
html .btn-google { background: var(--ios-surface-bg); color: var(--ios-label); border: 1px solid transparent; box-shadow: var(--ios-ring); }
html .btn-google:hover { background: var(--ios-surface-bg); color: var(--ios-label); filter: brightness(0.97); border-color: transparent; }
html .gsi-btn { min-height: 50px; }

/* =====================================================================
   6 · forms
   ===================================================================== */
html input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']),
html textarea, html select {
  background-color: var(--ios-card); color: var(--ios-label);
  border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--ios-field);
  font-family: var(--ios-font); font-size: 1rem; line-height: 1.45;
}
html input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']):focus,
html textarea:focus, html select:focus {
  background-color: var(--ios-card); border-color: transparent; outline: none; box-shadow: var(--ios-field), 0 0 0 3px rgba(52, 97, 143, 0.28);
}
html ::placeholder { color: var(--ios-label-3); }
html .field label, html .field-label, html .hs-field label, html .hs-label-row > label, html .hs-title {
  font-family: var(--ios-font); font-weight: 600; color: var(--ios-label);
}
html .field-label .num { font-family: var(--ios-font); font-style: normal; color: var(--ios-label-2); }
html .count { font-family: var(--ios-font); color: var(--ios-label-3); }
html .drop { border: 1px dashed var(--ios-edge); border-radius: var(--r); background: var(--ios-card); box-shadow: var(--ios-field); }
html .drop:hover, html .drop.over { border-color: var(--ios-tint); background: var(--ios-card); }
html .drop .icon { border: 1px solid var(--ios-edge); border-radius: 6px; background: var(--ios-card); box-shadow: none; }
html .drop .icon::after { background: repeating-linear-gradient(var(--ios-label-3) 0 1.5px, transparent 1.5px 5px); }
html .or { font: 400 0.9375rem/1.4 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-3); }
html .check-line input { accent-color: var(--ios-tint); }
html .tones { gap: 8px; }
html .tone {
  font: 500 0.9rem/1 var(--ios-font); padding: 9px 12px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--ios-surface-bg); box-shadow: var(--ios-ring); color: var(--ios-label); cursor: pointer;
}
html .tone[aria-checked="true"] { border-color: transparent; background: var(--ios-action); color: var(--ios-action-ink); box-shadow: none; }
html .note { color: var(--ios-label-2); }
html .err { color: var(--red-ink); }
html .banner { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-md); box-shadow: var(--ios-ring); }
html .banner.bad { border: 1px solid transparent; box-shadow: var(--ios-ring), inset 0 0 0 1px rgba(179, 38, 30, 0.35); }
html .soon { border: 1px dashed var(--ios-edge); border-radius: var(--r); color: var(--ios-label-2); background: transparent; }
html .pill { border: 1px solid transparent; border-radius: var(--r-pill); background: var(--ios-surface-bg); box-shadow: var(--ios-ring); font: 500 0.8125rem/1 var(--ios-font); padding: 8px 12px; }

/* =====================================================================
   7 · bands and sections
   ===================================================================== */
html section { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
html .rule-top { border-top: 1px solid var(--ios-sep); }
html .section-head { border-top: 0; padding-top: 0; max-width: 46rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
html .seo-links { background: transparent; border-top: 1px solid var(--ios-sep); }
html .seo-links .foot-links a, html .site-foot .foot-links a { color: var(--ios-label-2); text-decoration: none; }
html .seo-links .foot-links a:hover, html .site-foot .foot-links a:hover { color: var(--ios-label); text-decoration: underline; }
html .site-foot { background: transparent; border-top: 1px solid var(--ios-sep); color: var(--ios-label-2); padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }
html .site-foot .wordmark { color: var(--ios-label); }
html .site-foot .wordmark .dot { background: currentColor; }

/* the graphite band: one strong block for the primary action */
html .cta-band { background: transparent; color: var(--ios-label); padding-block: clamp(1.5rem, 1rem + 2vw, 2.25rem) !important; }
html .cta-band .wrap {
  background: var(--ios-cta-surface); border: 1px solid transparent; color: var(--ios-cta-ink);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.18);
}
html .cta-band .h2 { color: var(--ios-cta-ink); max-width: 24ch; margin: 0; }
html .cta-band .kicker, html .cta-band .lede { color: var(--ios-cta-ink); opacity: 0.75; }
html .cta-band .btn { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; border: 1px solid transparent; color: var(--ios-cta-bg); justify-self: start; }
html .cta-band .btn:hover { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; color: var(--ios-cta-bg); filter: brightness(0.96); }

/* =====================================================================
   8 · surfaces (glass: rim + near-zero shadow)
   ===================================================================== */
html .hs-form, html .trust-row li, html .hc, html .doc, html .feat, html .steps li,
html .plan, html .offer, html .lock-panel, html .plan-mini, html .soon-col, html .ft-score,
html .ft-cta, html .sc-preview, html .seo-main .ba, html .seo-main .cta, html .related-card,
html .stat-card, html .author-card, html .toc-mobile, html .callout, html .preview-wrap,
html .acct-card, html .guarantee, html .hd-card, html .report-card, html .blog-featured {
  background: var(--ios-surface-bg);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--ios-ring), var(--ios-shadow);
}
html .hs-form { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); gap: 1rem; }
html .hs-form::before { display: none; }
html .hs-form:focus-within { box-shadow: var(--ios-ring), var(--ios-shadow); }
html .hs-form textarea {
  background: var(--ios-card); border: 1px solid transparent; border-radius: var(--r);
  box-shadow: var(--ios-field); font: 400 1.0625rem/1.45 var(--ios-font); color: var(--ios-label);
}
html .hs-form textarea:focus { outline: none; border-color: transparent; box-shadow: var(--ios-field), 0 0 0 3px rgba(52, 97, 143, 0.28); }
html .hs-form textarea[aria-invalid='true'] { box-shadow: var(--ios-field), inset 0 0 0 1px rgba(179, 38, 30, 0.4); }
html .hs-title { font-size: 1.25rem; }
html .hs-pill { background: var(--ios-fill); color: var(--ios-label-2); border-radius: var(--r-pill); font: 600 0.75rem/1 var(--ios-font); text-transform: none; letter-spacing: 0; padding: 0.3rem 0.55rem; }
html .hs-step { background: var(--ios-label); color: var(--ios-card); border-radius: 50%; font: 700 0.75rem/1 var(--ios-font); box-shadow: inset 0 1px 0 var(--ios-gloss-soft); }
html .hs-file-btn { color: var(--ios-tint); font-weight: 600; }
html .hs-file-btn:hover { color: var(--ios-tint-2); }
html .hs-next { border-top: 1px solid var(--ios-sep); }
html .hs-sub { color: var(--ios-label-2); font: 600 0.9375rem/1.4 var(--ios-font); }
html .hs-note, html .gap-note { background: var(--ios-fill); border: 0; border-left: 0; border-radius: var(--r); padding: 0.75rem 0.9rem; color: var(--ios-label-2); }
html .hs-err { color: var(--red-ink); }
html .hs-meta b, html .hs-cov { color: var(--ios-label-2); }

html .trust-row { gap: 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; }
html .trust-row li { background: var(--ios-surface-bg); border-radius: var(--r-pill); box-shadow: var(--ios-ring); color: var(--ios-label); font-weight: 500; padding: 0.5rem 0.9rem; }
html .tr-ico .a, html .tr-ico path { stroke: var(--ios-label-2); }

html .hc { border-radius: var(--r-lg); overflow: hidden; }
html .hc > summary::after, html .hc[open] > summary::after { color: var(--ios-label-2); }
html .hc-n { background: var(--ios-fill); border-radius: 8px; font: 600 0.8125rem/1 var(--ios-font); }
html .hc-ico { border-radius: 50%; font: 700 0.8125rem/1 var(--ios-font); }
html .hc-warn .hc-ico { background: var(--ios-label); border-color: transparent; color: var(--ios-card); }
html .hc-sum, html .hc-t { color: var(--ios-label-2); }
html .hc-fix b { color: var(--ios-label); }
html .hc-line mark { background: var(--ios-fill); color: inherit; }

html .chip {
  font: 500 0.9375rem/1 var(--ios-font); border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--ios-fill); color: var(--ios-label); padding: 0.45rem 0.75rem;
}
html .chip.hit { border-color: transparent; box-shadow: inset 0 0 0 1px rgba(52, 97, 143, 0.4); }
html .chip.hit::before { color: var(--ios-tint); }
html .chip.miss { border-style: solid; border-color: transparent; color: var(--ios-label-2); box-shadow: inset 0 0 0 1px var(--ios-sep); }
html .strike { color: var(--ios-label-2); text-decoration-color: var(--ios-label-3); }
html .margin-note { font-family: var(--ios-font); font-style: normal; color: var(--ios-label-2); border-left: 0; }

html .doc { padding: clamp(1.1rem, 1rem + 1vw, 1.6rem); }
html .doc h4, html .doc-h { font: 600 0.8125rem/1.4 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); }
html .big-score .before, html .big-score .unit, html .ex-score .unit, html .ex-score .arr, html .ex-score .before { color: var(--ios-label-2); }
html .big-score .before { text-decoration-color: var(--ios-label-3); }
html .strike, html .ex-old { color: var(--ios-label-2); text-decoration-color: var(--ios-label-3); }
html .ex-new { color: var(--ios-label); }

html .steps { border-top: 0; gap: 1rem; }
html .steps li { border-top: 0; padding: 1.35rem 1.4rem; }
html .steps .n { font-family: var(--ios-font); font-weight: 700; font-size: 1.0625rem; color: var(--ios-card); background: var(--ios-label); border-radius: 50%; width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 var(--ios-gloss-soft); }
html .feat-grid { border-top: 0; gap: 1rem; }
html .feat { border-bottom: 0; padding: 1.35rem 1.4rem; }
html .feat .n { font-family: var(--ios-font); font-weight: 700; font-size: 1.5rem; color: var(--ios-tint); }
html .feat-link { color: var(--ios-tint); text-decoration: none; font-weight: 600; }
html .feat-link:hover { color: var(--ios-tint-2); text-decoration: underline; }
html .wont { border-top: 0; }
html .wont li::before { background: var(--ios-tint); border-radius: 50%; }

html .tpl-name, html .tpl-strip-name b { font-family: var(--ios-font); font-weight: 600; }
html .tpl-tags { font: 400 0.9375rem/1.4 var(--ios-font); color: var(--ios-label-2); }
html .tpl-note { border-left: 0; background: var(--ios-fill); border-radius: var(--r); padding: 0.75rem 0.9rem; color: var(--ios-label-2); }
html .tpl-zoom { background: var(--ios-action); color: var(--ios-action-ink); border-radius: var(--r-pill); font: 600 0.8125rem/1 var(--ios-font); }
html .tpl-thumb, html .tpl-thumb-btn .tpl-thumb { border: 1px solid var(--ios-edge); border-radius: var(--r); box-shadow: var(--ios-shadow); }
html .tpl-thumb-btn:hover .tpl-thumb, html .tpl-strip a:hover .tpl-thumb { border-color: var(--ios-tint); }
html .tpl-strip li.mo-hl .tpl-thumb { border-color: var(--ios-tint); box-shadow: var(--ios-shadow), 0 0 0 3px rgba(52, 97, 143, 0.2); }

html .seg { border: 0; border-radius: var(--r-sm); background: var(--ios-fill); padding: 3px; overflow: hidden; }
html .seg button { font: 600 0.9375rem/1 var(--ios-font); border-radius: 8px; color: var(--ios-label-2); border: 0; background: transparent; }
html .seg button + button { border-left: 0; }
html .seg button[aria-pressed='true'] { background: var(--ios-surface-bg); color: var(--ios-label); box-shadow: var(--ios-ring); }

html .plans { gap: 1rem; max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
html .plan { padding: 1.5rem; gap: 1.1rem; border-radius: var(--r-lg); }
html .plan.featured { border: 1px solid transparent; box-shadow: var(--ios-ring), var(--ios-shadow), 0 0 0 2px rgba(52, 97, 143, 0.28); }
html .plan .flag {
  background: var(--ios-label); color: var(--ios-card); border-radius: var(--r-pill);
  font: 600 0.6875rem/1 var(--ios-font); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 9px; box-shadow: 0 0 0 3px var(--ios-bg);
}
html .plan .price { font-family: var(--ios-font); font-weight: 700; }
html .plan .price small { color: var(--ios-label-2); }
html .plan li { color: var(--ios-label-2); }
html .plan li::before { background: var(--ios-tint); border-radius: 50%; }
html .guarantee { border-radius: var(--r-lg); }
html .guarantee strong { font-family: var(--ios-font); font-weight: 600; }
html .free-row li { border: 1px solid transparent; border-radius: var(--r-lg); background: var(--ios-surface-bg); box-shadow: var(--ios-ring); }
html .free-row { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
html .free-row b { font: 600 0.9375rem/1.4 var(--ios-font); color: var(--ios-label-2); }

html .offer, html .lock-panel, html .plan-mini { border-radius: var(--r-lg); }
html .offer, html .lock-panel {
  background: var(--ios-cta-surface); color: var(--ios-cta-ink); border: 1px solid transparent; box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.2);
}
html .offer h3, html .lock-panel h3 { font-family: var(--ios-font); font-weight: 700; color: var(--ios-cta-ink); }
html .offer .kicker, html .offer .muted, html .offer .note, html .offer .small,
html .lock-panel .kicker, html .lock-panel .muted, html .lock-panel .note, html .lock-panel .small { color: var(--ios-cta-ink); opacity: 0.78; }
html .offer ul, html .lock-panel .check-line, html .offer .check-line { color: var(--ios-cta-ink); }
html .offer .btn, html .lock-panel .btn { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; border: 1px solid transparent; color: var(--ios-cta-bg); }
html .offer .btn:hover, html .lock-panel .btn:hover { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; color: var(--ios-cta-bg); filter: brightness(0.96); }
html .offer .btn-ghost, html .lock-panel .btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--ios-cta-ink); box-shadow: none; }
html .offer .btn-ghost:hover, html .lock-panel .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

html .badge, html .badge-new, html .soon-list .badge {
  background: var(--ios-fill); border: 0; border-radius: var(--r-pill); color: var(--ios-label-2) !important;
  font: 600 0.75rem/1 var(--ios-font); text-transform: none; letter-spacing: 0; padding: 0.3rem 0.6rem;
}
html .badge.live { background: var(--ios-action); color: var(--ios-action-ink) !important; }
html .hist-badge.preview, html .tag-preview { background: var(--ios-fill); color: var(--ios-label-2); border: 0; border-radius: var(--r-pill); }
html .hist-badge.paid { background: rgba(52, 97, 143, 0.14); color: var(--ios-tint-2); border: 0; border-radius: var(--r-pill); }

html .sc-link { border: 1px solid transparent; border-radius: var(--r); background: var(--ios-card); box-shadow: var(--ios-field); }
html .sc-size input { accent-color: var(--ios-tint); }
html .sc-status { color: var(--ios-label-2); }
html .sc-title, html .ex-title { font-family: var(--ios-font); font-weight: 700; letter-spacing: -0.02em; }
html .ex-score { font-family: var(--ios-font); font-weight: 700; }
html .ex-k { font: 600 0.9375rem/1.4 var(--ios-font); color: var(--ios-label-2); }
html .ex-why b { color: var(--ios-label); font-weight: 600; }
html .ex-wrap .x:hover, html .sc-wrap .x:hover, html .tpl-dlg .x:hover, html .ex-rows .x:hover { color: var(--ios-label); }

/* prose pages, compare tables, callouts */
html .prose { color: var(--ios-label); }
html .prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; }
html .prose h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); }
html .prose a { color: var(--ios-tint); }
html .ft-score, html .ft-cta, html .soon-col, html .sc-preview, html .seo-main .ba, html .seo-main .cta { border-radius: var(--r-lg); }
html .ft-tools, html .soon-list, html .teaser-list, html .ft-sec .more { border-top: 1px solid var(--ios-sep); }
html .seo-main .ba .bad { color: var(--red-ink); }
html .seo-main .more { border-top: 1px solid var(--ios-sep); }
html .seo-main .more li { border-bottom: 1px solid var(--ios-sep); }
html .seo-main .more a::after { color: var(--ios-label-3); }

html .cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
html .cmp th, html .cmp td { border-bottom: 1px solid var(--ios-sep); padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; }
html .cmp thead th { background: var(--ios-fill); font-weight: 600; }
html .cmp tbody tr:nth-child(even) { background: transparent; }
html .table-scroll, html .cmp-wrap { overflow-x: auto; }
html .report-grid { gap: 1rem; }

/* =====================================================================
   9 · faq
   ===================================================================== */
html .faq { border-top: 1px solid var(--ios-sep); }
html .faq details { border-bottom: 1px solid var(--ios-sep); background: transparent; box-shadow: none; }
html .faq summary { font-weight: 600; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem); line-height: 1.35; border-radius: 0; padding: 1.1rem 0; }
html .faq summary::after { content: '+'; font: 400 1.5rem/1 var(--ios-font); color: var(--ios-label-3); }
html .faq details[open] summary::after { content: '–'; }
html .faq details p { color: var(--ios-label-2); max-width: 62ch; }

/* =====================================================================
   10 · dialogs
   ===================================================================== */
html dialog { border: 1px solid transparent; border-radius: var(--r-lg); background: var(--ios-surface-bg); color: var(--ios-label); box-shadow: var(--ios-ring), 0 12px 30px -22px rgba(0, 0, 0, 0.24); }
html .ex-dlg, html .sc-dlg { background: var(--ios-surface-bg); border: 1px solid transparent; box-shadow: var(--ios-ring), 0 12px 30px -22px rgba(0, 0, 0, 0.24); }
html .ex-dlg::backdrop, html .sc-dlg::backdrop, html dialog::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html .dlg { padding: 26px 24px; }
html .dlg h2 { font-family: var(--ios-font); font-weight: 700; }
html .dlg .x, html .x { color: var(--ios-label-2); }
html .dlg .x:hover, html .x:hover { color: var(--ios-label); }

/* =====================================================================
   11 · blog
   ===================================================================== */
html .blog-kicker, html .article-cat, html .blog-card-cat, html .takeaways-h, html .sources-h,
html .toc-h, html .blog-visual-note, html .blog-card-meta, html .related-meta {
  font: 600 0.8125rem/1.4 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2);
}
html .blog-h1, html .article-title { font: 700 clamp(2rem, 1.4rem + 2.6vw, 3.1rem)/1.06 var(--ios-font); letter-spacing: -0.035em; }
html .blog-dek, html .article-dek { color: var(--ios-label-2); }
html .blog-byline, html .byline-sub { color: var(--ios-label-2); }
html .blog-byline b { color: var(--ios-label); }
html .byline-avatar, html .author-avatar { background: var(--ios-label); color: var(--ios-card); }
html .blog-filter, html .tool-btn { border: 1px solid transparent; border-radius: var(--r-pill); background: var(--ios-surface-bg); box-shadow: var(--ios-ring); color: var(--ios-label-2); }
html .blog-filter:hover, html .tool-btn:hover { border-color: transparent; color: var(--ios-label); filter: brightness(0.97); }
html .blog-filter[aria-pressed="true"], html .tool-btn[aria-pressed="true"] { background: var(--ios-action); border-color: transparent; color: var(--ios-action-ink); box-shadow: none; }
html .tool-sep { background: var(--ios-sep); }
html .blog-featured { border: 1px solid transparent; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ios-ring), var(--ios-shadow); }
html .blog-featured-visual { background: var(--ios-fill); border-color: var(--ios-sep); }
html .blog-stat { color: var(--ios-label); }
html .blog-card { border-bottom: 1px solid var(--ios-sep); }
html .blog-list-head { border-bottom: 1px solid var(--ios-label); }
html .blog-list-head span { font: 500 0.8125rem/1 var(--ios-font); color: var(--ios-label-2); }
html .read-progress i { background: var(--ios-tint); }
html .article-body { color: var(--ios-label); }
html .article-body a { color: var(--ios-tint); text-decoration-color: rgba(52, 97, 143, 0.5); text-decoration-thickness: 1px; }
html .article-body a:hover { color: var(--ios-tint-2); background: none; text-decoration-color: currentColor; }
html[data-theme="dark"] .article-body a:hover { color: var(--ios-tint); }
html .article-body blockquote { border-left: 0; background: var(--ios-fill); border-radius: var(--r); padding: 1rem 1.15rem; }
html .article-body h2 { font-family: var(--ios-font); font-weight: 700; }
html .article-body thead th { border-bottom: 2px solid var(--ios-label); }
html .article-body th, html .article-body td { border-bottom: 1px solid var(--ios-sep); }
html .stat-grid { border: 1px solid transparent; background: var(--ios-surface-bg); box-shadow: var(--ios-ring); border-radius: var(--r-lg); overflow: hidden; gap: 1px; }
html .stat-card { border-radius: 0; background: var(--ios-card); box-shadow: none; }
html .takeaways { border-left: 0; background: var(--ios-surface-bg); border-radius: var(--r-lg); box-shadow: var(--ios-ring); }
html .callout { border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--r-lg); box-shadow: var(--ios-ring); }
html .author-card { border: 1px solid transparent; border-radius: var(--r-lg); }
html .toc ol { border-left: 1px solid var(--ios-sep); }
html .toc a { color: var(--ios-label-2); border-left: 2px solid transparent; }
html .toc a:hover, html .toc a.active { color: var(--ios-label); border-left-color: var(--ios-tint); }
html .related-grid { border: 0; background: transparent; gap: 1rem; }
html .related-card { border: 1px solid transparent; border-radius: var(--r-lg); }
html .article-cta { background: var(--ios-cta-surface); color: var(--ios-cta-ink); border-radius: var(--r-lg); border: 1px solid transparent; }
html .article-cta h2, html .article-cta p { color: var(--ios-cta-ink); }
html .article-cta p { opacity: 0.8; }
html .article-cta .btn { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; border: 1px solid transparent; color: var(--ios-cta-bg); }
html .article-cta .btn:hover { background: linear-gradient(var(--ios-cta-ink), var(--ios-cta-ink)) padding-box, var(--ios-btn-rim-lite) border-box; color: var(--ios-cta-bg); filter: brightness(0.96); }
html .toc-mobile { border: 1px solid transparent; border-radius: var(--r-lg); }
html .toc-mobile summary { font: 600 0.9rem/1.3 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); }
html .sources a { color: var(--ios-label-2); }
html .sources a:hover { color: var(--ios-label); }

/* =====================================================================
   12 · app
   ===================================================================== */
html .app-main { max-width: 1060px; padding-top: clamp(28px, 4vw, 56px); padding-bottom: 96px; }
html .app-title { font-family: var(--ios-font); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.05; margin: 10px 0 8px; }
html .app-intro { color: var(--ios-label-2); }
html .field textarea, html .field input { background: var(--ios-card); border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--ios-field); }
html .field textarea:focus, html .field input:focus { outline: none; box-shadow: var(--ios-field), 0 0 0 3px rgba(52, 97, 143, 0.28); }
html .score-num { font-family: var(--ios-font); font-weight: 700; }
html .score-num.before { color: var(--ios-label-2); text-decoration-color: var(--ios-tint); }
html .score-hero { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring); }
html .bar { background: var(--ios-fill); border-radius: var(--r-pill); overflow: hidden; }
html .bar i { background: var(--ios-tint); border-radius: var(--r-pill); }
html .sub-h { font: 600 0.8125rem/1 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); }
html .checks li::before { color: var(--ios-tint); }
html .checks li.no::before { color: var(--ios-label-3); }
html .checks li.no { color: var(--ios-label-2); }
html .progress li { color: var(--ios-label-2); }
html .progress li .dot { border: 1.5px solid var(--ios-edge); }
html .progress li.active, html .progress li.done { color: var(--ios-label); }
html .progress li.active .dot { border-color: var(--ios-label); background: radial-gradient(circle, var(--ios-label) 0 3px, transparent 3.5px); }
html .progress li.done .dot { border-color: var(--ios-label); background: var(--ios-label); }
html .reqs { border-top: 0; }
html .reqs li { border-bottom: 1px solid var(--ios-sep); }
html .reqs .ev { color: var(--ios-label-2); }
html .tag { font: 600 0.6875rem/1 var(--ios-font); letter-spacing: 0; border-radius: var(--r-pill); padding: 6px 8px; }
html .tag.strong { background: var(--ios-label); color: var(--ios-card); }
html .tag.partial { border: 1px solid transparent; background: var(--ios-fill); color: var(--ios-label-2); }
html .tag.missing { border: 1px solid transparent; background: var(--ios-fill); color: var(--ios-label-2); }
html .q { border-bottom: 1px solid var(--ios-sep); }
html .q blockquote { border-left: 0; background: var(--ios-fill); border-radius: var(--r); padding: 0.6rem 0.8rem; color: var(--ios-label-2); }
html .result-head { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring); padding: clamp(18px, 3vw, 30px); }
html .preview-wrap { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring); }
html .tpl { border: 1px solid transparent; background: var(--ios-surface-bg); border-radius: var(--r); box-shadow: var(--ios-ring); }
html .tpl[aria-pressed=true] { border: 1px solid transparent; box-shadow: var(--ios-ring), 0 0 0 2px rgba(52, 97, 143, 0.4); }
html .tpl-group-h { font: 600 0.8125rem/1 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); }
html .tpl-group-h span { color: var(--ios-label-3); }
html .dl-row select { border: 1px solid transparent; background: var(--ios-card); box-shadow: var(--ios-field); border-radius: var(--r); }
html .list-plain li { border-top: 1px solid var(--ios-sep); }
html .diff .old { color: var(--ios-label-2); text-decoration-color: var(--ios-label-3); }
html .diff .tip { color: var(--ios-label-2); }
html .history, html .history li { border-color: var(--ios-sep); }
html .history .meta, html .hist-badge { color: var(--ios-label-2); }
html .hist-empty { border: 1px dashed var(--ios-edge); border-radius: var(--r-lg); }
html .acct > [data-menu="my_resumes"][aria-current="page"] { background: var(--ios-action); color: var(--ios-action-ink); }
html .toast { background: var(--ios-action); color: var(--ios-action-ink); border-radius: var(--r-pill); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.5); }
html .acct-card { border-radius: var(--r-lg); }
html .acct-label { font: 600 0.75rem/1 var(--ios-font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ios-label-3); }
html .acct-danger { background: var(--ios-surface-bg); border: 1px solid transparent; box-shadow: var(--ios-ring), inset 0 0 0 1px rgba(179, 38, 30, 0.35); }
html .acct-danger .acct-h { color: var(--red-ink); }
html .acct-confirm { border: 1px solid transparent; border-radius: var(--r); background: var(--ios-fill); box-shadow: none; }
html .stay-strip { border-top: 1px solid var(--ios-sep); }
html .stay-k { font: 600 0.8125rem/1 var(--ios-font); text-transform: none; letter-spacing: 0; color: var(--ios-label-2); }
html .stay-list a { color: var(--ios-label); }
html .tips-list li { border-top: 1px solid var(--ios-sep); }
html .tip-n { font-family: var(--ios-font); color: var(--ios-tint); }
html .tip-what b { font: 600 0.75rem/1 var(--ios-font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ios-label-3); }
html #tips-block { background: var(--ios-surface-bg); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--ios-ring); }
html .more { border-top: 1px solid var(--ios-sep); }
html .more > summary::after { font: 400 1.35rem/1 var(--ios-font); color: var(--ios-label-2); }
html .more[open] > summary { border-bottom: 1px solid var(--ios-sep); }
html .plans-mini { gap: 10px; }
html .plan-mini { border: 1px solid transparent; border-radius: var(--r); background: var(--ios-surface-bg); box-shadow: var(--ios-ring); }
html .plan-mini.featured { border: 1px solid transparent; box-shadow: var(--ios-ring), 0 0 0 2px rgba(52, 97, 143, 0.28); }
html .plan-mini .p { font-family: var(--ios-font); }

/* resume documents stay paper — they are the artefact, not the UI */
html .page, html .tpl-page, html .tpl-big, html .tpl .mini, html[data-theme="dark"] .page,
html[data-theme="dark"] .tpl-page, html[data-theme="dark"] .tpl-big, html[data-theme="dark"] .tpl .mini { background: #ffffff; color: #1a1a1a; }

/* =====================================================================
   13 · guides / legal / keywords / comparisons (seo pages)
   ===================================================================== */
html .seo-main, html .prose { padding-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
html .seo-main section { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); max-width: 60rem; }
html .seo-main section h2, html .ft-sec h2 { font-family: var(--ios-font); font-weight: 700; }
html .pg-hero { padding: clamp(2rem, 1.4rem + 3vw, 4rem) 0 clamp(1.25rem, 1rem + 2vw, 2rem); }
html .pg-hero .display { max-width: 22ch; }
html .pg-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.5rem; }
html .legal-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
html .legal-tabs a { border-radius: var(--r-pill); padding: 0.4rem 0.85rem; background: var(--ios-fill); color: var(--ios-label-2); text-decoration: none; }
html .legal-tabs a[aria-current], html .legal-tabs a:hover { background: var(--ios-surface-bg); color: var(--ios-label); box-shadow: var(--ios-ring); }
html .tips li { color: var(--ios-label-2); }
html .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
html .src { color: var(--ios-label-2); }

/* =====================================================================
   14 · motion — one iOS curve family
   ===================================================================== */
html .btn, html .menu-btn, html .theme-toggle, html .nav-list a, html .nav-link, html .foot-links a,
html .blog-filter, html .tool-btn, html .tone, html .seg button, html .chip, html .blog-card,
html .related-card, html .tpl, html .tpl-thumb-btn, html .legal-tabs a {
  transition: background-color var(--ios-dur-1) var(--ios-ease), color var(--ios-dur-1) var(--ios-ease), box-shadow var(--ios-dur-1) var(--ios-ease), border-color var(--ios-dur-1) var(--ios-ease), transform 0.14s var(--ios-ease), filter var(--ios-dur-1) var(--ios-ease);
}
html .btn:active, html .menu-btn:active, html .blog-filter:active, html .tool-btn:active, html .tone:active, html .legal-tabs a:active { transform: scale(0.97); }
@keyframes ios-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ios-dlg-rise { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes ios-sheet-rise { from { opacity: 0; transform: translateY(4%); } to { opacity: 1; transform: none; } }
html dialog[open] { animation: ios-fade var(--ios-dur-2) var(--ios-ease) both, ios-dlg-rise var(--ios-dur-3) var(--ios-ease) both; }
html dialog[open]::backdrop { animation: ios-fade var(--ios-dur-2) var(--ios-ease) both; }
@media (max-width: 640px) {
  html dialog[open] { animation-name: ios-fade, ios-sheet-rise; }
}
@media (prefers-reduced-motion: reduce) {
  html * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   15 · small screens
   ===================================================================== */
@media (max-width: 899px) {
  html .site-head .acct { display: none; }
  html .menu-lbl { display: none; }
  html .menu-btn { width: 44px; padding: 0; }
  html .site-nav { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 899px) and (min-width: 0px) {
  html .ex-dlg, html .sc-dlg { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 88dvh; border-radius: 20px 20px 0 0; }
  html .ex-dlg::before, html .sc-dlg::before { content: ''; display: block; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--ios-label-3); }
}

/* =====================================================================
   16 · account settings & destructive actions
   ===================================================================== */
html .acct-label {
  text-transform: none; letter-spacing: 0;
  font: 600 0.8125rem/1.35 var(--ios-font); color: var(--ios-label-2);
}
html .acct-card.acct-danger {
  background: var(--ios-surface-bg);
  border-color: transparent;
  box-shadow: var(--ios-ring), var(--ios-shadow), inset 0 0 0 1px rgba(179, 38, 30, 0.30);
}
html[data-theme="dark"] .acct-card.acct-danger {
  box-shadow: var(--ios-ring), var(--ios-shadow), inset 0 0 0 1px rgba(255, 69, 58, 0.38);
}
html .acct-danger .acct-h { color: var(--danger); }
html .acct-confirm {
  border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--ios-surface-bg); box-shadow: var(--ios-field);
}
html .acct-pop .acct-email { color: var(--ios-label-2); }
/* red is the one signal allowed besides the single steel-blue accent: danger only */
html .btn-danger, html .btn.btn-danger {
  background: var(--danger); background-image: var(--ios-btn-rim);
  border-color: transparent; color: #ffffff;
}
html .btn-danger:hover, html .btn.btn-danger:hover {
  background: var(--danger); background-image: var(--ios-btn-rim);
  border-color: transparent; color: #ffffff; filter: brightness(1.06);
}
html[data-theme="dark"] .btn-danger, html[data-theme="dark"] .btn.btn-danger { color: #1d1d1f; }
