/* =================================================================
   NewLeaf Recovery Services — Statement of Work (Phase 1)
   Aurora Design System · Sage-Green Variant
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

/* ───────────────────────────────────────────────────────────────
   Theme
   ─────────────────────────────────────────────────────────────── */
:root {
  --accent: var(--sage);
  --accent-dark: var(--sage-dark);
  --accent-pale: var(--sage-pale);
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Geist', system-ui, sans-serif;

  --section-pad-y: clamp(56px, 8vw, 120px);
  --max-w: 1080px;
  --max-w-narrow: 760px;
  --rule: 1px solid rgba(14, 30, 54, 0.10);
  --rule-strong: 1px solid rgba(14, 30, 54, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}
::selection { background: var(--sage); color: white; }

/* Progress bar */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent; z-index: 100; pointer-events: none;
}
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

/* Print button */
.print-btn {
  position: fixed; top: 16px; right: 16px; z-index: 50;
  padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--cp-navy); background: rgba(255,255,255,0.85);
  border: 1px solid rgba(14,30,54,0.18); border-radius: 999px; cursor: pointer;
  transition: all 180ms ease; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.print-btn:hover { background: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ───────────────────────────────────────────────────────────────
   Shell + sidenav (reused from proposal)
   ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidenav {
  position: sticky; top: 0; height: 100vh;
  padding: 32px 22px; border-right: var(--rule); background: var(--cream);
  display: flex; flex-direction: column; gap: 22px; z-index: 10; overflow-y: auto;
}
.sidenav-brand { display: flex; flex-direction: column; gap: 10px; }
.sidenav-brand .mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 19px; font-weight: 400;
  color: var(--cp-navy); letter-spacing: -0.02em;
}
.sidenav-brand .brand-logo {
  width: 38px; height: 38px; display: block; object-fit: contain; flex-shrink: 0;
}
.sidenav-brand .meta {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate-500); font-weight: 500;
}
.section-counter {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-dark); font-weight: 600; padding: 4px 0;
}
.sidenav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px; font-size: 12.5px;
}
.sidenav-list a {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px;
  padding: 5px 0; color: var(--slate-600); text-decoration: none;
  transition: color 150ms ease;
}
.sidenav-list a .num {
  font-family: var(--body); font-variant-numeric: tabular-nums;
  font-size: 11px; color: var(--slate-400); font-weight: 500;
}
.sidenav-list a:hover { color: var(--cp-navy); }
.sidenav-list a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
.sidenav-list a.is-active { color: var(--cp-navy); font-weight: 600; }
.sidenav-list a.is-active .num { color: var(--sage-dark); font-weight: 700; }
.sidenav-list .nav-divider { height: 1px; background: rgba(14,30,54,0.08); margin: 6px 0; }
.sidenav-footer { margin-top: auto; font-size: 11px; color: var(--slate-500); line-height: 1.5; }
.sidenav-footer strong { color: var(--cp-navy); font-weight: 600; }

main { min-width: 0; }

/* Mobile hamburger */
.mobile-nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(14,30,54,0.18);
  border-radius: 999px; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cp-navy); border-radius: 2px; transition: transform 220ms ease, opacity 220ms ease; }
body.nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───────────────────────────────────────────────────────────────
   Section primitives (reused from proposal)
   ─────────────────────────────────────────────────────────────── */
section {
  padding: var(--section-pad-y) clamp(28px, 5vw, 80px);
  position: relative; scroll-margin-top: 0;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner.narrow { max-width: var(--max-w-narrow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage-dark); margin: 0 0 24px 0;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

h2.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--cp-navy); margin: 0 0 24px 0; text-wrap: balance;
}
h2.section-title em { font-style: italic; color: var(--sage-dark); font-weight: 400; }
h3.sub-title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--cp-navy); margin: 32px 0 12px 0;
}
.lede {
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4; font-weight: 400; color: var(--cp-navy);
  letter-spacing: -0.01em; margin: 0 0 28px 0; text-wrap: pretty;
}
.body { color: var(--slate-700); text-wrap: pretty; line-height: 1.6; }
.body strong { color: var(--cp-navy); font-weight: 600; }
.body p { margin: 0 0 14px 0; }
.body p:last-child { margin-bottom: 0; }
.muted { color: var(--slate-500); }

