/* ============================================================
   Locra landing page
   Design tokens — change the brand feel here.
   ============================================================ */
:root {
  /* paper-map theme: aged survey sheet, topographic inks */
  --bg: #f4eede;
  --bg-raised: #ece3cc;
  --bg-card: #faf6ea;
  --border: #d9cdaf;
  --text: #2e2718;
  --muted: #776c52;
  --accent: #216e5c; /* survey green-teal ink — results / data flow */
  --accent-dim: #7fa89b;
  --amber: #b35a1f; /* topo road terracotta — output / highlights */
  --blue: #35688f; /* water ink — shape nodes */
  --purple: #7a5292; /* intelligence nodes */
  --slate: #776c52; /* survey pen ink — canvas edges (app icon maze) */
  --green: #57803a; /* contour green — ok status */
  --map-line: #d8cba9; /* map streets, graticule */
  --grat: color-mix(in srgb, var(--text) 4.5%, transparent); /* page graticule */
  --font:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, var(--grat) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, var(--grat) 119px 120px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 0;
}

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  width: 26px;
  height: 26px;
}

.logo-maze {
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.6;
  stroke-dasharray: 2.4 1.7;
}
.logo-entry {
  fill: var(--accent);
}
.logo-heart {
  fill: var(--amber);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ---------------- buttons & forms ---------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #f7f2e6;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.btn:hover {
  background: #2b8571;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* The nav is sticky, so anything scrolled to the top of the viewport lands under
   it. Hold the hero form clear of the bar — this covers the plain `#waitlist`
   anchor jump (a shared link, a reload) as well as the header button's own scroll. */
#waitlist {
  scroll-margin-top: 6rem;
}

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0.4rem;
  max-width: 480px;
}

