:root {
  --ink: #090909;
  --muted: #686868;
  --paper: #f7f7f2;
  --line: #1c1c1c;
  --brand: #f08020;
  --brand-deep: #d56a13;
  --accent: #ffc800;
  --font-display: "Archivo Black", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    #e8e4da;
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: 0.005em;
  padding: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sheet {
  width: min(900px, 100%);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* ── Header / Footer ─────────────────────────────────── */

.topbar,
.footer {
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 38px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.topbar {
  border-bottom: 8px solid var(--brand);
  min-height: 68px;
}

.footer {
  min-height: 38px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #2c2c2c;
  display: inline-block;
  box-shadow: 0 0 0 1px var(--brand);
}

.byline {
  color: #8c8c8c;
  font-size: 10px;
  margin-left: 10px;
  letter-spacing: 0.18em;
}

.doc-meta {
  text-align: right;
  line-height: 1.4;
  color: #d8d8d8;
}

.doc-meta strong,
.footer strong,
.yellow {
  color: var(--brand);
}

.hazard {
  color: var(--brand);
  font-size: 18px;
  letter-spacing: 0.15em;
}

/* ── Main content ────────────────────────────────────── */

main {
  padding: 28px 40px 40px;
}

.label {
  display: inline-block;
  background: var(--ink);
  color: var(--brand);
  padding: 7px 12px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
}

h1 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.4vw, 70px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  margin: 14px 0 22px;
}

.included {
  margin-left: 24px;
  transform: translateY(1px);
}

.included::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  background: var(--brand);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 13px;
}

/* ── Hero card ───────────────────────────────────────── */

.hero-card {
  border: 4px solid var(--ink);
  background: var(--brand);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 23px;
  margin-bottom: 16px;
}

.hero-card p {
  color: var(--ink);
  font-weight: 500;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.27em;
  font-size: 12px;
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
}

p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 500;
  color: #2a2a2a;
}

.price {
  min-width: 130px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 80px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.price small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

/* ── Feature list ────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 52px;
  margin: 12px 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #2a2a2a;
}

.feature-grid li::before {
  content: "▸ ";
}

/* ── Document intro ──────────────────────────────────── */

.intro {
  margin: 4px 0 22px;
  max-width: 72ch;
}

.intro p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: #2a2a2a;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* ── VERA™ section intro ─────────────────────────────── */

.vera-intro {
  margin-bottom: 14px;
  max-width: 72ch;
}

.vera-intro-head {
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
  margin-bottom: 10px !important;
  text-transform: none;
  font-weight: 400 !important;
}

.vera-intro p {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: #2a2a2a;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.vera-intro p:last-child {
  margin-bottom: 0;
}

/* ── Add-ons section ─────────────────────────────────── */

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 11px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.section-head span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.addon {
  display: grid;
  grid-template-columns: 34px 38px 1fr 100px 72px;
  align-items: start;
  gap: 10px;
  padding: 12px 0 14px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.75);
}

.box {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  background: white;
  margin-top: 4px;
}

.num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.addon h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.inc-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--brand);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 3px 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(-2px);
}

.stack-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  display: block;
  margin-top: 2px;
}

.addon-subtitle {
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em !important;
  color: var(--muted);
  margin-bottom: 6px !important;
}

.addon-examples {
  margin-top: 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--muted);
  letter-spacing: 0.01em !important;
}

.tag {
  justify-self: end;
  min-width: 92px;
  border: 2px solid var(--line);
  padding: 7px 9px;
  text-align: center;
  text-transform: uppercase;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  background: white;
}

.tag.dark {
  background: var(--ink);
  color: var(--brand);
  border-color: var(--ink);
}

.tag.yellow {
  background: var(--brand);
  color: var(--ink);
}

.tag strong {
  background: var(--brand);
  color: var(--ink);
  padding: 0 3px;
}

.addon-price {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.addon-price small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── Bottom panels ───────────────────────────────────── */

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 2px solid var(--line);
  background: white;
  min-height: 186px;
}

.panel.fees {
  padding: 18px;
}

.panel h4 {
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.label-small {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: var(--ink);
  color: var(--brand);
  padding: 4px 8px;
  line-height: 1;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #b9b9b9;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #2a2a2a;
}

.fee-row strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.note {
  color: var(--muted);
  margin-top: 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
}

.stack {
  position: relative;
  padding: 0;
}

.stack .panel-head {
  background: var(--ink);
  color: var(--brand);
  padding: 12px 15px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ribbon {
  position: absolute;
  right: -8px;
  top: -11px;
  background: var(--brand);
  border: 2px solid var(--line);
  padding: 6px 10px;
  transform: rotate(8deg);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-body {
  padding: 14px 17px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #2a2a2a;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.total {
  margin-top: 9px;
  border-top: 2px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.total strong {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 400;
}

/* ── Volume Builder Discount ─────────────────────────── */

.discount {
  margin-top: 18px;
  background: var(--ink);
  color: white;
  border-left: 8px solid var(--brand);
  padding: 20px 26px 22px;
}

.discount-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.discount-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a8a8a8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.discount-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.discount-copy p {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: #d8d8d8;
  font-weight: 500;
  max-width: 60ch;
}

.discount-copy strong {
  color: var(--brand);
  font-weight: 700;
}

.discount-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--brand);
  text-align: right;
}

.discount-value small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: white;
  line-height: 1.3;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .manifesto {
    padding: 20px 18px 22px;
  }

  .topbar,
  .footer,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar,
  .hero-card,
  .feature-grid,
  .bottom-grid,
  .discount-body {
    grid-template-columns: 1fr;
  }

  .discount-value {
    text-align: left;
  }

  .topbar {
    display: grid;
    gap: 12px;
  }

  .doc-meta,
  .price {
    text-align: left;
  }

  .addon {
    grid-template-columns: 30px 42px 1fr;
  }

  .tag,
  .addon-price {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }
}

/* ── Print / PDF export ──────────────────────────────── */

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body {
    background-image: none !important;
  }

  .sheet {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  main {
    padding: 22px 32px 32px !important;
  }

  .topbar,
  .footer {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  /* Force CMYK-safe colour preservation */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Block-level break protection */
  .topbar,
  .hero-card,
  .feature-grid,
  .vera-intro,
  .addon,
  .panel,
  .bottom-grid,
  .discount {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .topbar,
  .section-head,
  h1,
  .subtitle,
  .label {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  /* Push the Volume Builder Discount onto its own page so it doesn't get
     orphaned from the One-off Fees / Full Stack grid. */
  .discount {
    break-before: page !important;
    page-break-before: always !important;
    margin-top: 0 !important;
  }

  /* Tighten vertical rhythm slightly for print density */
  h1 {
    margin-top: 14px !important;
  }

  .subtitle {
    margin: 10px 0 16px !important;
  }

  .intro {
    margin: 4px 0 16px !important;
  }

  .feature-grid {
    margin: 10px 0 18px !important;
  }

  .bottom-grid {
    margin-top: 14px !important;
  }
}