.divider-rule { height: 1px; background: rgba(14,30,54,0.10); border: 0; margin: 48px 0; }

/* ───────────────────────────────────────────────────────────────
   1. COVER
   ─────────────────────────────────────────────────────────────── */
#cover {
  min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: 48px; padding-bottom: 48px;
  background: var(--cream); position: relative; overflow: hidden;
}
.cover-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 500;
}
.cover-top .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid rgba(14,30,54,0.18);
  border-radius: 999px; color: var(--cp-navy); background: rgba(255,255,255,0.5);
}
.cover-top .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cover-center {
  display: flex; flex-direction: column; justify-content: center;
  max-width: 920px; margin: 0 auto; width: 100%;
}
.cover-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--slate-500); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.cover-eyebrow::after { content: ''; flex: 1; height: 1px; background: rgba(14,30,54,0.18); }
.cover-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 400;
  color: var(--cp-navy); margin: 0 0 32px 0;
}
.cover-title em { font-style: italic; color: var(--sage-dark); font-weight: 400; }
.cover-tagline {
  font-size: 18px; line-height: 1.5; color: var(--slate-600);
  max-width: 620px; margin-bottom: 40px; text-wrap: pretty;
}
.cover-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px; padding-top: 28px;
  border-top: 1px solid rgba(14,30,54,0.10); max-width: 760px;
}
.cover-meta dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate-500); font-weight: 500; margin-bottom: 6px;
}
.cover-meta dd { margin: 0; font-size: 14px; color: var(--cp-navy); font-weight: 500; }
.cover-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 11px; color: var(--slate-500); letter-spacing: 0.1em; text-transform: uppercase;
}
.cover-bottom .ornament {
  font-family: var(--display); font-size: 20px; font-style: italic;
  color: var(--sage-dark); text-transform: none; letter-spacing: -0.01em;
}

/* ───────────────────────────────────────────────────────────────
   Engagement / Parties block
   ─────────────────────────────────────────────────────────────── */
#engagement { background: white; border-top: var(--rule); border-bottom: var(--rule); }
.parties {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin: 32px 0;
}
.party-card {
  padding: 24px 26px; background: var(--cream);
  border: 1px solid rgba(14,30,54,0.10); border-radius: 4px;
}
.party-card .label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage-dark); font-weight: 600; margin-bottom: 10px;
}
.party-card .name {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  color: var(--cp-navy); letter-spacing: -0.015em; margin-bottom: 6px;
}
.party-card .contact { font-size: 14px; color: var(--slate-700); line-height: 1.55; }
.party-card .contact .role { color: var(--slate-500); }

/* ───────────────────────────────────────────────────────────────
   How We Start — 4-step sequence
   ─────────────────────────────────────────────────────────────── */
#how-we-start { background: var(--cp-navy); color: white; }
#how-we-start .eyebrow { color: var(--sage-light); }
#how-we-start .eyebrow::before { background: var(--sage-light); }
#how-we-start .section-title { color: white; }
#how-we-start .section-title em { color: var(--sage-light); }
#how-we-start .lede { color: rgba(255,255,255,0.8); }

