/* =========================================================================
   CanadaDrivingTests.ca — Design System
   -------------------------------------------------------------------------
   Single source of truth for tokens, base typography, layout primitives and
   shared components. Imported at the top of every page stylesheet.

   Structural language is modelled on modern test-prep sites (heavy display
   headings, one loud primary CTA, pale alternating section bands, generous
   vertical rhythm) but the palette stays on our own teal + maple identity.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Type */
  --font-sans: "Figtree", ui-sans-serif, -apple-system, system-ui, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9375rem;                          /* 15px  fine print        */
  --step-0: 1.0625rem;                           /* 17px  body              */
  --step-1: 1.1875rem;                           /* 19px  lead paragraph    */
  --step-2: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);      /* h3             */
  --step-3: clamp(1.75rem, 1.25rem + 2.2vw, 2.625rem);    /* h2  → 42px     */
  --step-4: clamp(2.125rem, 1.4rem + 3.2vw, 3.375rem);    /* h1  → 54px     */

  /* Ink */
  --ink-900: #0b1620;
  --ink-700: #33454f;
  --ink-500: #5a6b75;
  --ink-300: #9aa8b0;

  /* Surfaces — the alternating band palette */
  --surface: #ffffff;
  --surface-warm: #fafaf9;
  --surface-cool: #f2f8fa;
  --surface-amber: rgba(255, 234, 179, 0.32);
  --surface-blue: #f2f7ff;

  /* Brand — teal */
  --brand-900: #08313a;
  --brand-800: #0a5462;
  --brand-700: #0a6e80;                          /* primary CTA (5.3:1 on white) */
  --brand-600: #0c8296;
  --brand-400: #3f9db0;                           /* hover borders (3.2:1 on white) */
  --brand-200: #b9e2ea;
  --brand-100: #e6f4f7;

  /* Accents */
  --maple: #c8102e;
  --maple-100: #fdecef;
  --success: #067647;
  --success-100: #e7f5ee;
  --amber: #b7791f;

  /* Lines & elevation */
  --line: #e5e9eb;
  --line-strong: #d2dadd;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 32, 0.06), 0 1px 3px rgba(11, 22, 32, 0.05);
  --shadow: 0 4px 12px rgba(11, 22, 32, 0.07), 0 2px 4px rgba(11, 22, 32, 0.04);
  --shadow-lg: 0 18px 40px rgba(11, 22, 32, 0.1), 0 4px 12px rgba(11, 22, 32, 0.05);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 5.5rem);
  --header-h: 72px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

h2 {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.018em;
}

h3 {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); }

img,
picture,
video { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.ds-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ds-container--narrow { max-width: 820px; }

.ds-section { padding-block: var(--section-y); }

.ds-section--warm  { background: var(--surface-warm); }
.ds-section--cool  { background: var(--surface-cool); }
.ds-section--amber { background: var(--surface-amber); }
.ds-section--blue  { background: var(--surface-blue); }
.ds-section--dark  { background: var(--brand-900); color: #cfe3e8; }
.ds-section--dark h2,
.ds-section--dark h3 { color: #fff; }

.ds-section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.ds-section-head p {
  font-size: var(--step-1);
  color: var(--ink-500);
}

.ds-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.ds-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.ds-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.ds-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 17px 34px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.ds-btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 110, 128, 0.24);
}

.ds-btn--primary:hover {
  background: var(--brand-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 110, 128, 0.3);
}

.ds-btn--secondary {
  background: #fff;
  color: var(--brand-800);
  border: 2px solid var(--line-strong);
}

.ds-btn--secondary:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
  transform: translateY(-2px);
}

.ds-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.ds-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.ds-btn--sm { padding: 10px 20px; font-size: 1rem; border-radius: var(--radius-sm); }

.ds-btn:active { transform: translateY(0); }

/* -------------------------------------------------------------------------
   5. Site header
   ------------------------------------------------------------------------- */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.ds-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.ds-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
}

.ds-brand img { width: 32px; height: 32px; border-radius: 7px; }

.ds-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.ds-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ds-nav a:hover { color: var(--brand-700); }

/* `.ds-nav a` outranks `.ds-btn--primary` on specificity, so buttons living in
   the nav need their colour restated or they inherit the link ink. */
