/*
 * 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-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 (footer, final CTA, price-card shadow) */
    --paper:        oklch(95% 0.009 85);     /* #F1EEE8 cream — page / chrome background */
    --paper-deep:   oklch(91.5% 0.019 83);   /* #e9e2d5 — alternating section & 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 */

    --text:         oklch(32% 0.05 70);      /* body copy, softened 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 */

    --hairline: oklch(from var(--ink) l c h / 0.14);

    /* 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); }

  @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; }

    & .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 (footer) needs light text + a screen-blended mark */
  .site-footer .brand, .lp-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-body);
    font-size: 12px;
    font-weight: 500;
    color: #4A4640;
    letter-spacing: -.01em;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E8E3DC;
    border-radius: 999px;
    box-shadow: 0 2px 10px oklch(from var(--ink) l c h / 0.08);
    transition: box-shadow .15s ease;

    &:hover { box-shadow: 0 4px 16px oklch(from var(--ink) l c h / 0.14); }
    & img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  }

  /* 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);
    padding: 5px 14px;
    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;
  }

  /* Card */
  .card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: 36px;
    box-shadow: 0 4px 28px oklch(from var(--ink) l c h / 0.06);
  }

  /* 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);
      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;
    cursor: pointer;
    letter-spacing: .08em;
    padding: 14px 28px;
  }
  .btn--block { display: block; width: 100%; text-align: center; padding: 14px; }
  .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);
  }

  /* 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);
    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);
    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);
    padding: 10px 14px;
    margin-bottom: 16px;
    letter-spacing: .04em;
  }

  .table-wrap {
    background: var(--white);
    border: 1px solid var(--hairline);
    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: 6px 14px; 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;
  }

  /* ── Course view (app shell) ── */
  .course-layout {
    height: 100vh;
    display: flex;
    overflow: hidden;
  }

  /* Sidebar */
  .course-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--paper-deep);
    border-right: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .course-brand {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
  }
  .course-nav { flex: 1; padding: 20px 0; }
  .course-group {
    padding: 0 18px 10px;

    & .course-group__label {
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 700;
      color: var(--accent-muted);
      letter-spacing: .2em;
      text-transform: uppercase;
      margin-bottom: 2px;
    }
    & .course-group__label.dim { color: var(--muted); }
    & .course-group__desc {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.3;
    }
  }
  .course-divider {
    height: 1px;
    background: var(--hairline);
    margin: 16px 18px;
  }
  .lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-decoration: none;
    border-left: 2.5px solid transparent;
    transition: background .12s;

    & .lesson-link__icon {
      font-family: monospace;
      font-size: 14px;
      width: 16px;
      text-align: center;
      flex-shrink: 0;
      line-height: 1;
      color: var(--accent-muted);
    }
    & .lesson-link__title {
      font-size: 13px;
      line-height: 1.3;
      color: var(--muted);
    }
    &:hover { background: oklch(from var(--accent) l c h / 0.07); }

    &.is-current {
      background: oklch(from var(--accent) l c h / 0.1);
      border-left-color: var(--accent);
      & .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: var(--muted); }
    }
  }
  .course-signout {
    flex-shrink: 0;
    border-top: 1px solid var(--hairline);
    padding: 14px 18px;

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

  /* Right column */
  .course-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
  }
  .course-topbar {
    height: 48px;
    flex-shrink: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;

    & .course-topbar__progress {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      color: var(--accent-muted);
      letter-spacing: .12em;
      text-transform: uppercase;
      flex-shrink: 0;
    }
    & .course-topbar__sep { color: var(--muted); font-size: 10px; flex-shrink: 0; }
    & .course-topbar__title {
      font-size: 13px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }
  }
  .course-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
  }
  .course-main {
    flex: 1;
    overflow-y: auto;
    padding: 44px clamp(24px, 4vw, 56px) 80px;
    background: var(--white);
    min-width: 0;
  }
  .course-aside {
    width: 210px;
    flex-shrink: 0;
    background: var(--paper);
    border-left: 1px solid var(--hairline);
    padding: 30px 18px;
    overflow-y: auto;
  }

  /* Lesson content */
  .lesson-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 44px);
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.02;
    margin-bottom: 32px;
  }
  .video-embed {
    max-width: 820px;
    margin-bottom: 32px;

    & iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 0;
      display: block;
      background: var(--paper-card);
    }
  }
  .text-only-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border-left: 3px solid var(--accent-muted);
    padding: 11px 18px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
  }
  .lesson-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 820px;
    margin-bottom: 44px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);

    & .next-link {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
      text-decoration: underline;
      text-underline-offset: 3px;
      letter-spacing: .08em;
    }
  }
  .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; }
  }
  .lesson-content {
    max-width: 660px;

    & p { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
    & h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: var(--ink);
      letter-spacing: -.01em;
      margin: 28px 0 12px;
    }
    & ul { padding-left: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
    & li { font-size: 15px; color: var(--text); line-height: 1.7; }
    & a { color: var(--accent); }
  }

  /* Downloads aside */
  .downloads__label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .downloads__list { display: flex; flex-direction: column; gap: 10px; }
  .dl-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    background: var(--white);
    border: 1px solid var(--hairline);
    text-decoration: none;
    transition: border-color .15s;

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

    & .dl-card__icon { font-size: 18px; flex-shrink: 0; line-height: 1.1; }
    & .dl-card__text { display: flex; flex-direction: column; gap: 2px; }
    & .dl-card__name {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      line-height: 1.25;
    }
    & .dl-card__type {
      font-family: var(--font-mono);
      font-size: 9px;
      color: var(--muted);
      letter-spacing: .05em;
      text-transform: uppercase;
    }
  }

  /* ── Landing page (public sales) ── */
  .landing { color: var(--ink); }

  .lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: oklch(from var(--paper) l c h / 0.9);
    -webkit-backdrop-filter: blur(14px); /* Safari < 18 only supports the prefixed form */
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 0 clamp(20px, 5vw, 64px);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .lp-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 24px);
  }
  .lp-nav__signin {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .06em;
    white-space: nowrap;
  }

  /* Sections */
  .lp-section { padding: clamp(60px, 9vw, 112px) clamp(20px, 5vw, 64px); }
  .lp-section--tan    { background: var(--paper-deep); }
  .lp-section--light  { background: var(--paper); }
  .lp-section--accent { background: var(--accent); text-align: center; }
  .lp-inner { max-width: 900px; margin: 0 auto; }
  .lp-inner--center { text-align: center; }

  .lp-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-muted);
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .lp-eyebrow--red { color: var(--danger); }

  .lp-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 5.5vw, 60px);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-bottom: 52px;
    text-wrap: pretty;

    & .accent { color: var(--accent-muted); }
    & .accent-red { color: var(--danger); }
  }

  /* Big CTA */
  .lp-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    background: var(--accent);
    color: var(--paper);
    padding: 16px 52px;
    text-decoration: none;
    letter-spacing: .09em;
  }
  .lp-cta--block { display: block; padding: 16px; text-align: center; font-size: 13px; }
  .lp-cta--dark { background: var(--ink); color: var(--paper); }

  /* Hero */
  .lp-hero {
    padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px);
    text-align: center;
  }
  .lp-hero__inner { max-width: 820px; margin: 0 auto; }
  .lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    border: 1px solid oklch(from var(--accent) l c h / 0.4);
    padding: 5px 16px;
    letter-spacing: .12em;
    margin-bottom: 16px;
  }
  .lp-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    color: var(--ink);

    & span { display: block; font-size: clamp(30px, 4.5vw, 52px); }
  }
  .lp-hero__sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 20px;
    text-wrap: pretty;
  }
  .lp-media {
    aspect-ratio: 16/9;
    max-width: 480px;
    margin: 0 auto 20px;
    background: var(--paper-card);
    border: 1px solid var(--ink);

    & iframe { width: 100%; height: 100%; border: 0; display: block; }
  }
  .lp-hero__signin {
    display: block;
    margin: 16px auto 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .07em;
  }
  .lp-trust {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .07em;
  }

  /* Grids */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  @media (max-width: 840px) {
    .two-col, .three-col { grid-template-columns: 1fr; }
  }

  /* Cards */
  .lp-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: 32px;
  }
  .lp-card__label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: var(--accent-muted);
  }
  .lp-card__label--red { color: var(--danger); }
  .lp-card__num {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-muted);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 12px;
  }
  .lp-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 8px;
  }
  .lp-card__text { font-size: 14px; color: var(--muted); line-height: 1.65; }

  /* Check / cross lists (markers via ::before) */
  .lp-list { display: flex; flex-direction: column; gap: 15px; }
  .lp-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
  }
  .lp-list li::before { flex-shrink: 0; margin-top: 2px; font-size: 12px; }
  .lp-list--check li::before { content: "✓"; color: var(--accent-muted); }
  .lp-list--cross li::before { content: "✗"; color: var(--danger); }

  /* "What's included" mini cards */
  .lp-included { margin-top: 48px; border-top: 1px solid var(--hairline); padding-top: 40px; }
  .lp-incl {
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: 28px;
    text-align: center;
  }
  .lp-incl__icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    color: var(--accent-muted);

    & svg { width: 100%; height: 100%; }
  }
  .lp-incl__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 8px;
  }
  .lp-incl__text { font-size: 13px; color: var(--muted); line-height: 1.55; }

  /* Credibility */
  .cred-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 60px;
  }
  @media (max-width: 840px) { .cred-grid { grid-template-columns: 1fr; gap: 32px; } }
  .cred-photo {
    aspect-ratio: 3/4;
    background: var(--paper-card);
    border: 1px solid var(--hairline);
    overflow: hidden;

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .cred-bio p { font-size: 15px; color: var(--text); line-height: 1.85; margin-bottom: 16px; text-wrap: pretty; }
  .cred-bio p:last-child { margin-bottom: 0; }
  .cred-links {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    margin-top: 20px;

    & a { color: var(--accent-muted); }
  }

  /* Pricing */
  .lp-price-card {
    background: var(--white);
    padding: 48px;
    max-width: 460px;
    margin: 0 auto;
    border: 1px solid var(--ink);
    border-top: 4px solid var(--accent);
    box-shadow: 14px 14px 0 var(--ink);
    text-align: left;
    position: relative;
  }
  .lp-price-badge {
    position: absolute;
    top: -13px;
    right: 36px;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .lp-price-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 4px;
  }
  .lp-price-by { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-bottom: 32px; }
  .lp-price-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 76px;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 6px;
  }
  .lp-price-was {
    font-size: 38px;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    margin-right: 10px;
  }
  .lp-price-terms { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; margin-bottom: 34px; }
  .lp-price-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 34px;

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

  /* FAQ */
  .lp-faq { display: flex; flex-direction: column; }
  .lp-faq details { border-bottom: 1px solid var(--hairline); }
  .lp-faq summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .lp-faq summary::-webkit-details-marker { display: none; }
  .lp-faq__q {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -.01em;
  }
  .lp-faq__toggle { color: var(--accent); font-size: 22px; 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: 26px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 680px;
  }

  /* Final CTA — the one section that stays on the coral accent */
  .lp-final__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(44px, 7.5vw, 84px);
    line-height: .98;
    letter-spacing: -.03em;
    color: var(--paper);
    margin-bottom: 40px;
  }
  .lp-final__note { font-family: var(--font-mono); font-size: 10px; color: oklch(from var(--paper) l c h / 0.7); letter-spacing: .09em; }

  /* Footer */
  .lp-footer {
    background: var(--ink);
    padding: 36px clamp(20px, 5vw, 64px);
  }
  .lp-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .lp-footer__copy { font-family: var(--font-mono); font-size: 10px; color: var(--muted-on-dark); letter-spacing: .07em; margin-top: 6px; }
  .lp-footer__links {
    font-family: var(--font-mono);
    font-size: 11px;
    display: flex;
    gap: 24px;

    & a { color: var(--muted-on-dark); text-decoration: none; }
  }
}
