/* MapWhisper — "field survey" blueprint theme */

:root {
  --paper: #e8edf3;
  --paper-2: #dde5ef;
  --paper-3: #f5f8fc;
  --surface: #f5f8fc;

  --ink: #0e1a2b;
  --ink-2: #2b3a4d;
  --ink-3: #4d5c70;
  --ink-4: #6d7c8f;

  --rule: #0e1a2b;
  --rule-soft: rgba(14, 26, 43, 0.18);
  --rule-softer: rgba(14, 26, 43, 0.08);
  --grid: rgba(14, 26, 43, 0.055);
  --grid-major: rgba(14, 26, 43, 0.085);

  --accent: #1f4fd8;
  --accent-deep: #163ba6;
  --accent-wash: rgba(31, 79, 216, 0.09);
  --signal: #cdf03f;
  --alert: #d9391f;

  --on-ink: #e8edf3;

  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 3px;
  --shell: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* Mono labels */
.kicker,
.eyebrow,
.card-label,
.try-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  background: var(--paper-3);
}
.kicker-dot { width: 6px; height: 6px; background: var(--signal); border: 1px solid var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-4);
  margin-bottom: 1.15rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--accent); border-right: 0; border-bottom: 0; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--rule-soft) 0 6px, transparent 6px 12px); }

.card-label { color: var(--ink-4); letter-spacing: 0.18em; margin-bottom: 0.55rem; }
.try-label { color: var(--ink-4); margin-bottom: 0.6rem; }

/* Headings */
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.15rem); }

.section h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); margin-bottom: 0.75rem; }

.section-lede {
  font-size: 1.0625rem;
  color: var(--ink-3);
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.btn:hover { background: var(--ink); color: var(--on-ink); }

.btn-solid { background: var(--accent); border-color: var(--accent-deep); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); color: #fff; }

.btn-outline { background: var(--paper-3); }

.btn-accent { border-color: var(--accent); color: var(--accent); background: var(--paper-3); }
.btn-accent:hover { background: var(--accent); color: #fff; }

.btn-plain {
  border-color: transparent;
  padding-inline: 0.5rem;
  color: var(--ink-3);
}
.btn-plain:hover { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.btn-lg { padding: 0.8rem 1.4rem; font-size: 0.8125rem; }

/* Framed panels: hairline frame + inset dashed guide + corner ticks */
.panel {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--rule-softer);
  pointer-events: none;
}

/* TOP BANNER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper-3);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--accent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 62px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }

/* Signature mark: map pin + whisper arcs */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--signal);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand-name em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  vertical-align: 2px;
}

.topnav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.topnav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

/* HERO */
.hero { position: relative; padding: 3.5rem 0 0; overflow: hidden; }

/* Signature: survey contour lines behind the hero */
.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.16;
  stroke-width: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 82%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

h1 em { font-size: 1.05em; letter-spacing: -0.015em; }

.hl {
  background: var(--ink);
  color: var(--paper-3);
  padding: 0 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.marked { position: relative; display: inline-block; }
.marked::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--signal);
  z-index: -1;
}

.lede {
  font-size: 1.0625rem;
  color: var(--ink-2);
  max-width: 34rem;
  margin: 1.6rem 0 2rem;
}
.lede em { font-size: 1.12em; }

/* Signature: telemetry readout strip */
.readout {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.45rem 0.75rem;
  background: var(--paper-3);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.readout i { font-style: normal; color: var(--rule-soft); }
.readout b {
  padding: 0.05rem 0.4rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.rd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.caret {
  width: 7px;
  height: 12px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-soft);
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.chip span { color: var(--accent); font-family: var(--mono); }
.chip:hover { border-color: var(--accent); background: var(--accent-wash); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-4);
}
.trust b { color: var(--ink); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; }

/* Hero side */
.hero-side { display: grid; gap: 2rem; padding-top: 0.5rem; }

.stamp {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--signal);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.stamp strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.3rem;
}
.stamp em { font-size: 1.05em; }

