:root {
    --cream: #F5F1E8;
    --cream-soft: #FAF7EE;
    --navy: #0E1E2E;
    --navy-soft: #142838;
    --yellow: #FFC93C;
    --yellow-soft: #FFD867;
    --red: #E04832;
    --green: #4FB67A;
    --muted: rgba(14, 30, 46, 0.62);
    --muted-soft: rgba(14, 30, 46, 0.42);
    --line: rgba(14, 30, 46, 0.12);
    --white: #FFFFFF;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }

  .italic-serif {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
  }

  /* ───── Header ───── */
  .nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.1;
  }
  .logo span { display: block; }
  .nav-cta {
    background: var(--navy);
    color: var(--cream);
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
  }
  .nav-cta:hover { transform: translateY(-1px); }
  .nav-cta::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
  }

  /* ───── Layout ───── */
  .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
  .eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
  }

  /* ───── Intro screen ───── */
  .screen { display: none; }
  .screen.active { display: block; animation: fade .35s ease; }
  @keyframes fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
  }
  h1 .italic-serif { font-weight: 400; letter-spacing: -0.01em; }
  h1 .highlight {
    background: linear-gradient(180deg, transparent 0%, transparent 22%, var(--yellow) 22%, var(--yellow) 88%, transparent 88%);
    padding: 0 0.15em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 36px;
  }

  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .meta-item .meta-num {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .meta-item .meta-num .italic-serif { font-weight: 400; }
  .meta-item .meta-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
  }

  .btn-primary {
    background: var(--navy);
    color: var(--cream);
    border: none;
    padding: 20px 32px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s ease;
  }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-arrow {
    background: var(--yellow);
    color: var(--navy);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
  }

  .btn-secondary {
    background: transparent;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    padding: 14px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .btn-secondary:hover { background: var(--navy); color: var(--cream); }

  /* ───── Quiz screen ───── */
  .progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
  }
  .progress-track {
    flex: 1;
    height: 6px;
    background: rgba(14, 30, 46, 0.1);
    border-radius: 100px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 100px;
    transition: width 0.4s ease;
  }
  .progress-num {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .q-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
  }
  .q-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 36px;
  }

  .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }
  .option {
    background: var(--white);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 20px 22px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    line-height: 1.45;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .option:hover {
    border-color: var(--navy);
    transform: translateX(2px);
  }
  .option.selected {
    background: var(--navy);
    color: var(--cream);
    border-color: var(--navy);
  }
  .option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .option.selected .option-letter {
    background: var(--yellow);
    color: var(--navy);
  }

  .nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ───── Result screen ───── */
  .score-hero {
    text-align: left;
    padding: 8px 0 32px;
  }
  .tier-label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .tier-critical { background: var(--red); color: var(--white); }
  .tier-bleeding { background: #F4A742; color: var(--navy); }
  .tier-holding  { background: var(--yellow); color: var(--navy); }
  .tier-dialed   { background: var(--green); color: var(--white); }

  .score-display {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(80px, 12vw, 160px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--navy);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .score-display .total {
    font-size: 0.4em;
    color: var(--muted);
    font-weight: 500;
  }

  .verdict {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 40px;
    max-width: 600px;
  }

  .breakdown-card {
    background: var(--navy);
    color: var(--cream);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 32px;
  }
  .breakdown-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 24px;
  }
  .cat-row {
    display: grid;
    grid-template-columns: 1fr 100px 80px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  }
  .cat-row:last-child { border-bottom: none; }
  .cat-name { font-size: 16px; font-weight: 600; }
  .cat-bar-cell {
    height: 8px;
    background: rgba(245, 241, 232, 0.1);
    border-radius: 100px;
    overflow: hidden;
  }
  .cat-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
  }
  .cat-score {
    text-align: right;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
  }
  .cat-score small {
    color: rgba(245, 241, 232, 0.5);
    font-weight: 500;
    font-size: 13px;
  }

  /* ───── Capture ───── */
  .capture {
    background: var(--yellow);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
  }
  .capture h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .capture h2 .italic-serif { font-weight: 400; }
  .capture p {
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 24px;
    max-width: 480px;
  }
  form { display: flex; flex-direction: column; gap: 12px; }
  input[type="text"], input[type="email"] {
    background: var(--cream-soft);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    width: 100%;
  }
  input:focus { outline: none; background: var(--white); border-color: var(--navy); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
  .submit {
    background: var(--navy);
    color: var(--cream);
    border: none;
    padding: 18px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .form-fineprint { font-size: 12px; color: rgba(14, 30, 46, 0.7); }

  .success { display: none; text-align: center; padding: 32px 0; }
  .success.active { display: block; }
  .success h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .success h3 .italic-serif { font-weight: 400; }

  .restart {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .restart button {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
  }

  /* ───── Footer ───── */
  footer {
    border-top: 1px solid var(--line);
    padding: 32px;
    max-width: 1240px;
    margin: 32px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
  }
  footer a { color: var(--navy); text-decoration: none; font-weight: 600; }

  /* ───── Book Operations Audit CTA ───── */
  .capture-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 18px;
  }
  .capture-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
  }
  .scarcity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 18px;
    background: rgba(14, 30, 46, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
  }
  .scarcity::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
  }
  .cta-button {
    background: var(--navy);
    color: var(--cream);
    border: none;
    padding: 22px 32px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: transform 0.15s ease;
    white-space: nowrap;
    justify-self: end;
    align-self: center;
  }
  .cta-button:hover { transform: translateY(-1px); }
  .cta-button .cta-arrow {
    background: var(--yellow);
    color: var(--navy);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
  }
  @media (max-width: 880px) {
    .cta-button { justify-self: stretch; padding: 20px 24px; }
  }