/*
 * Lead Ads Guide — native CSS, no compilers.
 * Organized with cascade layers; tokens drive everything.
 */

@layer reset, tokens, base, components;

/* ─────────────────────────  TOKENS  ───────────────────────── */
@layer tokens {
  :root {
    /* palette */
    --accent:       oklch(64% 0.197 33);     /* #EB5030 coral — CTAs, primary buttons */
    --accent-deep:  oklch(from var(--accent) 0.56 c h);  /* #c73f22 — coral pressed / hovered */
    --accent-muted: oklch(55.6% 0.105 75);   /* #97691E gold — eyebrow labels, icons, secondary links */
    --ink:          oklch(25.4% 0.054 65);   /* #341C02 warm dark-brown — headings, and the few dark surfaces */
    --paper:        oklch(95% 0.009 85);     /* #F1EEE8 cream — page / chrome background */
    --paper-deep:   oklch(91.5% 0.019 83);   /* #e9e2d5 — course sidebar tint */
    --paper-card:   oklch(89% 0.026 79);     /* #e4d9c8 — media / photo placeholder tint */
    --white:        oklch(99.4% 0.007 89);   /* #fffdf8 — card surface */
    --danger:       oklch(54.9% 0.131 34);   /* #b0503a error / destructive red */

    /* Landing outcome hues. Each card sets --hue to one of these; the panel
       tint is derived from it in the component, so it can never drift. */
    --blue:   oklch(51% 0.19 264);
    --purple: oklch(51% 0.20 293);
    --pink:   oklch(55% 0.20 359);

    --text:         oklch(40% 0.075 70);     /* #6b4a1e body copy, warm, a shade off ink */
    --muted:        oklch(49% 0.077 76);     /* captions / secondary text on light surfaces */
    --muted-on-dark: oklch(66% 0.06 80);     /* secondary text on the dark ink footer */

    /* Structural borders (tables, forms, chrome) vs. decorative card edges,
       which sit lighter because a shadow is doing the separating. */
    --hairline:      oklch(from var(--ink) l c h / 0.14);
    --hairline-soft: oklch(from var(--ink) l c h / 0.08);

    /* radius — named for what it wraps */
    --r-chip:  12px;
    --r-tile:  16px;
    --r-card:  22px;
    --r-panel: 28px;
    --r-pill:  999px;

    /* elevation */
    --shadow-card:  0 1px 2px oklch(from var(--ink) l c h / 0.03), 0 14px 32px oklch(from var(--ink) l c h / 0.05);
    --shadow-lift:  0 2px 3px oklch(from var(--ink) l c h / 0.06), 0 22px 46px oklch(from var(--ink) l c h / 0.09);
    --shadow-float: 0 24px 60px oklch(from var(--ink) l c h / 0.1);

    /* type */
    --font-body:    "IBM Plex Sans", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --font-mono:    "Space Mono", monospace;
  }
}

/* ─────────────────────────  RESET  ───────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
}

/* ─────────────────────────  BASE  ───────────────────────── */
@layer base {
  body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
  }

  a {
    color: var(--accent);

    &:hover { color: var(--accent-deep); }
  }

  @keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px oklch(from var(--accent) l c h / 0.35); }
    50%      { box-shadow: 0 0 40px oklch(from var(--accent) l c h / 0.65); }
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
  }
  @keyframes checkPop {
    0%   { transform: scale(.5); opacity: 0; }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
  }
}