.pull-quote {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.pull-quote strong { font-family: var(--sans); font-size: 0.92em; }

/* Ticker — dark strip */
.ticker {
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  padding: 0.55rem 0;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.tick {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(232, 237, 243, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}
.tick b { color: var(--on-ink); font-weight: 400; margin-right: 0.4rem; }
.tick i { font-style: normal; margin-left: 0.45rem; }
.tick .up { color: var(--signal); }
.tick .down { color: #ff8a6b; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }

/* Showcase */
.showcase {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--paper-3);
  border-bottom: 1px solid var(--ink);
}
.win-dot { width: 8px; height: 8px; background: var(--paper-2); border: 1px solid var(--rule-soft); }
.showcase-bar code {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-4);
}
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.live i { width: 6px; height: 6px; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 79, 216, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(31, 79, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 79, 216, 0); }
}

/* Signature: capture reticle over the map */
.frame-media { position: relative; }

.reticle { position: absolute; inset: 0; pointer-events: none; }
.reticle i { position: absolute; display: block; }

.reticle .r-tl,
.reticle .r-tr,
.reticle .r-bl,
.reticle .r-br {
  width: 26px;
  height: 26px;
  border: 2px solid var(--signal);
}
.reticle .r-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.reticle .r-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.reticle .r-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.reticle .r-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.reticle .r-cross {
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background:
    linear-gradient(var(--signal), var(--signal)) center/1px 100% no-repeat,
    linear-gradient(var(--signal), var(--signal)) center/100% 1px no-repeat;
  opacity: 0.85;
}

.reticle .r-scan {
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0.55;
  animation: scan 7s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(6%); }
  50% { transform: translateY(94%); }
}

.geo-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.2rem 0.5rem;
  background: rgba(14, 26, 43, 0.82);
  border-left: 2px solid var(--signal);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}

/* Signature: margin field note */
.field-note {
  position: relative;
  max-width: 30rem;
  margin: 1.75rem 0 0 auto;
  padding-left: 1.1rem;
  border-left: 1px dashed var(--rule-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.field-note::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border: 1px solid var(--ink);
}

.showcase-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--paper-3);
  border-top: 1px solid var(--ink);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.showcase-foot b { color: var(--ink); font-family: var(--mono); }
.foot-right { margin-left: auto; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-4); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.card,
.step,
.access-card {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s ease, background 0.14s ease;
}

/* corner ticks */
.card::before,
.step::before,
.access-card::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.card::after,
.step::after,
.access-card::after {
  content: "";
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
}

.card:hover, .step:hover { border-color: var(--ink); background: #fff; }

.card h3, .step h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; }
.card p, .step p { font-size: 0.875rem; color: var(--ink-3); }

.tag {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
}

/* PIPELINE */
.pipeline {
  position: relative;
  aspect-ratio: 1000 / 420;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background-color: var(--paper-3);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 25px 25px;
  overflow: hidden;
}
.pipeline::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--rule-softer);
  pointer-events: none;
}

.pipe-lines { position: absolute; inset: 0; width: 100%; height: 100%; }

.pipe {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  animation: dash 1.1s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -11; } }

.pipe-reject { stroke: var(--alert); animation-duration: 1.7s; }
.pipe-loop {
  stroke: var(--ink-4);
  stroke-width: 1.2;
  stroke-dasharray: 2 7;
  animation-duration: 2.6s;
  animation-direction: reverse;
}

.packet { fill: var(--accent); }
.packet-gold { fill: var(--signal); stroke: var(--ink); stroke-width: 1; }

.stage {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  width: 150px;
}

.stage-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.stage-box svg { width: 23px; height: 23px; }
.stage-box-gate { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-deep); }
.stage-box-out { background: var(--ink); color: var(--signal); }

.stage strong { font-size: 0.9375rem; letter-spacing: -0.02em; }
.stage small {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  line-height: 1.45;
}