.ds-nav a.ds-btn--primary { color: #fff; }
.ds-nav a.ds-btn--secondary { color: var(--brand-800); }

.ds-header .ds-btn { margin-left: 0.25rem; }

@media (max-width: 860px) {
  .ds-nav { gap: 1rem; }
  .ds-nav a { display: none; }
  .ds-nav a.ds-nav__always { display: inline-flex; }
}

/* Below ~600px the brand and the CTA start fighting for the same row */
@media (max-width: 600px) {
  .ds-header__inner { gap: 0.5rem; }

  .ds-brand {
    min-width: 0;
    font-size: 0.9375rem;
    overflow: hidden;
  }

  .ds-brand img { width: 28px; height: 28px; }

  .ds-header .ds-btn--sm {
    padding: 9px 14px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .ds-brand__tld { display: none; }

  .ds-header .ds-btn--sm {
    padding-inline: 11px;
    font-size: 0;
  }

  .ds-header .ds-btn--sm::after {
    content: "Start test";
    font-size: 0.8125rem;
  }
}

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.ds-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(185, 226, 234, 0.5), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(255, 234, 179, 0.45), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.ds-hero__inner { max-width: 900px; margin-inline: auto; }

.ds-hero h1 { margin-bottom: 1.25rem; }
.ds-hero h1 em { font-style: normal; color: var(--brand-700); }

.ds-hero__lead {
  max-width: 660px;
  margin: 0 auto 2rem;
  font-size: var(--step-1);
  color: var(--ink-500);
}

.ds-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.ds-hero__note {
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* Four-up value props under the hero */
.ds-valueprops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 1040px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}

.ds-valueprop__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.ds-valueprop h2 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.ds-valueprop p {
  font-size: var(--step--1);
  color: var(--ink-500);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   7. Stat strip
   ------------------------------------------------------------------------- */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ds-stat {
  background: #fff;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.ds-stat--link {
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ds-stat--link:hover {
  background: var(--surface-warm);
}

.ds-stat--link:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--brand-primary);
  outline-offset: -3px;
}

.ds-stat__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.ds-stat__label {
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* -------------------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------------------- */
.ds-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.ds-card { text-decoration: none; color: inherit; }

a.ds-card:hover,
.ds-card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}

.ds-card h3 { margin-bottom: 0.4rem; }

.ds-card p {
  font-size: var(--step--1);
  color: var(--ink-500);
  line-height: 1.6;
}

/* Province picker card */
.ds-province {
  position: relative;
  gap: 0.25rem;
  padding: 1.5rem;
}

.ds-province__flag {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.ds-province__name {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.ds-province__test {
  font-size: var(--step--1);
  color: var(--ink-500);
}

.ds-province__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  /* Pushes the meta + CTA block to the bottom so cards line up regardless of
     how many lines the test name wraps to. */
  margin-top: auto;
  padding-top: 1rem;
}

.ds-province__cta {
  margin-top: 1.15rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand-700);
}

a.ds-province:hover .ds-province__cta { text-decoration: underline; }

/* Pills / badges */
.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--brand-100);
  color: var(--brand-800);
  white-space: nowrap;
}

.ds-pill--maple   { background: var(--maple-100); color: var(--maple); }
.ds-pill--success { background: var(--success-100); color: var(--success); }
.ds-pill--neutral { background: var(--surface-warm); color: var(--ink-500); border: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   9. Numbered timeline
   ------------------------------------------------------------------------- */
.ds-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: ds-step;
}

.ds-step { counter-increment: ds-step; }

.ds-step::before {
  content: counter(ds-step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 900;
}

.ds-step h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }

.ds-step p { font-size: var(--step--1); color: var(--ink-500); }

/* -------------------------------------------------------------------------
   10. Testimonials
   ------------------------------------------------------------------------- */
.ds-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.ds-quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-sm);
}

.ds-quote__stars {
  color: #c17c00;   /* 3.4:1 on white — stars convey a rating, so WCAG 1.4.11 applies */
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.ds-quote blockquote {
  margin: 0 0 1rem;
  font-size: var(--step-0);
  color: var(--ink-900);
  line-height: 1.6;
}

.ds-quote__author {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-900);
}

