/*
  AI Career Impact — product design system.

  One stylesheet for the whole application. It keeps the three journeys visually consistent while
  leaving their content and semantics distinct: nothing here implies a shared score.

  Structure: tokens, base, layout, header/footer, components, journey accents, responsive.
*/

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ink: #e5eaf4;
  --ink-strong: #f5f7fc;
  --ink-muted: #bdc7d8;
  --ink-subtle: #9eabc0;

  --surface: #090d17;
  --surface-raised: #121a2a;
  --surface-sunken: #0e1523;
  --border: #26334a;
  --border-strong: #435370;
  --rule: #263147;

  --brand: #647bf4;
  --brand-dark: #4d60d5;
  --brand-accent: #a5b2ff;
  --focus: #b6c1ff;
  --violet: #a477f5;

  --danger: #ffb4b4;
  --danger-border: #9a4d5c;
  --danger-surface: #321821;

  --warn-ink: #ffe0a3;
  --warn-border: #8c6a2d;
  --warn-surface: #2b2418;

  --radius-sm: .55rem;
  --radius-md: .85rem;
  --radius-lg: 1.1rem;

  --space-1: .35rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  --shell-width: 75rem;
  --measure: 47rem;
  --shadow-card: 0 1rem 2.8rem rgba(0, 0, 0, .24);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
          radial-gradient(ellipse at 50% -35rem, rgba(70, 85, 190, .19), transparent 54rem),
          var(--surface);
  line-height: 1.55;
  /* A long unbroken token (a pasted URL, a course code) must wrap rather than widen the page. */
  overflow-wrap: break-word;
  /* Sticky footer: the shell grows, the footer stays at the bottom on short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink-strong); }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.7rem); letter-spacing: -.045em; margin: var(--space-2) 0 var(--space-4); }
h2 { font-size: 1.45rem; margin: 0 0 var(--space-2); }
h3 { font-size: 1.12rem; margin: 0 0 var(--space-2); }
h4 { font-size: 1rem; margin: 0 0 var(--space-1); }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: #b7c2ff; }
a:hover { color: #d0d7ff; }

/* A visible focus ring on every interactive element, never removed. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: hidden until focused, then visible at the top of the page. */
.skip-link {
  position: absolute; left: var(--space-3); top: -4rem; z-index: 10;
  background: var(--surface-raised); color: var(--ink-strong);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-weight: 700; text-decoration: none;
  transition: top .15s ease-in-out;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- layout ---------- */
.page-shell {
  width: min(100% - 2rem, var(--shell-width));
  margin: 0 auto;
  padding: var(--space-6) 0 4rem;
  flex: 1 0 auto;
}
.page-header { max-width: var(--measure); margin-bottom: var(--space-5); }
.eyebrow {
  color: #b1bcff; font: 700 .72rem/1.4 var(--font-mono);
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: .65rem;
}
.intro { color: var(--ink-muted); font-size: 1.1rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-1); }

/* ---------- header ---------- */
.site-header { background: rgba(9, 13, 23, .88); border-bottom: 1px solid rgba(89, 108, 150, .24); }
.site-header-inner {
  width: min(100% - 2rem, var(--shell-width));
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  padding: 1rem 0;
}
.site-brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 760; font-size: 1rem; color: var(--ink-strong);
  text-decoration: none; letter-spacing: -.025em;
}
.site-brand.is-current .brand-mark { box-shadow: 0 0 1.35rem rgba(130, 145, 255, .5); }
.brand-mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem;
  background: linear-gradient(140deg, #7187ff, #8b62db); color: white;
  font: 800 .72rem var(--font-mono); letter-spacing: -.08em;
  box-shadow: 0 0 1.2rem rgba(108, 121, 239, .28);
}
.brand-light { color: var(--ink-subtle); font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-muted); text-decoration: none; font-weight: 620; font-size: .9rem;
  padding: .55rem .8rem; border: 1px solid transparent; border-radius: .65rem;
}
.site-nav a:hover { color: var(--ink-strong); background: rgba(255, 255, 255, .045); }
.site-nav a.is-current { color: var(--ink-strong); border-color: var(--border); background: rgba(130, 145, 255, .09); }

