:root {
  --bg-0: #0b101c;
  --bg-1: #10172a;
  --bg-2: #131c33;
  --panel: rgba(19, 28, 51, 0.92);
  --panel-strong: rgba(16, 23, 42, 0.96);
  --border: rgba(255, 255, 255, 0.11);
  --text: #e9edf7;
  --muted: #b8c0d4;
  --soft: #8a93ad;
  --accent: #963CFC;
  --warm: #9f8cff;
  --green: #4ad6a6;
  --amber: #f1b36d;
  --deck-surface: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.55;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  padding: 16px;
}

@page {
  size: A4;
  margin: 0;
}

.brochure {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.page {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 42px 48px 40px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--bg-0) 0%, #0d1424 100%);
}

.page:last-child {
  margin-bottom: 0;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 34% at 82% 0%, rgba(150, 60, 252, 0.08), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cover {
  background:
    radial-gradient(62% 42% at 78% 12%, rgba(150, 60, 252, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, #0d1424 100%);
}

.cover .page-inner {
  gap: 32px;
}

.topbar,
.footer-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-strip {
  margin-top: auto;
  align-items: end;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline,
.footer-note,
.page-label {
  color: var(--soft);
  font-size: 8.8pt;
}

.brochure-link {
  color: #f5f8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.34);
}

.brochure-link:hover {
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 9.2pt;
  font-weight: 700;
}

.cover-grid,
.page-grid,
.page-grid-3,
.footer-grid {
  display: grid;
  gap: 22px;
}

.cover-grid {
  grid-template-columns: 1.14fr 0.86fr;
  flex: 1 1 auto;
  align-items: center;
}

.cover .stack,
.cover .summary-panel {
  align-self: center;
}

.cover .stack {
  gap: 18px;
}

.cover .footer-strip {
  margin-top: 0;
}

.page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.page-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.footer-grid--balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.headline {
  margin: 0;
  font-size: 29pt;
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 560px;
}

.lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 11.8pt;
  line-height: 1.62;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(246, 242, 255, 0.9);
  font-size: 8.2pt;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.section-title {
  margin: 0;
  font-size: 22pt;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.eyebrow + .section-title {
  margin-top: 12px;
}

.section-text,
.card p,
.panel p,
.note-strip p,
.summary-row p,
.table-card p,
.tier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.2pt;
  line-height: 1.66;
}

.panel,
.card,
.table-card,
.note-strip,
.cta-panel,
.summary-panel,
.tier-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--deck-surface);
  box-shadow: var(--shadow);
}

.panel::before,
.card::before,
.table-card::before,
.note-strip::before,
.cta-panel::before,
.summary-panel::before,
.tier-card::before,
.diagram-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(150, 60, 252, 0.1), transparent 42%);
}

.card::after,
.table-card::after,
.summary-panel::after,
.tier-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 60, 252, 0.45), transparent);
  pointer-events: none;
}

.diagram-page .page-inner {
  gap: 18px;
}

.diagram-figure {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.diagram-mini-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--deck-surface);
}

.diagram-mini-card h3 {
  margin: 0 0 8px;
  font-size: 11.2pt;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.diagram-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9.2pt;
  line-height: 1.55;
}

.diagram-visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  border: 0;
}

.summary-panel,
.panel,
.note-strip,
.cta-panel {
  padding: 28px;
}

.card,
.table-card,
.tier-card {
  padding: 24px;
}

.panel,
.table-card {
  min-width: 0;
}

.card h3,
.table-card h3,
.summary-panel h3,
.panel h3,
.cta-panel h3,
.tier-card h3 {
  margin: 0 0 12px;
  font-size: 13pt;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.summary-list,
.stack,
.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list {
  gap: 0;
  margin-top: 14px;
}

.summary-row {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 242, 255, 0.08);
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row span,
.mini-label {
  color: rgba(246, 242, 255, 0.64);
  font-size: 8.2pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #ecf2ff;
  font-size: 9.9pt;
  line-height: 1.56;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--accent));
  box-shadow: 0 0 14px rgba(150, 60, 252, 0.28);
}

.metric-row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(246, 242, 255, 0.08);
}

.metric-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 5px;
  align-items: start;
  padding: 15px 0 16px;
  border-top: 1px solid rgba(246, 242, 255, 0.08);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-step {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(150, 60, 252, 0.28);
  border-radius: 999px;
  background: rgba(150, 60, 252, 0.12);
  color: var(--warm);
  font-size: 7.4pt;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-item h3,
.timeline-item p {
  grid-column: 2;
}

.timeline-item h3 {
  margin-bottom: 7px;
  font-size: 12.2pt;
  line-height: 1.18;
}

.timeline-item p {
  font-size: 9.4pt;
  line-height: 1.62;
}

.compare-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.2pt;
  line-height: 1.55;
  border-radius: 14px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.055);
  color: #f6f9ff;
  font-size: 8pt;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 31%;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.highlight {
  color: #ffffff;
  font-weight: 750;
}

