/* ============================================================
   GravelFlow — landing styles
   Register: brand. Committed color, art-directed per section.
   ============================================================ */

:root {
  /* palette (OKLCH) */
  --asphalt:    oklch(0.20 0.012 60);
  --asphalt-2:  oklch(0.25 0.013 62);
  --asphalt-deep: oklch(0.16 0.010 58);
  --concrete:   oklch(0.92 0.006 80);
  --limestone:  oklch(0.965 0.005 85);
  --mark:       oklch(0.70 0.19 47);
  --mark-wet:   oklch(0.62 0.20 42);
  --mark-soft:  oklch(0.70 0.19 47 / 0.14);
  --slate:      oklch(0.45 0.012 70);
  --slate-l:    oklch(0.62 0.010 75);
  --line-dark:  oklch(1 0 0 / 0.12);
  --line-light: oklch(0.20 0.01 60 / 0.14);
  --ink:        oklch(0.24 0.012 60);
  --paper-ink:  oklch(0.93 0.006 82);

  /* type */
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --exp: 125;            /* expanded width axis for display */

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
  --step-3:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
  --step-hero: clamp(2.7rem, 1.4rem + 6vw, 7rem);

  /* space + motion */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --bay: clamp(4.5rem, 3rem + 7vw, 10rem);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);     /* ~ease-out-expo */
  --ease-q: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--mark); color: var(--asphalt-deep); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- folds (art direction per section) ---------- */
.fold--light { background: var(--concrete); color: var(--ink); }
.fold--dark  { background: var(--asphalt); color: var(--paper-ink); position: relative; }
.section { padding-block: var(--bay); position: relative; }

/* ---------- type helpers ---------- */
.kicker {
  font-family: var(--mono); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate-l);
  margin-bottom: 1.2rem;
}
.kicker--mark { color: var(--mark); }
.fold--dark .kicker { color: oklch(0.7 0.01 75); }
.fold--dark .kicker--mark { color: var(--mark); }

.h2 {
  font-size: var(--step-2); font-weight: 800;
  font-stretch: expanded; font-variation-settings: "wdth" var(--exp);
  max-width: 18ch;
}
.h2--light { color: var(--limestone); }
.lead { font-size: var(--step-1); color: var(--slate); max-width: 46ch; margin-top: 1.4rem; line-height: 1.4; }
.fold--dark .lead { color: oklch(0.78 0.008 80); }
.section__head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  padding: 0.85em 1.35em; border-radius: 2px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--lg { padding: 1.05em 1.7em; font-size: var(--step-0); }
.btn--mark { background: var(--mark); color: var(--asphalt-deep); }
.btn--mark:hover { background: var(--mark-wet); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: oklch(1 0 0 / 0.08); transform: translateY(-2px); }
.fold--light .btn--ghost:hover { background: var(--line-light); }
:focus-visible { outline: 2.5px solid var(--mark); outline-offset: 3px; }

/* ============================================================
   FLOW LINE (signature motif): scroll-progress survey line
   ============================================================ */
