/* Beauty Exam Ready: shared family design, adapted to its exam guides and practice.
   Shared Spectral/Atkinson typography, petrol/prune tokens, rounded cards and device frames.
   All visual states remain compatible with strict style-src self. */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/spectral-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/spectral-latin-500-italic.woff2) format('woff2');
}
/* Atkinson Hyperlegible Next always draws zero with a slash (a legibility choice of the typeface; the
   font has no OpenType feature that removes it), which reads as code in running text. Its faces leave
   out the digits U+0030–0039 (the rest is the @fontsource latin range), so 0–9 come from the next font
   in --font-body, the system UI face, with a plain zero. The "Readable font" accessibility setting
   switches to the full faces below, slashed zero included. */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next Full';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next Full';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/spectral-vietnamese-600-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-vietnamese-500-italic.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --paper: #f3f5f2;
  --raised: #ffffff;
  --sunk: #e7ece9;
  --ink: #13262b;
  --ink-soft: #4a5e62;
  --rule: #c9d4d1;
  --rule-soft: #dde5e2;
  --petrol: #0f5e63;
  --petrol-deep: #0a4448;
  --on-petrol: #ffffff;
  --petrol-tint: #dcece8;
  --prune: #5b2450;
  --prune-deep: #47193f;
  --on-prune: #ffffff;
  --prune-tint: #f1e4ee;
  --amber: #e9a23b;
  --amber-soft: #f7dfb5;
  --kicker: #7d5400;
  --ok: #1d6b3a;
  --no: #a33a2a;
  --night: #0a2224;
  --night-2: #10302f;
  --night-ink: #e4eeeb;
  --night-soft: #b7ccc8;
  --night-link: #9adcd3;
  --night-rule: rgba(255, 255, 255, 0.14);
  --grid-line: rgba(15, 94, 99, 0.085);
  --band-4: #dcece8;
  --band-5: #c0dfd8;
  --band-6: #9dccc3;
  --band-7: #70b2a9;
  --band-8: #48968e;
  --band-9: #2a7a74;
  --band-10: #0f5e63;
  --band-ink-light: #13262b;
  --band-ink-dark: #ffffff;
  --shadow-card: 0 1px 0 rgba(19, 38, 43, 0.04), 0 12px 30px -14px rgba(19, 38, 43, 0.16);
  --shadow-lift: 0 30px 70px -28px rgba(10, 34, 36, 0.45);

  /* Aliases kept for the ruler, converter, quiz and accessibility blocks. */
  --paper-raised: var(--raised);
  --muted: var(--ink-soft);
  --line: var(--rule);
  --white: var(--raised);
  --mint: var(--petrol-tint);
  --serif: var(--font-display);
  --sans: var(--font-body);
  --paper-sunk: var(--sunk);
  --lift: var(--shadow-card);

  --font-display: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem);
  --step-4: clamp(2.45rem, 1.35rem + 4.3vw, 4.5rem);

  --measure: 68ch;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --wrap: 1180px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1719;
    --raised: #132225;
    --sunk: #0a1214;
    --ink: #e4eeeb;
    --ink-soft: #a6b8b5;
    --rule: #2b3e41;
    --rule-soft: #223437;
    --petrol: #6cc7bd;
    --petrol-deep: #9adcd3;
    --on-petrol: #08201e;
    --petrol-tint: #18332f;
    --prune: #e3aad6;
    --prune-deep: #f0c6e6;
    --on-prune: #221020;
    --prune-tint: #2e1a2a;
    --amber: #f2b65a;
    --amber-soft: #4a3a1c;
    --kicker: #f2b65a;
    --ok: #7fd49a;
    --no: #f19a8a;
    --night: #071315;
    --night-2: #0c1f21;
    --grid-line: rgba(108, 199, 189, 0.07);
    --band-4: #18332f;
    --band-5: #1d4541;
    --band-6: #235a54;
    --band-7: #2c7068;
    --band-8: #3a877e;
    --band-9: #4fa69c;
    --band-10: #6cc7bd;
    --band-ink-light: #e4eeeb;
    --band-ink-dark: #08201e;
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 30px 70px -28px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--petrol-deep);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--amber-soft);
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
p,
ul,
ol,
dl {
  margin: 0 0 1em;
}
li + li {
  margin-top: 0.3em;
}
em.accent,
.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
h1 .accent {
  color: var(--petrol);
}