.note-strip,
.cta-panel {
  background:
    linear-gradient(135deg, rgba(150, 60, 252, 0.16), rgba(255, 255, 255, 0.02)),
    var(--deck-surface);
}

.cta-title {
  margin: 0;
  font-size: 18pt;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.support-plan-panel {
  display: grid;
  gap: 0;
}

.support-plan-row {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-plan-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-plan-head {
  display: grid;
  gap: 10px;
}

.support-plan-head h3 {
  margin: 0;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(150, 60, 252, 0.16);
  border: 1px solid rgba(246, 242, 255, 0.14);
  color: #ffffff;
  font-size: 8.4pt;
  font-weight: 700;
  margin-bottom: 12px;
}

.deck-route,
.outcome-rail,
.support-ladder-visual,
.before-after-strip {
  display: grid;
  gap: 12px;
}

.deck-route {
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
}

.deck-route-item,
.outcome-item,
.support-ladder-item,
.before-after-column {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--deck-surface);
}

.deck-route-item::before,
.outcome-item::before,
.support-ladder-item::before,
.before-after-column::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(150, 60, 252, 0.1), transparent 42%);
}

.deck-route-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 12px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(150, 60, 252, 0.58), rgba(150, 60, 252, 0.22));
}

.deck-route-label,
.outcome-number {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 255, 0.14);
  background: rgba(150, 60, 252, 0.16);
  color: #ffffff;
  font-size: 8pt;
  font-weight: 800;
}

.deck-route-item h3,
.outcome-item h3,
.support-ladder-item h3,
.before-after-column h3 {
  margin: 0 0 7px;
  font-size: 11.4pt;
  line-height: 1.18;
}

.deck-route-item p,
.outcome-item p,
.support-ladder-item p,
.before-after-column p {
  margin: 0;
  color: var(--muted);
  font-size: 9.4pt;
  line-height: 1.56;
}

.outcome-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.outcome-item {
  padding: 14px 14px 16px;
}

.outcome-number {
  min-width: 30px;
  justify-content: center;
}

.support-ladder-visual {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-ladder-item:nth-child(1) {
  border-color: rgba(150, 60, 252, 0.24);
}

.support-ladder-item:nth-child(2) {
  border-color: rgba(150, 60, 252, 0.32);
}

.support-ladder-item:nth-child(3) {
  border-color: rgba(125, 211, 167, 0.26);
}

.before-after-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after-column--before {
  border-color: rgba(241, 179, 109, 0.24);
}

.before-after-column--after {
  border-color: rgba(125, 211, 167, 0.28);
}

.footer-note {
  text-align: right;
}

body[data-export-mode="screenshot"] {
  padding: 0;
  overflow: hidden;
  background: #07101c;
}

body[data-export-mode="screenshot"] .brochure {
  width: 100vw;
  height: 100vh;
  margin: 0;
}

body[data-export-mode="screenshot"] .page {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

body[data-export-mode="screenshot"] .page[hidden] {
  display: none !important;
}

@media screen and (max-width: 960px) {
  body {
    padding: 0;
  }

  .brochure {
    width: 100%;
  }

  .page {
    aspect-ratio: auto;
    padding: 24px 20px 28px;
    border-radius: 0;
    margin-bottom: 0;
  }

  .cover-grid,
  .page-grid,
  .page-grid-3,
  .footer-grid,
  .diagram-mini-grid,
  .tier-grid,
  .deck-route,
  .outcome-rail,
  .support-ladder-visual,
  .before-after-strip {
    grid-template-columns: 1fr;
  }

  .headline {
    font-size: clamp(2rem, 11vw, 3rem);
    max-width: none;
  }

  .lead {
    max-width: none;
  }

  .summary-panel,
  .panel,
  .note-strip,
  .cta-panel,
  .card,
  .table-card,
  .tier-card,
  .deck-route-item,
  .outcome-item,
  .support-ladder-item,
  .before-after-column {
    padding: 20px;
  }

  .deck-route-item:not(:last-child)::after {
    display: none;
  }

  .diagram-visual {
    max-height: none;
  }
}

@media print {
  body {
    padding: 0;
    background: #07101c;
  }

  .brochure {
    width: 210mm;
  }

  .page {
    width: 210mm;
    height: 297mm;
    aspect-ratio: auto;
    padding: 14mm;
    margin: 0;
    border-radius: 0;
    page-break-after: always;
    background:
      linear-gradient(180deg, rgba(8, 14, 28, 0.98) 0%, rgba(10, 20, 40, 0.98) 54%, rgba(7, 13, 26, 0.99) 100%);
  }

  .page:last-child {
    page-break-after: auto;
  }

  .panel,
  .card,
  .table-card,
  .note-strip,
  .cta-panel,
  .summary-panel,
  .tier-card {
    box-shadow: none;
  }
}
