/* One stylesheet for every page (loaded with a ?v=hash so a new deploy is never served stale).
   Design: design_handoff_homepage_redesign, 14 Oct 2026. Every colour is a variable so the planned
   palette swap (navy + runway amber) is one edit in :root. */
:root {
  /* surfaces */
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --bg-dark: #000000;
  /* text */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --ink-foot-link: #424245;
  --ink-on-dark: #f5f5f7;
  --ink-on-dark-2: #a1a1a6;
  /* lines */
  --hairline: #d2d2d7;
  --hairline-soft: rgba(0, 0, 0, 0.06);
  --hairline-nav: rgba(0, 0, 0, 0.08);
  --border-dark: #2c2c2e;
  /* actions */
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-ink: #ffffff;
  --link: #0066cc;
  /* eyebrow accents */
  --accent-warm: #bf4800;
  --accent-warm-on-dark: #ff9f45;
  /* badges */
  --badge-store-bg: #1d1d1f;
  --badge-store-ink: #ffffff;
  --badge-soon-bg: #e8e8ed;
  --badge-soon-ink: #6e6e73;
  /* nav */
  --nav-bg: rgba(251, 251, 253, 0.78);
  /* screenshot frames */
  --ph-fill: #f5f5f7;
  --ph-dark-fill: #111111;
  /* shadows */
  --shadow-tile: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --accent: var(--page-accent, var(--btn));
  --good: #1d7a3a;
  --good-bg: #e9f6ed;
  --bad: #c4201a;
  --bad-bg: #fdeceb;
  --wrap: 1024px;
  --pad: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--btn); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: .6rem 1rem; border-radius: 980px; z-index: 99; }