.start-sequence {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.start-step {
  background: var(--cp-navy); padding: 32px 24px;
  position: relative;
}
.start-step .num {
  font-family: var(--display); font-size: 64px; font-weight: 400; font-style: italic;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.start-step .title {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; color: white; margin-bottom: 10px;
}
.start-step .desc {
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.75);
}

/* ───────────────────────────────────────────────────────────────
   Track sections (A/B/C scope blocks)
   ─────────────────────────────────────────────────────────────── */
.track-section { background: var(--cream); }
.track-section.alt { background: white; }

.track-header {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  margin-bottom: 32px;
}
.track-letter {
  font-family: var(--display); font-size: 56px; font-weight: 400; font-style: italic;
  color: var(--sage-dark); line-height: 1;
}
.track-header h3 {
  font-family: var(--display); font-size: 28px; font-weight: 400;
  letter-spacing: -0.015em; color: var(--cp-navy); margin: 0 0 6px 0;
}
.track-header .one-liner {
  font-size: 14px; color: var(--slate-600); font-style: italic;
}

.scope-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.scope-list li {
  font-size: 14.5px; color: var(--slate-700); line-height: 1.55;
  padding-left: 20px; position: relative;
}
.scope-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1px; background: var(--accent);
}
.scope-list li strong { color: var(--cp-navy); font-weight: 600; }

.track-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  margin-top: 24px;
}
.track-cols h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage-dark); font-weight: 600; margin: 0 0 14px 0;
}

/* ───────────────────────────────────────────────────────────────
   Not Included / Out of Scope
   ─────────────────────────────────────────────────────────────── */
#not-included { background: white; }
.not-included-list {
  list-style: none; padding: 0; margin: 24px 0 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 28px;
}
.not-included-list li {
  font-size: 14px; color: var(--slate-700); line-height: 1.55;
  padding-left: 20px; position: relative;
}
.not-included-list li::before {
  content: '×'; position: absolute; left: 0; top: 0;
  color: var(--slate-400); font-weight: 600;
}
.not-included-list li strong { color: var(--cp-navy); font-weight: 600; }
.not-included-list li .note { display: block; color: var(--slate-500); font-size: 12.5px; margin-top: 2px; }

/* ───────────────────────────────────────────────────────────────
   Timeline
   ─────────────────────────────────────────────────────────────── */
#timeline { background: var(--cream); }
.timeline-list {
  margin-top: 24px;
  border-top: var(--rule-strong);
}
.timeline-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: var(--rule); align-items: start;
}
.timeline-row .when {
  font-family: var(--display); font-size: 20px; font-weight: 400;
  color: var(--sage-dark); letter-spacing: -0.01em;
}
.timeline-row .what {
  font-size: 14.5px; color: var(--slate-700); line-height: 1.55;
}
.timeline-row .what strong { color: var(--cp-navy); font-weight: 600; display: block; margin-bottom: 4px; }
.timeline-banner {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; background: var(--accent-pale); border-left: 3px solid var(--accent);
}
.timeline-banner .icon {
  font-family: var(--display); font-size: 28px; font-style: italic; color: var(--sage-dark);
}
.timeline-banner .text { font-size: 14.5px; line-height: 1.5; color: var(--cp-navy); }
.timeline-banner .text strong { font-weight: 600; }

/* ───────────────────────────────────────────────────────────────
   Investment + Payment Schedule
   ─────────────────────────────────────────────────────────────── */
#investment { background: white; }
.invest-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end;
  margin-top: 24px; margin-bottom: 48px;
}
.invest-figure {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9; font-weight: 400; letter-spacing: -0.04em;
  color: var(--cp-navy);
}
.invest-figure .currency {
  font-size: 0.45em; vertical-align: top; margin-right: 8px;
  color: var(--sage-dark); font-style: italic;
}
.invest-figure .cents {
  font-size: 0.3em; color: var(--slate-400); vertical-align: top; margin-left: 8px;
}
.invest-summary p { font-size: 15px; line-height: 1.6; color: var(--slate-700); margin: 0 0 14px 0; }
.invest-summary .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage-dark); font-weight: 600; margin-bottom: 12px;
}