/* ---------- footer ---------- */
.site-footer {
  background: #0b101c; border-top: 1px solid var(--border);
  margin-top: auto; padding: var(--space-5) 0;
}
.site-footer-inner { width: min(100% - 2rem, var(--shell-width)); margin: 0 auto; }
.site-footer-note { color: var(--ink-subtle); font-size: .92rem; max-width: var(--measure); }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-3) 0; }
.site-footer-nav a { font-weight: 650; }
.site-footer-meta { color: #8190a9; font-size: .85rem; margin: 0; }

/* ---------- development mode ---------- */
.dev-banner { background: var(--warn-surface); border-bottom: 2px solid var(--warn-border); color: var(--warn-ink); }
.dev-banner-inner {
  width: min(100% - 2rem, var(--shell-width)); margin: 0 auto;
  padding: var(--space-2) 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2);
  align-items: baseline; font-size: .92rem;
}
.dev-banner strong { letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.dev-banner-fixtures { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.dev-section { border: 2px dashed var(--warn-border); background: var(--warn-surface); color: var(--warn-ink); }
.dev-section h2 { color: var(--warn-ink); }
.dev-section a { color: var(--warn-ink); }

/* ---------- cards and panels ---------- */
.panel {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-card);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }

/* ---------- alerts ---------- */
.alert { border-radius: var(--radius-md); padding: var(--space-3) 1.3rem; margin: 0 0 var(--space-4); }
.alert strong { display: block; }
.alert p { margin: var(--space-1) 0 0; }
.alert-dev { border: 2px solid var(--warn-border); background: var(--warn-surface); color: var(--warn-ink); }
.alert-info { background: var(--surface-sunken); border: 1px solid var(--border); border-left: 4px solid var(--brand-accent); border-radius: var(--radius-md); }
.alert-error { background: var(--danger-surface); border: 1px solid var(--danger-border); color: var(--danger); }
.notice { background: var(--surface-sunken); border-left: 4px solid #8495ff; padding: .9rem var(--space-3); margin-bottom: 0; }
/* Legacy class retained so journey templates keep working; styled as the dev alert. */
.fixture-warning { border: 2px solid var(--warn-border); border-radius: var(--radius-md); background: var(--warn-surface); color: var(--warn-ink); padding: var(--space-3) 1.3rem; margin: 0 0 var(--space-4); }
.fixture-warning strong { letter-spacing: .05em; }
.fixture-warning p { margin: var(--space-1) 0 0; }
.fixture-evidence-label { background: var(--warn-surface); border: 1px solid #c28b00; padding: var(--space-2); margin-bottom: var(--space-3); font-weight: 700; border-radius: var(--radius-sm); }

/* ---------- forms ---------- */
.work-form { margin-top: 1.25rem; }
.helper { color: var(--ink-subtle); font-size: .95rem; margin: var(--space-1) 0 .7rem; }
.field { margin: 1.65rem 0; }
.field-short { max-width: 17rem; }
label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.required, .optional { color: var(--ink-subtle); font-size: .78rem; font-weight: 500; margin-left: var(--space-1); }
input, textarea, select {
  display: block; width: 100%; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: .75rem .85rem;
  color: var(--ink-strong); background: #0b111d; font: inherit;
}
textarea { resize: vertical; min-height: 6rem; }
[aria-invalid="true"] { border-color: var(--danger-border); border-width: 2px; }
/* Errors carry a text marker as well as colour, so colour is never the only signal. */
.field-error { color: var(--danger); font-weight: 650; margin: var(--space-1) 0 0; }
.field-error::before { content: "Error: "; font-weight: 800; }
.input-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.input-options > div { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); }

/* ---------- buttons ---------- */
button, .button-link, .page-action a {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem;
  min-height: 3rem; border: 1px solid transparent; border-radius: .7rem;
  padding: .8rem 1.2rem; background: linear-gradient(115deg, #6279f0, #795bd6); color: #fff;
  font: inherit; font-weight: 720; text-decoration: none; cursor: pointer;
  box-shadow: 0 .55rem 1.5rem rgba(80, 82, 190, .2);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
button:hover, .button-link:hover, .page-action a:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 .75rem 1.8rem rgba(80, 82, 190, .34); }
.button-secondary {
  background: rgba(255, 255, 255, .025); color: var(--ink-strong);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.button-secondary:hover { background: rgba(132, 149, 255, .1); color: #fff; border-color: #7787f0; box-shadow: 0 .6rem 1.5rem rgba(80, 82, 190, .17); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.button-row form { margin: 0; }
.page-action { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- definition lists ---------- */
.summary-list, .measure-details { margin: 0; }
.summary-list div, .measure-details div {
  display: flex; justify-content: space-between; gap: var(--space-3);
  border-top: 1px solid var(--rule); padding: .55rem 0;
}
dt { color: var(--ink-subtle); }
dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- measures ---------- */
.results-section { margin-top: var(--space-6); }
.measure-grid, .factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.measure-card { display: flex; flex-direction: column; }
.measure-card p:last-child { color: var(--ink-muted); margin-bottom: 0; }
.measure-value { margin: .2rem 0 .8rem; }
.measure-value strong { font-size: 2.2rem; line-height: 1; }
.measure-value span { color: var(--ink-subtle); }
.factor-grid { margin-top: var(--space-5); }
.factor-grid ul, .panel ul.plain { padding-left: 1.25rem; margin-bottom: 0; }
.factor-grid li + li { margin-top: .55rem; }

/* ---------- narrative ---------- */
.narrative-section { margin-top: var(--space-6); }
.narrative-panel { max-width: 54rem; }
.narrative-panel h3:not(:first-child) { margin-top: 1.6rem; }
.narrative-panel ul { padding-left: 1.25rem; }
.narrative-panel li + li { margin-top: .55rem; }
.narrative-summary { color: var(--ink-muted); font-size: 1.08rem; }
.narrative-caution, .narrative-unavailable { color: var(--ink-subtle); }
.narrative-caution { border-top: 1px solid var(--rule); margin: 1.6rem 0 0; padding-top: var(--space-3); }

/* ---------- evidence ---------- */
.evidence-section { margin-top: var(--space-5); }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--space-3); }
.evidence-category { color: var(--ink-muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.evidence-metric { font-size: 1.1rem; font-weight: 700; }
.evidence-meta div { display: flex; gap: .5rem; margin-bottom: var(--space-1); }
.evidence-meta dt { font-weight: 700; }
.evidence-meta dd { text-align: left; font-weight: 400; }
.evidence-relevance { color: var(--ink-muted); font-size: .95rem; }
/* Long source URLs must never push the page sideways on a phone. */
.evidence-card a { overflow-wrap: anywhere; }

/* ---------- report sections ---------- */
.report-caveat, .unlock-panel { margin-top: var(--space-5); }
.unlock-panel .tier-grid { margin: var(--space-3) 0; }
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.tier { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); background: var(--surface-raised); }
.tier h3 { margin-bottom: var(--space-1); }
.tier ul { padding-left: 1.2rem; margin: var(--space-1) 0 0; }
.tier li + li { margin-top: .3rem; }
.tier-included { background: var(--surface-sunken); }
.price-line { font-weight: 700; margin-top: var(--space-2); }
.paid-report section + section { margin-top: var(--space-5); }
.report-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--ink-subtle); font-size: .9rem; margin: 0; }

/* ---------- home ---------- */
.home-shell { padding-top: 0; }
.home-hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr);
  align-items: center; gap: clamp(1.5rem, 5vw, 5rem); min-height: 34rem; padding: 4.5rem 0 4rem;
}
.hero-copy { position: relative; z-index: 1; max-width: 51rem; }
.hero-copy h1 { max-width: 13ch; font-family: var(--font-display); font-weight: 500; }
.home-lede { max-width: 42rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-muted); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem 1.5rem; margin-top: 1.8rem; }
.hero-actions .button-link { min-height: 3.35rem; padding-inline: 1.45rem; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.home-section { margin-top: clamp(3.4rem, 7vw, 6rem); }
.section-heading { max-width: 47rem; margin-bottom: 1.7rem; }
.section-heading h2 { font-family: var(--font-display); font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -.025em; }
.section-intro { max-width: 42rem; color: var(--ink-muted); }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.journey-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 22rem; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.journey-card::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 2px; opacity: .9; background: linear-gradient(90deg, var(--journey-accent), transparent 82%); }
.journey-card::after { content: ""; position: absolute; z-index: -1; right: -4rem; top: -5rem; width: 12rem; height: 12rem; border-radius: 50%; background: var(--journey-glow); filter: blur(2.5rem); opacity: .28; }
.journey-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--journey-accent) 58%, var(--border)); box-shadow: 0 1.2rem 3rem rgba(0,0,0,.32), 0 0 2rem color-mix(in srgb, var(--journey-accent) 11%, transparent); }
.journey-card:focus-within, .journey-card.is-selected, .journey-card[aria-current="step"] { border-color: var(--journey-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--journey-accent) 28%, transparent), 0 1rem 2.5rem rgba(0,0,0,.3); }
.journey-professional { --journey-accent: #7c91ff; --journey-glow: #4b5fea; }
.journey-university { --journey-accent: #68b6ee; --journey-glow: #367ec2; }
.journey-a-level { --journey-accent: #bc8df4; --journey-glow: #8754c5; }
.journey-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.35rem; }
.journey-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid color-mix(in srgb, var(--journey-accent) 48%, var(--border)); border-radius: .75rem; color: var(--journey-accent); background: color-mix(in srgb, var(--journey-accent) 9%, transparent); font: 700 .72rem var(--font-mono); }
.journey-card .journey-for { color: var(--ink-subtle); font-size: .8rem; margin: 0; }
.journey-card h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.journey-card .journey-question { color: var(--ink-strong); font-weight: 660; font-size: 1.08rem; line-height: 1.45; }
.journey-description { color: var(--ink-muted); font-size: .94rem; }
.journey-card .journey-cta { margin-top: auto; padding-top: 1.25rem; }
.journey-card .journey-cta a { width: 100%; justify-content: space-between; }
.process-section { border-top: 1px solid var(--border); padding-top: clamp(2rem, 4vw, 3.4rem); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 2.3rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.process-steps li { position: relative; padding: 0 1.25rem 0 0; }
.process-steps li:not(:last-child)::after { content: ""; position: absolute; top: .8rem; left: 2.8rem; right: .7rem; height: 1px; background: linear-gradient(90deg, #6076db, rgba(90, 103, 159, .2)); }
.step-index { position: relative; z-index: 1; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: 1rem; border: 1px solid #596ba9; border-radius: 50%; background: var(--surface); color: #b6c2ff; font: 650 .62rem var(--font-mono); }
.process-steps h3 { font-size: .96rem; margin-bottom: .45rem; }
.process-steps p { max-width: 15rem; color: var(--ink-subtle); font-size: .88rem; }
.professional-path { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin-top: 1.6rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: .7rem; color: var(--ink-muted); background: rgba(255,255,255,.02); font-size: .88rem; }
.professional-path .eyebrow { margin: 0 .35rem 0 0; font-size: .62rem; }
.professional-path > span:not(.eyebrow) { color: #a9b5ff; }
.offer-section { border-top: 1px solid var(--border); padding-top: clamp(2rem, 4vw, 3.4rem); }
.home-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-tier-grid .tier { padding: clamp(1.4rem, 3vw, 2rem); }
.home-tier-grid .tier-included { background: linear-gradient(145deg, rgba(89, 110, 212, .12), var(--surface-raised) 68%); }
.home-tier-grid .tier-paid { background: linear-gradient(145deg, rgba(133, 86, 193, .13), var(--surface-raised) 68%); }
.home-tier-grid .eyebrow { font-size: .64rem; }
.home-tier-grid h3 { font-size: 1.3rem; }
.home-tier-grid ul { padding-left: 1.2rem; color: var(--ink-muted); }
.home-tier-grid li + li { margin-top: .45rem; }
.report-price { margin-left: .35rem; color: #c4b2ff; font: 650 1rem var(--font-mono); }
.same-assessment-note { margin-top: 1rem; color: var(--ink-subtle); font-size: .9rem; }
.trust-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; margin-top: clamp(3.5rem, 7vw, 6rem); padding: clamp(1.4rem, 3.5vw, 2.5rem); border: 1px solid #334264; border-radius: var(--radius-lg); background: linear-gradient(115deg, rgba(61, 78, 150, .18), rgba(89, 59, 137, .12) 72%), var(--surface-raised); box-shadow: var(--shadow-card); }
.trust-symbol { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #7887da; border-radius: 50%; color: #c3cbff; font: 700 1rem var(--font-display); }
.trust-panel .eyebrow { margin-bottom: .5rem; }
.trust-panel h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }
.trust-panel p:not(.eyebrow) { max-width: 47rem; color: var(--ink-muted); }
.trust-panel .text-link { margin-top: .25rem; }

.error-panel { max-width: 40rem; }

/* ---------- responsive ---------- */
@media (max-width: 42rem) {
  .page-shell { padding-top: 1.6rem; }
  .measure-grid, .factor-grid, .input-options, .card-grid-2, .tier-grid { grid-template-columns: 1fr; }
  .panel { border-radius: var(--radius-md); }
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: .55rem; padding: .8rem 0; }
  .site-nav { margin-left: 0; width: 100%; gap: .25rem; padding: .15rem 0 0; }
  .site-nav a { padding: .45rem .58rem; font-size: .82rem; }
  /* Stacked label/value reads better than a squeezed two-column row on a phone. */
  .summary-list div, .measure-details div { flex-direction: column; gap: .1rem; }
  dd { text-align: left; }
  .measure-value strong { font-size: 1.9rem; }
  .page-action a, .page-action button { width: 100%; text-align: center; }
  .home-shell { padding-top: .7rem; }
  .home-hero { grid-template-columns: 1fr; gap: .5rem; min-height: 0; padding: 2.7rem 0 2rem; }
  .hero-copy h1 { max-width: 15ch; font-size: clamp(2.45rem, 12vw, 3.45rem); }
  .hero-preview { margin-top: 1.5rem; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 0; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .process-steps li:not(:last-child)::after { display: none; }
  .process-steps p { max-width: none; }
  .home-tier-grid { grid-template-columns: 1fr; }
  .trust-panel { grid-template-columns: 1fr; }
  .trust-symbol { width: 2.2rem; height: 2.2rem; }
}

@media (max-width: 23rem) {
  .site-nav a { padding-inline: .4rem; font-size: .76rem; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > * { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Professional assessment page only. */
.professional-assessment-page .professional-before strong { display: inline; }
.professional-assessment-page .professional-return-link .button-link {
  background: transparent;
  box-shadow: none;
}
.professional-assessment-page .professional-return-link .button-link:hover {
  background: rgba(132, 149, 255, .1);
}

/* University assessment page only — append to the existing shared stylesheet. */
.university-assessment-page .assessment-intro p + p {
  margin-top: .7rem;
}

.university-assessment-page .assessment-intro strong {
  display: inline;
}

.university-assessment-page .assessment-submit {
  margin-top: 1.5rem;
}

.university-assessment-page .assessment-submit .helper {
  margin-top: .8rem;
  max-width: 42rem;
}

.university-assessment-page .university-back-link .button-secondary {
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}

/* A-level assessment only: add to your existing application stylesheet. */
.a-level-assessment-page .a-level-before {
  margin-bottom: var(--space-4);
}

.a-level-assessment-page .a-level-before .helper {
  margin-top: var(--space-2);
}

.a-level-assessment-page .a-level-form-panel {
  margin-top: var(--space-4);
}

.a-level-assessment-page textarea::placeholder,
.a-level-assessment-page input::placeholder {
  color: var(--ink-subtle);
  opacity: .8;
}

.a-level-assessment-page .a-level-submit {
  margin-top: var(--space-5);
}

.a-level-assessment-page .a-level-submit .helper {
  margin-top: var(--space-2);
}

.a-level-assessment-page .a-level-back-link {
  margin-top: var(--space-4);
}

.a-level-assessment-page .a-level-back-link a {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-decoration: none;
}

.a-level-assessment-page .a-level-back-link a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Professional results page only; append to the existing product stylesheet. */
.professional-results-page .results-page-header { margin-bottom: 2rem; }
.professional-results-page .results-overview { border-color: #435370; background: linear-gradient(115deg, rgba(61,78,150,.18), rgba(89,59,137,.12) 72%), var(--surface-raised); }
.professional-results-page .results-overview h2,
.professional-results-page .results-section-heading h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.9vw, 2.25rem); letter-spacing: -.02em; }
.professional-results-page .results-overview .narrative-summary { margin: .8rem 0 1.25rem; line-height: 1.65; }
.professional-results-page .results-summary-details { max-width: 38rem; }
.professional-results-page .results-small-note { color: var(--ink-subtle); font-size: .85rem; margin-top: .7rem; }
.professional-results-page .results-section-heading { margin-bottom: 1.2rem; }
.professional-results-page .results-section-heading .helper { max-width: 50rem; }
.professional-results-page .results-measure-card { gap: .45rem; }
.professional-results-page .results-measure-card h3 { font-size: 1.12rem; margin-bottom: 0; }
.professional-results-page .results-band { color: var(--ink-strong); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; line-height: 1.1; margin: .3rem 0 .5rem; }
.professional-results-page .results-measure-explanation { color: var(--ink-muted); margin-bottom: 1.1rem; }
.professional-results-page .results-measure-metadata { margin-top: auto; }
.professional-results-page .results-measure-metadata div { align-items: baseline; }
.professional-results-page .results-measure-metadata dd { font-variant-numeric: tabular-nums; }
.professional-results-page .results-guide { margin-top: 2rem; }
.professional-results-page .results-guide p { color: var(--ink-muted); }
.professional-results-page .results-guide p:last-child { margin-bottom: 0; }
.professional-results-page .results-factor-grid { margin-top: 0; }
.professional-results-page .results-factor-grid h3 { font-size: 1.15rem; }
.professional-results-page .results-factor-grid .helper { margin-bottom: .8rem; }
.professional-results-page .results-interpretation .panel p { line-height: 1.7; }
.professional-results-page .results-upgrade { background: linear-gradient(145deg, rgba(89, 71, 145, .12), var(--surface-raised) 60%); }
.professional-results-page .results-upgrade h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; }
.professional-results-page .results-paid-tier { border-color: #435370; }
.professional-results-page .results-upgrade-reassurance { font-size: .91rem; color: var(--ink-subtle); margin-top: 1rem; }
.professional-results-page .results-upgrade .price-line { margin: 1.15rem 0 .75rem; }
.professional-results-page .results-sample-link { margin-top: 1rem; }
.professional-results-page .results-context p { color: var(--ink-muted); }
.professional-results-page .results-bottom-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
@media (max-width: 42rem) {
  .professional-results-page .results-band { font-size: 1.85rem; }
  .professional-results-page .results-bottom-nav { flex-direction: column; }
  .professional-results-page .results-bottom-nav a { width: 100%; }
}


/* Paid Professional report: append after the application design system. */

.paid-report-refined .paid-report-header {
  max-width: 48rem;
}

.paid-report-refined .paid-report-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.paid-report-refined .paid-report-header .intro {
  line-height: 1.6;
}

.paid-report-refined .paid-report-header-actions {
  margin-top: 1.5rem;
}

/* Overall assessment */

.paid-report-refined .paid-overview {
  margin-top: 1.5rem;
}

.paid-report-refined .paid-overview h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: 500;
}

.paid-report-refined .paid-overview .narrative-summary {
  margin: 1rem 0 1.25rem;
}

/* Rating summary */

.paid-report-refined .paid-rating-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}

.paid-report-refined .paid-rating-overview-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
}

.paid-report-refined .paid-rating-overview-name {
  color: var(--ink-muted);
  font-size: .82rem;
}

.paid-report-refined .paid-rating-overview-item strong {
  color: var(--ink-strong);
  font-size: 1.2rem;
}

/* Expandable details */

.paid-report-refined details {
  margin-top: 1rem;
}

.paid-report-refined details > summary {
  color: var(--brand-accent);
  cursor: pointer;
  font-weight: 650;
  padding: .4rem 0;
}

.paid-report-refined details > summary:hover {
  color: var(--ink-strong);
}

.paid-report-refined details[open] > summary {
  margin-bottom: .8rem;
}

.paid-report-refined .paid-disclaimer {
  margin-top: 1rem;
  color: var(--ink-muted);
}

/* Section headings */

.paid-report-refined .paid-section-heading {
  max-width: 53rem;
  margin-bottom: 1rem;
}

/* Detailed assessment measures */

.paid-report-refined .paid-measure-card .paid-measure-band {
  color: var(--ink-strong);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 750;
  line-height: 1.2;
  margin: .3rem 0 .7rem;
}

.paid-report-refined .paid-measure-explanation {
  color: var(--ink-muted);
}

.paid-report-refined .paid-measure-card .measure-details {
  margin: .75rem 0 1rem;
}

.paid-report-refined .paid-measure-detail {
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
}

/* How to interpret ratings */

.paid-report-refined .paid-scale-details {
  margin: 1.25rem 0 0;
}

.paid-report-refined .paid-scale-details p {
  max-width: 56rem;
  color: var(--ink-muted);
}

/* Assessment factors */

.paid-report-refined .paid-factor-grid {
  margin-top: var(--space-5);
}

.paid-report-refined .paid-factor-grid .helper {
  margin-bottom: 1rem;
}

/* Personalised explanation */

.paid-report-refined .paid-narrative-panel {
  max-width: 100%;
}

.paid-report-refined .paid-narrative-panel h3 {
  margin-top: 1.4rem;
}

.paid-report-refined .paid-narrative-panel h3:first-child {
  margin-top: 0;
}

.paid-report-refined .paid-narrative-panel > p {
  max-width: 63rem;
}

/* Numbered practical recommendations */

.paid-report-refined .paid-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: paid-action;
}

.paid-report-refined .paid-action-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: start;
  gap: 1rem;
  counter-increment: paid-action;
  padding: .85rem 0;
}

.paid-report-refined .paid-action-list li + li {
  border-top: 1px solid var(--rule);
}

.paid-report-refined .paid-action-list li::before {
  content: counter(paid-action, decimal-leading-zero);
  display: grid;
  place-items: center;
  background: rgba(116, 130, 245, .13);
  border: 1px solid var(--border-strong);
  color: var(--brand-accent);
  border-radius: .55rem;
  height: 2.2rem;
  font: 700 .8rem var(--font-mono);
}

/* Skill development: three columns on desktop */

.paid-report-refined .paid-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.paid-report-refined .paid-skill-card {
  min-width: 0;
}

/* Work-focus guidance */

.paid-report-refined .paid-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.paid-report-refined .paid-work-card {
  min-width: 0;
}

.paid-report-refined .paid-work-card ul {
  padding-left: 1.25rem;
}

/* External career evidence */

.paid-report-refined .paid-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.paid-report-refined .paid-evidence-card {
  min-width: 0;
}

.paid-report-refined .paid-evidence-source {
  border-top: 1px solid var(--rule);
  padding-top: .4rem;
}

.paid-report-refined .paid-evidence-source .evidence-meta div {
  flex-wrap: wrap;
}

.paid-report-refined .paid-evidence-source .evidence-meta dd {
  overflow-wrap: anywhere;
}

/* Occupation classification */

.paid-report-refined .paid-classification {
  padding-top: 1rem;
}

.paid-report-refined .paid-classification h3 {
  margin-top: 1rem;
}

/* Technical methodology */

.paid-report-refined .paid-technical-details {
  border-top: 1px solid var(--rule);
  padding-top: .5rem;
  margin-bottom: 1rem;
}

/* Bottom navigation */

.paid-report-refined .paid-report-bottom-actions {
  align-items: center;
}

/* Tablet layouts */

@media (max-width: 60rem) {
  .paid-report-refined .paid-rating-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paid-report-refined .paid-skill-grid,
  .paid-report-refined .paid-work-grid,
  .paid-report-refined .paid-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile layouts */

@media (max-width: 42rem) {
  .paid-report-refined .paid-rating-overview,
  .paid-report-refined .paid-skill-grid,
  .paid-report-refined .paid-work-grid,
  .paid-report-refined .paid-evidence-grid {
    grid-template-columns: 1fr;
  }

  .paid-report-refined .paid-report-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .paid-report-refined .paid-report-bottom-actions a {
    width: 100%;
  }
}

/* University free results: append to the shared stylesheet. Scoped to this page. */
.university-results-refined .university-results-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.13;
}
.university-results-refined .university-results-overview h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 500;
}
.university-results-refined .university-results-overview .narrative-summary {
  margin: .85rem 0 1.25rem;
  max-width: 62rem;
}
.university-results-refined .university-rating-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
  margin: 1.25rem 0;
}
.university-results-refined .university-rating-overview-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.university-results-refined .university-rating-overview-name {
  font-size: .85rem;
  color: var(--ink-muted);
}
.university-results-refined .university-rating-overview-item strong {
  font-size: 1.15rem;
  color: var(--ink-strong);
}
.university-results-refined details > summary {
  color: var(--brand-accent);
  font-weight: 650;
  cursor: pointer;
  padding: .5rem 0;
}
.university-results-refined details > summary:hover { color: var(--ink-strong); }
.university-results-refined details[open] > summary { margin-bottom: .8rem; }
.university-results-refined .university-assessment-details { margin-top: .7rem; }
.university-results-refined .university-measure-grid { align-items: stretch; }
.university-results-refined .university-measure-card { min-width: 0; }
.university-results-refined .university-measure-band {
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.2;
  font-weight: 750;
  color: var(--ink-strong);
  margin: .2rem 0 .85rem;
}
/* The measure name is the card heading, so the result line shows only the score and the band word. */
.university-results-refined .university-measure-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin: .2rem 0 .85rem;
}
.university-results-refined .university-measure-band-word {
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.2;
  font-weight: 750;
  color: var(--ink-strong);
}
.university-results-refined .university-measure-explanation {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.university-results-refined .university-measure-details { margin-top: auto; }
.university-results-refined .university-scale-details { margin-top: 1rem; }
.university-results-refined .university-scale-content { max-width: 65rem; }
.university-results-refined .university-scale-content p { color: var(--ink-muted); }
.university-results-refined .university-factor-grid { margin-top: var(--space-5); }
.university-results-refined .university-factor-grid .helper { margin-bottom: .8rem; }
.university-results-refined .university-narrative-panel { max-width: 100%; }
.university-results-refined .university-unlock-panel .eyebrow { margin-bottom: .6rem; }
.university-results-refined .university-tier-note { margin-top: 1rem; }
.university-results-refined .university-bottom-actions { gap: .75rem; }
@media (max-width: 42rem) {
  .university-results-refined .university-rating-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .university-results-refined .university-bottom-actions { flex-direction: column; align-items: stretch; }
  .university-results-refined .university-bottom-actions a { width: 100%; }
}
@media (max-width: 23rem) {
  .university-results-refined .university-rating-overview { grid-template-columns: 1fr; }
}

/* Paid Professional report: append after the application design system. */
.university-paid-report-refined .paid-report-header { max-width: 48rem; }
.university-paid-report-refined .paid-report-header h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.university-paid-report-refined .paid-report-header .intro { line-height: 1.6; }
.university-paid-report-refined .paid-report-header-actions { margin-top: 1.5rem; }
.university-paid-report-refined .paid-overview { margin-top: 1.5rem; }
.university-paid-report-refined .paid-overview h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 500; }
.university-paid-report-refined .paid-overview .narrative-summary { margin: 1rem 0 1.25rem; }
.university-paid-report-refined .paid-rating-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin: 1.5rem 0; }
.university-paid-report-refined .paid-rating-overview-item { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.university-paid-report-refined .paid-rating-overview-name { color: var(--ink-muted); font-size: .82rem; }
.university-paid-report-refined .paid-rating-overview-item strong { color: var(--ink-strong); font-size: 1.2rem; }
.university-paid-report-refined details { margin-top: 1rem; }
.university-paid-report-refined details > summary { color: var(--brand-accent); cursor: pointer; font-weight: 650; padding: .4rem 0; }
.university-paid-report-refined details > summary:hover { color: var(--ink-strong); }
.university-paid-report-refined details[open] > summary { margin-bottom: .8rem; }
.university-paid-report-refined .paid-disclaimer { margin-top: 1rem; color: var(--ink-muted); }
.university-paid-report-refined .paid-section-heading { max-width: 53rem; margin-bottom: 1rem; }
.university-paid-report-refined .paid-measure-card .paid-measure-band { color: var(--ink-strong); font-size: clamp(1.6rem,2.5vw,2.1rem); font-weight: 750; line-height: 1.2; margin: .3rem 0 .7rem; }
.university-paid-report-refined .paid-measure-explanation { color: var(--ink-muted); }
.university-paid-report-refined .paid-measure-card .measure-details { margin: .75rem 0 1rem; }
.university-paid-report-refined .paid-measure-detail { padding-top: .9rem; border-top: 1px solid var(--rule); color: var(--ink-muted); }
.university-paid-report-refined .paid-scale-details { margin: 1.25rem 0 0; }
.university-paid-report-refined .paid-scale-details p { max-width: 56rem; color: var(--ink-muted); }
.university-paid-report-refined .paid-factor-grid { margin-top: var(--space-5); }
.university-paid-report-refined .paid-factor-grid .helper { margin-bottom: 1rem; }
.university-paid-report-refined .paid-narrative-panel { max-width: 100%; }
.university-paid-report-refined .paid-narrative-panel h3 { margin-top: 1.4rem; }
.university-paid-report-refined .paid-narrative-panel h3:first-child { margin-top: 0; }
.university-paid-report-refined .paid-narrative-panel > p { max-width: 63rem; }
.university-paid-report-refined .paid-action-list { list-style: none; padding: 0; margin: 0; counter-reset: paid-action; }
.university-paid-report-refined .paid-action-list li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: start; gap: 1rem; counter-increment: paid-action; padding: .85rem 0; }
.university-paid-report-refined .paid-action-list li + li { border-top: 1px solid var(--rule); }
.university-paid-report-refined .paid-action-list li::before { content: counter(paid-action,decimal-leading-zero); display: grid; place-items: center; background: rgba(116,130,245,.13); border: 1px solid var(--border-strong); color: var(--brand-accent); border-radius: .55rem; height: 2.2rem; font: 700 .8rem var(--font-mono); }
.university-paid-report-refined .paid-skill-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.university-paid-report-refined .paid-skill-card { min-width: 0; }
.university-paid-report-refined .paid-work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.university-paid-report-refined .paid-work-card { min-width: 0; }
.university-paid-report-refined .paid-work-card ul { padding-left: 1.25rem; }
.university-paid-report-refined .paid-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.university-paid-report-refined .paid-evidence-card { min-width: 0; }
.university-paid-report-refined .paid-evidence-source { border-top: 1px solid var(--rule); padding-top: .4rem; }
.university-paid-report-refined .paid-evidence-source .evidence-meta div { flex-wrap: wrap; }
.university-paid-report-refined .paid-evidence-source .evidence-meta dd { overflow-wrap: anywhere; }
.university-paid-report-refined .paid-classification { padding-top: 1rem; }
.university-paid-report-refined .paid-classification h3 { margin-top: 1rem; }
.university-paid-report-refined .paid-technical-details { border-top: 1px solid var(--rule); padding-top: .5rem; margin-bottom: 1rem; }
.university-paid-report-refined .paid-report-bottom-actions { align-items: center; }
@media (max-width: 60rem) {
  .university-paid-report-refined .paid-rating-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .university-paid-report-refined .paid-skill-grid, .university-paid-report-refined .paid-work-grid, .university-paid-report-refined .paid-evidence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .university-paid-report-refined .paid-rating-overview, .university-paid-report-refined .paid-skill-grid, .university-paid-report-refined .paid-work-grid, .university-paid-report-refined .paid-evidence-grid { grid-template-columns: 1fr; }
  .university-paid-report-refined .paid-report-bottom-actions { flex-direction: column; align-items: stretch; }
  .university-paid-report-refined .paid-report-bottom-actions a { width: 100%; }
}