.skip:focus { left: 8px; text-decoration: none; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline-nav); }
.nav nav { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .wordmark { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.nav .wordmark:hover, .nav .links a:hover { text-decoration: none; }
.nav .links { display: flex; gap: 28px; font-size: 13px; }
.nav .links a { color: var(--ink); opacity: .8; white-space: nowrap; }
.nav .links a:hover { opacity: 1; }
@media (max-width: 480px) { .nav nav { gap: 12px; } .nav .links { gap: 16px; } }
@media (max-width: 380px) { .nav .wordmark { font-size: 14px; } .nav .links { gap: 12px; font-size: 12px; } }

/* ---- hero ---- */
.hero { padding: 88px var(--pad) 0; text-align: center; overflow: hidden; }
.hero .eyebrow { margin: 0 0 14px; font-size: 19px; font-weight: 600; color: var(--accent-warm); letter-spacing: -0.01em; }
.hero h1 { margin: 0 auto; max-width: 900px; font-size: clamp(44px, 8vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lede { margin: 24px auto 0; max-width: 640px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.01em; text-wrap: pretty; }
.cta { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; cursor: pointer; border: 0; font: inherit; font-size: 17px; background: var(--accent); color: var(--btn-ink); padding: 12px 24px; border-radius: 980px; font-size: 17px; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.sm { padding: 9px 20px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn.ghost:hover { filter: none; background: var(--bg-alt); }
.btn.soon, .btn[disabled] { background: var(--badge-soon-bg); color: var(--badge-soon-ink); cursor: default; filter: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.textlink { font-size: 17px; color: var(--link); }

/* screenshots (real images; width/height set in the markup, so no layout shift) */
.shot { overflow: hidden; background: var(--ph-fill); }
.shot img { display: block; width: 100%; height: auto; }
.shot--hero { margin: 72px auto 0; max-width: 1080px; aspect-ratio: 16 / 8; border-radius: 28px 28px 0 0; border: 1px solid var(--hairline-soft); border-bottom: none; }
.shot--ftile { margin: 32px -40px 0; background: #fff; }
.shot--dark { margin: 64px auto 0; aspect-ratio: 16 / 8; border-radius: 28px; border: 1px solid var(--border-dark); background: var(--ph-dark-fill); }

/* ---- stats ---- */
.stats { background: var(--card); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.stats dl { margin: 0 auto; max-width: var(--wrap); padding: 44px var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stats .s { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 14px; color: var(--ink-2); }
.stats dd { margin: 0 0 4px; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }

/* ---- generic section ---- */
.sec { padding: 120px var(--pad); scroll-margin-top: 48px; }
.sec--alt { background: var(--bg-alt); }
.sec .in { max-width: var(--wrap); margin: 0 auto; }
.sec .kicker { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.sec h2 { max-width: 720px; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.sec .sec-lede { margin: 20px 0 0; max-width: 620px; font-size: 19px; line-height: 1.47; color: var(--ink-2); text-wrap: pretty; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

/* ---- free tiles ---- */
.ftiles { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.ftile { background: var(--card); border-radius: 28px; padding: 44px 40px 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-tile); }
.ftile .cat { font-size: 14px; font-weight: 600; color: var(--accent-warm); }
.ftile .cat.alt { color: var(--link); }
.ftile h3 { margin: 8px 0 0; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.ftile .desc { margin: 12px 0 0; font-size: 17px; line-height: 1.47; color: var(--ink-2); text-wrap: pretty; }
.ftile .row { margin-top: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ftile .note { font-size: 14px; color: var(--ink-3); }

/* ---- exam cards ---- */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.xcard { display: flex; flex-direction: column; gap: 6px; padding: 32px; background: var(--card); border-radius: 22px; border: 1px solid var(--hairline-soft); color: var(--ink); transition: transform .3s, box-shadow .3s; }
.xcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); text-decoration: none; }
.xcard .cat { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.xcard h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.xcard .desc { font-size: 15px; line-height: 1.47; color: var(--ink-2); flex: 1; }
.xcard .foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.xcard .more { color: var(--link); }
.badge { padding: 4px 10px; border-radius: 980px; font-size: 12px; font-weight: 500; background: var(--badge-store-bg); color: var(--badge-store-ink); }
.badge.soon { background: var(--badge-soon-bg); color: var(--badge-soon-ink); }

/* ---- how it works ---- */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px; text-align: left; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.steps .n { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.steps h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { font-size: 17px; line-height: 1.47; color: var(--ink-2); text-wrap: pretty; }

/* ---- generated practice (dark) ---- */
.sec--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.sec--dark .kicker { color: var(--accent-warm-on-dark); }
.sec--dark h2 { max-width: 820px; font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05; letter-spacing: -0.035em; }
.sec--dark .sec-lede { margin: 24px auto 0; max-width: 600px; color: var(--ink-on-dark-2); }
.feats { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.feats h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feats p { font-size: 15px; line-height: 1.5; color: var(--ink-on-dark-2); }

/* ---- FAQ ---- */
.sec--faq .in { max-width: 760px; }
.sec--faq h2 { margin: 0 0 48px; max-width: none; }
.faqs { border-top: 1px solid var(--hairline); }
.faqs details { border-bottom: 1px solid var(--hairline); }
.faqs summary { cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faqs .plus { font-size: 24px; font-weight: 300; color: var(--ink-2); transition: transform .2s; }
.faqs details[open] .plus { transform: rotate(45deg); }
.faqs details p { margin: 0 0 24px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* ---- footer ---- */
.foot-site { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.foot-site .in { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 32px; }
.foot-site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.foot-site .foot-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.foot-site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-site a { color: var(--ink-foot-link); }
.foot-site .legal { margin: 20px 0 0; max-width: 820px; text-wrap: pretty; }

@media (max-width: 700px) { .sec { padding: 80px var(--pad); } .hero { padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


/* ================= sub pages (exam pages, free trainers, privacy) ================= */
.hero--sub { padding: 64px var(--pad) 72px; }
.hero--sub h1 { font-size: clamp(38px, 6.5vw, 68px); max-width: 880px; }
.hero--sub .eyebrow { color: var(--accent); font-size: 17px; }
.hero--sub .lede { max-width: 680px; }
.hero--sub .note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs { font-size: 13px; color: var(--ink-3); margin: 0 0 22px; }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-current] { color: var(--ink); }
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store-badge:hover { filter: brightness(1.15); text-decoration: none; }
.store-badge img { display: block; height: 48px; width: auto; }
.stats--accent dd { color: var(--accent); }
.narrow { max-width: 760px; margin: 0 auto; }
.sec h2.h2-sm { font-size: clamp(30px, 4.4vw, 44px); }

.fgrid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 48px; }
.fgrid > div { border-top: 1px solid var(--hairline); padding-top: 22px; }
.fgrid h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.fgrid p { font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.facts { margin: 40px 0 0; border-top: 1px solid var(--hairline); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 17px; line-height: 1.45; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; } }
.fine { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.5; }

.cta-card { background: var(--bg-dark); color: var(--ink-on-dark); border-radius: 28px; padding: clamp(32px, 6vw, 64px); text-align: center; }
.cta-card h2 { max-width: 640px; margin: 0 auto; font-size: clamp(32px, 5vw, 52px); }
.cta-card p { margin: 16px auto 0; max-width: 520px; font-size: 19px; line-height: 1.47; color: var(--ink-on-dark-2); }
.cta-card .btn-row { justify-content: center; margin-top: 28px; }
.cta-card .btn.soon { background: #1c1c1e; color: var(--ink-on-dark-2); }
.cta-card .btn:not(.soon) { background: var(--accent); }
.related { margin: 40px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.related h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.related ul { margin: 0; padding-left: 1.1rem; }

.prose { max-width: 760px; margin: 0 auto; padding: 72px var(--pad) 120px; }
.prose h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 28px; }
.prose h2, .prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 8px; }
.prose p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; }
.prose .fine { color: var(--ink-3); }

/* ---- question cards (sample widget on exam pages and the trainer) ---- */
.q-card { background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-tile); border: 1px solid var(--hairline-soft); }
.q-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.q-stem { margin: 0 0 20px; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; font: inherit; font-size: 17px; line-height: 1.4; color: var(--ink); background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover:not([disabled]) { border-color: var(--accent); }
.opt .l { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--bg-alt); color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt.right { border-color: var(--good); background: var(--good-bg); box-shadow: inset 0 0 0 1px var(--good); }
.opt.right .l { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--bad); }
.opt.wrong .l { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
.expl { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.expl.good { box-shadow: inset 3px 0 0 var(--good); }
.expl.bad { box-shadow: inset 3px 0 0 var(--bad); }
.expl b.v { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }
.expl .ref { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 980px; background: var(--bg-alt); color: var(--ink-2); font-weight: 600; }

/* ---- the free web trainer ---- */
.app { max-width: 860px; margin: 0 auto; background: var(--card); border-radius: 28px; box-shadow: var(--shadow-tile); border: 1px solid var(--hairline-soft); padding: clamp(22px, 4vw, 44px); min-height: 420px; }
.app h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; max-width: none; outline: none; }
.app .q-card { box-shadow: none; padding: 0; border: 0; border-radius: 0; background: transparent; }
.app .bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.app .crumb { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.app .note, .note { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 0; }
.app .tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 22px 0 26px; }
.app .tile { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--bg-alt); border: 0; border-radius: 20px; padding: 20px 22px; cursor: pointer; }
.app .tile:hover:not([disabled]) { background: #ececf0; }
.app .tile b { font-size: 19px; letter-spacing: -0.015em; }
.app .tile span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.app .tile.primary { background: var(--accent); color: #fff; }
.app .tile.primary span { color: rgba(255, 255, 255, .85); }
.app .tile.primary:hover { filter: brightness(1.08); background: var(--accent); }
.progress { height: 6px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.app .rows { display: grid; gap: 10px; }
.app .row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; background: var(--bg); border: 1px solid var(--hairline-soft); border-radius: 16px; padding: 14px 18px; font: inherit; color: var(--ink); text-align: left; width: 100%; }
.app button.row { cursor: pointer; }
.app button.row:hover { border-color: var(--accent); }
.app .row .progress { grid-column: 1 / -1; }
.timer { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 980px; background: var(--bg-alt); }
.timer.low { background: var(--bad-bg); color: var(--bad); }
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.palette button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; }
.palette button.done { background: color-mix(in srgb, var(--accent) 14%, #fff); border-color: var(--accent); }
.palette button.cur { box-shadow: 0 0 0 2px var(--accent); }
.palette button.flag::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #ff9f0a; }
.score { font-size: clamp(56px, 12vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 8px 0; }
.score.pass { color: var(--good); }
.score.fail { color: var(--bad); }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 980px; padding: 3px; }
.seg button { font: inherit; font-size: 14px; padding: 6px 16px; background: transparent; color: var(--ink); border: 0; border-radius: 980px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
.notes-card { background: var(--bg); border: 1px solid var(--hairline-soft); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
.notes-card h3 { font-size: 18px; margin-bottom: 8px; }
.notes-card ul { margin: 0; padding-left: 1.1rem; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.notes-card li { margin-bottom: 6px; }
.ack { font-size: 12px; color: var(--ink-3); line-height: 1.5; border-top: 1px solid var(--hairline); margin-top: 32px; padding-top: 16px; }
.noscript { padding: 18px 20px; background: var(--bg-alt); border-radius: 16px; color: var(--ink-2); }
.app .cta-card { margin-top: 32px; }
.app details.faq, .app .faqs details { border-color: var(--hairline); }
.app .facts { margin-top: 18px; }
.app details summary { font-size: 17px; }
.app details p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.app details { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.app h3 { font-size: 19px; margin: 28px 0 10px; }
.sr-only { position: absolute; left: -9999px; }

html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
@media print { .nav, .foot-site, .btn { display: none; } }

/* ---- app icons (opaque 1024px squares from the apps, shown as 512px WebP; the rounded shape is iOS's, applied here) ---- */
.app-icon { display: block; width: 64px; height: 64px; border-radius: 22.37%; box-shadow: 0 1px 3px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); background: var(--bg-alt); }
.app-icon--md { width: 64px; height: 64px; margin-bottom: 14px; }
.app-icon--lg { width: 88px; height: 88px; margin-bottom: 18px; }
.app-icon--hero { width: 120px; height: 120px; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); }
.cta-card .app-icon { margin: 0 auto 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.ftile .app-icon { margin-bottom: 20px; }

@media (min-width: 601px) {
  .xcard:last-child:nth-child(odd), .xcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon cat foot" "icon name foot" "icon desc foot"; column-gap: 28px; row-gap: 4px; align-items: center; }
  .xcard:last-child .app-icon { grid-area: icon; margin: 0; width: 88px; height: 88px; }
  .xcard:last-child .cat { grid-area: cat; }
  .xcard:last-child h3 { grid-area: name; }
  .xcard:last-child .desc { grid-area: desc; flex: none; max-width: 52ch; }
  .xcard:last-child .foot { grid-area: foot; margin: 0; flex-direction: column; align-items: flex-end; gap: 14px; }
}

/* 4 features / 4 stats never leave an orphan: 2 x 2 on tablets, 1 column on phones */
.fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* sub-page FAQ shares the left edge of every other section; only the rows stay narrow for readability */
.sec--faq.left .in { max-width: var(--wrap); }
.sec--faq.left .faqs { max-width: 760px; }
.sec--faq.left h2 { margin-bottom: 36px; }

/* the "next" card inside the trainer: light, so it is not a black card inside a white card */
.app .cta-card { background: var(--bg-alt); color: var(--ink); padding: 32px; text-align: left; border-radius: 22px; }
.app .cta-card h2 { font-size: 28px; margin: 0; max-width: none; }
.app .cta-card p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.app .cta-card .btn-row { justify-content: flex-start; margin-top: 18px; }

/* ================= motion (all of it is off for prefers-reduced-motion; content is visible without JS) ================= */
:root { interpolate-size: allow-keywords; --ease: cubic-bezier(.2, .7, .2, 1); }
.btn { transition: filter .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.opt:active:not([disabled]) { transform: scale(.992); }
.ftile { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ftile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0, 0, 0, .09); }
.app-icon { transition: transform .4s var(--ease); }
.xcard:hover .app-icon { transform: scale(1.07) rotate(-1.5deg); }
.textlink { transition: letter-spacing .2s; }
.faqs details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faqs details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes riseBig { from { opacity: 0; transform: translateY(64px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
  @keyframes appIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  /* hero entrance (pure CSS, so it also works without JS) */
  .hero .crumbs, .hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .note { animation: rise .9s var(--ease) both; }
  .hero .eyebrow { animation-delay: .04s; } .hero h1 { animation-delay: .1s; } .hero .lede { animation-delay: .18s; } .hero .cta { animation-delay: .26s; } .hero .note { animation-delay: .32s; }
  .hero .app-icon--hero { animation: pop .8s var(--ease) both; }
  .shot--hero { animation: riseBig 1.2s var(--ease) .32s both; }
  /* scroll reveals */
  .js:not(.no-motion) .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
  .js:not(.no-motion) .rv--zoom { transform: translateY(40px) scale(.965); }
  .js:not(.no-motion) .rv.in-view { opacity: 1; transform: none; }
  .js:not(.no-motion) .stats dd.cu { opacity: 0; }
  .js:not(.no-motion) .stats dd.cu.counting { opacity: 1; transition: opacity .3s; }
  /* trainer and sample: each new screen eases in (in-place updates such as picking an answer do not replay it) */
  .app.view-in > *, #sample.view-in > * { animation: appIn .35s var(--ease) both; }
  .hero .app-icon--hero { will-change: transform; }
  .shot--hero img { will-change: transform; }
}
@media print { .js .rv { opacity: 1 !important; transform: none !important; } }