.flowline {
  position: fixed; left: clamp(10px, 2vw, 26px); top: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  padding-block: 88px 28px;
}
.flowline__station {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mark); writing-mode: vertical-rl; transform: rotate(180deg);
  margin-bottom: 14px; white-space: nowrap; transition: color .3s;
  text-shadow: 0 0 10px oklch(0.2 0.01 60 / 0.4);
}
.flowline__track { flex: 1; width: 2px; background: oklch(0.5 0.01 70 / 0.28); position: relative; border-radius: 2px; }
.flowline__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: var(--flow, 0%);
  background: linear-gradient(var(--mark), var(--mark-wet)); border-radius: 2px;
}
.flowline__fill::after {
  content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--mark);
  box-shadow: 0 0 12px var(--mark);
}
@media (max-width: 860px) {
  .flowline { left: 0; right: 0; top: 0; bottom: auto; height: 3px; flex-direction: row; padding: 0; }
  .flowline__station { display: none; }
  .flowline__track { width: 100%; height: 100%; }
  .flowline__fill { width: var(--flow, 0%); height: 100%; background: var(--mark); }
  .flowline__fill::after { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.nav.is-scrolled {
  background: oklch(0.20 0.012 60 / 0.85); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.nav.is-scrolled .nav__links a, .nav.is-scrolled .brand__word { color: var(--paper-ink); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 28px; height: 28px; fill: none; stroke: var(--paper-ink); stroke-width: 2.2; stroke-linecap: square; }
.brand__mark-accent { stroke: var(--mark); }
.brand__word {
  font-weight: 800; font-stretch: expanded; font-variation-settings: "wdth" var(--exp);
  letter-spacing: 0.02em; font-size: 1.06rem; color: var(--paper-ink);
}
.nav__links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav__links a { font-size: var(--step--1); font-weight: 500; color: oklch(0.92 0.005 80); letter-spacing: 0.01em; opacity: .85; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--mark); }
.nav__cta { padding: 0.6em 1.05em; font-size: var(--step--1); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--paper-ink); transition: .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 140px 90px; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; }

.hero__h1 {
  font-size: var(--step-hero); font-weight: 800;
  font-stretch: expanded; font-variation-settings: "wdth" var(--exp);
  color: var(--limestone); margin: 0.6rem 0 1.6rem; letter-spacing: -0.025em;
}
.hero__h1 span { display: block; }
.hero__h1 em { font-style: normal; color: var(--mark); }
.hero__sub { font-size: var(--step-1); color: oklch(0.86 0.008 80); max-width: 42ch; line-height: 1.42; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__trust { display: flex; align-items: center; gap: 0.6rem; margin-top: 2.4rem; font-size: var(--step--1); color: oklch(0.8 0.008 80); letter-spacing: 0.01em; }
.hero__trust .dot, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); flex: none; box-shadow: 0 0 10px var(--mark); }

.hero__tally {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vh, 3rem); z-index: 2;
  text-align: right; border-right: 2px solid var(--mark); padding-right: 0.9rem;
}
.hero__tally-label { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.75 0.008 80); }
.hero__tally-num { display: block; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 700; color: var(--limestone); }
@media (max-width: 620px) { .hero__tally { display: none; } }

/* contour overlay */
.contours { position: absolute; inset: auto 0 0 0; height: 60%; width: 100%; z-index: 1; fill: none; stroke: var(--mark); stroke-width: 1; opacity: 0.22; }
.contours path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s var(--ease) forwards; }
.contours path:nth-child(2) { animation-delay: .25s; opacity: .6; }
.contours path:nth-child(3) { animation-delay: .5s; opacity: .4; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- duotone photo grading ---------- */
.duo { position: absolute; inset: 0; pointer-events: none; }
.hero__media img, .seat__media img, .cta__media img { filter: grayscale(1) contrast(1.08) brightness(0.92); }
/* asphalt→orange duotone for drenched folds */
.duo--mark { background:
  linear-gradient(180deg, oklch(0.16 0.01 58 / 0.78), oklch(0.16 0.01 58 / 0.92)),
  radial-gradient(120% 80% at 20% 90%, var(--mark-soft), transparent 60%); }
.hero__media::after, .cta__media::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: linear-gradient(120deg, var(--mark) 0%, transparent 55%); opacity: 0.5;
}
.hero__media, .cta__media { position: absolute; inset: 0; }
/* subtler ash grade for mid-page photo */
.duo--ash { background: linear-gradient(180deg, oklch(0.2 0.01 60 / 0.35), oklch(0.2 0.01 60 / 0.62)); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.problem__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.problem__list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: baseline; font-size: var(--step-1); color: var(--ink); line-height: 1.4; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-light); }
.problem__list .mono { color: var(--mark); font-weight: 600; }
.problem__turn { margin-top: clamp(2.5rem, 5vw, 5rem); }
.problem__turn p { font-size: var(--step-2); font-weight: 800; font-stretch: expanded; font-variation-settings: "wdth" var(--exp); max-width: 22ch; }
.problem__turn strong { color: var(--mark); }
@media (max-width: 760px) { .problem__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   SPINE
   ============================================================ */
.spineflow { position: relative; margin-top: 1rem; }
.spineflow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.spineflow__line { position: absolute; top: 28px; left: 4%; right: 4%; height: 2px; background: var(--line-dark); z-index: 0; }
.spineflow__line::after { content: ""; position: absolute; inset: 0; width: var(--spine, 0%); background: linear-gradient(90deg, var(--mark), var(--mark-wet)); transition: width 1.4s var(--ease); }
.step { position: relative; z-index: 1; }
.step__no { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--asphalt); border: 2px solid var(--mark); color: var(--mark); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.1rem; }
.step__title { font-size: var(--step-1); font-weight: 700; color: var(--limestone); margin-bottom: 0.5rem; font-stretch: expanded; font-variation-settings: "wdth" var(--exp); }
.step p { font-size: var(--step--1); color: oklch(0.75 0.008 80); line-height: 1.5; }