.payment-table {
  width: 100%; border-collapse: collapse;
  border-top: var(--rule-strong); border-bottom: var(--rule-strong);
  margin-top: 32px;
}
.payment-table th, .payment-table td {
  padding: 16px 18px; text-align: left; border-bottom: var(--rule);
  vertical-align: top; font-size: 14px;
}
.payment-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate-500); font-weight: 600; background: var(--cream);
}
.payment-table tr:last-child td { border-bottom: 0; }
.payment-table td.milestone-name {
  font-family: var(--display); font-size: 17px; font-weight: 400;
  color: var(--cp-navy); letter-spacing: -0.01em;
}
.payment-table td.milestone-name .sub {
  display: block; font-family: var(--body); font-size: 12.5px;
  color: var(--slate-500); margin-top: 4px;
}
.payment-table td.milestone-detail {
  font-size: 13.5px; color: var(--slate-700); line-height: 1.55;
}
.payment-table td.milestone-amount {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  color: var(--cp-navy); text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.payment-table tfoot td {
  font-weight: 600; padding-top: 18px; border-top: 2px solid var(--cp-navy); border-bottom: 0;
}
.payment-table tfoot td.total-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-500);
}
.payment-table tfoot td.total-amount {
  font-family: var(--display); font-size: 30px; font-weight: 400;
  color: var(--sage-dark); text-align: right;
}
.breakdown-by-track {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(14,30,54,0.10); border: 1px solid rgba(14,30,54,0.10);
}
.breakdown-by-track .item {
  background: white; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.breakdown-by-track .item .label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate-500); font-weight: 600; margin-bottom: 6px;
}
.breakdown-by-track .item .name {
  font-family: var(--display); font-size: 17px; font-weight: 400;
  color: var(--cp-navy); letter-spacing: -0.01em;
}
.breakdown-by-track .item .amount {
  font-family: var(--display); font-size: 22px; font-weight: 400;
  color: var(--sage-dark); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ───────────────────────────────────────────────────────────────
   Acceptance Criteria
   ─────────────────────────────────────────────────────────────── */
#acceptance { background: var(--cream); }
.acceptance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 24px;
}
.acceptance-block {
  padding: 24px 26px; background: white;
  border: 1px solid rgba(14,30,54,0.10);
}
.acceptance-block h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage-dark); font-weight: 600; margin: 0 0 14px 0;
}
.acceptance-block .phase-name {
  font-family: var(--display); font-size: 20px; font-weight: 400;
  color: var(--cp-navy); margin: 0 0 16px 0; letter-spacing: -0.01em;
}
.acceptance-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.acceptance-list li {
  font-size: 13.5px; color: var(--slate-700); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.acceptance-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--sage); font-weight: 700;
}

/* ───────────────────────────────────────────────────────────────
   Terms & Conditions (lean — MSA referenced)
   ─────────────────────────────────────────────────────────────── */
#terms { background: white; }
.terms-clause {
  display: grid; grid-template-columns: 32px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: var(--rule); align-items: start;
}
.terms-clause:last-child { border-bottom: 0; }
.terms-clause .num {
  font-family: var(--display); font-size: 18px; font-style: italic;
  color: var(--sage-dark); font-weight: 400; line-height: 1.2;
}
.terms-clause .body-text { font-size: 14.5px; line-height: 1.6; color: var(--slate-700); }
.terms-clause .body-text strong { color: var(--cp-navy); font-weight: 600; }
.msa-callout {
  margin-top: 32px; padding: 24px 28px;
  background: var(--accent-pale); border-left: 3px solid var(--accent);
}
.msa-callout h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage-dark); margin: 0 0 8px 0; font-weight: 600;
}
.msa-callout p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cp-navy); }
.msa-callout a { color: var(--sage-dark); text-decoration: underline; }

/* ───────────────────────────────────────────────────────────────
   Signatures — GHL Document Signature overlay zones
   ─────────────────────────────────────────────────────────────── */
