/* ============================================================
   FieldFrame Investors — Design Tokens
   Concept: blueprint precision meets the job site.
   Warm charcoal + graphite surfaces, one rust-amber accent.
   ============================================================ */

:root {
  /* Type scale — fluid clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 6.25rem);

  /* Spacing — 4px system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.3125rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

:root,
[data-theme='light'] {
  /* Surfaces — warm paper / drafting-table tones */
  --color-bg: #f6f3ee;
  --color-surface: #fbfaf7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece6db;
  --color-surface-offset-2: #e3dbc9;
  --color-surface-dynamic: #ddd2b9;
  --color-divider: #ded6c6;
  --color-border: #d2c8b3;

  /* Text — graphite ink */
  --color-text: #1e1b15;
  --color-text-muted: #6b6155;
  --color-text-faint: #a69c89;
  --color-text-inverse: #fbf8f2;

  /* Primary accent — job-site rust/amber */
  --color-primary: #b4501a;
  --color-primary-hover: #8f3d12;
  --color-primary-active: #6e2e0d;
  --color-primary-highlight: #ecd6c4;

  --color-warning: #96631a;
  --color-warning-highlight: #e6dac2;
  --color-error: #a13a3a;
  --color-error-highlight: #e5cfcc;
  --color-success: #3f6b34;
  --color-success-highlight: #d7e0cd;
  --color-blue: #2f5e73;
  --color-blue-highlight: #cdd9dc;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 60 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #15130f;
  --color-surface: #1b1813;
  --color-surface-2: #201c16;
  --color-surface-offset: #24201a;
  --color-surface-offset-2: #2b2620;
  --color-surface-dynamic: #332c22;
  --color-divider: #2c2720;
  --color-border: #3a3427;

  --color-text: #ece6d9;
  --color-text-muted: #a79c87;
  --color-text-faint: #6e6553;
  --color-text-inverse: #201c16;

  --color-primary: #e2803d;
  --color-primary-hover: #ee9a5c;
  --color-primary-active: #f5b27c;
  --color-primary-highlight: #3c2b1c;

  --color-warning: #d1a24b;
  --color-warning-highlight: #3a3020;
  --color-error: #d17a7a;
  --color-error-highlight: #3a2624;
  --color-success: #8fb578;
  --color-success-highlight: #253422;
  --color-blue: #7fabbd;
  --color-blue-highlight: #202f34;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #15130f;
    --color-surface: #1b1813;
    --color-surface-2: #201c16;
    --color-surface-offset: #24201a;
    --color-surface-offset-2: #2b2620;
    --color-surface-dynamic: #332c22;
    --color-divider: #2c2720;
    --color-border: #3a3427;
    --color-text: #ece6d9;
    --color-text-muted: #a79c87;
    --color-text-faint: #6e6553;
    --color-text-inverse: #201c16;
    --color-primary: #e2803d;
    --color-primary-hover: #ee9a5c;
    --color-primary-active: #f5b27c;
    --color-primary-highlight: #3c2b1c;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 650;
  margin-bottom: var(--space-4);
  max-width: 24ch;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
  font-family: var(--font-body);
  font-weight: 400;
}

.text-muted {
  color: var(--color-text-muted);
}
.text-faint {
  color: var(--color-text-faint);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  border-color: oklch(from var(--color-text) l c h / 0.22);
  color: var(--color-text);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
}
.btn-ghost:hover {
  color: var(--color-text);
}
.btn-block {
  width: 100%;
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-base);
}
.brand svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-tag {
  display: none;
}
@media (min-width: 640px) {
  .brand-tag {
    display: inline;
    color: var(--color-text-faint);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-xs);
    border-left: 1px solid var(--color-border);
    padding-left: var(--space-3);
    margin-left: var(--space-1);
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}
.nav-desktop a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav-desktop a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--color-bg);
  z-index: 90;
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}
@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
[data-theme='dark'] .hero-grid-bg {
  opacity: 0.28;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}
.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 650;
  max-width: 16ch;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-10);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 560px;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-8);
}
@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero-stat dt {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.hero-stat dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--color-text);
}

/* ============================================================
   Callout / disclosure boxes
   ============================================================ */

.callout {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.callout--flag {
  background: var(--color-warning-highlight);
  border-color: oklch(from var(--color-warning) l c h / 0.35);
}
.callout-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-warning);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}
.callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.callout p + p {
  margin-top: var(--space-2);
}