.spine__demo { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(3.5rem, 6vw, 6rem); }
.spine__demo-note p:last-child { font-size: var(--step-1); color: oklch(0.82 0.008 80); line-height: 1.45; max-width: 40ch; margin-top: 0.8rem; }

/* tablet mockup */
.tablet { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 12px; box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.7); }
.tablet__bar { display: flex; justify-content: space-between; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--slate-l); padding: 4px 8px 12px; }
.tablet__body { background: var(--asphalt-deep); border-radius: 10px; padding: 18px; display: grid; gap: 12px; }
.tablet__step { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mark); }
.field { display: grid; gap: 3px; text-align: left; background: oklch(1 0 0 / 0.04); border: 1px solid var(--line-dark); border-radius: 8px; padding: 11px 13px; cursor: default; transition: border-color .25s, background .25s; }
.field:hover { border-color: var(--mark); background: var(--mark-soft); }
.field__k { font-size: 0.58rem; letter-spacing: 0.16em; color: var(--slate-l); }
.field__v { font-size: 0.95rem; color: var(--paper-ink); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tablet__confirm { margin-top: 4px; background: var(--mark); color: var(--asphalt-deep); border: 0; border-radius: 8px; padding: 13px; font-weight: 700; font-family: var(--sans); font-size: 0.98rem; cursor: default; }
.tablet__hint { font-size: 0.66rem; color: oklch(0.7 0.05 140); text-align: center; letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .spineflow__steps { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem; }
  .spineflow__line { display: none; }
  .spine__demo { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .spineflow__steps { grid-template-columns: 1fr; } }

/* ============================================================
   MODULES
   ============================================================ */
.modlist { list-style: none; margin: 0; padding: 0; }
.mod {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem);
  align-items: start; padding-block: clamp(1.8rem, 3vw, 2.8rem); position: relative;
  border-top: 1px solid var(--line-light);
}
.mod:last-child { border-bottom: 1px solid var(--line-light); }
.mod:nth-child(even) { grid-template-columns: minmax(0, 1fr) 5rem; }
.mod:nth-child(even) .mod__no { order: 2; text-align: right; }
.mod:nth-child(even) .mod__body { order: 1; text-align: right; margin-left: auto; }
.mod:nth-child(even) .mod__body p { margin-left: auto; }
.mod__no { font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); font-weight: 700; color: var(--mark); line-height: 1; }
.mod__title { font-size: var(--step-2); font-weight: 800; font-stretch: expanded; font-variation-settings: "wdth" var(--exp); margin-bottom: 0.6rem; transition: color .3s; }
.mod__body p { font-size: var(--step-0); color: var(--slate); max-width: 54ch; line-height: 1.5; }
.mod__rule { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--mark); transition: width .6s var(--ease); }
.mod:hover .mod__rule { width: 100%; }
.mod:hover .mod__title { color: var(--mark-wet); }
@media (max-width: 680px) {
  .mod, .mod:nth-child(even) { grid-template-columns: 3rem 1fr; }
  .mod:nth-child(even) .mod__no { order: 0; text-align: left; }
  .mod:nth-child(even) .mod__body { order: 0; text-align: left; }
  .mod:nth-child(even) .mod__body p { margin-left: 0; }
  .mod__no { font-size: 1.7rem; }
}

