/* ── Custom Properties ─────────────────────────────── */
:root {
  --paper: #FAF7F2;
  --panel: #FFFFFF;
  --ink: #15171C;
  --slate: #565E6B;
  --line: #E4DED4;
  --accent: #1C5D4C;
  --accent-soft: #EBF1EE;
  --gold: #9A7B3F;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(10, 10, 35, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 10, 35, 0.12);

  --content-width: 1100px;
  --table-width: 1180px;
  --nav-height: 58px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
a:hover {
  color: color-mix(in srgb, var(--accent) 75%, var(--ink));
  text-decoration-color: var(--accent);
}

/* ── Navigation ────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 48px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 780px;
}

.hero-thesis {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 680px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.hero-thesis strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Section Layout ────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--line);
  max-width: var(--content-width);
  margin: 0 auto;
}

.research-section {
  padding: 96px 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-deck {
  font-size: 16px;
  color: var(--slate);
  font-style: italic;
  margin-top: 4px;
}

/* ── Prose ─────────────────────────────────────────── */
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.prose h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 10px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--ink);
}

.prose ul, .prose ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose em {
  font-style: italic;
}

.prose .data-point {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline;
}

/* Segment sub-sections */
.segment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.segment-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ── Pull quote / callout ──────────────────────────── */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--ink);
}

.callout strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

/* ── TAM Table / Data Tables ───────────────────────── */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--panel);
}

thead th {
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 120ms var(--ease);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 50%, var(--panel)); }
tbody tr:nth-child(even):hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

tbody td {
  padding: 13px 16px;
  color: var(--ink);
  vertical-align: top;
}

tbody td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

tbody td strong {
  font-weight: 600;
}

/* Total row */
tbody tr.total-row td {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  color: var(--accent);
  border-top: 2px solid var(--accent);
}

/* Incumbent table - wider */
.table-wide {
  max-width: var(--table-width);
}

/* ── Pricing Regime Labels ─────────────────────────── */
.regime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

.regime-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.regime-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.regime-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

.regime-card p {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
}

/* ── Wedge cards ───────────────────────────────────── */
.wedge-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 36px 0 12px;
}

.wedge-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--line);
  flex-shrink: 0;
  line-height: 1;
}

.wedge-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.wedge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.meta-tag.high { background: #FEF2EE; color: #C04B21; border-color: #F9C4B1; }
.meta-tag.low  { background: #EBF1EE; color: var(--accent); }

.recommendation-box {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 40px 0;
  color: #FFFFFF;
}

.recommendation-box .rec-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.recommendation-box h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.recommendation-box p { color: rgba(255,255,255,0.88); margin-bottom: 14px; }
.recommendation-box p:last-child { margin-bottom: 0; }
.recommendation-box strong { color: #FFFFFF; }

/* ── Investor / Funding blocks ─────────────────────── */
.funder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.funder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.funder-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.funder-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
}

.funder-card p { font-size: 14px; color: var(--slate); margin: 0; }

/* ── Metrics rows ──────────────────────────────────── */
.metric-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.metric-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.metric-list li .metric-body {
  font-size: 14.5px;
  color: var(--ink);
}

.metric-list li .metric-body strong { font-weight: 600; }

/* ── GTM Motion rows ───────────────────────────────── */
.motion-row {
  border-left: 3px solid var(--line);
  padding: 0 0 28px 24px;
  margin-bottom: 4px;
  position: relative;
}

.motion-row::before {
  content: attr(data-num);
  position: absolute;
  left: -20px;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 2px 8px;
  transform: translateY(-1px);
}

.motion-row h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ── Failure Modes ─────────────────────────────────── */
.failure-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.failure-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink);
  padding: 14px 18px;
  border: 1px solid #F9C4B1;
  background: #FEF2EE;
  border-radius: var(--radius-md);
}

.failure-list li::before {
  content: '!';
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #C04B21;
  background: #FBD9CE;
  border-radius: 100px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Verdict Section ───────────────────────────────── */
.verdict-box {
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 28px 0 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.verdict-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.verdict-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  counter-reset: risk;
  display: grid;
  gap: 10px;
}

.risk-list li {
  counter-increment: risk;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  font-size: 14.5px;
  color: var(--ink);
}

.risk-list li::before {
  content: counter(risk, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  flex-shrink: 0;
  padding-top: 1px;
}

.risk-list li strong { font-weight: 600; color: var(--ink); }

/* MVP Box */
.mvp-box {
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 36px 0;
}

.mvp-box .mvp-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.mvp-box h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.mvp-box .mvp-deck {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 24px;
}

.mvp-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: step;
  display: grid;
  gap: 8px;
}

.mvp-steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  padding: 12px 16px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.mvp-steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 2px 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* Fundraising phases */
.phase-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.phase-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 3px 9px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}

.phase-list li .phase-body { font-size: 14.5px; color: var(--ink); }
.phase-list li .phase-body strong { font-weight: 600; }

/* ── Inline Citations ───────────────────────────────── */
cite-ref, sup {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
}

sup a {
  color: var(--accent);
  text-decoration: none;
  padding: 0 2px;
  border-radius: 3px;
  transition: background 120ms var(--ease);
}
sup a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

/* ── Sources Section ───────────────────────────────── */
.sources-section {
  padding: 80px 24px 96px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.sources-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 36px;
  letter-spacing: -0.015em;
}

.sources-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sources-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 120ms var(--ease);
}

.sources-list li:hover { background: var(--accent-soft); }
.sources-list li:target { background: var(--accent-soft); }

.source-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 1px;
}

.sources-list a {
  color: var(--accent);
  word-break: break-word;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .research-section { padding: 56px 20px; }
  .hero { padding: 56px 20px 48px; }

  .sources-section { padding: 48px 20px 64px; }

  .nav-links { display: none; }

  .segment-card { padding: 20px; }
  .recommendation-box { padding: 24px; }
  .verdict-box { padding: 24px; }
  .mvp-box { padding: 24px; }
  .funder-grid { grid-template-columns: 1fr; }
  .regime-grid { grid-template-columns: 1fr; }

  .hero-thesis { font-size: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .research-section { padding: 72px 32px; }
  .hero { padding: 72px 32px 64px; }
}