.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;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 1300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: var(--paper);
}
main {
  display: block;
}
main:focus {
  outline: none;
}
.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.narrow {
  max-width: 52rem;
}
.wrap.narrow {
  width: min(52rem, calc(100% - 2 * var(--gutter)));
}
.muted {
  color: var(--ink-soft);
}
.small {
  font-size: var(--step--1);
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  margin-top: 2em;
  font-size: var(--step-2);
}
.prose h3 {
  margin-top: 1.6em;
}

/* Kicker: mono label with the ruler ticks of the brand mark. `.eyebrow` is the older name. */
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--kicker);
}
.kicker::before,
.eyebrow::before {
  content: '';
  flex: none;
  width: 1.9rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px) top left / 100% 60% no-repeat;
  opacity: 0.85;
}
.kicker-light {
  color: #f2b65a;
}
.lede {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--ink-soft);
}

/* ---------- Buttons and links ---------- */

.button-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 1rem;
}
.button-row {
  gap: 0.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--petrol);
  border-radius: 14px;
  background: var(--petrol);
  color: var(--on-petrol);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -14px rgba(15, 94, 99, 0.7);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover {
  background: var(--petrol-deep);
  border-color: var(--petrol-deep);
  color: var(--on-petrol);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-2px);
  }
}


.button-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #13262b;
  box-shadow: none;
}
.button-amber:hover {
  background: #f2b65a;
  border-color: #f2b65a;
  color: #13262b;
}
.button-ghost,
.button.secondary {
  background: var(--raised);
  border-color: var(--rule);
  color: var(--ink);
  box-shadow: none;
}
.button-ghost:hover,
.button.secondary:hover {
  background: var(--raised);
  border-color: var(--petrol);
  color: var(--petrol);
}
/* Secondary action in the app's colour (--tone, set by .app-card; petrol elsewhere). */
.button-outline {
  background: transparent;
  border-color: var(--tone, var(--petrol));
  color: var(--tone, var(--petrol));
  box-shadow: none;
}
.button-outline:hover {
  background: color-mix(in srgb, var(--tone, var(--petrol)) 9%, transparent);
  border-color: var(--tone, var(--petrol));
  color: var(--tone, var(--petrol));
}
.arrow-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  padding-bottom: 1px;
}
.arrow-link::after {
  content: '\2009\2192';
}
.arrow-link:hover {
  border-bottom-color: currentColor;
}
.arrow-light {
  color: var(--night-link);
}
.arrow-light:hover {
  color: #ffffff;
}


/* ---------- Family header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 78px;
  padding-block: .85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 9px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.4rem/1.12 var(--font-display); letter-spacing: -.01em; }
.brand small { color: var(--ink-soft); font-size: .72rem; line-height: 1.3; margin-top: .25rem; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.35rem; margin-left: auto; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--amber); }
.site-header .langs { gap: .35rem; margin-left: 0; }
.site-header .langs a {
  justify-content: center;
  min-width: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .3rem .7rem;
  background: var(--raised);
  font-size: .78rem;
}
.site-header .langs a[aria-current] { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 1300;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0; color: var(--paper); }

/* ---------- Family hero: soft glow, paired real screens ---------- */
.hero, .family-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, .8rem + 3vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--paper);
  color: var(--ink);
}
.family-hero::before, .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 30rem at 85% 10%, color-mix(in srgb, var(--petrol) 9%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 17ch; }
.lead {
  font-size: clamp(1.1rem, 1rem + .45vw, 1.32rem);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.4rem 0 1rem; }