/* ============================================================
   SEATS
   ============================================================ */
.seats__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1.5rem; align-items: stretch; }
.seat { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; }
.seat__role { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mark); margin-bottom: 1rem; }
.seat p:not(.seat__role) { color: oklch(0.8 0.008 80); font-size: var(--step-0); line-height: 1.5; }
.seat--feature { background: var(--asphalt-deep); border-color: var(--mark); }
.seat__media { position: relative; margin-top: 1.6rem; border-radius: 4px; overflow: hidden; aspect-ratio: 16/10; }
.seat__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .seats__grid { grid-template-columns: 1fr; } .seat--feature { order: -1; } }

/* ============================================================
   INTELLIGENCE
   ============================================================ */
.intel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.taglist { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.taglist li { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--slate); border: 1px solid var(--line-light); border-radius: 2px; padding: 0.4em 0.7em; background: var(--limestone); }
.reports { background: var(--asphalt); color: var(--paper-ink); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.5); }
.reports__head { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 1.4rem; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-l); border-bottom: 1px solid var(--line-dark); }
.reports__list { list-style: none; margin: 0; padding: 0; }
.reports__list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; padding: 0.85rem 1.4rem; border-bottom: 1px solid oklch(1 0 0 / 0.06); transition: background .25s; }
.reports__list li:hover { background: var(--mark-soft); }
.reports__list li:last-child { border-bottom: 0; }
.rcode { color: var(--mark); font-weight: 700; font-size: 0.95rem; }
.rname { color: oklch(0.85 0.008 80); font-size: var(--step--1); }
@media (max-width: 760px) { .intel__grid { grid-template-columns: 1fr; } }

/* ============================================================
   E-SHOP
   ============================================================ */
