:root {
    --cream: #F5F1E8;
    --cream-soft: #FAF7EE;
    --navy: #0E1E2E;
    --navy-soft: #142838;
    --yellow: #FFC93C;
    --yellow-soft: #FFD867;
    --red: #E04832;
    --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;
    -moz-osx-font-smoothing: grayscale;
  }

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

  /* ───── Hero ───── */
  .hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 32px 32px;
  }
  .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: 32px;
  }
  .eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
  }
  h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 7vw, 96px);
    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;
  }
  .hero-sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin-top: 8px;
  }

  /* ───── Calculator panel ───── */
  .calc-wrap {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 32px;
  }
  .calc {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--line);
  }
  @media (max-width: 880px) {
    .calc { grid-template-columns: 1fr; }
  }

  /* ── Inputs side ── */
  .inputs {
    padding: 48px 48px 56px;
  }
  .inputs h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .inputs h2 .italic-serif { font-weight: 400; }
  .inputs-sub {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 40px;
  }

  .field { margin-bottom: 36px; }
  .field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
  }
  .field-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
  }
  .field-value {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
  }
  .field-value .unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 4px;
  }

  /* Range slider styling */
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    cursor: pointer;
    margin: 8px 0;
  }
  input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--line);
    border-radius: 100px;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--navy);
    border-radius: 50%;
    margin-top: -9px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--navy);
    transition: transform 0.15s ease;
  }
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
  }
  input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--line);
    border-radius: 100px;
    border: none;
  }
  input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--navy);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--navy);
    cursor: pointer;
  }

  .range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-soft);
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
  }

  .input-hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
    font-style: italic;
    font-family: 'Fraunces', Georgia, serif;
  }

  /* ── Results side ── */
  .results {
    background: var(--navy);
    color: var(--cream);
    padding: 48px 48px 56px;
    position: relative;
  }
  .results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 24px;
  }
  .results-eyebrow::before {
    content: '—';
    color: var(--yellow);
  }
  .big-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--cream);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-variant-numeric: tabular-nums;
  }
  .big-number .dollar {
    color: var(--yellow);
    font-size: 0.7em;
    line-height: 1;
    margin-top: 0.1em;
  }
  .per-period {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.55);
    margin-top: 12px;
  }
  .results-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.45;
    color: var(--yellow-soft);
    margin: 28px 0 32px;
    max-width: 380px;
  }

  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 241, 232, 0.15);
  }
  .stat .stat-num {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
  }
  .stat .stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.55);
    margin-top: 6px;
  }

  /* ───── Breakdown ───── */
  .breakdown {
    max-width: 1240px;
    margin: 24px auto 0;
    padding: 0 32px;
  }
  .breakdown-card {
    background: var(--navy);
    color: var(--cream);
    border-radius: 28px;
    padding: 48px;
  }
  .breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .breakdown-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
  }
  .breakdown-title .italic-serif {
    color: var(--yellow);
    font-weight: 400;
  }
  .breakdown-legend {
    display: flex;
    gap: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: -1px;
    margin-right: 6px;
  }
  .legend-dot.you { background: var(--red); }
  .legend-dot.we { background: var(--yellow); }

  .row {
    display: grid;
    grid-template-columns: 40px 1fr 200px 130px 110px;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  }
  @media (max-width: 720px) {
    .row {
      grid-template-columns: 30px 1fr 80px;
      gap: 12px;
    }
    .row .bar-cell, .row .label-cell { display: none; }
  }
  .row-num {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: rgba(245, 241, 232, 0.45);
  }
  .row-task {
    font-size: 16px;
    font-weight: 700;
  }
  .row-task small {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: rgba(245, 241, 232, 0.6);
    margin-top: 4px;
  }
  .bar-cell {
    width: 100%;
    height: 8px;
    background: rgba(245, 241, 232, 0.1);
    border-radius: 100px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    background: var(--yellow);
    border-radius: 100px;
    transition: width 0.4s ease;
  }
  .row-cost {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .row-cost small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.5);
    margin-top: 2px;
  }
  .row-tag {
    background: var(--yellow);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    text-align: center;
    white-space: nowrap;
  }

  /* ───── CTA / capture ───── */
  .capture-wrap {
    max-width: 1240px;
    margin: 24px auto 64px;
    padding: 0 32px;
  }
  .capture {
    background: var(--yellow);
    border-radius: 28px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  @media (max-width: 880px) {
    .capture { grid-template-columns: 1fr; padding: 40px 32px; }
  }
  .capture-pitch h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 18px;
  }
  .capture-pitch h2 .italic-serif {
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .capture-pitch p {
    font-size: 16px;
    color: var(--navy);
    line-height: 1.55;
    max-width: 440px;
  }

  form { display: flex; flex-direction: column; gap: 14px; }
  .form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: -8px;
  }
  input[type="text"], input[type="email"] {
    background: var(--cream-soft);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    background: var(--white);
    border-color: var(--navy);
  }
  .submit {
    background: var(--navy);
    color: var(--cream);
    border: none;
    padding: 18px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.15s ease;
  }
  .submit:hover { transform: translateY(-1px); }
  .submit-arrow {
    background: var(--yellow);
    color: var(--navy);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
  }
  .form-fineprint {
    font-size: 12px;
    color: rgba(14, 30, 46, 0.7);
    margin-top: 2px;
  }

  .success {
    display: none;
    background: var(--navy);
    color: var(--cream);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
  }
  .success.active { display: block; }
  .success h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
  }
  .success h3 .italic-serif { font-weight: 400; color: var(--yellow); }
  .success p { color: rgba(245, 241, 232, 0.75); font-size: 15px; }

  /* ───── Footer ───── */
  footer {
    border-top: 1px solid var(--line);
    padding: 32px;
    max-width: 1240px;
    margin: 0 auto;
    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; }
  footer a:hover { text-decoration: underline; }

  /* ───── Responsive tweaks ───── */
  @media (max-width: 720px) {
    .nav { padding: 20px; }
    .hero, .calc-wrap, .breakdown, .capture-wrap { padding-left: 20px; padding-right: 20px; }
    .inputs, .results, .breakdown-card { padding: 32px 28px; }
  }

  /* ───── 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: auto;
    height: auto;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
  }
  .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; }
  }