.stage-reject { width: 200px; }
.reject-pill {
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--alert);
  background: rgba(217, 57, 31, 0.08);
  color: var(--alert);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wire-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 0.08rem 0.45rem;
  background: var(--paper-3);
  border: 1px solid var(--rule-softer);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
.wire-tag-loop { border-style: dashed; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.snippet {
  display: block;
  margin-top: 1.1rem;
  padding: 0.8rem 0.9rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Table */
.table-wrap {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--paper-3);
}

.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.875rem; }
.compare th, .compare td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--rule-softer); }
.compare thead th {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 400;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody td { color: var(--ink-3); }
.compare td:first-child { color: var(--ink); font-weight: 500; }
.compare .is-us { background: var(--accent-wash); color: var(--accent-deep); font-weight: 700; }
.compare thead .is-us { color: var(--accent-deep); background: var(--accent-wash); }

/* Access */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.access-card { padding: 2rem 1.75rem; }
.access-card.is-primary { border-color: var(--ink); border-top: 3px solid var(--accent); }
.access-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.access-card > p { color: var(--ink-3); font-size: 0.9375rem; }

.ribbon {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.12rem 0.5rem;
  background: var(--signal);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}

.ticks { list-style: none; margin: 1rem 0 1.5rem; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: 0.875rem; color: var(--ink-2); }
.ticks li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.access-card .btn { align-self: flex-start; margin-top: auto; }

/* FAQ */
.faq {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.faq details { border-bottom: 1px solid var(--rule-softer); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary { background: var(--accent-wash); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 1.3rem 1.2rem; font-size: 0.875rem; color: var(--ink-3); max-width: 52rem; }

/* CTA — dark band */
.cta {
  padding: 5rem 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(232, 237, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 243, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--on-ink);
  border-top: 1px solid var(--ink);
}
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); margin-bottom: 0.75rem; }
.cta h2 em { color: var(--signal); }
.cta p { color: rgba(232, 237, 243, 0.65); margin-bottom: 1.75rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.cta .btn-solid { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cta .btn-solid:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta .btn-outline { background: transparent; border-color: rgba(232, 237, 243, 0.4); color: var(--on-ink); }
.cta .btn-outline:hover { background: var(--on-ink); color: var(--ink); }

.cta-mail { margin-top: 1.25rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: rgba(232, 237, 243, 0.5); }
.cta-mail a { color: var(--signal); border-bottom: 1px solid rgba(205, 240, 63, 0.4); }

/* LEAD FORM MODALS */
.modal {
  inset: 0;
  margin: auto;
  width: min(100% - 2rem, 620px);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(14, 26, 43, 0.72); }
.modal[open] { animation: modal-in 0.16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }

.modal-panel {
  position: relative;
  padding: 2rem 1.9rem 1.75rem;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.modal-panel::before,
.modal-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.modal-panel::before { top: 8px; left: 8px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.modal-panel::after { bottom: 8px; right: 8px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: var(--paper-3);
  color: var(--ink-3);
  font-size: 0.75rem;
  cursor: pointer;
}
.modal-close:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.modal-head { margin-bottom: 1.5rem; padding-right: 2rem; }
.modal-head h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-head p { font-size: 0.875rem; color: var(--ink-3); }
.modal-head b { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); font-weight: 500; }

.lead-form { display: grid; gap: 0.9rem; }
.lead-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.field { display: grid; gap: 0.35rem; }
.field > span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: var(--alert); }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.check input { margin-top: 0.2rem; accent-color: var(--accent); width: 15px; height: 15px; }
.check b { font-weight: 700; }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note {
  padding-left: 0.8rem;
  border-left: 1px dashed var(--rule-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-softer);
}

.form-status {
  min-height: 1.1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.form-status[data-state="error"] { color: var(--alert); }
.form-status a { border-bottom: 1px solid currentColor; }

.lead-form[data-busy] { opacity: 0.6; pointer-events: none; }

.form-success { display: grid; gap: 0.9rem; justify-items: start; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 1.375rem; }
.form-success p { font-size: 0.9375rem; color: var(--ink-3); }
.form-success a { color: var(--accent); border-bottom: 1px solid var(--accent-wash); }

body.modal-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-wash);
  cursor: pointer;
}
.linkish:hover { border-bottom-color: var(--accent); }

/* FLOATING WALKTHROUGH BUBBLE */
.video-bubble {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  touch-action: none;
  animation: bubble-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.video-bubble[hidden] { display: none; }

/* Flip the tooltip when the bubble is parked on the left half. */
.video-bubble.is-left { flex-direction: row-reverse; }

.video-bubble.is-dragging { animation: none; cursor: grabbing; }
.video-bubble.is-dragging .video-bubble-btn { transform: none; cursor: grabbing; }
.video-bubble.is-dragging .video-bubble-tip { opacity: 0; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(14px) scale(0.85); }
}

.video-bubble-tip {
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}
.video-bubble:hover .video-bubble-tip,
.video-bubble:focus-within .video-bubble-tip { opacity: 1; transform: translateX(0); }

.video-bubble-btn {
  position: relative;
  width: 116px;
  height: 116px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  cursor: grab;
  box-shadow: 0 12px 28px rgba(14, 26, 43, 0.3);
  transition: transform 0.16s ease;
}
.video-bubble-btn:hover { transform: scale(1.05); }
.video-bubble-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The source is a screen recording, so zoom toward the presenter to stay legible at 116px. */
.video-bubble-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 78%;
  transform: scale(1.75);
  transform-origin: 22% 78%;
}

.video-bubble-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 26, 43, 0.88) 12%, rgba(14, 26, 43, 0) 58%);
}