.eshop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.checks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.checks li { position: relative; padding-left: 1.8rem; color: oklch(0.82 0.008 80); font-size: var(--step-0); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--mark); }
.codeflow { display: grid; gap: 0.8rem; }
.code { background: var(--asphalt-deep); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.code__bar { padding: 0.75rem 1rem; font-size: 0.74rem; border-bottom: 1px solid var(--line-dark); color: oklch(0.78 0.008 80); }
.code__verb { color: var(--mark); font-weight: 700; }
.code__200 { color: oklch(0.78 0.12 150); font-weight: 700; }
.code pre { margin: 0; padding: 1rem; overflow-x: auto; font-size: 0.78rem; line-height: 1.65; color: oklch(0.84 0.01 80); }
.code--ok { border-color: oklch(0.5 0.1 150 / 0.5); }
.code__arrow { color: var(--mark); font-size: 0.74rem; letter-spacing: 0.1em; padding-left: 0.4rem; }
@media (max-width: 760px) { .eshop__grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHY
   ============================================================ */
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.why__list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; padding: clamp(1.5rem, 2.5vw, 2.2rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 2.5vw, 2.2rem) 0; border-top: 1px solid var(--line-light); }
.why__list li:nth-child(odd) { border-right: 1px solid var(--line-light); padding-right: clamp(1.5rem, 3vw, 3rem); }
.why__no { color: var(--mark); font-weight: 700; font-size: 1.1rem; }
.why__list p { font-size: var(--step-1); color: var(--ink); line-height: 1.36; max-width: 30ch; }
@media (max-width: 680px) { .why__list { grid-template-columns: 1fr; } .why__list li:nth-child(odd) { border-right: 0; } }

/* ============================================================
   CTA / DEMO
   ============================================================ */
.cta { overflow: hidden; }
.cta__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.cta__assure { color: var(--mark); margin-top: 1.6rem; font-size: 0.8rem; letter-spacing: 0.1em; }

.demoform { background: oklch(0.18 0.011 58 / 0.72); backdrop-filter: blur(8px); border: 1px solid var(--line-dark); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1rem; }
.demoform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f { display: grid; gap: 0.4rem; }
.f > span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.72 0.008 80); font-family: var(--mono); }
.f input, .f textarea { font-family: var(--sans); font-size: var(--step-0); color: var(--paper-ink); background: oklch(1 0 0 / 0.05); border: 1px solid var(--line-dark); border-radius: 4px; padding: 0.7em 0.8em; transition: border-color .2s, background .2s; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--mark); background: oklch(1 0 0 / 0.08); }
.f input::placeholder, .f textarea::placeholder { color: oklch(0.6 0.008 80); }
.f.is-invalid input, .f.is-invalid textarea { border-color: var(--mark-wet); }
.f--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demoform__submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.demoform__submit[disabled] { opacity: 0.7; cursor: wait; }
.demoform__privacy { font-size: 0.66rem; color: oklch(0.65 0.008 80); text-align: center; letter-spacing: 0.04em; }
.demoform__status { font-size: var(--step--1); text-align: center; min-height: 1.2em; }
.demoform__status.is-ok { color: oklch(0.78 0.12 150); }
.demoform__status.is-err { color: var(--mark); }
.demoform.is-sent > *:not(.demoform__sent) { display: none; }
.demoform__sent { display: none; text-align: center; padding: 1rem 0; }
.demoform.is-sent .demoform__sent { display: block; }
.demoform__sent h3 { font-size: var(--step-1); color: var(--limestone); font-stretch: expanded; font-variation-settings: "wdth" var(--exp); margin-bottom: 0.6rem; }
.demoform__sent p { color: oklch(0.8 0.008 80); }
@media (max-width: 760px) { .cta__grid { grid-template-columns: 1fr; } .demoform__row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--asphalt-deep); padding-block: clamp(3rem, 5vw, 5rem); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 0.9fr 1.8fr; gap: 2rem; align-items: stretch; }
.footer__brand .brand__word { font-size: 1.3rem; display: inline-block; margin-bottom: 0.6rem; }
.footer__brand p { color: var(--slate-l); font-size: 0.74rem; }
.footer__nav { display: grid; gap: 0.6rem; }
.footer__nav a { color: oklch(0.78 0.008 80); font-size: var(--step--1); transition: color .2s; }
.footer__nav a:hover { color: var(--mark); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; height: 100%; color: var(--slate-l); font-size: 0.72rem; text-align: right; }
.footer__meta a:hover { color: var(--mark); }
@media (max-width: 680px) { .footer__inner { grid-template-columns: 1fr; } .footer__meta { align-items: flex-start; text-align: left; height: auto; } }

/* ============================================================
   REVEAL (motion)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .contours path { animation: none; stroke-dashoffset: 0; }
  .btn, .mod__rule, .spineflow__line::after { transition: none; }
}

/* ---------- mobile nav sheet ---------- */
@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--asphalt-deep); flex-direction: column; gap: 0; padding: 90px 2rem 2rem; transform: translateX(100%); transition: transform .4s var(--ease); margin: 0; border-left: 1px solid var(--line-dark); }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; opacity: 1; }
  body.nav-open .nav__links { transform: none; }
  body.nav-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle { display: flex; order: 3; }
  .nav__cta { display: none; }
  .nav__links { z-index: 55; }
}

/* ============================================================
   PLATFORM  (live map · alerting · integrations)
   ============================================================ */