.hero-actions .button { flex: 1 1 10rem; max-width: 17rem; }
.hero-facts { margin: .25rem 0 .4rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; color: var(--ink-soft); }
.release-note { margin: .75rem 0 0; font-size: var(--step--1); color: var(--ink-soft); max-width: 52ch; }
.button-primary { background: var(--tone, var(--petrol)); border-color: var(--tone, var(--petrol)); color: var(--on-tone, var(--on-petrol)); }
.button-primary:hover { background: var(--tone-deep, var(--petrol-deep)); border-color: var(--tone-deep, var(--petrol-deep)); color: var(--on-tone, var(--on-petrol)); }
.button-secondary { background: var(--raised); border-color: var(--rule); color: var(--ink); box-shadow: none; }
.button-secondary:hover { background: var(--raised); border-color: var(--petrol); color: var(--petrol); }
.hero-devices {
  --pair-pad-b: 6rem;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 var(--pair-pad-b);
  min-width: 0;
}
.hero-devices::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6% -8% -2%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--amber) 38%, transparent), transparent) 80% 12% / 40% 34% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--prune) 24%, transparent), transparent) 24% 42% / 70% 74% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--petrol) 28%, transparent), transparent) 66% 60% / 84% 84% no-repeat;
  pointer-events: none;
}
.hero-devices::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 14%; right: 14%;
  bottom: calc(var(--pair-pad-b) - 1.3rem);
  height: 2.6rem;
  background: radial-gradient(closest-side, rgba(10, 34, 36, .3), transparent);
  pointer-events: none;
}
.device {
  --device-h: 31rem;
  --u: calc(var(--device-h) / 100);
  --bezel: calc(var(--u) * 1.6);
  flex: none;
  width: calc((var(--device-h) - 2 * var(--bezel)) * var(--screen-ratio, .5625) + 2 * var(--bezel));
  margin: 0;
}
.device--ios { --screen-ratio: .460251; }
.device-screen {
  position: relative;
  padding: var(--bezel);
  border-radius: calc(var(--u) * 6.9);
  background: linear-gradient(150deg, #243538 0%, #0b1618 55%, #152426 100%);
  box-shadow:
    inset 0 0 0 calc(var(--u) * .24) rgba(255, 255, 255, .07),
    0 calc(var(--u) * .7) calc(var(--u) * 1.4) calc(var(--u) * -.5) rgba(8, 20, 22, .35),
    0 calc(var(--u) * 5.6) calc(var(--u) * 10.5) calc(var(--u) * -3.8) rgba(8, 20, 22, .5);
}
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--screen-ratio, .5625);
  object-fit: contain;
  max-width: none;
  border-radius: calc(var(--u) * 5.4);
  background: #fff;
}
.device-screen::before, .device-screen::after {
  content: '';
  position: absolute;
  width: calc(var(--u) * .52);
  border-radius: calc(var(--u) * .5);
  background: #1a2a2d;
}
.device-screen::before { left: calc(var(--u) * -.43); top: 24%; height: 11%; box-shadow: 0 calc(var(--u) * -3.8) 0 calc(var(--u) * -.05) #1a2a2d; }
.device-screen::after { right: calc(var(--u) * -.43); top: 30%; height: 15%; }
.device-caption {
  display: grid;
  gap: .15rem;
  margin-top: .9rem;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.device-caption small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--kicker); }
.hero-devices .device { --device-h: clamp(21rem, 12rem + 30vw, 29rem); }
.hero-devices .device:first-of-type { margin-right: calc(var(--u) * -8.5); margin-bottom: calc(var(--u) * 7); rotate: 4deg; }
.hero-devices .device:nth-of-type(2) { position: relative; z-index: 2; rotate: -3deg; }
.hero-chip {
  display: grid;
  gap: .15rem;
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: min(100%, 21rem);
  padding: .65rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--raised);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Rounded fact and app cards copied from the family site ---------- */
