/* ==========================================================================
   CREATIVE WEB REPLICATOR — Editorial Forensic Atelier Design System
   Obsidian Film Stock · Warm Bone Ink · Kodak 5219 Tungsten Vermilion
   ========================================================================== */

:root {
  /* Core Surfaces (HSL calibrated) */
  --bg: hsl(40, 7%, 4.5%);
  --bg-elevated: hsl(38, 7%, 7.5%);
  --bg-panel: hsl(38, 7%, 9.5%);
  --bg-panel-hover: hsl(38, 7%, 12%);
  --bg-inset: hsl(40, 8%, 3.2%);

  /* Inks */
  --ink: hsl(41, 28%, 89%);
  --ink-secondary: hsl(39, 10%, 64%);
  --ink-muted: hsl(38, 8%, 45%);
  --ink-inverse: hsl(40, 10%, 6%);

  /* Accent: Kodak 5219 Halation Vermilion & Warm Brass */
  --accent: hsl(17, 72%, 51%);
  --accent-hover: hsl(17, 78%, 57%);
  --accent-soft: hsla(17, 72%, 51%, 0.12);
  --brass: hsl(37, 46%, 62%);
  --brass-soft: hsla(37, 46%, 62%, 0.12);
  --ok: hsl(148, 36%, 52%);
  --danger: hsl(4, 68%, 58%);

  /* Architectural Hairlines (No glowing colored borders) */
  --rule: hsla(41, 28%, 89%, 0.11);
  --rule-strong: hsla(41, 28%, 89%, 0.22);
  --rule-subtle: hsla(41, 28%, 89%, 0.06);

  /* Typography */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Motion & Layout */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Tactile 24fps-inspired Silver Halide Film Grain Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Subtle top ambient tonal depth (not a loud neon glow) */
body::after {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 460px;
  background: radial-gradient(ellipse at center, hsla(32, 32%, 28%, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Top Architectural Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: hsla(40, 7%, 4.5%, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-ver {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.7rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.util-btn:hover {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: var(--bg-elevated);
}

.util-btn[aria-pressed='true'] {
  color: var(--brass);
  border-color: hsla(37, 46%, 62%, 0.45);
  background: var(--brass-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fffaf5;
  border: 1px solid transparent;
  padding: 0.78rem 1.35rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-nav {
  height: 36px;
  padding: 0 0.95rem;
  font-size: 0.8rem;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 0.78rem 1.35rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--bg-panel);
  border-color: var(--ink-secondary);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.62rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.btn-ghost:hover {
  background: var(--bg-panel-hover);
  border-color: var(--rule-strong);
}

/* ==========================================================================
   Hero Section — Editorial Monochrome & Live WebGL/3D Fidelity Viewport
   ========================================================================== */

.hero {
  padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.eyebrow .sep {
  color: var(--rule-strong);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 5.8vw, 5.15rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--brass);
}

.hero-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-secondary);
  max-width: 54ch;
  margin: 0 0 2rem;
  line-height: 1.68;
}

.hero-offer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.price-lockup {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price-figure {
  font-family: var(--font-display);
  font-size: 2.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.35;
}

.price-divider {
  width: 1px;
  height: 36px;
  background: var(--rule);
}

.offer-terms {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  max-width: 34ch;
  line-height: 1.45;
}

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

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hero-footnote {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin: 0;
}

.hero-footnote a {
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

.hero-footnote a:hover {
  color: var(--ink);
}

/* Live Interactive Fidelity Stage */
.stage-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-inset);
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.tier-switcher {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.tier-tab {
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 0.34rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.tier-tab:last-child {
  border-right: none;
}

.tier-tab:hover {
  color: var(--ink);
}

.tier-tab.active {
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 600;
}

.stage-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background: #070706;
  overflow: hidden;
  cursor: grab;
}

.stage-viewport:active {
  cursor: grabbing;
}

#forensic-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cinemascope 2.39:1 Letterbox Bars (activated in Tier B) */
.letterbox-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #030303;
  transition: height 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

.letterbox-top {
  top: 0;
}

.letterbox-bottom {
  bottom: 0;
}

.stage-viewport.cinemascope .letterbox-bar {
  height: 11.5%;
}

.stage-hud {
  position: absolute;
  inset: 0;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  color: hsla(41, 28%, 89%, 0.78);
  text-transform: uppercase;
}

.hud-tag {
  background: hsla(40, 7%, 4.5%, 0.72);
  border: 1px solid hsla(41, 28%, 89%, 0.14);
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
}

.stage-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  background: var(--bg-inset);
}

.stage-stat {
  padding: 0.72rem 0.95rem;
  border-right: 1px solid var(--rule);
}

.stage-stat:last-child {
  border-right: none;
}

.stage-stat-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.stage-stat-v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
}

/* ==========================================================================
   Shared Editorial Section Headers
   ========================================================================== */

.section {
  padding: clamp(4rem, 7vw, 6.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.section-desc {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 58ch;
  line-height: 1.68;
}

/* ==========================================================================
   Section 01 — 3-Tier Fidelity Matrix
   ========================================================================== */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.tier-col {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: background-color 0.25s var(--ease-out);
}

.tier-col:hover {
  background: var(--bg-panel);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.tier-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.tier-fidelity {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink);
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

.tier-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.tier-copy {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.62;
  flex: 1;
}

.tier-meta-list {
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rule-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.tier-meta-list li strong {
  color: var(--ink-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Section 02 — Interactive 5-Step Forensic Pipeline
   ========================================================================== */

.pipeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 2rem;
  align-items: start;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.step-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 1.15rem 1rem;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  transition: background-color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.step-btn:hover {
  background: var(--bg-elevated);
}

.step-btn.active {
  background: var(--bg-panel);
  padding-left: 1.25rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.step-btn.active .step-num {
  color: var(--accent);
  font-weight: 600;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.step-btn.active .step-title {
  color: var(--ink);
}

.step-arrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
  opacity: 0.45;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.step-btn.active .step-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateX(3px);
}

.pipeline-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.detail-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.05rem;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.detail-body {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.68;
}

.code-block {
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink);
  overflow-x: auto;
  margin: 0;
}

.code-block .c-dim {
  color: var(--ink-muted);
}

.code-block .c-acc {
  color: var(--brass);
}

.detail-bullets {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Section 03 — Santioni Spirits Reference Ledger & Arsenal
   ========================================================================== */

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.ledger-cell {
  padding: 1.6rem 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elevated);
}

.ledger-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.ledger-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.3rem;
}

.ledger-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.ledger-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0 0 3.25rem;
  line-height: 1.6;
}

.arsenal-table {
  border-top: 1px solid var(--rule);
}

.arsenal-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.48fr) minmax(140px, 0.24fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.arsenal-file {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 500;
}

.arsenal-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.58;
}

.arsenal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ==========================================================================
   Section 04 — MANDATORY $200 LICENSE & EMAIL ACQUISITION GATE
   ========================================================================== */

.acquire-section {
  background: linear-gradient(180deg, var(--bg) 0%, hsl(38, 8%, 6.2%) 100%);
}

.acquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.license-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.license-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.license-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.license-amount {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 5.5vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.license-currency {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.45;
}

.license-policy {
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1.5rem;
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.license-policy strong {
  color: var(--ink);
}

.license-includes {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.license-includes li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.license-includes .check {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.8rem;
  margin-top: 0.12rem;
}

.direct-email-box {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.direct-email-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.direct-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.65rem 0.85rem;
}

.direct-email-addr {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  word-break: break-all;
}

/* Email Gate Form Panel */
.email-gate-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2.25rem 2rem;
}

.gate-header {
  padding-bottom: 1.35rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.gate-subtitle {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0.74rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: hsl(40, 8%, 4.2%);
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--danger);
  min-height: 1rem;
}

.consent-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.consent-box.has-error {
  border-color: var(--danger);
}

.consent-box input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.consent-text strong {
  color: var(--ink);
}

/* Live Email Preview Box */
.email-preview {
  margin-top: 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-inset);
  overflow: hidden;
}

.email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.email-preview-body {
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 175px;
  overflow-y: auto;
}

.gate-submit-row {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-full {
  width: 100%;
  padding: 0.95rem 1.4rem;
  font-size: 0.96rem;
}

.gate-status-msg {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--danger);
  min-height: 1.1rem;
  margin: 0;
}

/* Dispatch Confirmation Panel (Shown after email trigger) */
.dispatch-panel {
  margin-top: 1.5rem;
  padding: 1.4rem 1.25rem;
  background: hsl(40, 8%, 5.5%);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--ok);
  border-radius: 3px;
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.35s var(--ease-out);
}

.dispatch-panel.visible {
  display: flex;
}

.dispatch-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  margin: 0;
}

.dispatch-copy {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.58;
}

.dispatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   Footer & Legal Honesty
   ========================================================================== */

.site-footer {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-legal {
  font-size: 0.84rem;
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0.6rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--ink-inverse);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.75rem 1.1rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

.shake {
  animation: gentleShake 0.34s ease;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .section-head,
  .pipeline-layout,
  .acquire-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .license-card {
    position: static;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .arsenal-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .arsenal-tag {
    text-align: left;
  }

  .ledger-grid {
    grid-template-columns: 1fr;
  }

  .stage-footer {
    grid-template-columns: 1fr;
  }

  .stage-stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .stage-stat:last-child {
    border-bottom: none;
  }

  .price-divider {
    display: none;
  }

  .brand-ver {
    display: none;
  }
}