/* ─────────────────────────  COMPONENTS  ───────────────────────── */
@layer components {

  /* Brand lockup — shared/_brand.html.erb */
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;

    & img { height: 36px; border-radius: 11px; }

    & .brand__name {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 700;
      color: var(--ink);
      letter-spacing: -.01em;
      line-height: 1;
    }

    &.compact {
      & img { height: 28px; }
      & .brand__name { font-size: 13px; }
    }
  }

  /* Brand on a dark surface needs light text + a screen-blended mark.
     Only .site-footer (auth pending page) is dark — the landing footer is cream,
     where screen-blending would erase the mark entirely. */
  .site-footer .brand {
    & img { mix-blend-mode: screen; }
    & .brand__name { color: var(--paper); }
  }

  /* "created by" credit pill — shared/_credit_pill.html.erb */
  .credit-pill-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 28px;
  }
  .credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-card);
    transition: box-shadow .18s ease, border-color .18s ease, color .18s ease;

    &:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
    & img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  }

  /* The pill also sits on the auth pending page's ink footer, where a white
     chip would shout. Same precedent as .brand above. */
  .site-footer .credit-pill {
    color: var(--muted-on-dark);
    background: transparent;
    border-color: oklch(from var(--paper) l c h / 0.16);
    box-shadow: none;

    &:hover { box-shadow: none; border-color: oklch(from var(--paper) l c h / 0.4); color: var(--paper); }
  }

  /* Top nav */
  .topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 0 clamp(20px, 5vw, 64px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .topbar__link {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .06em;
  }

  /* Eyebrow badge */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-muted);
    background: oklch(from var(--accent-muted) l c h / 0.08);
    border: 1px solid oklch(from var(--accent-muted) l c h / 0.35);
    border-radius: var(--r-pill);
    padding: 6px 16px;
    letter-spacing: .11em;
  }

  /* Display headline */
  .display {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
  }

  /* Coloured emphasis inside any headline. Top level, not nested in .lp-h2 —
     the auth screens and the pending state use .accent on .display too. */
  .accent      { color: var(--accent); }
  .accent-gold { color: var(--accent-muted); }

  /* Card */
  .card {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    padding: 36px;
    box-shadow: var(--shadow-card);
  }

  /* Form fields */
  .field {
    margin-bottom: 20px;

    & label {
      display: block;
      margin-bottom: 8px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--muted);
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    & input {
      width: 100%;
      background: var(--paper);
      border: 1px solid oklch(from var(--ink) l c h / 0.18);
      border-radius: var(--r-chip);
      color: var(--ink);
      padding: 13px 16px;
      font-family: var(--font-body);
      font-size: 15px;
      transition: border-color .15s, box-shadow .15s;

      &:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.12);
      }
    }
  }

  /* Big spaced digits for the 6-digit code (beats .field input) */
  .field input.code-input {
    font-family: var(--font-mono);
    font-size: 28px;
    letter-spacing: 0.4em;
    text-align: center;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    background: var(--accent);
    color: var(--paper);
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    letter-spacing: .08em;
    padding: 15px 30px;
    transition: background .18s ease;

    &:hover { background: var(--accent-deep); }
  }
  .btn--block { display: block; width: 100%; text-align: center; padding: 15px; }
  .btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--hairline);
    padding: 13px 24px;

    &:hover { background: transparent; border-color: oklch(from var(--accent) l c h / 0.4); }
  }
  .btn--glow  { animation: btnGlow 3s ease-in-out infinite; }

  /* Inline error / flash */
  .form-error {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--danger);
    letter-spacing: .04em;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: oklch(from var(--danger) l c h / 0.08);
    border-left: 3px solid var(--danger);
    border-radius: var(--r-chip);
  }

  /* Small mono note */
  .note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
    line-height: 1.6;
    text-align: center;
  }

  /* ── Auth pages (sign in / enter code) ── */
  .auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
  }
  .auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 72px) clamp(20px, 5vw, 40px);
  }
  .auth-shell {
    width: 100%;
    max-width: 420px;
    animation: slideUp .35s ease;
  }
  .auth-head {
    text-align: center;
    margin-bottom: 36px;

    & .badge { margin-bottom: 20px; }
    & p { margin-top: 14px; font-size: 14px; color: var(--text); }
  }
  .auth-footer {
    padding: 24px clamp(20px, 5vw, 64px);
    text-align: center;

    & a {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: .07em;
    }
  }

  /* ── Long-form legal pages (privacy, terms) ── */
  .legal {
    width: 100%;
    max-width: 700px;
    animation: slideUp .35s ease;

    & .legal__head { margin-bottom: 32px; }
    & .legal__head .display { font-size: 40px; margin-bottom: 10px; }

    & h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 22px;
      color: var(--ink);
      margin: 32px 0 8px;
    }

    & h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 17px;
      color: var(--ink);
      margin: 22px 0 6px;
    }

    & p {
      color: var(--text);
      font-size: 16px;
      line-height: 1.65;
    }

    & .legal__lead {
      color: var(--muted);
      font-size: 17px;
    }

    & ul {
      margin: 10px 0;
      padding-left: 22px;
      list-style: disc;

      & li { color: var(--text); font-size: 16px; line-height: 1.6; margin: 6px 0; }
    }

    & strong { color: var(--ink); font-weight: 700; }
    & code { font-family: var(--font-mono); font-size: .88em; }

    & table {
      display: block;
      overflow-x: auto;
      border-collapse: collapse;
      font-size: 14px;
      margin: 16px 0;
    }
    & th, & td {
      border: 1px solid var(--hairline);
      padding: 8px 10px;
      text-align: left;
      vertical-align: top;
    }
    & th {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    & a { color: var(--danger); }
  }

  /* ── Access pending (signed in, no entitlement) ── */
  .pending {
    width: 100%;
    max-width: 480px;
    text-align: center;
    animation: slideUp .35s ease;

    & .badge { margin-bottom: 24px; }
    & .display { margin-bottom: 20px; }
  }
  .status-tile {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: oklch(from var(--accent-muted) l c h / 0.1);
    border: 2px solid oklch(from var(--accent-muted) l c h / 0.35);
    border-radius: var(--r-chip);
    animation: pulse 2.5s ease-in-out infinite;
  }
  .pending__card {
    text-align: left;
    margin-bottom: 24px;

    & p {
      font-size: 15px;
      line-height: 1.8;
      color: var(--text);
      text-wrap: pretty;
    }
    & p + p { margin-top: 16px; }
  }

  /* Dark footer (logo + copyright) */
  .site-footer {
    background: var(--ink);
    padding: 20px clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-on-dark);
    letter-spacing: .06em;

    & .topbar__link { color: var(--muted-on-dark); }
  }


  /* ── Admin / Users ── */
  .admin-page { min-height: 100vh; background: var(--paper); }
  .admin-body { padding: 40px clamp(20px, 4vw, 32px); }

  .topbar__group { display: flex; align-items: center; gap: 12px; }
  .topbar__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    padding: 3px 10px;
    border: 1px solid oklch(from var(--accent-muted) l c h / 0.3);
    border-radius: var(--r-pill);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;

    & .display { font-size: 36px; margin-bottom: 6px; }
  }
  .count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
  }

  .flash-notice {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink);
    background: oklch(from var(--accent-muted) l c h / 0.12);
    border-left: 3px solid var(--accent-muted);
    border-radius: var(--r-chip);
    padding: 10px 14px;
    margin-bottom: 16px;
    letter-spacing: .04em;
  }

  .table-wrap {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    overflow: hidden;
    overflow-x: auto;
  }
  .data-table {
    border-collapse: collapse;
    width: 100%;

    & th {
      text-align: left;
      padding: 13px 20px;
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: .16em;
      text-transform: uppercase;
      white-space: nowrap;
      border-bottom: 1px solid var(--hairline);
    }
    & td {
      padding: 14px 20px;
      border-bottom: 1px solid oklch(from var(--ink) l c h / 0.07);
      font-size: 14px;
      color: var(--ink);
      vertical-align: middle;
    }
    & tbody tr:hover td { background: var(--paper-deep); }

    & .cell-mono { font-family: var(--font-mono); font-size: 12px; }
    & .cell-date {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
    }
    & .cell-dim { color: var(--muted); }
  }

  .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .actions form { display: inline; }

  .btn--sm { font-size: 10px; padding: 8px 18px; letter-spacing: .07em; }
  .btn--revoke {
    background: transparent;
    color: var(--danger);
    border: 1px solid oklch(from var(--danger) l c h / 0.45);
    text-decoration: none;

    &:hover { background: oklch(from var(--danger) l c h / 0.08); }
  }

  /* ── Course view (app shell) ── */
  /* Three cards floating on the cream ground. The third track is `auto`, so it
     collapses to nothing on a lesson that renders no downloads aside. Each card
     scrolls on its own — the shell itself never scrolls. */
  .course-layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    overflow: hidden;

    /* Main + 236px aside + 256px sidebar stops fitting a 16:9 video here. */
    @media (max-width: 1000px) { grid-template-columns: 256px minmax(0, 1fr); }

    /* Below this the sidebar itself has to leave. */
    @media (max-width: 820px) {
      grid-template-columns: minmax(0, 1fr);
      padding: 66px 10px 10px;
    }
  }

  /* Mobile chrome. Both are fixed, so neither claims a grid track. */
  .course-mobilebar {
    display: none;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 70;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    background: oklch(from var(--paper) l c h / 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline-soft);
  }
  .course-mobilebar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
  }
  .course-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: oklch(from var(--ink) l c h / 0.27);
  }

  /* Sidebar — transparent; the lesson tiles do the work. */
  .course-sidebar {
    display: flex;
    flex-direction: column;
    padding: 16px 12px 14px;
    overflow-y: auto;

    /* Off-canvas drawer, opened by :target from the mobile bar. No JS: the
       toggle and the scrim are ordinary anchors, so this survives with
       scripting off and the back button closes it. */
    @media (max-width: 820px) {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 60;
      width: 272px;
      padding-top: 70px;
      background: var(--paper);
      box-shadow: 0 0 40px oklch(from var(--ink) l c h / 0.2);
      transform: translateX(-102%);
      transition: transform .22s cubic-bezier(.2, .7, .3, 1);

      &:target { transform: none; }
    }
  }
  .course-brand {
    padding: 6px 10px 20px;
    flex-shrink: 0;

    /* The mobile bar already carries the brand; the drawer clears it with
       its own padding-top. */
    @media (max-width: 820px) { display: none; }
  }
  .course-nav { flex: 1; display: flex; flex-direction: column; gap: 6px; }
  .course-group {
    padding: 4px 10px 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-muted);
    letter-spacing: .19em;
    text-transform: uppercase;

    &.dim { color: var(--muted); }
  }
  .course-divider {
    height: 1px;
    background: var(--hairline-soft);
    margin: 14px 10px;
  }
  .lesson-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    margin: 0 4px;
    border: 1px solid transparent;
    border-radius: var(--r-tile);
    text-decoration: none;
    transition: background .14s ease, box-shadow .14s ease;

    & .lesson-link__icon {
      font-family: var(--font-mono);
      font-size: 13px;
      width: 16px;
      text-align: center;
      flex-shrink: 0;
      line-height: 1;
      color: oklch(from var(--muted) 0.7 c h);
    }
    & .lesson-link__title {
      font-size: 13.5px;
      line-height: 1.3;
      color: var(--muted);
    }
    &:hover { background: var(--white); }

    /* The open lesson lifts off the ground as its own tile — this replaces
       v1's left-border accent. */
    &.is-current {
      background: var(--white);
      border-color: var(--hairline-soft);
      box-shadow: var(--shadow-card);

      & .lesson-link__icon { color: var(--accent); font-size: 10px; }
      & .lesson-link__title { color: var(--ink); font-weight: 600; }
    }
    &.is-done {
      & .lesson-link__icon { color: var(--accent-muted); font-size: 11px; }
      & .lesson-link__title { color: oklch(from var(--muted) 0.58 c h); }
    }

    /* Not a link — nothing to click, so nothing should look clickable. */
    &.is-soon {
      cursor: default;
      &:hover { background: none; }
      & .lesson-link__icon,
      & .lesson-link__title { color: oklch(from var(--muted) l c h / 0.6); }
    }
  }
  .lesson-link__soon {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: oklch(from var(--muted) l c h / 0.7);
    flex-shrink: 0;
  }

  /* Book a call — a standing offer pinned below the lessons, not a step in
     the path, so it sits outside the numbered list entirely. */
  .course-booking-cta {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    margin: 18px 4px 0;
    padding: 13px 14px;
    border-radius: var(--r-tile);
    background: oklch(from var(--accent) l c h / 0.06);
    border: 1px solid oklch(from var(--accent) l c h / 0.22);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
    text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease;

    &:hover { background: oklch(from var(--accent) l c h / 0.1); }

    &.is-current {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--paper);
      box-shadow: 0 8px 20px oklch(from var(--accent) l c h / 0.2);
    }
  }
  .course-booking-cta__icon { font-size: 14px; line-height: 1; flex-shrink: 0; }

  .course-signout {
    flex-shrink: 0;
    padding: 14px 10px 4px;
    margin-top: 18px;

    & a {
      display: block;
      font-family: var(--font-mono);
      font-size: 11px;
      color: oklch(from var(--muted) 0.58 c h);
      text-decoration: none;
      letter-spacing: .06em;
    }
    & a + a { margin-top: 10px; }
  }

  /* Content cards */
  .course-main {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 44px clamp(28px, 4vw, 54px) 72px;
    overflow-y: auto;
    min-width: 0;

    @media (max-width: 820px) {
      padding: 26px 20px 60px;
      border-radius: var(--r-tile);
    }
  }
  .course-aside {
    width: 236px;
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 26px 18px;
    overflow-y: auto;

    /* Reflows under the lesson rather than vanishing — the canvas hid it
       outright, which puts the templates out of reach on a phone. */
    @media (max-width: 1000px) {
      width: auto;
      grid-column: 1 / -1;
      overflow-y: visible;
    }
    @media (max-width: 820px) { border-radius: var(--r-tile); }
  }

  .course-flash { margin-bottom: 24px; }

  /* Lesson content */
  .lesson-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 3.4vw, 42px);
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1.03;
    text-wrap: balance;
    margin-bottom: 28px;
  }
  .video-embed {
    max-width: 820px;
    margin-bottom: 32px;

    & iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 0;
      display: block;
      border-radius: var(--r-card);
      box-shadow: var(--shadow-lift);
      background: var(--ink);
    }
  }
  .booking {
    max-width: 820px;
    margin-bottom: 32px;

    & .booking__lede {
      font-size: 15px;
      color: var(--muted);
      margin-bottom: 20px;
    }
  }
  /* Timezone tabs. Radios + :checked, so switching calendars needs no JS.
     The radios must precede the panels for the sibling combinator, which is
     also why the tabs sit above the calendar rather than below it. */
  .booking__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .booking__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .booking__tab {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    padding: 12px 24px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;

    &:hover { border-color: oklch(from var(--accent) l c h / 0.4); }
  }
  .booking__panel {
    flex: 0 0 100%;
    display: none;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--paper);

    /* cal.com renders a full booking page in here; it scrolls internally. */
    & iframe {
      width: 100%;
      height: 620px;
      border: 0;
      display: block;
      background: var(--paper-card);

      /* cal switches to a stacked date+slot list on narrow viewports. */
      @media (max-width: 900px) { height: 760px; }
    }
  }
  .booking__radio:focus-visible + .booking__tab {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  #booking-tz-us:checked ~ .booking__tab--us,
  #booking-tz-row:checked ~ .booking__tab--row {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
    box-shadow: 0 8px 20px oklch(from var(--accent) l c h / 0.2);
  }
  #booking-tz-us:checked ~ .booking__panel--us,
  #booking-tz-row:checked ~ .booking__panel--row { display: block; }

  .text-only-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: oklch(from var(--accent-muted) l c h / 0.08);
    border: 1px solid oklch(from var(--accent-muted) l c h / 0.2);
    border-radius: var(--r-pill);
    padding: 8px 18px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-muted);
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .lesson-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 820px;
    margin-bottom: 44px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline-soft);

    /* The coral glow lives here rather than on .btn, which is shared with the
       landing and the auth screens. */
    & .btn { box-shadow: 0 8px 22px oklch(from var(--accent) l c h / 0.2); }
  }
  .completed-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    & .check { display: inline-block; animation: checkPop .4s ease; }
  }
  /* Enhancement only: rendered hidden and revealed by Stimulus, so no dead
     control appears when scripting is off. */
  .transcript-btn[hidden] { display: none; }

  .lesson-content {
    max-width: 660px;

    & p { font-size: 16px; line-height: 1.85; color: oklch(from var(--text) 0.34 c h); margin-bottom: 18px; }
    & h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 22px;
      color: var(--ink);
      letter-spacing: -.02em;
      margin: 30px 0 14px;
    }
    & ul { padding-left: 20px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
    & li { font-size: 15px; color: oklch(from var(--text) 0.34 c h); line-height: 1.7; }
    & a { color: var(--accent); }
  }

  /* Downloads aside */
  .downloads__label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: oklch(from var(--muted) 0.58 c h);
    letter-spacing: .19em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .downloads__list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* Once the aside is a full-width card, a tall stack wastes the row. */
    @media (max-width: 1000px) {
      flex-direction: row;
      flex-wrap: wrap;
      & .dl-card { flex: 1 1 220px; }
    }
  }
  .dl-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    background: var(--paper);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-tile);
    text-decoration: none;
    transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease, border-color .18s ease;

    &:hover {
      transform: translateY(-2px);
      border-color: oklch(from var(--accent) l c h / 0.35);
      box-shadow: 0 10px 22px oklch(from var(--ink) l c h / 0.08);
    }

    & .dl-card__type {
      font-family: var(--font-mono);
      font-size: 8px;
      font-weight: 700;
      color: var(--accent);
      border: 1px solid oklch(from var(--accent) l c h / 0.35);
      border-radius: var(--r-pill);
      padding: 4px 7px;
      letter-spacing: .06em;
      flex-shrink: 0;
    }
    & .dl-card__name {
      font-size: 13px;
      font-weight: 500;
      color: var(--ink);
      line-height: 1.3;
    }
  }

  /* Drawer open state. Cross-element, so it can't nest inside one component. */
  @media (max-width: 820px) {
    .course-mobilebar,
    .course-mobilebar__toggle--open { display: flex; }

    .course-layout:has(.course-sidebar:target) {
      & .course-scrim { display: block; }
      & .course-mobilebar__toggle--open { display: none; }
      & .course-mobilebar__toggle--close { display: flex; }
    }
  }

  /* ── Landing page (public sales) ── */
  /* Every section sits on cream; the white cards carry the contrast. */
  .landing { color: var(--ink); }

  .lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: oklch(from var(--paper) l c h / 0.88);
    -webkit-backdrop-filter: blur(14px); /* Safari < 18 only supports the prefixed form */
    backdrop-filter: blur(14px);
    padding: 0 clamp(18px, 4vw, 44px);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .lp-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .lp-nav__signin {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .05em;
    white-space: nowrap;
    transition: color .18s ease;

    &:hover { color: var(--ink); }
  }

  /* Mobile menu — <details>, no JavaScript. The app has no JS-dependent
     features and the Safari 16.5 floor decision rests on keeping it that way. */
  .lp-menu {
    display: none;

    & > summary {
      list-style: none;
      cursor: pointer;
      user-select: none;
      padding: 8px;
      font-size: 20px;
      line-height: 1;
      color: var(--ink);
    }
    & > summary::-webkit-details-marker { display: none; }
    &[open] .fq-plus { display: none; }
    & .fq-minus { display: none; }
    &[open] .fq-minus { display: inline; }
  }
  /* Absolute against the sticky nav, NOT fixed: .lp-nav's backdrop-filter makes
     it a containing block for fixed descendants, so `fixed` would resolve here
     anyway and only appear to work. This also tracks the nav height for free. */
  .lp-menu__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px clamp(18px, 4vw, 44px) 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-float);

    & .lp-nav__signin { font-size: 13px; padding: 12px 0; }
    & .lp-cta { text-align: center; }
  }

  /* Sections */
  .lp-section { padding: clamp(50px, 8vw, 100px) clamp(18px, 4vw, 44px); }
  .lp-inner { max-width: 1000px; margin: 0 auto; }
  .lp-inner--center { text-align: center; }
  .lp-inner--narrow { max-width: 840px; }

  .lp-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.02;
    color: var(--ink);
    letter-spacing: -.025em;
    margin-bottom: 34px;
    text-align: center;
    text-wrap: balance;
  }

  /* CTA */
  .lp-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    background: var(--accent);
    color: var(--paper);
    border-radius: var(--r-pill);
    padding: 17px 44px;
    text-decoration: none;
    letter-spacing: .08em;
    transition: background .18s ease, transform .18s ease;

    &:hover { background: var(--accent-deep); color: var(--paper); transform: translateY(-2px); }
  }
  .lp-cta--sm { font-size: 11px; padding: 11px 22px; letter-spacing: .07em; }
  .lp-cta--block { display: block; padding: 16px; text-align: center; }
  .lp-cta--glow { box-shadow: 0 10px 26px oklch(from var(--accent) l c h / 0.2); }
  .lp-cta--dark {
    background: var(--ink);

    &:hover { background: var(--paper); color: var(--ink); }
  }

  /* Hero */
  .lp-hero { padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 44px) clamp(30px, 5vw, 56px); }
  .lp-hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
  .lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-muted);
    background: oklch(from var(--accent-muted) l c h / 0.08);
    border-radius: var(--r-pill);
    padding: 7px 16px;
    letter-spacing: .11em;
    margin-bottom: 26px;
  }
  .lp-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin-bottom: 20px;
    color: var(--ink);
    text-wrap: balance;
  }
  .lp-hero__sub {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 44px;
    text-wrap: pretty;
  }
  .lp-media {
    aspect-ratio: 16/9;
    max-width: 880px;
    margin: 0 auto clamp(38px, 5vw, 58px);
    background: var(--ink);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow-float);

    & iframe { width: 100%; height: 100%; border: 0; display: block; }
  }
  .lp-hero__cta { text-align: center; }
  .lp-trust {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .09em;
  }

  /* Comparison table — 12 cells as direct grid children, so rows align by
     construction. Source order pairs each without/with, which is also how a
     screen reader should hear it. */
  .lp-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    overflow: hidden;
  }
  .lp-compare__head {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--danger);
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .lp-compare__cell {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 24px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid var(--hairline-soft);

    &::before { content: "❌"; font-size: 13px; line-height: 1.4; flex-shrink: 0; }
  }
  /* The "with the guide" column runs edge to edge in ink */
  .lp-compare__head--yes, .lp-compare__cell--yes {
    background: var(--ink);
    border-bottom-color: oklch(from var(--paper) l c h / 0.12);
  }
  .lp-compare__head--yes { color: oklch(from var(--accent-muted) 0.75 c h); } /* gold, lifted to read on ink */
  .lp-compare__cell--yes {
    color: var(--paper);

    &::before { content: "✅"; }
  }
  .lp-compare > :nth-last-child(-n+2) { border-bottom: none; }

  /* Outcome cards */
  .lp-outcome {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;

    &:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  }
  .lp-outcome--1 { --hue: var(--blue); }
  .lp-outcome--2 { --hue: var(--purple); }
  .lp-outcome--3 { --hue: var(--pink); }

  .lp-outcome__top {
    padding: 22px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .lp-outcome__label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--hue);
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .lp-outcome__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: oklch(from var(--hue) l c h / 0.12);
  }
  .lp-outcome__body { padding: 16px 24px 20px; }
  .lp-outcome__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--ink);
    text-wrap: pretty;
  }
  .lp-outcome__text { font-size: 14px; color: var(--muted); line-height: 1.6; }

  /* Tinted panel carrying the art, the ghost number and the caption. The tint
     is derived from --hue so it can never drift from the card's colour. */
  .lp-outcome__panel {
    position: relative;
    margin-top: auto;
    height: 150px;
    overflow: hidden;
    background: oklch(from var(--hue) 94% 0.03 h);

    /* fades the art into the card body above the caption */
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--white) 0%, transparent 58%);
      pointer-events: none;
    }
  }
  .lp-outcome__num {
    position: absolute;
    left: 18px;
    bottom: 56px;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -.04em;
    color: oklch(from var(--hue) l c h / 0.14);
  }
  .lp-outcome__caption {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
    letter-spacing: .05em;
  }

  /* Card art — decorative, aria-hidden in the markup */
  .lp-art { position: absolute; inset: 0; }
  .lp-art__node {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--white);
    border: 1.5px solid oklch(from var(--hue) l c h / 0.27);
  }
  .lp-art__node--filled { background: var(--hue); border-color: var(--hue); }
  .lp-art__wire {
    position: absolute;
    background: oklch(from var(--hue) l c h / 0.27);
  }
  /* 01 — a flow: three nodes in a row, one dropped below */
  .lp-outcome--1 .lp-art {
    & .lp-art__node:nth-of-type(1) { right: 130px; top: 26px; }
    & .lp-art__node:nth-of-type(2) { right: 71px;  top: 26px; }
    & .lp-art__node:nth-of-type(3) { right: 12px;  top: 26px; }
    & .lp-art__node:nth-of-type(4) { right: 56px;  top: 82px; }
    & .lp-art__wire:nth-of-type(1) { right: 101px; top: 40px; width: 30px; height: 1.5px; }
    & .lp-art__wire:nth-of-type(2) { right: 42px;  top: 40px; width: 30px; height: 1.5px; }
    & .lp-art__wire:nth-of-type(3) { right: 70px;  top: 56px; width: 1.5px; height: 26px; }
  }
  /* 02 — two tilted template cards */
  .lp-art__sheet {
    position: absolute;
    top: 20px;
    width: 78px;
    height: 104px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid oklch(from var(--hue) l c h / 0.12);
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;

    & span {
      display: block;
      border-radius: 3px;
      background: oklch(from var(--hue) l c h / 0.12);
      height: 5px;
    }
    & span:first-child { height: 40px; border-radius: 6px; }
  }
  .lp-art__sheet:nth-of-type(1) { right: 78px; transform: rotate(-6deg); }
  .lp-art__sheet:nth-of-type(2) {
    right: 22px;
    top: 28px;
    transform: rotate(6deg);
    border-color: oklch(from var(--hue) l c h / 0.27);
    box-shadow: 0 8px 20px oklch(from var(--ink) l c h / 0.07);

    & span:last-child { height: 16px; width: 46px; border-radius: var(--r-pill); background: var(--hue); }
  }
  /* 03 — a 2×2 quadrant with one cell live */
  .lp-art__quad {
    position: absolute;
    right: 30px;
    top: 18px;
    display: grid;
    grid-template-columns: 52px 52px;
    grid-template-rows: 52px 52px;
    gap: 6px;

    & span { border-radius: 9px; background: oklch(from var(--hue) l c h / 0.12); }
    & span:nth-child(2) { background: var(--hue); }
  }

  /* Grids */
  .two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

  /* "What's included" */
  .lp-incl {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    padding: 24px;
  }
  .lp-incl__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--hue);
    color: var(--white);

    & svg { width: 22px; height: 22px; }
  }
  .lp-incl--1 { --hue: var(--blue); }
  .lp-incl--2 { --hue: var(--purple); }
  .lp-incl--3 { --hue: var(--pink); }
  .lp-incl__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: -.015em;
    margin-bottom: 6px;
    text-wrap: pretty;
  }
  .lp-incl__text { font-size: 13px; color: var(--muted); line-height: 1.55; }

  /* Credibility — one contained card */
  .cred-card {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-panel);
    box-shadow: var(--shadow-card);
    padding: clamp(26px, 4vw, 48px);
  }
  .cred-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
  }
  .cred-photo {
    aspect-ratio: 4/5;
    background: var(--paper);
    border-radius: var(--r-card);
    overflow: hidden;

    & img { display: block; width: 100%; height: 100%; object-fit: cover; }
  }
  .cred-bio .lp-h2 {
    text-align: left;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.06;
    margin-bottom: 18px;
  }
  .cred-bio p { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 14px; text-wrap: pretty; }
  .cred-links {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .05em;
    color: var(--muted);
    margin-top: 18px;

    & a { text-decoration: none; }
  }

  /* Who it's for */
  .lp-card {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    padding: 30px;
  }
  .lp-card--yes {
    background: oklch(from var(--accent-muted) l c h / 0.08);
    border-color: oklch(from var(--accent-muted) l c h / 0.22);
  }
  .lp-card__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent-muted);
  }
  .lp-card__label--red { color: var(--danger); }

  .lp-list { display: flex; flex-direction: column; gap: 16px; }
  .lp-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
  }
  .lp-list li::before { font-size: 13px; line-height: 1.3; margin-top: 2px; flex-shrink: 0; }
  .lp-list--check li { color: var(--ink); }
  .lp-list--check li::before { content: "✅"; }
  .lp-list--cross li::before { content: "❌"; }

  /* Pricing */
  .lp-price {
    position: relative;
    max-width: 440px;
    margin: 0 auto;

    /* coral bloom behind the card */
    &::before {
      content: "";
      position: absolute;
      inset: -70px;
      pointer-events: none;
      background: radial-gradient(ellipse at 50% 42%,
        oklch(from var(--accent) l c h / 0.16) 0%,
        oklch(from var(--accent) l c h / 0.07) 42%,
        transparent 72%);
    }
  }
  .lp-price-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-panel);
    box-shadow: var(--shadow-float);
    padding: 38px;
    text-align: left;
  }
  .lp-price-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
  }
  .lp-price-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    color: var(--ink);
    letter-spacing: -.015em;
  }
  .lp-price-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 64px;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.035em;
    margin-bottom: 8px;
  }
  .lp-price-terms {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
    line-height: 1.7;
    margin-bottom: 26px;
  }
  .lp-price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;

    & li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); font-size: 15px; line-height: 1.5; }
    & li::before { content: "✓"; color: var(--accent-muted); font-size: 13px; flex-shrink: 0; }
  }
  .lp-price-note {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    letter-spacing: .05em;
  }

  /* FAQ */
  .lp-faq {
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    padding: 6px 26px;
  }
  .lp-faq details { border-bottom: 1px solid var(--hairline-soft); }
  .lp-faq details:last-of-type { border-bottom: none; }
  .lp-faq summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
  }
  .lp-faq summary::-webkit-details-marker { display: none; }
  .lp-faq__q {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: -.01em;
  }
  .lp-faq__toggle { color: var(--accent); font-size: 20px; flex-shrink: 0; }
  .lp-faq details[open] .fq-plus { display: none; }
  .lp-faq .fq-minus { display: none; }
  .lp-faq details[open] .fq-minus { display: inline; }
  .lp-faq__answer {
    padding-bottom: 22px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
  }

  /* Final CTA — an inset coral card, not a full-bleed band */
  .lp-section--accent .lp-inner {
    background: var(--accent);
    border-radius: var(--r-panel);
    padding: clamp(44px, 7vw, 86px) clamp(24px, 5vw, 60px);
    text-align: center;
  }
  .lp-final__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.02;
    letter-spacing: -.03em;
    color: var(--paper);
    margin-bottom: 32px;
    text-wrap: balance;
  }
  .lp-section--accent .lp-cta { margin-bottom: 18px; }
  .lp-final__note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--paper);
    letter-spacing: .08em;
  }

  /* Footer — cream, not ink */
  .lp-footer { padding: 0 clamp(18px, 4vw, 44px) 40px; }
  .lp-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline-soft);
  }
  .lp-footer__copy { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-top: 6px; }
  .lp-footer__links {
    font-family: var(--font-mono);
    font-size: 11px;
    display: flex;
    gap: 22px;

    & a {
      color: var(--muted);
      text-decoration: none;
      transition: color .18s ease;

      &:hover { color: var(--ink); }
    }
  }
  .lp-footer .credit-pill-wrap { max-width: 1000px; margin: 22px auto 0; }

  @media (max-width: 900px) {
    .two-col, .three-col, .cred-grid, .lp-compare { grid-template-columns: 1fr; }
    /* Stacked, the column headings sit adjacent and label nothing. Each cell
       already states its own side through its marker and background. */
    .lp-compare__head { display: none; }
    .lp-nav__links { display: none; }
    .lp-menu { display: block; }
  }
}
