/* ─────────────────────────────────────────────────────────────────────────
   rjg.build — Pitch Site Stylesheet
   Mobile-first. Max content width 680px.
   ───────────────────────────────────────────────────────────────────────── */

/* ── VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --bg:         #F7F5F0;
  --text:       #1a1a18;
  --accent:     #B8872A;
  --secondary:  #6B6860;
  --success:    #2D6A4F;
  --danger:     #C0392B;
  --border:     #DDD9D0;
  --card-bg:    #FFFFFF;
  --total-row:  #F0EDE6;

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w:       680px;
  --pad-h:       20px;
  --section-gap: 60px;
  --radius:      6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* ── PASSWORD GATE ──────────────────────────────────────────────────────── */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--pad-h);
  transition: opacity 0.4s ease;
}

.gate.fading {
  opacity: 0;
  pointer-events: none;
}

.gate-inner {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gate-logo {
  width: 80px;
  height: auto;
  display: block;
}

.gate-wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.gate-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.gate-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.gate-input {
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  min-height: 48px;
  -webkit-appearance: none;
}

.gate-input:focus {
  border-color: var(--accent);
}

.gate-input.error {
  border-color: var(--danger);
}

.gate-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  min-height: 52px;
  transition: background 0.15s;
  -webkit-appearance: none;
}

.gate-btn:hover,
.gate-btn:focus {
  background: #2e2e2c;
  outline: none;
}

.gate-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
  text-align: center;
}

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main {
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.main.visible {
  opacity: 1;
}

/* ── NAV (hidden on mobile, shown on desktop) ───────────────────────────── */
.nav {
  display: none;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad-h);
  z-index: 100;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 32px;
  height: auto;
  display: block;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── SHARED SECTION STYLES ──────────────────────────────────────────────── */
.section {
  padding: var(--section-gap) var(--pad-h);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--secondary);
}

/* ── MARKET / STAT CARDS ────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.stat-context {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.45;
}

.why-now {
  font-style: italic;
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── FINANCIAL MODEL ────────────────────────────────────────────────────── */
.model-intro {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 28px;
}

/* Sliders */
.sliders {
  margin-bottom: 32px;
}

.slider-group {
  margin-bottom: 22px;
}

.slider-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: var(--border); /* overridden inline via JS for fill effect */
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--secondary);
  margin-top: 6px;
}

.winrate-note {
  font-size: 12px;
  color: var(--secondary);
  font-style: italic;
  margin-top: -10px;
}

/* Year Toggle */
.year-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.year-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  -webkit-appearance: none;
}

.year-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.year-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--text);
}

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
}

.summary-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--secondary);
  margin-bottom: 6px;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.summary-value.positive { color: var(--success); }
.summary-value.negative { color: var(--danger); }

/* Line Items */
.line-items {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.line-item:last-child {
  border-bottom: none;
}

.line-item.line-total {
  background: var(--total-row);
}

.line-label {
  font-size: 14px;
  color: var(--secondary);
}

.line-total .line-label {
  font-weight: 600;
  color: var(--text);
}

.line-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.line-value.muted   { color: var(--secondary); }
.line-value.positive { color: var(--success); }
.line-value.loss    { color: var(--danger); }

/* Chart */
.chart-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 20px;
}

/* Overhead Note */
.overhead-note {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.65;
}

.overhead-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--secondary);
  margin-bottom: 10px;
}

.overhead-note p + p {
  margin-top: 8px;
}

/* ── CONTRACTS ──────────────────────────────────────────────────────────── */
.contracts-sub {
  font-size: 14px;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.contracts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contract-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.contract-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.contract-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.contract-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(184, 135, 42, 0.08);
  border: 1px solid rgba(184, 135, 42, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.contract-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.naics-item {
  grid-column: 1 / -1; /* span full width */
}

.contract-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--secondary);
}

.meta-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.sam-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
}

.sam-link:hover {
  text-decoration: underline;
}

.contracts-snapshot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

/* ── THE ASK ────────────────────────────────────────────────────────────── */
.ask-columns {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}

.ask-col-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* Numbered steps */
.ask-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ask-steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
}

.ask-steps li::before {
  content: counter(steps);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(184, 135, 42, 0.08);
  border: 1px solid rgba(184, 135, 42, 0.3);
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Bullet list */
.ask-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ask-list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
  padding-left: 18px;
  position: relative;
}

.ask-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: 36px var(--pad-h) 0;
  border-top: 1px solid var(--border);
}

.cta-primary {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-secondary {
  font-size: 16px;
  color: var(--secondary);
}

.cta-link {
  color: var(--accent);
  font-weight: 500;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 28px var(--pad-h);
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}

.footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── DESKTOP (≥ 640px) ──────────────────────────────────────────────────── */
@media (min-width: 640px) {

  .nav {
    display: flex;
  }

  .hero-section {
    padding-top: 56px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .section-title {
    font-size: 26px;
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 26px;
  }

  .summary-value {
    font-size: 22px;
  }

  .ask-columns {
    flex-direction: row;
    gap: 48px;
  }

  .ask-col {
    flex: 1;
  }

  .cta-primary {
    font-size: 26px;
  }
}