.lead-form input[type='email'] {
  /* 200px, not 240: the button's label is long enough that a 240px basis wraps it
     onto its own line in the hero column at laptop widths. */
  flex: 1 1 200px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.lead-form input[type='email']:focus {
  outline: none;
  border-color: var(--accent-dim);
}

/* honeypot — visually gone, still in the DOM for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.2rem 0 0;
}

.form-msg {
  flex-basis: 100%;
  font-size: 0.95rem;
  min-height: 1.4em;
  margin: 0.2rem 0 0;
}

.form-msg.ok {
  color: var(--green);
}

.form-msg.err {
  color: #a03a34;
}

.lead-form-center {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.grad {
  background: linear-gradient(90deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-strip li::before {
  content: '✓ ';
  color: var(--accent);
}

.hero-visual svg,
.arch-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------- shared SVG styles ---------------- */
/* Workflow nodes drawn with the app's real anatomy (ShapeNodeFrame): a category-
   coloured icon body, label below, handle dots riding the border, badge circles.
   Category colours match the app's light-theme tokens exactly. */
.nb-source {
  --cat: var(--accent);
}
.nb-shape {
  --cat: var(--blue);
}
.nb-intel {
  --cat: var(--purple);
}
.nb-output {
  --cat: var(--amber);
}

.node-body {
  fill: var(--bg-card);
  stroke: color-mix(in srgb, var(--cat) 60%, var(--border));
  stroke-width: 2;
}

.n-icon {
  fill: none;
  stroke: var(--cat);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.handle-dot {
  fill: color-mix(in srgb, var(--cat) 60%, var(--border));
  stroke: var(--bg-card);
  stroke-width: 1.5;
}

.node-label {
  fill: var(--text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
}

.run-badge {
  fill: var(--green);
  stroke: var(--bg-card);
  stroke-width: 1.5;
}

.run-check {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-badge {
  fill: var(--purple);
  stroke: var(--bg-card);
  stroke-width: 1.5;
}

.ai-badge-text {
  fill: #f7f2e6;
  font-family: var(--font);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.node-title {
  fill: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.node-sub {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.dot-idle {
  fill: var(--muted);
}

.port {
  fill: var(--bg);
  stroke-width: 1.5;
}
.port-input {
  stroke: var(--accent);
}
.port-shape {
  stroke: var(--blue);
}

.edge {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.edge-table {
  stroke: var(--accent-dim);
  stroke-dasharray: 6 6;
  animation: flow 1.2s linear infinite;
}

/* Graph wires between nodes — solid at rest, like the app's canvas (edges only
   dash-animate there while a node is running, and this graph has already run). */
.edge-wire {
  stroke: color-mix(in srgb, var(--muted) 55%, var(--border));
  stroke-width: 1.6;
}

.edge-result {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 4 7;
  animation: flow 1.4s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edge-table,
  .edge-result {
    animation: none;
  }
}

.annotation-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.7;
}

.annotation-pill {
  fill: var(--bg-raised);
  stroke: var(--border);
}

.annotation-text {
  fill: var(--blue);
  font-family: var(--mono);
  font-size: 10.5px;
}

/* architecture diagram */
.hub-box {
  fill: var(--bg-card);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.hub-title {
  fill: var(--text);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
}

.hub-sub,
.machine-sub {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
}

.hub-chip,
.drone-chip {
  fill: var(--bg-raised);
  stroke: var(--border);
}

.drone-chip {
  stroke: var(--accent-dim);
}

.chip-text {
  fill: var(--muted);
  font-size: 10.5px;
  font-family: var(--mono);
}

.machine-box {
  fill: var(--bg-raised);
  stroke: var(--border);
  stroke-width: 1.5;
}

.machine-title {
  fill: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
}

.db-top {
  fill: var(--bg-card);
  stroke: var(--muted);
  stroke-width: 1.2;
}

.db-body {
  fill: var(--bg-card);
  stroke: var(--muted);
  stroke-width: 1.2;
}

.stay-label {
  fill: var(--amber);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.flow-label {
  fill: var(--accent);
  font-size: 10.5px;
  font-family: var(--mono);
}

/* ---------------- problem ---------------- */
.problem {
  text-align: center;
  max-width: 760px;
}

.problem p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------------- how it works ---------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.4rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.arch-visual {
  margin: 2rem auto 0;
  max-width: 820px;
}

.stat-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.stat-big {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
}

.stat:nth-child(2) .stat-big {
  color: var(--amber);
}

.stat:nth-child(3) .stat-big {
  color: var(--green);
}

.stat-small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------- features ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------------- AI section ---------------- */
.ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.ai-copy p {
  color: var(--muted);
}

.ai-copy em {
  color: var(--text);
}

/* demo-card thumbnails — the vertical pages */
.demo-thumb {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.t-panel {
  fill: var(--bg);
  stroke: var(--border);
}

.t-sheet {
  fill: var(--bg-card);
  stroke: var(--border);
}

.t-sheet-back {
  fill: var(--bg-raised);
  stroke: var(--border);
}

.t-grid {
  stroke: var(--map-line);
  stroke-width: 1;
}

.t-track {
  fill: var(--bg-raised);
  stroke: var(--border);
  stroke-width: 0.6;
}

.t-ok {
  fill: var(--accent);
}

.t-miss {
  fill: var(--amber);
}

.t-blob {
  fill: var(--accent);
  opacity: 0.13;
}

.t-blob-edge {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 1;
}

.t-pin {
  fill: var(--accent);
}

.t-pin-core {
  fill: var(--bg-card);
}

.t-gap {
  fill: var(--amber);
}

.t-gap-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.t-ring {
  fill: var(--accent);
  opacity: 0.08;
}

.t-ring-edge {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 0.8;
  opacity: 0.6;
}

.t-star {
  fill: var(--amber);
}

.t-arrow {
  stroke: var(--muted);
  stroke-width: 1.4;
  fill: none;
}

.t-arrow-head {
  fill: var(--muted);
}

.t-text {
  font-family: var(--mono);
  font-size: 7px;
  fill: var(--muted);
  letter-spacing: 0.06em;
}

.t-text-strong {
  font-family: var(--mono);
  font-size: 7px;
  fill: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* pain list — the "your month today" card on the vertical pages */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.pain-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.pain-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.checklist li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
}

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

.ai-note {
  font-size: 0.88rem;
  border-left: 3px solid var(--amber);
  padding-left: 0.8rem;
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(62, 50, 22, 0.18);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code-filename {
  margin-left: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.code-window pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.code-window pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
}

.c-kw {
  color: var(--purple);
}
.c-str {
  color: var(--green);
}
.c-dec {
  color: var(--amber);
}
.c-fn {
  color: var(--blue);
}
.c-cm {
  color: var(--muted);
  font-style: italic;
}

/* ---------------- geospatial ---------------- */
.geo-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.geo .sec-item {
  border-top-color: var(--green);
}

/* ---------------- security ---------------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2.5rem;
  margin-top: 2rem;
}

.sec-item {
  border-top: 2px solid var(--accent-dim);
  padding-top: 1rem;
}

.sec-item h3 {
  font-size: 1.05rem;
}

.sec-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------------- CTA & footer ---------------- */
.cta {
  text-align: center;
  padding-bottom: 2rem;
}

.cta p {
  color: var(--muted);
}

.footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.2rem 0;
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-dim);
}

/* ---------------- cookie consent (analytics.js) ---------------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgb(46 39 24 / 18%);
  color: var(--text);
  font-size: 0.9rem;
}

.consent[hidden] {
  display: none;
}

.consent p {
  flex: 1 1 18rem;
  margin: 0;
}

/* Accept and Reject look the same on purpose: refusing must be as easy as agreeing. */
.consent-actions {
  display: flex;
  gap: 0.5rem;
}

/* ---------------- legal pages (privacy/) ---------------- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  line-height: 1.65;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0 0 0.25rem;
}

.legal h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.5rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.35rem 0;
}

.legal a {
  color: var(--accent);
}

.legal a.btn {
  color: #f7f2e6;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.legal-table code {
  font-family: var(--mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.consent a {
  color: var(--accent);
}

/* Phones: one card per row, each cell labelled, instead of four squeezed columns. */
@media (max-width: 600px) {
  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-table td {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
    padding: 0.2rem 0;
    border: none;
  }

  .legal-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
}

/* ---------------- shared section lede ---------------- */
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.section-lede strong {
  color: var(--text);
}

/* ---------------- how it works: 4 steps ---------------- */
.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps em {
  color: var(--text);
  font-style: normal;
}

/* ---------------- hero: AI prompt visual ---------------- */
.prompt-card {
  fill: var(--bg-card);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.prompt-text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.ai-pill {
  fill: var(--accent);
}

.ai-pill-text {
  fill: #f7f2e6;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
}

/* Wizard plan-review card (hero) — mirrors the app's WizardReviewStep. */
.plan-title {
  fill: var(--text);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
}

.plan-num {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 55%, var(--border));
  stroke-width: 1.3;
}

.plan-num-text {
  fill: var(--accent);
  font-family: var(--font);
  font-size: 8.5px;
  font-weight: 700;
}

.plan-step-text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
}

.plan-chip {
  fill: color-mix(in srgb, var(--purple) 10%, var(--bg-card));
  stroke: color-mix(in srgb, var(--purple) 40%, transparent);
  stroke-width: 1;
}

.plan-chip-text {
  fill: var(--purple);
  font-family: var(--font);
  font-size: 7.5px;
  font-weight: 700;
}

.plan-refine path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.plan-ico-done path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-ico-refresh path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6; /* group is scaled 0.54, so this renders ~1.4 */
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-btn-ghost {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 45%, var(--border));
  stroke-width: 1.2;
}

.plan-btn-ghost-text {
  fill: var(--accent);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
}

.plan-accept-text {
  font-size: 10px;
}

.ai-flow-label {
  fill: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ai-arrow {
  fill: var(--accent);
}

.geo-pin {
  fill: var(--green);
}

.geo-pin-dot {
  fill: var(--bg);
}

.geo-cue {
  fill: var(--green);
  font-family: var(--mono);
  font-size: 10.5px;
}

/* ---------------- pillars (AI builds / you own) ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}

.pillar-build {
  border-top: 3px solid var(--purple);
}

.pillar-own {
  border-top: 3px solid var(--accent);
}

.pillar-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.pillar-build .pillar-tag {
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 14%, transparent);
}

.pillar-own .pillar-tag {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.pillar .checklist {
  margin: 0;
}

/* ---------------- comparison table ---------------- */
.compare-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.compare th,
.compare td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare tbody th {
  color: var(--text);
  font-weight: 600;
}

.compare td {
  color: var(--muted);
}

.compare .col-locra {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  border-left: 1px solid var(--accent-dim);
  border-right: 1px solid var(--accent-dim);
  font-weight: 600;
}

.compare thead .col-locra {
  color: var(--accent);
}

.compare tbody tr:last-child .col-locra {
  border-bottom: 1px solid var(--accent-dim);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- for IT / security panel ---------------- */
.it-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
}

.it-panel h2 {
  margin-bottom: 0.4rem;
}

.it-intro {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

.it-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
}

.it-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.it-q::before {
  content: 'Q';
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
}

.it-a {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

.it-a em {
  color: var(--text);
  font-style: italic;
}

.it-footnote {
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------- map visuals ---------------- */
.map-panel-flat {
  fill: var(--bg-raised);
}

.map-streets path {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 50%, var(--map-line));
  stroke-width: 1.8;
  stroke-linecap: round;
}

.map-streets .map-street-minor {
  stroke: color-mix(in srgb, var(--muted) 22%, var(--map-line));
  stroke-width: 1;
  opacity: 0.85;
}

.map-park {
  fill: color-mix(in srgb, var(--green) 9%, transparent);
}

.map-pin {
  fill: var(--amber);
}

.arch-pin {
  fill: var(--accent);
}

.map-pin-dot {
  fill: var(--bg);
}

.dots-in circle {
  fill: var(--accent);
}

.dots-out circle {
  fill: var(--muted);
  opacity: 0.55;
}

.map-chip {
  fill: color-mix(in srgb, var(--bg) 78%, transparent);
  stroke: var(--border);
}

.map-chip-text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}

.map-note {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

/* ---------------- logistics ---------------- */
.logi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}

.logi-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.logi-panel {
  stroke: var(--border);
}

/* White casing under the route line so it reads over photographic tiles,
   the way routing engines draw results. */
.route-casing {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.route-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
}

.route-stops circle {
  fill: var(--bg);
  stroke: var(--amber);
  stroke-width: 2;
}

/* ---------------- founder note ---------------- */
.why {
  max-width: 720px;
  text-align: center;
}

.why-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.why-sig {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* geo card pictograms */
.geo-glyph {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 0.7rem;
}

.g-zone {
  fill: color-mix(in srgb, var(--green) 10%, transparent);
  stroke: var(--green);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.g-ring {
  fill: color-mix(in srgb, var(--accent) 9%, transparent);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.g-pin {
  fill: var(--amber);
}

.g-pin-dim {
  fill: var(--muted);
  opacity: 0.55;
}

.g-pin-dot {
  fill: var(--bg);
}

.g-dot {
  fill: var(--accent);
}

.g-dot-out {
  fill: var(--muted);
  opacity: 0.6;
}

.g-site {
  fill: var(--bg-card);
  stroke: var(--amber);
  stroke-width: 1.3;
}

.g-link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.g-hex {
  stroke: var(--green);
  stroke-width: 1;
}

.g-hex-1 {
  fill: color-mix(in srgb, var(--green) 15%, transparent);
}
.g-hex-2 {
  fill: color-mix(in srgb, var(--green) 40%, transparent);
}
.g-hex-3 {
  fill: color-mix(in srgb, var(--green) 26%, transparent);
}

.g-text {
  fill: var(--muted);
}

.g-sheet {
  fill: var(--bg-card);
  stroke: var(--border);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.g-sheet-top {
  stroke: var(--green);
}

.mock-divider {
  stroke: var(--border);
  stroke-width: 1;
}

.hexes {
  opacity: 1;
}

.hexes path {
  fill: var(--green);
  stroke: color-mix(in srgb, var(--green) 85%, transparent);
  stroke-width: 1.1;
}

/* Hero drive-time over the real basemap — literal colours matching the app's
   actual isochrone render (teal MapLibre fill), not the paper-ink tokens. */
.iso-real-fill {
  fill: rgba(78, 205, 196, 0.3);
}

.iso-real-line {
  fill: none;
  stroke: rgba(32, 155, 148, 0.85);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.map-attrib-bg {
  fill: rgba(255, 255, 255, 0.65);
}

.map-attrib {
  fill: #4a453a;
  font-family: var(--font);
  font-size: 7.5px;
}

/* Map-note over photographic tiles needs a halo to stay legible. */
.map-note-halo {
  fill: #333;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5px;
}

/* Drive-time polygon — teal survey ink on the paper-styled maps (logistics section). */
.iso-fill {
  fill: color-mix(in srgb, color-mix(in srgb, var(--accent) 55%, var(--blue)) 12%, transparent);
}

.iso-line {
  fill: none;
  stroke: color-mix(in srgb, color-mix(in srgb, var(--accent) 55%, var(--blue)) 70%, transparent);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.zoom-txt {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 15px;
}

.map-legend-text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.lg-1 {
  fill: color-mix(in srgb, var(--green) 12%, transparent);
}
.lg-2 {
  fill: color-mix(in srgb, var(--green) 26%, transparent);
}
.lg-3 {
  fill: color-mix(in srgb, var(--green) 42%, transparent);
}
.lg-4 {
  fill: color-mix(in srgb, var(--green) 60%, transparent);
}
.lg-5 {
  fill: color-mix(in srgb, var(--green) 80%, transparent);
}

.scale-bar line {
  stroke: var(--muted);
  stroke-width: 1.2;
}

/* architecture map underlay */
.map-underlay path {
  fill: none;
  stroke: var(--map-line);
  stroke-width: 1;
  opacity: 0.45;
}

.map-underlay .contour {
  stroke: var(--accent-dim);
  stroke-dasharray: 2 5;
  opacity: 0.35;
}

/* ---------------- cartographic identity (retheme) ---------------- */
.coord {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: none;
  white-space: nowrap;
}

.hero {
  position: relative;
}

.hero-compass {
  position: absolute;
  top: 1.5rem;
  right: -3rem;
  width: 300px;
  height: 300px;
  opacity: 0.05;
  pointer-events: none;
}

.hero-compass circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
}

.hero-compass polygon {
  fill: var(--text);
}

.hero-compass text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

.hero-copy,
.hero-visual {
  position: relative;
}

.contour-divider {
  max-width: 1100px;
  margin: 5.5rem auto -3.5rem;
  padding: 0 1.5rem;
}

.contour-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

.contour-divider path {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 1;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
  opacity: 0.55;
}

/* hero app window */
.app-win {
  fill: var(--bg-card);
  stroke: var(--border);
  stroke-width: 1.5;
}

.win-titlebar {
  fill: var(--bg-raised);
}

.win-dot {
  fill: var(--border);
}

.win-title {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

/* ---------------- reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
  .hero,
  .ai,
  .logi-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .steps-4,
  .feature-grid,
  .stat-callout {
    grid-template-columns: 1fr;
  }

  .pillars,
  .sec-grid,
  .it-grid {
    grid-template-columns: 1fr;
  }

  .it-panel {
    padding: 1.8rem 1.3rem;
  }

  .nav-links {
    display: none;
  }
}

/* ---------------- problem hook (above the hero headline) ---------------- */
.problem-hook {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 0.9rem;
  margin-bottom: 1.1rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.problem-hook .hook-q {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.problem-hook strong {
  color: var(--text);
}

.problem-hook cite {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.problem-hook cite a {
  color: inherit;
}