.section, .method { padding-block: clamp(3.25rem, 2.2rem + 4vw, 6rem); }
.section-heading { max-width: var(--measure); margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading > p:last-child { color: var(--ink-soft); max-width: 58ch; }
.section-soft, .method { background: var(--raised); border-block: 1px solid var(--rule-soft); }
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--shadow-card);
}
.fact-item { min-width: 0; padding-inline: 1.2rem; border-left: 1px solid var(--rule-soft); }
.fact-item:first-child { padding-left: 0; border-left: 0; }
.fact-item strong, .fact-item b { display: block; font: 600 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.1 var(--font-display); color: var(--petrol); }
.fact-item p, .fact-item span, .fact-item small { display: block; margin: .5rem 0 0; font-size: .85rem; line-height: 1.4; color: var(--ink-soft); }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.app-card, .exam-card {
  --tone: var(--petrol);
  --tone-deep: var(--petrol-deep);
  --tone-tint: var(--petrol-tint);
  --on-tone: var(--on-petrol);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone-tint) 70%, var(--raised)), var(--raised) 8.5rem);
  box-shadow: var(--shadow-card);
}
.app-card:nth-child(even), .exam-card:nth-child(even) { --tone: var(--prune); --tone-deep: var(--prune-deep); --tone-tint: var(--prune-tint); --on-tone: var(--on-prune); }
.app-card-top { display: flex; align-items: center; gap: 1rem; }
.app-icon { width: 3.5rem; height: 3.5rem; flex: none; border-radius: 22.37%; box-shadow: 0 6px 16px -8px rgba(19, 38, 43, .5); }
.app-card-top h3, .exam-card h3 { margin: 0; font: 600 clamp(1.35rem, 1.1rem + .8vw, 1.7rem)/1.12 var(--font-display); }
.app-card-top p { margin: .25rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.app-card > p, .exam-card > p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 1rem 0;
  border-block: 1px solid var(--rule-soft);
}
.app-stats > div { display: grid; align-content: start; gap: .35rem; min-width: 0; padding: 0 clamp(.65rem, .3rem + 1vw, 1.15rem); }
.app-stats > div:first-child { padding-left: 0; }
.app-stats > div + div { border-left: 1px solid var(--rule-soft); }
.app-stats strong, .app-stats b { font: 600 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--tone); }
.app-stats span, .app-stats small { font-size: .84rem; line-height: 1.3; color: var(--ink-soft); text-wrap: pretty; }
.app-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; }
.app-actions > a:not(.button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: .2rem; font-size: .92rem; font-weight: 700; color: var(--tone); }
.app-actions .button { flex: 1 1 auto; text-align: center; text-wrap: balance; padding-inline: 1rem; }
.app-card .release-note { padding-top: 1rem; border-top: 1px solid var(--rule-soft); font-size: .86rem; line-height: 1.35; }
.exam-card { color: var(--ink); text-decoration: none; }
.exam-card:hover { color: var(--ink); border-color: var(--tone); }
.card-index { font: 700 .72rem/1.4 var(--font-mono); letter-spacing: .1em; color: var(--kicker); }
.card-foot { margin-top: auto; border-top: 1px solid var(--rule-soft); padding-top: 1rem; display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; font-weight: 700; color: var(--tone); }