.video-bubble-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink);
  text-align: center;
}

/* Signal ring, so the bubble reads as live without shouting */
.video-bubble-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--signal);
  opacity: 0;
  animation: ring 3.4s ease-out infinite;
}
@keyframes ring {
  0% { opacity: 0.85; transform: scale(1); }
  55%, 100% { opacity: 0; transform: scale(1.28); }
}

.video-bubble-dismiss {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink-3);
  font-size: 0.625rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.video-bubble:hover .video-bubble-dismiss,
.video-bubble:focus-within .video-bubble-dismiss { opacity: 1; }
.video-bubble-dismiss:hover { background: var(--ink); color: var(--on-ink); }

/* Walkthrough modal — split stage + lead rail */
.modal-video {
  width: min(100% - 1.5rem, 1120px);
  max-height: min(92vh, 720px);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.tour-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  min-height: min(84vh, 640px);
  max-height: min(92vh, 720px);
}

.tour-stage {
  position: relative;
  background: var(--ink);
  min-height: 280px;
}

.tour-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.55);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.tour-close:hover { background: rgba(14, 26, 43, 0.85); }

.tour-stage .video-frame {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  max-height: none;
  border: 0;
  border-radius: 0;
}

.tour-stage-meta {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
}
.tour-kicker {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 237, 243, 0.78);
  background: rgba(14, 26, 43, 0.55);
  border: 1px solid rgba(232, 237, 243, 0.18);
  padding: 0.35rem 0.55rem;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.tour-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.tour-pin i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(205, 240, 63, 0.28);
}

.tour-rail {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.1rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper-3);
  background-size: 24px 24px, 24px 24px, auto;
  border-left: 1px solid var(--rule-soft);
}