/* ============================================================
   Two-column / asymmetric feature blocks
   ============================================================ */

.split {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .split--reverse {
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

.problem-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.problem-list li,
.solution-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.problem-list li:last-child,
.solution-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.mark--problem {
  color: var(--color-text-faint);
}
.mark--solution {
  color: var(--color-primary);
}
.problem-list h4,
.solution-list h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: var(--space-1);
}
.problem-list p,
.solution-list p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   Workflow diagram
   ============================================================ */

.workflow {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 780px) {
  .workflow {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
  }
}
.workflow-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.workflow-step .step-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}
.workflow-step h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: var(--space-2);
}
.workflow-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.workflow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
}
@media (min-width: 780px) {
  .workflow-arrow {
    display: none;
  }
}

/* ============================================================
   Market stats grid
   ============================================================ */

.market-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-10);
}
@media (min-width: 720px) {
  .market-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
.market-figure {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.market-figure .big-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 650;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.market-figure p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.expansion-path {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.expansion-path li {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.expansion-path li:first-child {
  background: var(--color-primary-highlight);
  border-color: transparent;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   Traction section
   ============================================================ */

.traction-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 780px) {
  .traction-card {
    grid-template-columns: 1fr 1fr;
  }
}
.traction-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.traction-metric .from-to {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 650;
}
.traction-metric .from {
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-faint);
}
.traction-metric .to {
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.traction-metric .label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}
.example-line {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}
.example-line dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.example-line dt {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.example-line dd {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-base);
  margin-top: var(--space-1);
}

/* ============================================================
   Ask section
   ============================================================ */

.ask-hero {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  margin-top: var(--space-10);
}
[data-theme='dark'] .ask-hero {
  background: var(--color-surface-offset-2);
}
.ask-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 650;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .ask-amount {
  color: var(--color-primary-hover);
}
.ask-hero p {
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
  max-width: 60ch;
}
.use-of-funds {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .use-of-funds {
    grid-template-columns: repeat(2, 1fr);
  }
}
.use-of-funds li {
  font-size: var(--text-sm);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: oklch(from var(--color-text-inverse) l c h / 0.06);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.12);
  color: oklch(from var(--color-text-inverse) l c h / 0.92);
}

/* ============================================================
   Founder section
   ============================================================ */

.founder-card {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-top: var(--space-10);
}
@media (min-width: 720px) {
  .founder-card {
    grid-template-columns: auto 1fr;
  }
}
.founder-badge {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  flex-shrink: 0;
}
.founder-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.founder-card .role {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.founder-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   Risk accordion
   ============================================================ */

.risk-list {
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.risk-item {
  border-bottom: 1px solid var(--color-divider);
}
.risk-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-1);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.risk-trigger .chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.risk-item.is-open .chev {
  transform: rotate(180deg);
}
.risk-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.risk-item.is-open .risk-panel {
  grid-template-rows: 1fr;
}
.risk-panel-inner {
  overflow: hidden;
}
.risk-panel p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-6);
  max-width: 68ch;
}
.risk-panel p strong {
  color: var(--color-text);
}

/* ============================================================
   Gated access section
   ============================================================ */

.gate-section {
  background: var(--color-surface-offset);
}
.gate-panel {
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  box-shadow: var(--shadow-md);
  text-align: center;
}
.gate-icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}
.gate-panel h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.gate-panel > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  max-width: 44ch;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 360px;
  margin-inline: auto;
  text-align: left;
}
.gate-form label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gate-form input {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.gate-form input:focus-visible {
  border-color: var(--color-primary);
}
.gate-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1.2em;
  display: none;
}
.gate-error.is-visible {
  display: block;
}
.gate-hint {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.deck-unlocked {
  display: none;
}
.deck-unlocked.is-visible {
  display: block;
}
.deck-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
  margin-inline: auto;
}
.deck-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: left;
}
.deck-link:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.deck-link svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.deck-link .name {
  font-weight: 600;
  font-size: var(--text-sm);
}
.deck-link .meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   Contact / CTA band
   ============================================================ */

.cta-band {
  text-align: center;
}
.cta-band h2 {
  font-size: var(--text-2xl);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.cta-band p {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-weight: 650;
}
.footer-brand svg {
  width: 26px;
  height: 26px;
}
.disclosure {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
  max-width: 62ch;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.footer-links a {
  color: var(--color-text-muted);
}
.footer-links a:hover {
  color: var(--color-text);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
