  /* Layout: a founder's perk statement. Thesis headline beside a printed receipt,
     then the itemized ledger as a live calculator, then process, price, questions, application. */
  :root {
    --paper: #f2f4f9;
    --paper-2: #e8ecf5;
    --surface: #ffffff;
    --ink: #0d1330;
    --muted: #56607b;
    --line: #d6dbe8;
    --rule: rgba(42, 60, 214, 0.07);
    --accent: #2a3cd6;
    --accent-hover: #1f2eb3;
    --accent-soft: #e3e7ff;
    --on-accent: #ffffff;
    --slot: #0d1330;
    --shadow: rgba(13, 19, 48, 0.18);
    --warn: #8a5200;
    --ok: #146c43;
    --error: #b42318;

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --fs-label: 0.75rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-h3: 1.125rem;
    --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    --fs-hero: clamp(2.5rem, 1.3rem + 4.4vw, 4.5rem);

    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1180px;
    --radius: 8px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0a0e20;
      --paper-2: #0e1329;
      --surface: #131a36;
      --ink: #e7ebf7;
      --muted: #9aa3c0;
      --line: #273056;
      --rule: rgba(140, 155, 255, 0.06);
      --accent: #8592ff;
      --accent-hover: #a0aaff;
      --accent-soft: #1d2552;
      --on-accent: #0a0e20;
      --slot: #03050f;
      --shadow: rgba(0, 0, 0, 0.55);
      --warn: #f0b35a;
      --ok: #5fd19a;
      --error: #ff8a80;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0a0e20;
    --paper-2: #0e1329;
    --surface: #131a36;
    --ink: #e7ebf7;
    --muted: #9aa3c0;
    --line: #273056;
    --rule: rgba(140, 155, 255, 0.06);
    --accent: #8592ff;
    --accent-hover: #a0aaff;
    --accent-soft: #1d2552;
    --on-accent: #0a0e20;
    --slot: #03050f;
    --shadow: rgba(0, 0, 0, 0.55);
    --warn: #f0b35a;
    --ok: #5fd19a;
    --error: #ff8a80;
    color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; }
  a { color: inherit; }
  p { margin: 0; }
  h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

  .wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
  .eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .num { white-space: nowrap; font-variant-numeric: tabular-nums; }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: 600 1rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:disabled { opacity: 0.6; cursor: progress; }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
  .btn-block { width: 100%; }

  /* Header */
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    font-size: 1.1875rem;
    letter-spacing: -0.01em;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.8125rem;
    font-stretch: 100%;
    letter-spacing: 0;
  }
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .nav a { text-decoration: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
  .nav a:hover { color: var(--ink); }
  .header-actions { display: flex; align-items: center; gap: 10px; }
  @media (max-width: 760px) {
    .nav { display: none; }
    .header-actions { margin-left: auto; }
  }

  /* Hero */
  .hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(to bottom, transparent 0 47px, var(--rule) 47px 48px);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    pointer-events: none;
  }
  .hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
  }
  .hero-copy { display: grid; gap: 28px; justify-items: start; min-width: 0; }
  .hero h1 { font-size: var(--fs-hero); font-stretch: 116%; line-height: 1; }
  .hero h1 .accent { color: var(--accent); }
  .h1-line { display: block; }
  .lede { font-size: var(--fs-lg); color: var(--muted); max-width: 34em; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-note { font-size: var(--fs-sm); color: var(--muted); }
  @media (max-width: 940px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* Receipt */
  .printer { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 22px 26px var(--shadow)); }
  .printer-slot {
    position: relative;
    z-index: 1;
    height: 14px;
    border-radius: 7px;
    background: var(--slot);
    border: 1px solid var(--line);
  }
  .printer-feed { overflow: hidden; margin-top: -7px; padding-inline: 14px; }
  .receipt {
    --tooth: 14px;
    padding: 30px 24px 44px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  }
  @media (prefers-reduced-motion: no-preference) {
    .receipt { animation: feed 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    @keyframes feed { from { transform: translateY(-32px); } to { transform: none; } }
  }
  .receipt-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .receipt-lines { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 8px; border-bottom: 1px dashed var(--line); }
  .receipt-lines li { display: flex; align-items: baseline; gap: 8px; }
  .leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--muted); opacity: 0.55; transform: translateY(-4px); }
  .receipt-sums { display: grid; gap: 6px; padding: 16px 0; border-bottom: 3px double var(--ink); }
  .receipt-row { display: flex; justify-content: space-between; gap: 12px; }
  .receipt-row.total { font-weight: 600; }
  .receipt-row.fee { color: var(--muted); }
  .receipt-net { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-top: 16px; font-weight: 600; }
  .receipt-net .big {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    font-stretch: 108%;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--accent);
  }
  .receipt-foot { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); }

  /* Sections */
  .section { padding-block: clamp(64px, 9vw, 120px); }
  .section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
  .section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
  .section-sub { font-size: 1.125rem; color: var(--muted); }

  /* Ledger calculator */
  .ledger-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }
  .ledger { display: grid; gap: 24px; min-width: 0; }
  .ledger-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .group-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .group-sub { font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
  .ledger-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.15s;
  }
  .ledger-row + .ledger-row { border-top: 1px solid var(--line); }
  .ledger-row:hover { background: var(--paper); }
  .ledger-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
  .row-text { display: grid; gap: 2px; min-width: 0; }
  .row-name { font-weight: 600; }
  .row-detail { font-size: var(--fs-sm); color: var(--muted); }
  .row-value { padding-top: 1px; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
  .ledger-row.is-off .row-name { color: var(--muted); }
  .ledger-row.is-off .row-value { color: var(--muted); text-decoration: line-through; }

  .tally {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 88px);
    display: grid;
    gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .tally-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .tally-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  .tally.is-under .tally-value { color: var(--warn); }
  .bars { display: grid; gap: 10px; }
  .bar-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
  .bar { height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
  .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.35s ease; }
  .bar.pay i { background: var(--muted); }
  .tally-list { display: grid; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px dashed var(--line); }
  .tally-list div { display: flex; justify-content: space-between; gap: 12px; }
  .tally-list dt { color: var(--muted); }
  .tally-list dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
  .tally-note { font-size: var(--fs-sm); color: var(--muted); }
  .fineprint { margin-top: 24px; max-width: 70ch; font-size: 0.875rem; color: var(--muted); }
  @media (max-width: 900px) {
    .ledger-grid { grid-template-columns: minmax(0, 1fr); }
    .tally { position: static; }
  }

  /* Steps */
  .steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    counter-reset: step;
  }
  .steps li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); counter-increment: step; }
  .steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
  .steps p { color: var(--muted); }
  @media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

  /* Pricing */
  .pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .fit { display: grid; gap: 18px; min-width: 0; }
  .fit-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
  .fit-list li { position: relative; padding-left: 28px; color: var(--muted); }
  .fit-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: var(--accent); }
  .fit-list strong { color: var(--ink); font-weight: 600; }
  .price-card {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 60px -40px var(--shadow);
  }
  .price-card .tally-label { color: var(--accent); }
  .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
  .price-num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 2.4rem + 3vw, 4.25rem);
    font-weight: 800;
    font-stretch: 116%;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .price-unit { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
  .includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .includes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
  .includes li::before {
    content: "";
    width: 6px;
    height: 11px;
    margin: 5px 0 0 5px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .price-note { font-size: 0.875rem; color: var(--muted); }
  @media (max-width: 900px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }

  /* FAQ */
  .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
  .faq-item { padding-block: 22px; border-top: 1px solid var(--line); }
  .faq-item dt { font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }
  .faq-item dd { margin: 0; color: var(--muted); max-width: 60ch; }
  @media (max-width: 760px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

  /* Apply */
  .apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .apply-intro { display: grid; gap: 16px; min-width: 0; }
  .apply-form {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 4vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    min-width: 0;
  }
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .field > label, .field > legend { padding: 0; font-size: 0.875rem; font-weight: 600; }
  .field > legend { margin-bottom: 8px; }
  .opt { font-weight: 400; color: var(--muted); }
  .apply-form input[type="text"],
  .apply-form input[type="email"],
  .apply-form select,
  .apply-form textarea {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .apply-form textarea { min-height: 120px; resize: vertical; }
  .apply-form :is(input, select, textarea):focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .select-wrap { position: relative; }
  .select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
  .select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid var(--muted);
    border-width: 0 2px 2px 0;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: var(--fs-sm);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
  }
  .chip input { margin: 0; accent-color: var(--accent); }
  .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .form-foot p { font-size: 0.875rem; color: var(--muted); }
  .form-status { padding: 12px 14px; font-size: var(--fs-sm); background: var(--paper); border-left: 3px solid currentColor; border-radius: 4px; }
  .form-status[data-tone="warn"] { color: var(--warn); }
  .form-status[data-tone="ok"] { color: var(--ok); }
  .form-status[data-tone="error"] { color: var(--error); }
  @media (max-width: 900px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

  /* Footer */
  .site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); }
  .footer-inner { display: grid; gap: 24px; }
  .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .footer-links a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
  .footer-links a:hover { color: var(--ink); }
  .disclaimer { max-width: 80ch; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
  }