.ds-quote__source {
  font-size: 0.8125rem;
  color: var(--ink-500);
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   11. Closing CTA band
   ------------------------------------------------------------------------- */
.ds-cta-band {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #d7ebef;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.ds-cta-band h2 { color: #fff; margin-bottom: 0.75rem; }

.ds-cta-band p {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: var(--step-1);
}

.ds-cta-band .ds-btn--primary {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.ds-cta-band .ds-btn--primary:hover { background: var(--brand-100); }

/* -------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */
.ds-footer {
  background: var(--brand-900);
  color: #9dbcc4;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: var(--step--1);
}

.ds-footer__grid {
  display: grid;
  /* min() lets both tracks shrink below their preferred width instead of
     forcing a 220 + 150 = 370px floor, which overflowed a 320px screen. */
  grid-template-columns:
    minmax(min(220px, 100%), 1.4fr)
    repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Below the point where three link columns stop being readable, go single. */
@media (max-width: 560px) {
  .ds-footer__grid { grid-template-columns: 1fr; }
}

.ds-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.0625rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.ds-footer__brand img { width: 30px; height: 30px; border-radius: 7px; }

.ds-footer__blurb { max-width: 34ch; line-height: 1.6; }

.ds-footer h2 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.ds-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ds-footer a {
  color: #9dbcc4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ds-footer a:hover { color: #fff; text-decoration: underline; }

.ds-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}

.ds-footer__legal {
  max-width: 68ch;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #7fa3ad;
  line-height: 1.6;
}

/* Cookie-policy trigger keeps its link affordance without the raw blue */
.cookie-policy {
  color: #9dbcc4;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-policy:hover { color: #fff; }

/* =========================================================================
   Homepage — page-specific styles only.
   Everything structural (header, hero, cards, steps, quotes, footer) lives
   in design-system.css.
   ========================================================================= */

.ds-brand__tld { color: var(--brand-700); }

.premium-crown {
  font-size: 1.25rem;
  line-height: 1;
}

/* A tighter band for the stat strip so it hugs the hero */
.ds-section--tight { padding-block: clamp(2rem, 4vw, 2.75rem); }

/* -------------------------------------------------------------------------
   Hero pill spacing
   ------------------------------------------------------------------------- */
.ds-hero .ds-pill { margin-bottom: 1.25rem; }

.ds-card__link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--brand-700);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------
   Transparent paid-access offer
   ------------------------------------------------------------------------- */
.ds-section--premium {
  background:
    radial-gradient(760px 320px at 15% 0%, rgba(185, 226, 234, 0.55), transparent 65%),
    linear-gradient(145deg, #f2f8fa, #fffaf0);
}

.ds-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1040px;
  margin-inline: auto;
}

.ds-pricing__intro p {
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--ink-500);
}

.ds-pricing__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--success);
  font-size: var(--step--1);
  font-weight: 700;
}

.ds-price-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.ds-price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--ink-900);
}

.ds-price-card__price strong {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ds-price-card__price span { font-weight: 800; color: var(--ink-500); }
.ds-price-card__sub { color: var(--ink-500); font-size: var(--step--1); }

.ds-price-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.ds-price-card li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-700);
}

.ds-price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.ds-price-card__cta { width: 100%; }
.ds-price-card__fine { margin-top: 0.9rem; font-size: 0.78rem; line-height: 1.55; color: var(--ink-500); }

@media (max-width: 760px) {
  .ds-pricing { grid-template-columns: 1fr; }
  .ds-pricing__intro { text-align: center; }
  .ds-pricing__intro p { margin-inline: auto; }
  .ds-pricing__trust { justify-content: center; }
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.ds-faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.ds-faq__item + .ds-faq__item { border-top: 1px solid var(--line); }

.ds-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease;
}

.ds-faq__item summary::-webkit-details-marker { display: none; }

.ds-faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-700);
  transition: transform 0.2s ease;
}

.ds-faq__item[open] summary::after { transform: rotate(45deg); }

.ds-faq__item summary:hover { background: var(--surface-cool); }

.ds-faq__item p {
  margin: 0;
  padding: 0 1.35rem 1.35rem;
  color: var(--ink-500);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Cross-promo cards
   ------------------------------------------------------------------------- */
.ds-promo {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.ds-promo__body { flex: 1 1 55%; }

.ds-promo__body h3 { color: var(--brand-800); }

.ds-promo__badge {
  display: inline-block;
  margin-top: 1rem;
}

.ds-promo__badge img { width: 160px; height: auto; }

.ds-promo__art {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.ds-promo__art img {
  width: 100%;
  border-radius: var(--radius);
}

.ds-promo .ds-btn { margin-top: 1rem; }

@media (max-width: 620px) {
  .ds-promo {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ds-promo__art { order: -1; }
}

/* -------------------------------------------------------------------------
   Ad-free unlock toast (kept from the previous design, restyled)
   ------------------------------------------------------------------------- */
#thank-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: calc(100% - 2rem);
  padding: 1.6rem 1.8rem 1.8rem;
  background: var(--ink-900);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  text-align: center;
  overflow-wrap: anywhere;
}

#thank-toast code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #eaf6f9;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  word-break: break-all;
}

#thank-toast button.copy-btn {
  margin-left: 0.5rem;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--brand-600);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#thank-toast button.copy-btn:disabled { background: var(--success); }

.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.25rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