#signatures { background: var(--cream); border-top: var(--rule-strong); }
.signature-intro {
  margin-bottom: 32px;
  padding: 20px 24px; background: white;
  border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.6; color: var(--slate-700);
}
.signature-intro strong { color: var(--cp-navy); font-weight: 600; }
.signature-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  page-break-inside: avoid;
  break-inside: avoid;
}
.signature-block {
  padding: 28px 28px 32px;
  background: white; border: 1px solid rgba(14,30,54,0.18);
  page-break-inside: avoid;
  break-inside: avoid;
}
.signature-block .party-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage-dark); font-weight: 600; margin-bottom: 14px;
}
.signature-block .party-identity .company {
  font-family: var(--display); font-size: 20px; font-weight: 400;
  color: var(--cp-navy); letter-spacing: -0.01em; margin-bottom: 2px;
}
.signature-block .party-identity .name {
  font-size: 15px; font-weight: 600; color: var(--cp-navy);
}
.signature-block .party-identity .title {
  font-size: 13px; color: var(--slate-600);
}
.signature-block .sig-field {
  margin-top: 28px;
  width: 100%;
  min-height: 84px;
  height: 84px;
  border: 1px solid var(--cp-navy);
  border-radius: 2px;
  position: relative;
  background: var(--bg-muted);
}
.signature-block .sig-field::before {
  content: 'Signature';
  position: absolute; top: 6px; left: 10px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--slate-400); font-weight: 600;
}
.signature-block .date-field {
  margin-top: 14px;
  width: 60%;
  min-height: 44px;
  height: 44px;
  border: 1px solid var(--cp-navy);
  border-radius: 2px;
  position: relative;
  background: var(--bg-muted);
}
.signature-block .date-field::before {
  content: 'Date';
  position: absolute; top: 6px; left: 10px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--slate-400); font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────
   Appendices
   ─────────────────────────────────────────────────────────────── */
.appendix { background: var(--cream); }
.appendix .eyebrow { color: var(--slate-500); }
.appendix .eyebrow::before { background: var(--slate-400); }
.appendix h2.section-title { font-size: clamp(26px, 3vw, 36px); }
.appendix .body-block {
  font-size: 14.5px; line-height: 1.6; color: var(--slate-700);
  max-width: 760px;
}
.appendix .body-block strong { color: var(--cp-navy); }

/* Contact table */
.contact-table {
  width: 100%; border-collapse: collapse;
  border-top: var(--rule-strong); margin-top: 24px;
}
.contact-table th, .contact-table td {
  padding: 14px 16px; text-align: left; border-bottom: var(--rule);
  font-size: 13.5px; vertical-align: top;
}
.contact-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate-500); font-weight: 600;
}
.contact-table td.role { font-family: var(--display); font-size: 16px; color: var(--cp-navy); }

/* ───────────────────────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────────────────────── */
.proposal-footer {
  background: var(--cream);
  padding: 36px clamp(28px, 5vw, 80px);
  border-top: var(--rule);
  font-size: 11px; color: var(--slate-500);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; letter-spacing: 0.05em;
}
.proposal-footer .ornament {
  font-family: var(--display); font-style: italic; font-size: 15px;
  color: var(--sage-dark); letter-spacing: -0.01em;
}

/* Display-weight normalization (Instrument Serif ships 400 only) */
.cover-title, h2.section-title, h3.sub-title, .lede,
.party-card .name, .timeline-row .when, .invest-figure, .invest-figure .currency,
.payment-table td.milestone-name, .payment-table td.milestone-amount,
.payment-table tfoot td.total-amount,
.breakdown-by-track .item .name, .breakdown-by-track .item .amount,
.start-step .num, .start-step .title,
.acceptance-block .phase-name, .terms-clause .num,
.signature-block .party-identity .company, .track-letter,
.track-header h3, .proposal-footer .ornament, .cover-bottom .ornament,
.sidenav-brand .mark, .timeline-banner .icon { font-weight: 400; }
strong, b { font-weight: 600; }