/* ---------- Dark feature band ---------- */
.inside-band {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--night-ink);
}
.inside-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 18rem);
  mask-image: linear-gradient(to bottom, #000, transparent 18rem);
  pointer-events: none;
}
.inside-grid { display: grid; align-items: start; gap: 3rem; }
.inside-copy { min-width: 0; }
.inside-band h2, .inside-band h3 { color: #fff; }
.inside-band .eyebrow { color: #f2b65a; }
.inside-copy > p:not(.eyebrow), .inside-band .section-heading > p:last-child { color: var(--night-soft); }
.inside-band a:not(.button) { color: var(--night-link); }
.inside-band :focus-visible { outline-color: #f2b65a; box-shadow: none; }
.feature-list { min-width: 0; list-style: none; margin: 0; padding: 0; }
.feature-list li, .feature-list article { position: relative; padding: 1.05rem 0 1.05rem 1.7rem; border-top: 1px solid var(--night-rule); margin: 0; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; top: 1.05rem; color: var(--night-link); font-weight: 700; }
.feature-list article { padding-left: 0; }
.feature-list article .card-index { display: block; margin-bottom: .5rem; color: #f2b65a; }
.inside-band .source-note { color: var(--night-soft); }
.feature-list h3, .feature-list strong { display: block; margin-bottom: .3rem; color: #fff; font-size: 1.08rem; }
.feature-list p { margin: 0; color: var(--night-soft); font-size: .97rem; }
.screen-pair { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: center; min-width: 0; max-width: 100%; padding: 0 0 1.5rem; }
.screen-pair .device { --device-h: clamp(26rem, 36vw, 34rem); }
.screen-pair .device-caption { grid-template-rows: minmax(2.7em, auto) auto; align-content: start; }
.inside-band .device-caption { color: #fff; }
.inside-band .device-caption small { color: #f2b65a; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.method-grid article { padding: 1.6rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.method-grid article > span { display: block; margin-bottom: 1.2rem; font: 700 .8rem/1.4 var(--font-mono); color: var(--petrol); }
.method-grid p { margin: 0; max-width: 32ch; color: var(--ink-soft); }

/* ---------- Family plans, FAQ and closing CTA ---------- */
.plan-grid { display: grid; gap: 1.25rem; }
.plan-card { padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--raised); }
.plan-card:nth-child(2) { border: 2px solid var(--petrol); box-shadow: var(--shadow-card); }
.plan-card h3 { font: 600 1.6rem/1.2 var(--font-display); margin-bottom: .25rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; font: 600 2.4rem/1 var(--font-display); margin: .75rem 0 1.25rem; }
.plan-price strong { font-weight: 600; }
.plan-price span { font: 400 .95rem/1.3 var(--font-body); color: var(--ink-soft); }
.plan-card > p:not(.plan-price) { color: var(--ink-soft); }
.plan-card ul { padding-left: 1.25rem; }
.plan-card li { padding-block: .2rem; }
.home-faq { max-width: 52rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-of-type { border-top: 1px solid var(--rule); }
.faq-item summary { position: relative; display: block; padding: 1.05rem 2.5rem 1.05rem 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: .35rem; top: 1.3rem; width: .65rem; height: .65rem; border-right: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol); transform: rotate(45deg); transition: transform .15s ease; }
.faq-item[open] summary::after { transform: translateY(.3rem) rotate(-135deg); }
.faq-item > p { margin: 0 0 1.15rem; max-width: var(--measure); color: var(--ink-soft); }
.cta-band {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
  color: #fff;
  background-color: #0a4448;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(135deg, #0f5e63, #0a2224);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.cta-band .wrap { display: grid; gap: 1.5rem 3rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-band .hero-actions { margin: 0; }
.cta-band .button { background: var(--amber); border-color: var(--amber); color: #13262b; box-shadow: none; }
.cta-band .button:hover { background: #f2b65a; border-color: #f2b65a; color: #13262b; }
.cta-band :focus-visible { outline-color: #f2b65a; box-shadow: none; }

/* ---------- Guides, source links and legal pages ---------- */
.source-section { padding-block: clamp(3.25rem, 2.2rem + 4vw, 6rem); display: grid; gap: 2rem 3.5rem; align-items: start; }
.source-section p { color: var(--ink-soft); }
.source-links { display: flex; flex-direction: column; gap: .85rem; align-self: center; }
.source-links a, .related-links a { padding: 1.25rem; font-weight: 700; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card); }
.source-links a:hover, .related-links a:hover { border-color: var(--petrol); text-decoration: underline; }
.guide-hero { position: relative; background: var(--paper); color: var(--ink); padding: 2.5rem 0 4rem; border-bottom: 1px solid var(--rule-soft); }
.guide-hero h1 { max-width: 19ch; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 2rem; font-weight: 700; font-size: .92rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; max-width: 52rem; }
.metrics > div { padding: 1.4rem; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card); }
.metrics b { font: 600 2.4rem/1 var(--font-display); color: var(--petrol); }
.metrics span { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.domain-list { border-top: 1px solid var(--rule); }
.domain-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(100px, 2fr) 58px; align-items: center; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.domain-row > span { font-weight: 700; }
.domain-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.domain-track { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.domain-track i { display: block; height: 100%; background: var(--petrol); }
.guide-note { max-width: 52rem; border: 1px solid var(--rule); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.4rem; margin-top: 2rem; background: color-mix(in srgb, var(--amber-soft) 40%, var(--raised)); scroll-margin-top: 20px; }
.guide-note p:last-child { margin-bottom: 0; }
.related { padding-top: 0; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.legal-doc { max-width: 52rem; padding-block: 3.5rem 6rem; }
.legal-doc h1 { max-width: 18ch; margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.75rem; margin: 2.5rem 0 .85rem; }
.legal-doc p { font-size: 1.04rem; line-height: 1.75; max-width: 75ch; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.resource-grid + .section-heading { margin-top: 3rem; }
.resource-card { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.resource-card h2 { font-size: 1.8rem; max-width: 26ch; margin-bottom: .85rem; }
.resource-card p { color: var(--ink-soft); max-width: 58ch; }
.resource-card a { font-weight: 700; margin-top: auto; padding-top: .6rem; }
.resource-card a + a { margin-top: .25rem; }
.study-panel { margin-top: 3rem; padding: clamp(1.4rem, 1rem + 2vw, 2.75rem); background: var(--petrol-tint); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.study-panel h2, .study-steps h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem); max-width: 28ch; }
.study-panel p { max-width: 76ch; }
.study-panel p:nth-of-type(2) { color: var(--ink-soft); font-size: .93rem; }
.study-panel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.domain-source, .source-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.domain-source a { font-weight: 700; }
.study-steps { margin-top: 4rem; }
.study-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; }
.study-step { counter-increment: step; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; margin: 0; }
.study-step::before { content: counter(step, decimal-leading-zero); font: 700 .73rem/1.4 var(--font-mono); letter-spacing: .1em; color: var(--kicker); margin-bottom: 1.25rem; }
.study-step h3 { font-family: var(--font-display); font-size: 1.5rem; }
.study-step p { color: var(--ink-soft); }
.study-step a { font-size: .9rem; font-weight: 700; margin-top: auto; }

/* ---------- Trilingual editorial study library ---------- */
.study-hub { padding-block: 3.5rem 5rem; }
.study-group + .study-group { margin-top: 4rem; }
.study-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.study-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.35rem, 1rem + 1vw, 2rem); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--raised); box-shadow: var(--shadow-card); }
.study-card h3 { max-width: 32ch; margin-bottom: .65rem; font: 600 1.55rem/1.2 var(--font-display); }
.study-card h3 a { text-decoration: none; }
.study-card h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.study-card > p:not(.eyebrow) { max-width: 66ch; color: var(--ink-soft); }
.study-card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding-top: .5rem; font-weight: 700; }
.study-resource-links { margin-top: 4rem; }
.study-home { background: var(--paper); border-block: 1px solid var(--rule-soft); }
.study-home-grid { margin-top: 1.5rem; }
.study-home-more { margin: 1.5rem 0 0; }
.study-correction { max-width: 70ch; margin: .9rem 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.study-article-hero { padding-bottom: 3rem; }
.study-article-hero h1 { max-width: 25ch; }
.study-byline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.4rem; font-size: .92rem; font-weight: 700; }
.study-ai-note { max-width: 76ch; margin: .5rem 0 0; color: var(--ink-soft); font-size: .88rem; }
.study-layout { display: grid; gap: 2rem; padding-block: 3rem 4rem; align-items: start; }
.study-sidebar { min-width: 0; }
.study-toc { padding: 1rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); }
.study-toc summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.study-toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.study-toc li { padding-block: .35rem; line-height: 1.4; }
.study-toc a { font-size: .93rem; }
.study-article { min-width: 0; }
.study-prose { max-width: 70ch; }
.study-prose > section { scroll-margin-top: 1.5rem; }
.study-prose h2 { margin: 2.5rem 0 .75rem; font: 600 clamp(1.55rem, 1.25rem + 1vw, 2rem)/1.2 var(--font-display); }
.study-prose h3 { margin: 1.25rem 0 .6rem; font-size: 1.12rem; }
.study-prose p, .study-prose li { line-height: 1.72; }
.study-prose p { max-width: 70ch; }
.study-prose li + li { margin-top: .35rem; }
.study-checklist, .study-example, .study-sources, .study-discovery { margin-top: 2rem; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); }
.study-checklist h2, .study-example h2, .study-sources h2, .study-discovery h2 { margin-top: 0; }
.study-checklist ul, .study-sources ul { padding-left: 1.25rem; }
.study-example { border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber-soft) 30%, var(--raised)); }
.study-example > :last-child, .study-discovery > :last-child { margin-bottom: 0; }
.study-next { margin-top: 2rem; padding: 1.3rem; border-radius: var(--radius); background: var(--petrol-tint); }
.study-next h2 { margin-bottom: .75rem; font: 600 1.35rem/1.2 var(--font-display); }
.study-next ul { margin: 0; padding-left: 1.2rem; }
.study-next li { padding-block: .3rem; line-height: 1.45; }
.study-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.study-cta .button { min-height: 44px; padding: .6rem .85rem; font-size: .88rem; }
.study-related { padding-block: 0 4rem; }
.study-guide-links { margin-top: 1.1rem; }
.study-guide-links h3 { font: 700 1.05rem/1.3 var(--font-body); }
.study-guide-links ul { margin-bottom: 0; padding-left: 1.2rem; }
.study-guide-links li { padding-block: .25rem; }

/* Static outline weights preserve strict style-src 'self'. */
.w-2{width:2%}.w-3{width:3%}.w-4{width:4%}.w-5{width:5%}.w-6{width:6%}.w-7{width:7%}.w-8{width:8%}.w-10{width:10%}.w-12{width:12%}.w-15{width:15%}.w-17{width:17%}.w-18{width:18%}.w-19{width:19%}.w-22{width:22%}.w-30{width:30%}.w-31{width:31%}.w-40{width:40%}.w-50{width:50%}.w-51{width:51%}

/* ---------- Free practice ---------- */
.practice-directory { margin-top: 2.5rem; padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.practice-directory h2 { grid-column: 1 / -1; font: 600 1.5rem/1.2 var(--font-display); margin: 0 0 .25rem; }
.practice-directory a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.practice-content { max-width: 56rem; padding-block: 3rem 5rem; }
.practice-content > form { margin-top: 1.5rem; }
.practice-privacy { color: var(--ink-soft); font-size: .95rem; }
.practice-questions { display: grid; gap: 1.25rem; }
.practice-question { min-width: 0; margin: 0; padding: clamp(1.25rem, 1rem + 2vw, 2rem); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.practice-question legend { display: grid; gap: .5rem; padding: 0; max-width: 100%; font: 700 1.12rem/1.55 var(--font-body); }
.question-number, .question-domain { font: 700 .72rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.question-domain { color: var(--petrol); }
.question-instruction { margin: 1.25rem 0 .6rem; color: var(--ink-soft); font-size: .9rem; }
.question-choices { display: grid; gap: .6rem; }
.practice-choice { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--raised); cursor: pointer; line-height: 1.5; }
.practice-choice:focus-within { outline: 3px solid var(--petrol); outline-offset: 2px; }
.practice-choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petrol); }
.practice-question[data-result='correct'] { border-color: var(--ok); }
.practice-question[data-result='incorrect'] { border-color: var(--no); }
.practice-question[data-result='correct'] .practice-choice:has(input:checked) { background: color-mix(in srgb, var(--ok) 10%, var(--raised)); }
.practice-question[data-result='incorrect'] .practice-choice:has(input:checked) { background: color-mix(in srgb, var(--no) 10%, var(--raised)); }
.question-explanation { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.question-explanation summary { width: fit-content; min-height: 44px; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.question-explanation li { margin: .6rem 0; line-height: 1.55; }
.question-citations { font-size: .9rem; color: var(--ink-soft); }
.practice-controls { margin: 1.5rem 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.practice-controls [role='status'] { flex-basis: 100%; margin: 0; font-weight: 700; }
.practice-controls [role='status']:empty { display: none; }
.practice-hero { padding: 2rem 0 2.75rem; }
.practice-hero .back-link { margin-bottom: 1.5rem; }
.practice-hero h1 { margin-bottom: 1.1rem; }
.practice-page { scroll-behavior: auto; }

/* ---------- Family footer ---------- */
footer {
  background-color: var(--night);
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--night-soft);
  font-size: var(--step--1);
  padding: clamp(2.75rem, 2rem + 3vw, 4rem) 0;
}
.footer-grid { display: grid; gap: 2.5rem 3rem; }
.footer-grid strong { font: 600 1.4rem/1.2 var(--font-display); margin-left: .6rem; vertical-align: .65rem; color: var(--night-ink); }
.footer-grid img { border-radius: 9px; }
.footer-grid p { max-width: 58ch; margin-top: .85rem; }
footer a { color: var(--night-ink); text-decoration-color: rgba(228, 238, 235, .35); }
footer a:hover { color: #fff; }
footer :focus-visible { outline-color: #f2b65a; box-shadow: none; }

/* ---------- Responsive layouts ---------- */
@media (min-width: 52rem) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .study-layout { grid-template-columns: minmax(13rem, .28fr) minmax(0, .72fr); }
  .study-sidebar { position: sticky; top: 1.5rem; }
  .study-toc summary { display: none; }
  .study-toc:not([open]) > nav { display: block; }
  .study-toc nav ol { margin-top: 0; }
}
@media (min-width: 60rem) {
  .study-layout { grid-template-columns: minmax(14rem, .3fr) minmax(0, .7fr); gap: 3rem; }
  .study-article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .36fr); align-items: start; gap: 2rem; }
  .study-next { position: sticky; top: 1.5rem; margin-top: 0; }
}
@media (min-width: 60rem) {
  .inside-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .source-section { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .cta-band .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); row-gap: .5rem; }
  .cta-band .wrap > h2, .cta-band .wrap > p { grid-column: 1; }
  .cta-band .wrap > .button { grid-column: 2; grid-row: 1 / 3; justify-self: start; }
  .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero-devices .device { --device-h: clamp(26rem, 36vw, 31rem); }
  .study-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 63.99rem) {
  .hero-copy { max-width: 46rem; }
  .hero-copy h1 { max-width: 19ch; }
  .hero-devices { max-width: 34rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 56rem) {
  .header-inner { gap: .7rem 1rem; }
  .site-header nav:not(.langs) { order: 3; width: 100%; margin-left: 0; }
  .site-header .langs { margin-left: auto; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .fact-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .study-steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .brand strong { font-size: 1.15rem; }
  .brand small { max-width: 24ch; font-size: .65rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .header-inner { gap: .5rem; }
  .site-header .langs { gap: .2rem; }
  .site-header .langs a { min-width: 40px; padding-inline: .4rem; }
  .site-header nav:not(.langs) { gap: 1rem; }
  .site-header nav a { font-size: .88rem; }
  .hero-actions .button { max-width: none; }
  .hero-devices .device { --device-h: clamp(16rem, 60vw, 24rem); }
  .hero-chip { font-size: .72rem; padding: .55rem .7rem; }
  .device-caption { font-size: .75rem; }
  .screen-pair { gap: 1rem; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .screen-pair .device { --device-h: clamp(16rem, 70vw, 26rem); scroll-snap-align: start; }
  .exam-grid, .method-grid, .resource-grid, .related-links, .practice-directory, .study-card-grid { grid-template-columns: 1fr; }
  .practice-directory h2 { grid-column: auto; }
  .metrics { gap: .7rem; }
  .metrics > div { padding: 1rem .8rem; }
  .metrics b { font-size: 2rem; }
  .metrics span { font-size: .76rem; }
  .domain-row { grid-template-columns: 1fr 55px; gap: .4rem; }
  .domain-track { grid-column: 1 / -1; grid-row: 2; }
  .domain-row strong { grid-column: 2; grid-row: 1; }
  .practice-question { padding: 1.1rem 1rem; }
  .resource-card { padding: 1.5rem; }
}
@media (max-width: 25rem) {
  .brand small { display: none; }
  .brand strong { max-width: 12ch; }
  .fact-strip { padding: 1.2rem; }
  .fact-item { padding-inline: .7rem; }
  .app-stats > div { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .device-screen { border: 2px solid CanvasText; }
  .hero::before, .family-hero::before, .hero-devices::before, .hero-devices::after, .inside-band::before { display: none; }
  .practice-choice, .button { border: 2px solid ButtonText; }
}

/* Native screenshot lightbox, matching the sibling sites' enlarge interaction. */
.screen-zoom{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit}.screen-zoom img{display:block;width:100%;height:auto}.screen-zoom:focus-visible{outline:4px solid var(--amber);outline-offset:-5px}.screen-dialog{width:min(580px,calc(100% - 28px));max-height:90dvh;padding:20px;border:1px solid var(--rule);border-radius:18px;background:var(--raised);color:var(--ink);overflow:auto}.screen-dialog::backdrop{background:rgba(7,19,21,.85)}.screen-dialog>button{display:block;margin-left:auto;border:1px solid var(--rule);border-radius:8px;background:var(--raised);color:var(--ink);padding:10px 16px;font:700 1rem var(--sans);cursor:pointer}.screen-dialog p{font-weight:700;margin:14px 0}.screen-dialog>img{display:block;width:100%;height:auto;border-radius:12px}
.device-screen .screen-zoom img{width:100%;height:auto;aspect-ratio:var(--screen-ratio,.5625);object-fit:contain;max-width:none}

body:has(.screen-dialog[open]){overflow:hidden}.screen-dialog>button{position:sticky;top:0;z-index:1}

.guide-hero .back-link{display:flex;width:fit-content;min-height:44px;margin-bottom:1.5rem}

/* The same phone gallery belongs to each dedicated trade page. */
.trade-gallery-section{background:var(--raised);border-bottom:1px solid var(--rule-soft)}.trade-gallery{display:flex;min-width:0;align-items:flex-start;gap:clamp(1.25rem,2.4vw,2rem);max-width:100%;overflow-x:auto;overflow-y:hidden;padding:2rem 1rem 2.5rem;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}.trade-gallery .device{--device-h:clamp(22rem,29vw,26rem);scroll-snap-align:start}.trade-gallery .device-caption{max-width:24ch}.trade-gallery:focus-visible{outline-offset:4px}