.platform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.platform__caps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.platform__caps li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-dark); }
.platform__caps li:last-child { border-bottom: 0; padding-bottom: 0; }
.cap__k { color: var(--mark); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.platform__caps p { color: oklch(0.8 0.008 80); font-size: var(--step--1); line-height: 1.5; }

.mapcard { background: var(--asphalt-deep); border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.6); }
.mapcard__map { position: relative; aspect-ratio: 4/3; background: radial-gradient(120% 100% at 70% 18%, oklch(0.27 0.02 62), var(--asphalt-deep)); }
.mapgrid { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: oklch(1 0 0 / 0.07); stroke-width: 1; }
.mapgrid__road { stroke: var(--mark); stroke-width: 2; opacity: 0.55; stroke-dasharray: 4 5; }
.pin { position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 4px var(--mark-soft); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mark); animation: ping 2.4s var(--ease) infinite; }
.pin--b::after { animation-delay: .8s; }
.pin--c { background: oklch(0.62 0.02 70); box-shadow: 0 0 0 4px oklch(0.62 0.02 70 / 0.2); }
.pin--c::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.mapcard__tag { position: absolute; left: 12px; bottom: 12px; font-size: 0.58rem; letter-spacing: 0.14em; color: var(--mark); background: oklch(0.16 0.01 58 / 0.72); padding: 4px 9px; border-radius: 2px; }
.mapcard__legend { list-style: none; margin: 0; padding: 0.9rem 1.1rem; display: grid; gap: 0.5rem; border-top: 1px solid var(--line-dark); }
.mapcard__legend li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.72rem; color: oklch(0.82 0.008 80); }
.mapcard__legend em { color: var(--slate-l); font-style: normal; margin-left: auto; }
.mapcard__legend .dot { box-shadow: none; }
.mapcard__legend .dot--idle { background: oklch(0.62 0.02 70); }
@media (max-width: 760px) { .platform__grid { grid-template-columns: 1fr; } }

/* e-shop now on a light fold (code cards stay dark) */
.fold--light.eshop .checks li { color: var(--slate); }

/* report builder row */
.report-build { background: var(--mark-soft); }
.report-build .rname { color: var(--limestone); font-weight: 600; }

/* ============================================================
   HORIZON  (roadmap / coming soon)
   ============================================================ */
.horizon { position: relative; overflow: hidden; background: var(--asphalt-deep); }
.horizon__grid-bg { position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(110% 75% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(110% 75% at 50% 0%, #000, transparent 78%); }
.horizon .wrap { position: relative; z-index: 1; }
.horizon__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.horizon__item { border: 1px dashed oklch(1 0 0 / 0.22); border-radius: 6px; padding: clamp(1.4rem, 2.5vw, 2rem); background: oklch(0.2 0.012 60 / 0.4); }
.horizon__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hicon { width: 42px; height: 42px; fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; }
.hicon__scan { stroke: oklch(0.85 0.008 80); stroke-dasharray: 3 4; opacity: 0.6; }
.soon { font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mark); border: 1px solid var(--mark); border-radius: 100px; padding: 0.35em 0.75em; }
.horizon__title { font-size: var(--step-1); font-weight: 800; font-stretch: expanded; font-variation-settings: "wdth" var(--exp); color: var(--limestone); margin-bottom: 0.6rem; }
.horizon__item p { color: oklch(0.78 0.008 80); font-size: var(--step--1); line-height: 1.5; }
.horizon__note { margin-top: 2.2rem; color: var(--slate-l); font-size: 0.74rem; letter-spacing: 0.04em; }
@media (max-width: 860px) { .horizon__list { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .pin::after { animation: none; } }

/* "Powered by" partner mark in footer */
.powered { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 1.2rem; white-space: nowrap; opacity: 0.72; transition: opacity .2s; }
.powered:hover { opacity: 1; }
.powered span { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-l); flex: none; }
.powered img { height: 18px; width: auto; flex: none; display: block; }
@media (max-width: 680px) { .powered { margin-top: 1rem; padding-top: 0; } }