.tour-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tour-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.tour-brand .brand-mark {
  width: 28px;
  height: 28px;
}
.tour-brand .brand-mark svg { width: 16px; height: 16px; }
.tour-brand strong {
  display: block;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tour-brand em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.tour-mail {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  white-space: nowrap;
}
.tour-mail:hover { color: var(--accent); }

.tour-offer {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--rule-soft);
  background: #fff;
}
.tour-offer-mark {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}
.tour-offer p {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.tour-rail-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0;
}
.tour-rail-lede {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.tour-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: #fff;
}
.tour-tab {
  padding: 0.55rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.tour-tab + .tour-tab { border-left: 1px solid var(--rule-soft); }
.tour-tab.is-active {
  background: var(--ink);
  color: var(--on-ink);
}
.tour-tab:hover:not(.is-active) { color: var(--ink); background: var(--accent-wash); }

.tour-pane[hidden] { display: none; }
.tour-pane .lead-form { gap: 0.55rem; }
.tour-pane .field > span { font-size: 0.5625rem; }
.tour-pane .field input,
.tour-pane .field select,
.tour-pane .field textarea {
  padding: 0.5rem 0.6rem;
  font-size: 0.8125rem;
}
.tour-pane .tour-submit { width: 100%; justify-content: center; margin-top: 0.15rem; }
.tour-pane .form-status { min-height: 0.9rem; }
.tour-pane .form-success { padding-top: 0.35rem; }
.tour-pane .form-success h3 { font-size: 1.125rem; }
.tour-pane .check { font-size: 0.75rem; }

.tour-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.tour-card {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.7rem 0.85rem;
  border: 1px solid var(--rule-soft);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.tour-card:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.tour-card-kicker {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
.tour-card strong {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.tour-card-go {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.875rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 1110 / 832;
  max-height: 64vh;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.video-frame.is-ready iframe { opacity: 1; }

.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.video-poster-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: rgba(14, 26, 43, 0.72);
  border: 1px solid rgba(232, 237, 243, 0.22);
  padding: 0.55rem 0.85rem;
}
.video-frame.is-ready .video-poster { display: none; }

/* BOTTOM BANNER — dark */
.footer {
  background: #0a1421;
  color: rgba(232, 237, 243, 0.7);
  border-top: 1px solid rgba(232, 237, 243, 0.14);
  padding: 3.25rem 0 1.5rem;
}
.footer .brand-name { color: var(--on-ink); }
.footer .brand-name em { color: var(--signal); }
.footer .brand-mark { background: var(--signal); color: var(--ink); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-tag { margin: 1rem 0; font-size: 0.8125rem; color: rgba(232, 237, 243, 0.55); }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 237, 243, 0.25);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--on-ink);
}
.footer-social a:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 400;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.8125rem; color: rgba(232, 237, 243, 0.7); }
.footer-col a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 237, 243, 0.14);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(232, 237, 243, 0.45);
}
.footer-note { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; letter-spacing: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .tour-shell { grid-template-columns: 1fr; max-height: 94vh; overflow: auto; min-height: 0; }
  .tour-stage { aspect-ratio: 16 / 10; min-height: 0; }
  .tour-rail { border-left: 0; border-top: 1px solid var(--rule-soft); }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hero-side { grid-template-columns: 1fr; }
  .card-grid, .steps, .access-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 1.75rem 1.25rem 1.5rem; }
  .modal-video {
    width: min(100% - 1rem, 1120px);
    max-height: 94vh;
  }
  .tour-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: 94vh;
    overflow: auto;
  }
  .tour-stage {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .tour-rail {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
  }
  .tour-stage-meta { display: none; }
  .video-bubble { right: 0.9rem; bottom: 0.9rem; }
  .video-bubble-btn { width: 84px; height: 84px; }
  .video-bubble-label { bottom: 10px; font-size: 0.5rem; }
  .video-bubble-tip { display: none; }
  .pipeline { aspect-ratio: 1000 / 620; }
  .stage { width: 96px; }
  .stage-box { width: 44px; height: 44px; }
  .stage small { font-size: 0.5rem; }
  .wire-tag { display: none; }
  .showcase-foot { gap: 0.9rem; }
  .foot-right { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pipe, .ticker-track, .live i, .caret, .reticle .r-scan,
  .video-bubble, .video-bubble-btn::after { animation: none; }
  .packet { display: none; }
  .reticle .r-scan { display: none; }
}
