/* Canadian Citizenship Test Trainer — site styles. Mobile first; breakpoints 600, 960, 1200. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f2233;
  --ink-soft: #33475a;
  --muted: #52606d;
  --paper: #f7f4ee;
  --paper-deep: #efe9de;
  --surface: #ffffff;
  --teal: #0e6e74;
  --teal-deep: #0a5357;
  --teal-tint: #e1efed;
  --teal-bright: #6fd0ca;
  --brick: #b4322a;
  --brick-deep: #8e241d;
  --brick-tint: #f8e5e2;
  --line: #d6cfc2;
  --line-soft: #e6e0d5;
  --on-ink: #f7f4ee;
  --on-ink-soft: #c3ccd5;

  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --max: 1200px;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgb(15 34 51 / 0.06), 0 12px 32px -12px rgb(15 34 51 / 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
/* Smooth only for the in-page navigation of the sales page; forms jump directly. */
html:has(body.home) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, html:has(body.home) { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 0.75rem 1rem; border-radius: var(--radius-small);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --- Buttons ------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1.0625rem/1.2 var(--font-ui); letter-spacing: 0.005em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.btn-order { background: var(--brick); color: #fff; box-shadow: 0 6px 16px -8px rgb(142 36 29 / 0.6); }
.btn-order:hover { background: var(--brick-deep); color: #fff; text-decoration: none; }
.btn-order:active { background: #74201a; color: #fff; }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.975rem; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn-ghost:active { background: #08131d; color: var(--on-ink); }
.btn-quiet { background: var(--ink); color: var(--on-ink); }
.btn-quiet:hover { background: #1d3a52; color: var(--on-ink); }
.btn-quiet:active { background: #08131d; color: var(--on-ink); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
}
.link-quiet:hover { color: var(--teal-deep); text-decoration-color: currentColor; }
.link-quiet .icon { width: 1.1em; height: 1.1em; color: var(--teal); }

/* --- Header --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0.5rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1rem; letter-spacing: -0.005em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; }
.brand-name { line-height: 1.15; }
.site-nav { display: none; }
.site-header .btn { margin-left: auto; white-space: nowrap; flex: none; }
@media (max-width: 380px) {
  .site-header .brand-name { font-size: 0.9rem; }
  .site-header .btn-small { padding: 0.5rem 0.75rem; font-size: 0.925rem; }
}
@media (min-width: 960px) {
  .site-nav { display: flex; gap: 0.25rem; margin-left: auto; }
  .site-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
    color: var(--ink-soft); font-weight: 600; font-size: 0.975rem; text-decoration: none; border-radius: 8px;
  }
  .site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .site-header .btn { margin-left: 0.75rem; }
}

/* --- Sections shared ---------------------------------------------------------------- */
.section-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter); }
@media (min-width: 960px) { .section-inner { padding: 6.5rem 2rem; } }

/* --- Hero --------------------------------------------------------------------------- */
.hero { background: var(--paper); }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 2.25rem var(--gutter) 0;
  display: grid; gap: 2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.45rem, 1.5rem + 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  max-width: 15ch;
}
.hero-sub { margin-top: 1rem; font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero-actions .btn-order { width: 100%; }
@media (min-width: 600px) { .hero-actions .btn-order { width: auto; } }
.hero-points { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.hero-points li { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 550; color: var(--ink); }
.hero-points .icon { color: var(--teal); margin-top: 0.15em; stroke-width: 2.4; }
.hero-figure { margin: 0 calc(var(--gutter) * -0.5); }
.hero-figure img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; }
.hero-footnote {
  max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--gutter) 1.75rem;
  font-size: 0.875rem; color: var(--muted);
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; padding: 3.5rem 2rem 1rem; gap: 2.5rem; }
  .hero-figure { margin: 0 -2rem 0 0; }
  .hero-figure img { width: 116%; max-width: none; margin-left: -8%; }
  .hero-footnote { padding: 0.5rem 2rem 2.5rem; }
}

/* --- The test at a glance ------------------------------------------------------------- */
.glance { background: var(--ink); color: var(--on-ink); }
.glance-inner { max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--gutter); display: grid; gap: 2rem; }
.glance h2 { color: var(--on-ink); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.glance-head p { margin-top: 0.5rem; color: var(--on-ink-soft); }
.sheet { position: relative; }
.sheet-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.sheet-cells li {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px;
  border: 1.5px solid rgb(247 244 238 / 0.32);
  font: 600 0.8rem/1 var(--font-ui); color: var(--on-ink-soft);
  transition: background-color 420ms var(--ease), border-color 420ms var(--ease), color 420ms var(--ease);
}
.sheet-cells li.is-needed { background: var(--teal); border-color: var(--teal); color: #fff; }
.sheet-line { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--teal-bright); }
.sheet-line::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--teal-bright); }
.glance-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.glance-facts div { border-top: 1px solid rgb(247 244 238 / 0.22); padding-top: 0.75rem; }
.glance-facts dt { font: 600 2.4rem/1 var(--font-display); color: var(--on-ink); }
.glance-facts dd { margin: 0.25rem 0 0; color: var(--on-ink-soft); font-size: 0.975rem; line-height: 1.45; }
.glance-source { font-size: 0.9rem; color: var(--on-ink-soft); max-width: 60rem; }
.glance-source a { color: var(--on-ink); text-decoration-color: rgb(247 244 238 / 0.5); display: inline; }
.glance-source a:hover { color: #fff; text-decoration-color: #fff; }
.glance-source .icon { width: 0.95em; height: 0.95em; vertical-align: -0.1em; margin-left: 0.2em; }
.glance :focus-visible { outline-color: var(--teal-bright); }
@media (min-width: 960px) {
  .glance-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); padding: 4.5rem 2rem; gap: 2.5rem 4rem; align-items: start; }
  .sheet { grid-column: 2; grid-row: 1; }
  .sheet-cells { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
  .glance-facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .glance-source { grid-column: 1 / -1; }
}
/* The one authored moment: the answer sheet fills up to the pass line when it comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .sheet:not(.is-live) .sheet-cells li.is-needed { background: transparent; border-color: rgb(247 244 238 / 0.32); color: var(--on-ink-soft); }
  .sheet-cells li:nth-child(2) { transition-delay: 40ms; } .sheet-cells li:nth-child(3) { transition-delay: 80ms; }
  .sheet-cells li:nth-child(4) { transition-delay: 120ms; } .sheet-cells li:nth-child(5) { transition-delay: 160ms; }
  .sheet-cells li:nth-child(6) { transition-delay: 200ms; } .sheet-cells li:nth-child(7) { transition-delay: 240ms; }
  .sheet-cells li:nth-child(8) { transition-delay: 280ms; } .sheet-cells li:nth-child(9) { transition-delay: 320ms; }
  .sheet-cells li:nth-child(10) { transition-delay: 360ms; } .sheet-cells li:nth-child(11) { transition-delay: 400ms; }
  .sheet-cells li:nth-child(12) { transition-delay: 440ms; } .sheet-cells li:nth-child(13) { transition-delay: 480ms; }
  .sheet-cells li:nth-child(14) { transition-delay: 520ms; } .sheet-cells li:nth-child(15) { transition-delay: 560ms; }
  .js .sheet:not(.is-live) .sheet-line { opacity: 0; }
  .sheet-line { transition: opacity 400ms var(--ease) 700ms; }
}

/* --- Sound familiar ----------------------------------------------------------------- */
.familiar-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter); display: grid; gap: 2.5rem; }
.familiar-list { margin-top: 1.5rem; display: grid; gap: 0; }
.familiar-list li {
  position: relative; padding: 1rem 0 1rem 1.75rem; border-bottom: 1px solid var(--line-soft);
  font-size: 1.1rem; color: var(--ink);
}
.familiar-list li::before {
  content: ""; position: absolute; left: 0.15rem; top: 1.45rem; width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--muted); border-radius: 50%;
}
.familiar-answer { margin-top: 1.5rem; font: 500 1.35rem/1.4 var(--font-display); color: var(--ink); max-width: 34rem; }
.familiar-photo { margin: 0; }
.familiar-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) {
  .familiar-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 4rem; padding: 6.5rem 2rem; }
  .familiar-photo img { aspect-ratio: 4 / 5; }
}