/* University-specific enhancements */
.university-paid-report-refined .paid-rating-overview { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.university-paid-report-refined .paid-career-interests { margin-top: var(--space-5); }
.university-paid-report-refined .paid-career-interests ul { padding-left: 1.35rem; }
.university-paid-report-refined .paid-career-interests li + li { margin-top: .4rem; }
@media (max-width: 42rem) {
  .university-paid-report-refined .paid-rating-overview { grid-template-columns: 1fr; }
}

/* A-level results: append after existing application styles. */
.alevel-results-refined .alevel-results-header { max-width: 65rem; }
.alevel-results-refined .alevel-results-header h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.14;
}
.alevel-results-refined .alevel-overview h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 500;
}
.alevel-results-refined .alevel-overview .narrative-summary { margin: 1rem 0 1.25rem; }
.alevel-results-refined .alevel-rating-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.4rem 0;
}
.alevel-results-refined .alevel-rating-overview-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid var(--border, #34415e);
  border-radius: .8rem;
  background: rgba(255,255,255,.025);
}
.alevel-results-refined .alevel-rating-overview-name { color: var(--ink-muted, #abb5cb); font-size: .9rem; }
.alevel-results-refined .alevel-rating-overview-item strong { font-size: 1.18rem; color: var(--ink-strong, #f5f7fc); }
.alevel-results-refined .alevel-summary-reassurance {
  border-left: 3px solid #8495fa;
  padding: .75rem 1rem;
  background: rgba(116,130,245,.07);
  line-height: 1.6;
}
.alevel-results-refined details > summary { cursor: pointer; font-weight: 650; color: var(--brand-accent, #b5baff); }
.alevel-results-refined details > summary:hover { color: var(--ink-strong, #f5f7fc); }
.alevel-results-refined .alevel-assessment-details { margin-top: 1rem; }
.alevel-results-refined .alevel-assessment-details .summary-list { margin-top: .75rem; }
.alevel-results-refined .alevel-measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.alevel-results-refined .alevel-measure-card { min-width: 0; }
.alevel-results-refined .alevel-measure-band {
  color: var(--ink-strong, #f5f7fc);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 750;
  line-height: 1.2;
  margin: .6rem 0;
}
.alevel-results-refined .alevel-measure-card .measure-details { margin-top: 1rem; }
.alevel-results-refined .alevel-explanation-details { margin-top: 1.25rem; }
.alevel-results-refined .alevel-explanation-details summary { padding: .2rem 0 .5rem; }
.alevel-results-refined .alevel-explanation-details p { max-width: 65rem; }
.alevel-results-refined .alevel-factor-grid { margin-top: 2rem; }
.alevel-results-refined .alevel-unlock-panel { margin-top: 2rem; }
.alevel-results-refined .alevel-bottom-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 60rem) {
  .alevel-results-refined .alevel-rating-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 42rem) {
  .alevel-results-refined .alevel-rating-overview,
  .alevel-results-refined .alevel-measure-grid { grid-template-columns: 1fr; }
  .alevel-results-refined .alevel-bottom-actions { flex-direction: column; align-items: stretch; }
  .alevel-results-refined .alevel-bottom-actions a { width: 100%; }
}

/* A-level paid report. Append after the existing shared stylesheet. */
.alevel-paid-refined .alevel-paid-header { max-width: 54rem; }
.alevel-paid-refined .alevel-paid-header h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.alevel-paid-refined .alevel-subjects {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-strong, #f5f7fc);
  margin-top: .3rem;
}
.alevel-paid-refined .alevel-header-actions { margin-top: 1.5rem; }
.alevel-paid-refined .alevel-overview { margin-top: 1.5rem; }
.alevel-paid-refined .alevel-overview h2 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}
.alevel-paid-refined .alevel-overview .narrative-summary { margin: 1rem 0 1.5rem; }
.alevel-paid-refined .alevel-rating-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.4rem 0;
}
.alevel-paid-refined .alevel-rating-overview-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--border, #35425b);
  border-radius: .85rem;
  padding: 1rem;
  background: rgba(255,255,255,.025);
  min-width: 0;
}
.alevel-paid-refined .alevel-rating-overview-name {
  color: var(--ink-muted, #b5bfd3);
  font-size: .9rem;
}
.alevel-paid-refined .alevel-rating-overview-item strong {
  font-size: 1.2rem;
  color: var(--ink-strong, #f5f7fc);
}
.alevel-paid-refined .alevel-measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alevel-paid-refined .alevel-measure-card { min-width: 0; }
.alevel-paid-refined .alevel-measure-rating {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink-strong, #f5f7fc);
  margin: .5rem 0 1rem;
}
.alevel-paid-refined .alevel-measure-card .measure-details { margin-top: 1rem; }
.alevel-paid-refined .alevel-measure-detail {
  color: var(--ink-muted, #b5bfd3);
  border-top: 1px solid var(--rule, #27344d);
  padding-top: 1rem;
}
.alevel-paid-refined .alevel-details { margin-top: 1rem; }
.alevel-paid-refined .alevel-details > summary {
  cursor: pointer;
  padding: .45rem 0;
  color: var(--brand-accent, #b3bcff);
  font-weight: 650;
}
.alevel-paid-refined .alevel-details > summary:hover,
.alevel-paid-refined .alevel-details > summary:focus-visible { color: var(--ink-strong, #f5f7fc); }
.alevel-paid-refined .alevel-details[open] > summary { margin-bottom: .75rem; }
.alevel-paid-refined .alevel-narrative h3 { margin-top: 1.45rem; }
.alevel-paid-refined .alevel-narrative h3:first-child { margin-top: 0; }
.alevel-paid-refined .alevel-narrative > p { max-width: 68rem; }
.alevel-paid-refined .alevel-action-list {
  counter-reset: alevel-action;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.alevel-paid-refined .alevel-action-list li {
  counter-increment: alevel-action;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: .85rem 0;
}
.alevel-paid-refined .alevel-action-list li + li { border-top: 1px solid var(--rule, #27344d); }
.alevel-paid-refined .alevel-action-list li::before {
  content: counter(alevel-action, decimal-leading-zero);
  display: grid;
  place-items: center;
  height: 2.25rem;
  border-radius: .55rem;
  color: var(--brand-accent, #b3bcff);
  background: rgba(116,130,245,.12);
  border: 1px solid var(--border-strong, #445779);
  font-size: .8rem;
  font-weight: 700;
}
.alevel-paid-refined .alevel-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.alevel-paid-refined .alevel-guidance-grid > *,
.alevel-paid-refined .alevel-evidence-grid > * { min-width: 0; }
.alevel-paid-refined .alevel-interest-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.alevel-paid-refined .alevel-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.alevel-paid-refined .alevel-evidence-grid .evidence-meta dd { overflow-wrap: anywhere; }
.alevel-paid-refined .alevel-technical-details { border-top: 1px solid var(--rule, #27344d); padding-top: .5rem; }
.alevel-paid-refined .alevel-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}
@media (max-width: 60rem) {
  .alevel-paid-refined .alevel-rating-overview,
  .alevel-paid-refined .alevel-guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .alevel-paid-refined .alevel-rating-overview,
  .alevel-paid-refined .alevel-measure-grid,
  .alevel-paid-refined .alevel-guidance-grid,
  .alevel-paid-refined .alevel-interest-columns,
  .alevel-paid-refined .alevel-evidence-grid { grid-template-columns: 1fr; }
  .alevel-paid-refined .alevel-bottom-actions { flex-direction: column; align-items: stretch; }
  .alevel-paid-refined .alevel-bottom-actions a { width: 100%; }
}

/* How this works — scoped styles; append after the main application stylesheet. */
.methodology-page { padding-bottom: 3rem; }
.methodology-page .methodology-hero { max-width: 62rem; }
.methodology-page .methodology-hero h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.methodology-page .methodology-hero .intro { max-width: 53rem; line-height: 1.7; }
.methodology-page .methodology-section { margin-top: 2.25rem; }
.methodology-page .methodology-section-heading { margin-bottom: 1.3rem; }
.methodology-page .methodology-section h2,
.methodology-page .methodology-section-heading h2 {
  margin: .25rem 0 .65rem; font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.2;
  color: var(--ink-strong, #f5f7fc);
}
.methodology-page .methodology-section p,
.methodology-page .methodology-step p,
.methodology-page .methodology-assessment-card p { line-height: 1.75; }
.methodology-page .methodology-section-intro { color: var(--ink-muted, #b7c2d6); max-width: 64rem; }
.methodology-page .methodology-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.methodology-page .methodology-step { display: flex; gap: 1rem; align-items: flex-start; margin: 0; min-width: 0; }
.methodology-page .methodology-step-number {
  display: inline-flex; flex: 0 0 2.4rem; align-items: center; justify-content: center; height: 2.4rem;
  border: 1px solid #6272b3; border-radius: .8rem; background: rgba(110,125,235,.1);
  color: #b9c6ff; font-size: .85rem; font-weight: 750;
}
.methodology-page .methodology-step h3 { margin: .15rem 0 .6rem; font-size: 1.12rem; color: var(--ink-strong, #f5f7fc); }
.methodology-page .methodology-step p { margin: 0; color: var(--ink-muted, #bec8da); }
.methodology-page .methodology-assessment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.methodology-page .methodology-assessment-card { margin: 0; min-width: 0; border-top: 2px solid #7386f2; }
.methodology-page .methodology-university { border-top-color: #65b7df; }
.methodology-page .methodology-alevel { border-top-color: #ae87dc; }
.methodology-page .methodology-card-type { margin: 0 0 .65rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent, #bbc4ff); }
.methodology-page .methodology-assessment-card h3 { margin: 0 0 .7rem; color: var(--ink-strong, #f5f7fc); font-size: 1.3rem; }
.methodology-page .methodology-assessment-card p:last-child { margin-bottom: 0; color: var(--ink-muted, #c0cada); }
.methodology-page .methodology-followup { max-width: 65rem; margin: 1.25rem 0 0; line-height: 1.75; color: var(--ink-muted, #c0cada); }
.methodology-page .methodology-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.methodology-page .methodology-info-grid .methodology-section { margin-top: 0; }
.methodology-page .methodology-info-grid .panel { min-width: 0; }
.methodology-page .methodology-free-paid { border-left: 3px solid #8495fa; }
.methodology-page .methodology-limit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.methodology-page .methodology-limit-list li { position: relative; padding: .7rem .85rem .7rem 2rem; border: 1px solid var(--border, #2d3a55); border-radius: .65rem; background: rgba(255,255,255,.02); line-height: 1.6; }
.methodology-page .methodology-limit-list li::before { content: '—'; position: absolute; left: .8rem; font-weight: 700; color: #a8b7fa; }
.methodology-page .methodology-bottom-nav { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.methodology-page section[id] { scroll-margin-top: 7rem; }
@media (max-width: 58rem) {
  .methodology-page .methodology-assessment-grid { grid-template-columns: 1fr; }
  .methodology-page .methodology-steps, .methodology-page .methodology-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .methodology-page .methodology-step { gap: .75rem; }
  .methodology-page .methodology-bottom-nav a { width: 100%; text-align: center; }
}

/* Privacy page: simple, content-first layout. */
.privacy-page {
  padding-bottom: 3rem;
}

.privacy-page .privacy-hero {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.privacy-page .privacy-hero h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 500;
}

.privacy-page .privacy-hero .intro {
  max-width: 49rem;
  line-height: 1.7;
}

.privacy-page .privacy-summary {
  max-width: 58rem;
  display: grid;
  grid-template-columns: minmax(11rem, .7fr) minmax(0, 1.5fr);
  gap: 1.5rem 2rem;
  align-items: start;
  background: linear-gradient(120deg, rgba(97, 116, 220, .12), rgba(255,255,255,.02));
}

.privacy-page .privacy-summary h2 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
}

.privacy-page .privacy-summary ul,
.privacy-page .privacy-boundaries-simple ul {
  margin: 0;
  padding-left: 1.2rem;
}

.privacy-page .privacy-summary li,
.privacy-page .privacy-boundaries-simple li {
  color: var(--ink-muted);
  line-height: 1.65;
}

.privacy-page .privacy-summary li + li,
.privacy-page .privacy-boundaries-simple li + li {
  margin-top: .6rem;
}

.privacy-page .privacy-section {
  max-width: 58rem;
  margin-top: 3.25rem;
}

.privacy-page .privacy-section-heading {
  max-width: 49rem;
  margin-bottom: 1.2rem;
}

.privacy-page .privacy-section-heading h2,
.privacy-page .privacy-launch-note h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  margin: .2rem 0 .65rem;
}

.privacy-page .privacy-section-heading > p:last-child {
  color: var(--ink-muted);
  line-height: 1.7;
}

.privacy-page .privacy-list-panel,
.privacy-page .privacy-service-list,
.privacy-page .privacy-boundaries-simple {
  padding: .35rem 1.4rem;
}

.privacy-page .privacy-data-list {
  margin: 0;
}

.privacy-page .privacy-data-list > div {
  display: grid;
  grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}

.privacy-page .privacy-data-list > div:first-child {
  border-top: 0;
}

.privacy-page .privacy-data-list dt {
  color: var(--ink-strong);
  font-weight: 700;
}

.privacy-page .privacy-data-list dd {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 400;
  text-align: left;
  line-height: 1.65;
}

.privacy-page .privacy-service {
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}

.privacy-page .privacy-service:first-child {
  border-top: 0;
}

.privacy-page .privacy-service h3 {
  margin-bottom: .4rem;
  font-size: 1rem;
}

.privacy-page .privacy-service p {
  margin: 0;
  max-width: 48rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.privacy-page .privacy-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.privacy-page .privacy-simple-card {
  min-width: 0;
}

.privacy-page .privacy-simple-card h3 {
  margin-bottom: .65rem;
}

.privacy-page .privacy-simple-card p {
  color: var(--ink-muted);
  line-height: 1.65;
}

.privacy-page .privacy-emphasis {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-strong) !important;
}

.privacy-page .privacy-boundaries-simple {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.privacy-page .privacy-small-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-subtle);
  font-size: .88rem;
  line-height: 1.6;
}

.privacy-page .privacy-launch-note {
  max-width: 58rem;
  margin-top: 3.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.02);
}

.privacy-page .privacy-launch-note .eyebrow {
  margin-bottom: .45rem;
}

.privacy-page .privacy-launch-note h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.privacy-page .privacy-launch-note p:last-child {
  margin-bottom: 0;
  color: var(--ink-subtle);
  font-size: .91rem;
  line-height: 1.65;
}

.privacy-page .privacy-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.privacy-page a:focus-visible {
  outline: 3px solid #c0caff;
  outline-offset: 4px;
}

@media (max-width: 48rem) {
  .privacy-page .privacy-summary,
  .privacy-page .privacy-data-list > div,
  .privacy-page .privacy-two-column {
    grid-template-columns: 1fr;
  }

  .privacy-page .privacy-summary {
    gap: 1rem;
  }

  .privacy-page .privacy-data-list > div {
    gap: .3rem;
  }
}

@media (max-width: 40rem) {
  .privacy-page .privacy-bottom-nav a {
    width: 100%;
    text-align: center;
  }
}


/* AI Career Impact — home page pricing enhancements.
   Shared free reassurance plus compact report pricing inside each journey card. */

.home-shell .journey-grid > .journey-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-shell .journey-card .journey-description {
  margin-bottom: 1.2rem;
}

.home-shell .journey-section-reassurance {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0 0;
  color: var(--ink-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.home-shell .journey-free-dot {
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: #b8ead4;
  box-shadow: 0 0 .7rem rgba(184, 234, 212, .28);
  flex: none;
}

.home-shell .journey-card .journey-pricing {
  margin-top: auto;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(201, 211, 239, .17);
}

.home-shell .journey-pricing p {
  margin: 0;
}

.home-shell .journey-paid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  color: var(--ink-subtle);
  font-size: .88rem;
  line-height: 1.5;
}

.home-shell .journey-paid strong {
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 750;
  white-space: nowrap;
}

.home-shell .journey-card .journey-cta {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Keep the offer-section minimum price visually readable. */
.home-shell .offer-section .report-price {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .home-shell .journey-section-reassurance {
    align-items: flex-start;
  }

  .home-shell .journey-card .journey-pricing {
    padding-top: .9rem;
  }
}



/* ---------- home: content-led sections ----------
   Hero facts, example result preview, journey details, measures overview,
   expanded trust panel, parents note and FAQ. Scoped to .home-shell. */

.home-shell .hero-facts {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  margin: 1.6rem 0 0; padding: 0; list-style: none;
  color: var(--ink-muted); font-size: .92rem;
}
.home-shell .hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.home-shell .hero-facts li::before {
  content: ""; width: .42rem; height: .42rem; border-radius: 50%; flex: none;
  background: var(--brand-accent); box-shadow: 0 0 .8rem rgba(165, 178, 255, .55);
}

/* Example result card, in place of the decorative orbit. */
.home-shell .hero-preview { position: relative; justify-self: center; width: min(100%, 26rem); margin: 0; }
.home-shell .hero-preview::before {
  content: ""; position: absolute; z-index: -1; inset: -8% -6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 100, 219, .26), rgba(111, 79, 183, .08) 52%, transparent 72%);
  filter: blur(1.4rem);
}
.home-shell .preview-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #334264; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(99, 118, 236, .16), rgba(103, 67, 165, .08) 70%), var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.home-shell .preview-label,
.home-shell .measures-tag {
  margin: 0 0 .35rem; color: var(--brand-accent);
  font: 650 .68rem var(--font-mono); letter-spacing: .13em; text-transform: uppercase;
}
.home-shell .preview-title { margin: 0 0 1.2rem; color: var(--ink-strong); font-size: 1.25rem; font-weight: 700; }
.home-shell .preview-ratings { display: grid; gap: .85rem; margin: 0; }
.home-shell .preview-ratings div { display: grid; gap: .3rem; }
.home-shell .preview-ratings dt { color: var(--ink-muted); font-size: .86rem; }
.home-shell .preview-ratings dd { font-weight: 400; display: flex; align-items: center; gap: .7rem; margin: 0; text-align: left; }
.home-shell .meter {
  position: relative; flex: 1; height: .38rem; overflow: hidden;
  border-radius: 99px; background: rgba(255, 255, 255, .08);
}
.home-shell .meter::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--level, 50%);
  border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--violet));
}
.home-shell .preview-score { min-width: 2.2rem; color: var(--ink-strong); font: 700 .95rem var(--font-mono); text-align: right; }
.home-shell .preview-band { min-width: 4.6rem; color: var(--ink-subtle); font-size: .8rem; }
.home-shell .preview-note {
  margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule);
  color: var(--ink-subtle); font-size: .84rem; line-height: 1.5;
}

/* Journey card details. */
.home-shell .journey-details { display: grid; gap: .8rem; margin: 0 0 1.2rem; }
.home-shell .journey-details dt {
  color: var(--journey-accent); font: 650 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
.home-shell .journey-details dd { margin: .2rem 0 0; font-weight: 400; color: var(--ink-muted); font-size: .9rem; line-height: 1.5; text-align: left; }
.home-shell .journey-audiences {
  display: grid; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none;
  color: var(--ink-muted); font-size: .94rem;
}
.home-shell .journey-audiences strong,
.home-shell .journey-description strong { color: var(--ink-strong); }

/* Measures overview. */
.home-shell .measures-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-shell .measures-card { position: relative; overflow: hidden; }
.home-shell .measures-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--journey-accent), transparent 82%);
}
.home-shell .measures-tag { color: var(--journey-accent); }
.home-shell .measures-card h3 { margin: 0 0 .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.home-shell .measures-lead { margin: 0; color: var(--ink); }
.home-shell .measures-not { margin: .5rem 0 0; color: var(--ink-subtle); font-size: .88rem; font-style: italic; }
.home-shell .measures-bands {
  display: inline-block; margin: 1rem 0 0; padding: .3rem .65rem;
  border: 1px solid var(--border); border-radius: 99px;
  color: var(--ink-muted); font: 600 .74rem var(--font-mono);
}
.home-shell .measures-bands span { color: var(--journey-accent); }
.home-shell .measures-also-label {
  margin: 1.2rem 0 .4rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  color: var(--ink-subtle); font: 650 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
.home-shell .measures-also { margin: 0; padding-left: 1.1rem; color: var(--ink-muted); font-size: .9rem; }
.home-shell .measures-also li + li { margin-top: .2rem; }

/* Offer prices line. */
.home-shell .tier-prices { margin: 1rem 0 0; color: var(--ink-subtle); font-size: .86rem; }
.home-shell .tier-prices span { padding-inline: .3rem; color: var(--violet); }

/* Trust points. */
.home-shell .trust-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
  margin: 1.6rem 0; padding: 0; list-style: none;
}
.home-shell .trust-points li { padding-top: 1rem; border-top: 1px solid #3a4970; }
.home-shell .trust-points h3 { margin: 0 0 .35rem; font-size: .98rem; }
.home-shell .trust-panel .trust-points p { margin: 0; font-size: .9rem; }

/* Parents and advisers. */
.home-shell .parents-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.home-shell .parents-section h2 { margin: .3rem 0 .6rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.home-shell .parents-section p:last-child { max-width: 46rem; margin: 0; color: var(--ink-muted); }
.home-shell .parents-section .button-link { flex: none; }

/* FAQ. */
.home-shell .faq-list { display: grid; gap: .7rem; max-width: var(--measure); }
.home-shell .faq-list details {
  padding: 0 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised);
}
.home-shell .faq-list details[open] { border-color: var(--border-strong); }
.home-shell .faq-list summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0;
  color: var(--ink-strong); font-weight: 650; cursor: pointer; list-style: none;
}
.home-shell .faq-list summary::-webkit-details-marker { display: none; }
.home-shell .faq-list summary::after { content: "+"; color: var(--brand-accent); font-size: 1.25rem; line-height: 1; transition: transform .18s ease; }
.home-shell .faq-list details[open] summary::after { transform: rotate(45deg); }
.home-shell .faq-list summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.home-shell .faq-list details p { margin: 0 0 1.1rem; color: var(--ink-muted); }

@media (max-width: 60rem) {
  .home-shell .measures-grid, .home-shell .trust-points { grid-template-columns: 1fr; }
  .home-shell .parents-section { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 42rem) {
  .home-shell .hero-facts { flex-direction: column; }
  .home-shell .hero-preview::before { inset: -4% 0; }
  .home-shell .parents-section .button-link { width: 100%; justify-content: space-between; }
}

/* ---------- home hero sample: HTML/CSS-only interaction ---------- */
.home-shell .preview-choice {
  /* Uses the existing visually-hidden pattern while remaining keyboard-focusable. */
}

.home-shell .preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin-bottom: .7rem;
}

.home-shell .preview-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .5rem .55rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .025);
  color: var(--ink-subtle);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.home-shell .preview-tab:hover {
  border-color: var(--border-strong);
  background: rgba(132, 149, 255, .08);
  color: var(--ink-strong);
}

.home-shell #preview-professional:checked ~ .preview-tabs label[for="preview-professional"],
.home-shell #preview-university:checked ~ .preview-tabs label[for="preview-university"],
.home-shell #preview-a-level:checked ~ .preview-tabs label[for="preview-a-level"] {
  border-color: #7184e9;
  background: rgba(100, 123, 244, .15);
  color: var(--ink-strong);
}

.home-shell #preview-professional:focus-visible ~ .preview-tabs label[for="preview-professional"],
.home-shell #preview-university:focus-visible ~ .preview-tabs label[for="preview-university"],
.home-shell #preview-a-level:focus-visible ~ .preview-tabs label[for="preview-a-level"] {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.home-shell .preview-journey { display: none; }

.home-shell #preview-professional:checked ~ .preview-card .preview-professional-content,
.home-shell #preview-university:checked ~ .preview-card .preview-university-content,
.home-shell #preview-a-level:checked ~ .preview-card .preview-a-level-content {
  display: block;
}

.home-shell .preview-measure {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: transparent;
}

.home-shell .preview-measure + .preview-measure { margin-top: .35rem; }

.home-shell .preview-measure[open] {
  border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--border));
  background: rgba(100, 123, 244, .06);
}

.home-shell .preview-measure summary {
  display: grid;
  gap: .3rem;
  padding: .55rem .6rem;
  cursor: pointer;
  list-style: none;
  border-radius: .65rem;
}

.home-shell .preview-measure summary::-webkit-details-marker { display: none; }
.home-shell .preview-measure summary::marker { content: ""; }

.home-shell .preview-measure summary:hover {
  background: rgba(255, 255, 255, .025);
}

.home-shell .preview-measure-name {
  color: var(--ink-muted);
  font-size: .86rem;
  font-weight: 550;
}

.home-shell .preview-measure[open] .preview-measure-name { color: var(--ink-strong); }

.home-shell .preview-measure-result {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.home-shell .preview-measure > p {
  margin: 0;
  padding: 0 .6rem .7rem;
  color: var(--ink-subtle);
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 42rem) {
  .home-shell .preview-tabs {
    grid-template-columns: 1fr;
  }
}

/* Professional assessment example page only. */
.professional-assessment-page .professional-example-link { margin: .85rem 0 0; }

.professional-example-page .professional-example-note,
.professional-example-page .professional-example-panel { max-width: 58rem; }

.professional-example-page .professional-example-panel { margin-top: var(--space-4); }

.professional-example-page .professional-example-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule);
}

.professional-example-page .professional-example-heading .eyebrow { margin-bottom: .45rem; }
.professional-example-page .professional-example-heading h2 { margin-bottom: 0; }

.professional-example-page .professional-example-badge {
  flex: 0 0 auto; padding: .35rem .6rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(132,149,255,.08); color: var(--brand-accent);
  font: 650 .72rem var(--font-mono);
}

.professional-example-page .professional-example-field { margin-top: var(--space-4); }
.professional-example-page .professional-example-field h3 { margin-bottom: .5rem; font-size: .95rem; }

.professional-example-page .professional-example-value {
  padding: .9rem 1rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #0b111d; color: var(--ink-strong); line-height: 1.65;
}

.professional-example-page .professional-example-lines { white-space: pre-line; }
.professional-example-page .professional-example-field-short { max-width: 17rem; }
.professional-example-page .professional-example-actions { margin-top: var(--space-4); }

@media (max-width: 42rem) {
  .professional-example-page .professional-example-heading { flex-direction: column; }
  .professional-example-page .professional-example-actions a { width: 100%; }
}

/* University assessment example page only. */
.university-assessment-page .university-example-link { margin: .85rem 0 0; }

.university-example-page .university-example-note,
.university-example-page .university-example-panel { max-width: 58rem; }

.university-example-page .university-example-panel { margin-top: var(--space-4); }

.university-example-page .university-example-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule);
}

.university-example-page .university-example-heading .eyebrow { margin-bottom: .45rem; }
.university-example-page .university-example-heading h2 { margin-bottom: 0; }

.university-example-page .university-example-badge {
  flex: 0 0 auto; padding: .35rem .6rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(104,182,238,.08); color: #9fd2f5;
  font: 650 .72rem var(--font-mono);
}

.university-example-page .university-example-field { margin-top: var(--space-4); }
.university-example-page .university-example-field h3 { margin-bottom: .5rem; font-size: .95rem; }

.university-example-page .university-example-value {
  padding: .9rem 1rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #0b111d; color: var(--ink-strong); line-height: 1.65;
}

.university-example-page .university-example-lines { white-space: pre-line; }
.university-example-page .university-example-field-short { max-width: 17rem; }
.university-example-page .university-example-actions { margin-top: var(--space-4); }

@media (max-width: 42rem) {
  .university-example-page .university-example-heading { flex-direction: column; }
  .university-example-page .university-example-actions a { width: 100%; }
}

/* A-level assessment example page only. */
.a-level-assessment-page .a-level-example-link { margin: .85rem 0 0; }

.a-level-example-page .a-level-example-note,
.a-level-example-page .a-level-example-panel { max-width: 58rem; }

.a-level-example-page .a-level-example-panel { margin-top: var(--space-4); }

.a-level-example-page .a-level-example-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule);
}

.a-level-example-page .a-level-example-heading .eyebrow { margin-bottom: .45rem; }
.a-level-example-page .a-level-example-heading h2 { margin-bottom: 0; }

.a-level-example-page .a-level-example-badge {
  flex: 0 0 auto; padding: .35rem .6rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: rgba(188,141,244,.08); color: #d4b5f8;
  font: 650 .72rem var(--font-mono);
}

.a-level-example-page .a-level-example-field { margin-top: var(--space-4); }
.a-level-example-page .a-level-example-field h3 { margin-bottom: .5rem; font-size: .95rem; }

.a-level-example-page .a-level-example-value {
  padding: .9rem 1rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #0b111d; color: var(--ink-strong); line-height: 1.65;
}

.a-level-example-page .a-level-example-lines { white-space: pre-line; }
.a-level-example-page .a-level-example-field-short { max-width: 17rem; }
.a-level-example-page .a-level-example-actions { margin-top: var(--space-4); }

@media (max-width: 42rem) {
  .a-level-example-page .a-level-example-heading { flex-direction: column; }
  .a-level-example-page .a-level-example-actions a { width: 100%; }
}

/* Professional result: the access-code form is secondary, behind a native disclosure. */
.access-code-disclosure { margin-top: var(--space-3); }
.access-code-disclosure > summary { cursor: pointer; color: var(--brand-accent); font-weight: 650; width: fit-content; }
.access-code-disclosure > summary:hover { color: var(--ink-strong); text-decoration: underline; text-underline-offset: .25em; }
/* The summary already asks the question, so the shared form's own heading would repeat it. */
.access-code-disclosure .complimentary-access > h3 { display: none; }
.access-code-disclosure[open] .complimentary-access { margin-top: var(--space-2); }

/* Live smoke test mode (live-smoke profile only). */
.live-smoke-banner { background: #fde8e8; border-bottom: 3px solid #b42318; color: #7a1a12; }
.live-smoke-banner a { color: inherit; font-weight: 600; }
.live-smoke-panel { border: 2px dashed #b42318; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.live-smoke-panel ul { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.live-smoke-table { border-collapse: collapse; width: 100%; }
.live-smoke-table th, .live-smoke-table td { border-bottom: 1px solid #ddd; padding: .4rem .6rem; text-align: left; vertical-align: top; }
.live-smoke-status-bad { color: #b42318; font-weight: 700; }
.live-smoke-actions { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }

/* Detailed professional report (professional-report-v3 and v4) and its preparation step. */
.detailed-card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.detailed-report .detailed-item + .detailed-item, .detailed-report .detailed-phase + .detailed-phase { margin-top: var(--space-4); }
.detailed-report .detailed-card h3, .detailed-report .detailed-item h3 { margin-top: 0.25rem; }
.detailed-report .detailed-item h4 { margin: var(--space-3) 0 0.25rem; font-size: 1rem; }
.detailed-signals { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detailed-signals li { font-size: 0.85rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: #eef2f6; color: #334155; }
.detailed-oversight, .detailed-essential { font-size: 0.85rem; font-weight: 700; color: #9a3412; margin: var(--space-2) 0 0; }
.detailed-essential { margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.detailed-together { margin-top: var(--space-4); }
.detailed-phase { border-left: 4px solid #0f766e; }
.detailed-report .plan-action { grid-template-columns: 2.75rem minmax(0, 1fr); }
.detailed-report .plan-action-content { min-width: 0; }
.detailed-preparation { margin-bottom: var(--space-5); }
.detailed-selection { border: 0; padding: 0; margin: var(--space-3) 0 var(--space-4); }
.detailed-selection legend { font-weight: 700; margin-bottom: var(--space-2); }
.detailed-selection .checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.35rem 0; }
.detailed-selection input[type="checkbox"] { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
/* professional-report-v4: practical opportunity blocks and the adaptation strategy. */
.detailed-practical { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: var(--space-3); }
.detailed-practical h4 { margin-top: 0; }
.detailed-practical ul, .detailed-in-your-work { margin: 0.25rem 0 0; padding-left: 1.2rem; }
/* Theme tokens, not light-theme hex: the site is dark, so a pale fill left the inherited light text unreadable. */
.detailed-experiment { background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--border); border-left: 4px solid var(--brand-accent); border-radius: var(--radius-sm); padding: var(--space-3); margin-top: var(--space-3); }
.detailed-experiment h4 { margin-top: 0; color: var(--ink-strong); }
.detailed-experiment p { margin-bottom: 0; }
.detailed-applies { font-size: 0.9rem; color: var(--ink-subtle); margin-top: var(--space-3); }
.detailed-strengthen { border-top: 1px solid var(--rule); margin-top: var(--space-3); padding-top: var(--space-2); }
.detailed-step-note { display: block; margin-top: 0.25rem; color: var(--ink-muted); font-size: 0.95rem; }
/* University v3 measures: the name is the heading, so the result line shows only the score and the band word. */
.detailed-measure-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); margin: .3rem 0 .7rem; }
.detailed-measure-score { color: var(--ink-strong); font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 750; line-height: 1.2; }
.detailed-measure-band { color: var(--ink-strong); font-weight: 700; text-transform: none; }
.detailed-strategy-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.detailed-strategy-grid h3 { margin-top: 0; }
.detailed-strategy-grid ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.detailed-legend { margin: 0 0 var(--space-4); }
.detailed-legend div { margin-bottom: 0.4rem; }
.detailed-legend dt { display: inline; font-weight: 700; }
.detailed-legend dt::after { content: ": "; }
.detailed-legend dd { display: inline; margin: 0; }
@media print {
  .detailed-report .detailed-card, .detailed-report .detailed-item, .detailed-report .detailed-phase, .detailed-report .detailed-strategy-grid .panel { break-inside: avoid; }
  .detailed-report .paid-report-header-actions, .detailed-report .paid-report-bottom-actions, .live-smoke-panel { display: none; }
}

/*
 * Long-running form posts (fragments/loading.html): the page stays in view, dimmed, softly blurred and inert, under
 * a fixed overlay with a spinner, the heading, the rotating message and a thin indeterminate bar. Never a percentage.
 */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 34rem 22rem at center, rgba(9, 13, 23, .55), transparent 75%),
    rgba(9, 13, 23, .55);
  -webkit-backdrop-filter: blur(5px) saturate(.75);
  backdrop-filter: blur(5px) saturate(.75);
  animation: loading-fade-in .2s ease-out;
}
.loading-overlay[hidden] { display: none; }
/* Without backdrop blur the page is dimmed further instead, so the text above it keeps its contrast. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .loading-overlay { background: rgba(9, 13, 23, .86); }
}
html.loading-active { overflow: hidden; }
.loading-content { width: min(100%, 30rem); text-align: center; }
.loading-spinner {
  display: block;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  margin: 0 auto var(--space-4);
  border: 3px solid rgba(165, 178, 255, .18);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: loading-spin .85s linear infinite;
}
.loading-heading {
  margin: 0;
  font-size: clamp(1.35rem, 4.2vw, 1.8rem);
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--ink-strong);
}
/* Focused once so screen readers start here; it is not a control, so it draws no focus box. */
.loading-heading:focus, .loading-heading:focus-visible { outline: none; }
.loading-message { margin: var(--space-3) 0 0; min-height: 1.5em; font-size: 1.05rem; font-weight: 600; color: var(--brand-accent); }
.loading-progress {
  position: relative;
  width: min(100%, 15rem);
  height: 3px;
  margin: var(--space-4) auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(165, 178, 255, .14);
}
.loading-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  animation: loading-progress 1.6s ease-in-out infinite;
}
.loading-description { margin: 0 auto; max-width: 26rem; font-size: .92rem; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
@keyframes loading-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@media (max-width: 40rem) {
  .loading-overlay { padding: var(--space-4) var(--space-3); }
}
/* Reduced motion: a still arc and an even, static glow along the track; the words carry the state. */
@media (prefers-reduced-motion: reduce) {
  .loading-overlay, .loading-spinner, .loading-progress-bar { animation: none; }
  .loading-progress-bar { width: 100%; opacity: .6; background: linear-gradient(90deg, transparent, var(--brand-accent), transparent); }
}