/* ───────────────────────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav {
    position: sticky; top: 0; height: auto;
    border-right: 0; border-bottom: var(--rule);
    padding: 12px 20px;
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 16px; background: var(--cream); z-index: 50;
  }
  .sidenav-brand { flex-direction: row; align-items: center; gap: 12px; flex: 1; }
  .sidenav-brand .mark { font-size: 17px; }
  .sidenav-brand .brand-logo { width: 34px; height: 34px; }
  .sidenav-brand .meta, .section-counter { display: none; }
  .mobile-nav-toggle { display: inline-flex; }

  .sidenav nav, .sidenav-footer { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidenav nav, body.nav-open .sidenav-footer {
    display: block; position: fixed; left: 0; right: 0;
    background: var(--cream); padding: 24px 24px 32px;
    z-index: 49; -webkit-overflow-scrolling: touch;
  }
  body.nav-open .sidenav nav { top: 68px; bottom: 140px; overflow-y: auto; border-top: 1px solid rgba(14,30,54,0.06); }
  body.nav-open .sidenav-footer { bottom: 0; border-top: 1px solid rgba(14,30,54,0.10); color: var(--slate-600); font-size: 12px; line-height: 1.7; }
  body.nav-open .sidenav-list { flex-direction: column; gap: 0; }
  body.nav-open .sidenav-list a {
    display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center;
    padding: 14px 0; min-height: 48px; font-size: 15px;
    border-bottom: 1px solid rgba(14,30,54,0.06);
  }
  body.nav-open .sidenav-list a .num { font-size: 13px; }
  body.nav-open .sidenav-list .nav-divider { display: block; margin: 8px 0; }

  .parties { grid-template-columns: 1fr; gap: 16px; }
  .start-sequence { grid-template-columns: 1fr 1fr; }
  .track-cols { grid-template-columns: 1fr; gap: 24px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .timeline-row .when { font-size: 16px; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.05em; }
  .invest-hero { grid-template-columns: 1fr; gap: 20px; }
  .payment-table th, .payment-table td { padding: 12px 12px; font-size: 13px; }
  .payment-table td.milestone-amount { font-size: 18px; }
  .breakdown-by-track { grid-template-columns: 1fr; }
  .acceptance-grid { grid-template-columns: 1fr; }
  .signature-pair { grid-template-columns: 1fr; gap: 20px; }
  .print-btn { top: auto; bottom: 16px; right: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  section { padding: 48px 22px; }
  .start-sequence { grid-template-columns: 1fr; }
  .cover-meta { gap: 20px; }
  .not-included-list { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   Reduced motion
   ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .progress-fill { transition: none; }
}

/* ───────────────────────────────────────────────────────────────
   Print (PDF for GHL Document Signature upload)
   ─────────────────────────────────────────────────────────────── */
@media print {
  .sidenav, .progress-rail, .print-btn, .proposal-footer, .mobile-nav-toggle { display: none; }
  .shell { grid-template-columns: 1fr; }
  section {
    padding: 36px 28px;
    break-inside: avoid-page;
  }
  body { font-size: 11pt; background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #cover { min-height: auto; padding: 24px 28px; }
  #cover, #how-we-start, #signatures { background: white !important; color: var(--cp-navy) !important; }
  #how-we-start .section-title, #how-we-start .lede,
  .start-step .num, .start-step .title, .start-step .desc { color: var(--cp-navy) !important; }
  .start-step { background: white !important; border: 1px solid rgba(14,30,54,0.20); }
  .start-sequence { background: transparent !important; }
  .timeline-banner { background: var(--sage-pale) !important; color: var(--cp-navy); }
  h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
  .signature-pair { page-break-before: auto; page-break-inside: avoid; break-inside: avoid; }
  .signature-block { page-break-inside: avoid; break-inside: avoid; }
  /* Make sure signature field borders print solidly */
  .signature-block .sig-field, .signature-block .date-field {
    border: 1.5px solid var(--cp-navy) !important;
    background: white !important;
  }
  .payment-table { page-break-inside: auto; }
  .payment-table tr { page-break-inside: avoid; }
}