/* --- How it works ------------------------------------------------------------------- */
.how { background: var(--surface); border-block: 1px solid var(--line-soft); }
.steps { margin-top: 2.5rem; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; top: 0.65rem; left: 0;
  font: 600 2.4rem/1 var(--font-display); color: var(--teal);
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-soft); max-width: 34ch; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3.5rem; } }

/* --- Try three questions ------------------------------------------------------------ */
.try { background: var(--paper-deep); }
.try-head p { margin-top: 0.5rem; color: var(--ink-soft); max-width: 40rem; }
.try-grid { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .try-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; } }
.question {
  margin: 0; min-width: 0; padding: 1.5rem 1.25rem 1.5rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.question legend { padding: 0; float: left; width: 100%; }
.question legend + * { clear: both; }
.question-chapter { display: block; font-size: 0.875rem; font-weight: 650; color: var(--teal); }
.question-text { display: block; margin-top: 0.25rem; font: 560 1.4rem/1.25 var(--font-display); color: var(--ink); }
.question-options { padding-top: 1rem; display: grid; gap: 0.5rem; }
.option {
  position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 52px;
  padding: 0.5rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-weight: 550; line-height: 1.35;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.option:hover { border-color: var(--ink-soft); background: #fbfaf7; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.option-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: transparent;
}
.option-mark .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.question:has(input:checked) .option.is-correct { border-color: var(--teal); background: var(--teal-tint); }
.question:has(input:checked) .option.is-correct .option-mark { background: var(--teal); border-color: var(--teal); color: #fff; }
.option:not(.is-correct):has(input:checked) { border-color: var(--brick); background: var(--brick-tint); }
.option:not(.is-correct):has(input:checked) .option-mark { background: var(--brick); border-color: var(--brick); color: #fff; }
.question-explain { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.98rem; }
.question:has(input:checked) .question-explain { display: block; }
.verdict-right, .verdict-wrong { display: none; }
.verdict-right { color: var(--teal-deep); }
.verdict-wrong { color: var(--brick-deep); }
.question:has(.is-correct input:checked) .verdict-right { display: inline; }
.question:has(.option:not(.is-correct) input:checked) .verdict-wrong { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .question:has(input:checked) .question-explain { animation: reveal 360ms var(--ease); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- What's inside ------------------------------------------------------------------ */
.inside-inner { display: grid; gap: 2.5rem; }
.inside-head p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 30rem; }
.inside-head .btn { margin-top: 1.5rem; }
.modules { display: grid; border-top: 1px solid var(--line); }
.modules li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.module-number { font: 600 1.6rem/1.1 var(--font-display); color: var(--teal); }
.modules h3 { font-size: 1.1rem; }
.modules p { margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 960px) {
  .inside-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .inside-head { position: sticky; top: 100px; }
  .modules { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-top: 0; }
  .modules li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

/* --- Preview gallery ---------------------------------------------------------------- */
.preview { background: var(--ink); color: var(--on-ink); }
.preview h2 { color: var(--on-ink); }
.preview-grid { margin-top: 2.25rem; display: grid; gap: 1.75rem; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #1b3247; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); }
.shot figcaption { margin-top: 0.75rem; font-weight: 600; color: var(--on-ink); }
.preview-note { margin-top: 1.75rem; font-size: 0.9rem; color: var(--on-ink-soft); }
@media (min-width: 960px) { .preview-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }

/* --- Features ----------------------------------------------------------------------- */
.feature-list { margin-top: 2.5rem; display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature-icon {
  grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-deep);
}
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature-list p { margin-top: 0.25rem; color: var(--ink-soft); }
@media (min-width: 600px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 960px) { .feature-list { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; } }

/* --- Who it's for -------------------------------------------------------------------- */
.fit { background: var(--surface); border-block: 1px solid var(--line-soft); }
.fit-grid { margin-top: 2.25rem; display: grid; gap: 2rem; }
.fit h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.fit li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-top: 1px solid var(--line-soft); }
.fit-yes .icon { color: var(--teal); stroke-width: 2.4; margin-top: 0.2em; }
.fit-no .icon { color: var(--muted); margin-top: 0.2em; }
.fit-no li { color: var(--ink-soft); }
@media (min-width: 960px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* --- Price -------------------------------------------------------------------------- */
.price { background: var(--teal-deep); }
.price-inner { max-width: var(--max); margin: 0 auto; padding: 4rem var(--gutter); }
.price-card {
  max-width: 34rem; margin: 0 auto; padding: 2rem 1.5rem; background: var(--surface);
  border-radius: 16px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}
.price-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.price-amount { margin-top: 1rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price-figure { font: 600 clamp(3.4rem, 2.6rem + 3vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.price-term { font-weight: 650; color: var(--ink-soft); }
.price-includes { margin: 1.5rem 0 1.75rem; display: grid; gap: 0.5rem; }
.price-includes li { display: flex; gap: 0.5rem; align-items: flex-start; }
.price-includes .icon { color: var(--teal); stroke-width: 2.4; margin-top: 0.2em; }
.price-terms { margin-top: 1rem; text-align: center; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 960px) { .price-inner { padding: 6rem 2rem; } .price-card { padding: 2.75rem 2.75rem 2.25rem; } }

/* --- FAQ ---------------------------------------------------------------------------- */
.faq-inner { max-width: 54rem; }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 1.25rem 2.75rem 1.25rem 0; min-height: 44px;
  font: 560 1.25rem/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.6rem; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform 220ms var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--teal-deep); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 44rem; }

/* --- Final call --------------------------------------------------------------------- */
.final { position: relative; isolation: isolate; color: var(--on-ink); background: var(--ink); overflow: hidden; }
.final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; z-index: -2; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(15 34 51 / 0.78) 0%, rgb(15 34 51 / 0.88) 100%);
}
.final-inner { max-width: var(--max); margin: 0 auto; padding: 5.5rem var(--gutter); }
.final h2 { color: #fff; max-width: 15ch; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.final p { margin-top: 1rem; max-width: 34rem; font-size: 1.15rem; color: #e4e9ee; }
.final .btn { margin-top: 1.75rem; }
.final .btn-order { border-color: var(--on-ink); }
.final .btn:focus-visible { outline-color: #fff; }
@media (min-width: 960px) {
  .final::before { background: linear-gradient(90deg, rgb(15 34 51 / 0.92) 0%, rgb(15 34 51 / 0.8) 45%, rgb(15 34 51 / 0.25) 100%); }
  .final-inner { padding: 8rem 2rem; }
}

/* --- Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); border-top: 1px solid #22394d; }
.site-footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) 6.5rem; display: grid; gap: 1.75rem; }
.brand-footer { color: var(--on-ink); }
.brand-footer:hover { color: #fff; }
.brand-footer .mark rect { fill: #1d3a52; }
.footer-note { margin-top: 0.75rem; font-size: 0.9rem; max-width: 34rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-nav a, .footer-button {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink); font: 600 0.95rem var(--font-ui);
  text-decoration: underline; text-decoration-color: rgb(247 244 238 / 0.35);
}
.footer-nav a:hover, .footer-button:hover { color: #fff; text-decoration-color: #fff; }
.footer-button { background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer :focus-visible { outline-color: var(--teal-bright); }
.footer-copy { font-size: 0.875rem; }
@media (min-width: 960px) {
  .site-footer-inner { grid-template-columns: 1fr auto; padding: 3.5rem 2rem; align-items: start; }
  .footer-copy { grid-column: 1 / -1; }
}

/* --- Mobile order bar --------------------------------------------------------------- */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgb(15 34 51 / 0.35);
}
.order-bar[hidden] { display: none; }
.order-bar-price { line-height: 1.2; }
.order-bar-price strong { font: 600 1.5rem var(--font-display); }
.order-bar-price span { display: block; font-size: 0.85rem; color: var(--muted); }
.order-bar .btn { min-height: 48px; }
@media (min-width: 960px) { .order-bar { display: none; } }
/* Keyboard focus never ends up under the fixed order bar (WCAG 2.4.11). */
@media (max-width: 959px) { html:has(.order-bar) { scroll-padding-bottom: 6rem; } }

/* --- Consent banner ----------------------------------------------------------------- */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 40;
  max-width: 44rem; margin: 0 auto; padding: 1rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.875rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent-buttons { margin-top: 0.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.consent-buttons .btn { flex: 1 1 8rem; min-height: 44px; }

/* --- Text pages (imprint, privacy, terms, 404) -------------------------------------- */
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.legal h1 { font: 600 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1.08 var(--font-display); letter-spacing: -0.02em; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.25rem; }
.legal-meta { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.notfound { max-width: 40rem; margin: 0 auto; padding: 5rem var(--gutter) 6rem; }
.notfound h1 { font: 600 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1.08 var(--font-display); }
.notfound p { margin-top: 1rem; color: var(--ink-soft); }
.notfound .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
