/* ===========================================================================
 * QuixChex marketing site — Aurora / Midnight surface system
 *
 * The tokens, gradient mesh and .glass values below are ported verbatim from
 * the app (frontend/src/index.css) so the site and the product read as one
 * thing. If a brand colour changes in the app, change it here too.
 *   docs reference: ~/quixchex/docs/QuixChex-Surface-System.md
 * ======================================================================== */

:root {
  /* Brand */
  --brand: oklch(0.535 0.144 248);
  --brand-hi: oklch(0.62 0.15 248);
  --amber: oklch(0.767 0.157 71);
  --amber-ink: oklch(0.3 0.08 66);   /* label text ON amber fills */
  /* Amber as a text colour on the page ground. --amber-ink is too dark and
     desaturated to read as amber; the raw --amber is too pale on Aurora. */
  --amber-text: oklch(0.56 0.15 58);

  /* Gradient pair. Deliberately blue→cyan, never blue→amber: blue and amber are
     near-complementary, so interpolating between them passes through a muddy
     desaturated grey. Amber stays a solid accent instead. */
  --grad-a: oklch(0.5 0.16 258);
  --grad-b: oklch(0.63 0.13 212);

  /* Primary-button fill, held deep in both surfaces so white label text keeps
     its contrast — the midnight --brand is lightened for text use and is too
     pale to sit under white. */
  --btn-from: oklch(0.58 0.16 250);
  --btn-to: oklch(0.5 0.15 252);

  /* Aurora (light) */
  --ink: oklch(0.21 0.02 248);
  --ink-soft: oklch(0.44 0.02 248);
  --ink-faint: oklch(0.58 0.015 248);
  --hairline: oklch(0.3 0.05 248 / 0.12);
  --panel: rgb(255 255 255 / 0.66);
  --panel-edge: rgb(255 255 255 / 0.65);
  --panel-shadow: 0 8px 32px oklch(0.3 0.08 250 / 0.1), 0 1px 2px oklch(0.3 0.08 250 / 0.06);
  --panel-solid: oklch(0.99 0.004 248);

  --glass-blur: 14px;
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1180px;

  /* Vertical rhythm. Every section uses --sp-y, every section heading uses
     --sp-head, every two-column split uses --sp-split. Nothing sets its own
     ad-hoc section padding — that's what made the spacing read as random. */
  --sp-y: clamp(52px, 5.4vw, 80px);
  --sp-head: clamp(30px, 3.2vw, 44px);
  --sp-split: clamp(40px, 4.8vw, 68px);

  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-surface="midnight"] {
  --ink: oklch(0.97 0.005 248);
  --ink-soft: oklch(0.78 0.02 248);
  --ink-faint: oklch(0.63 0.02 248);
  --hairline: oklch(0.8 0.08 240 / 0.16);
  --panel: oklch(0.21 0.025 248 / 0.66);
  --panel-edge: oklch(0.8 0.08 240 / 0.16);
  --panel-shadow: 0 12px 40px rgb(0 0 0 / 0.45), inset 0 1px 0 oklch(0.85 0.06 240 / 0.08);
  --panel-solid: oklch(0.19 0.025 248);
  --brand: oklch(0.72 0.14 248);
  --brand-hi: oklch(0.8 0.12 248);
  --amber-text: oklch(0.8 0.14 74);
  --grad-a: oklch(0.7 0.15 256);
  --grad-b: oklch(0.85 0.11 208);
  --btn-from: oklch(0.55 0.17 252);
  --btn-to: oklch(0.46 0.15 254);
}

/* --- base ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* The hero glow and the hung float card intentionally extend past their
     containers; clip at the root so neither can produce a horizontal scrollbar.
     `clip` rather than `hidden` — `hidden` here would make <html> a scroll
     container and break `scroll-padding-top`. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: oklch(0.958 0.011 248);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
html[data-surface="midnight"] body { background: oklch(0.145 0.02 250); }

/* The fixed mesh + grid, exactly as the app draws it. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
/* Turned up from the app's values — roughly 1.4× the alphas, larger radii, and a
   fourth warm stop mid-right. The app keeps its mesh quiet so it never competes
   with dense tables; a landing page has no tables to protect and read washed-out
   at the app's settings. Contrast is unaffected: the loudest stop still lands
   around 0.86 lightness. */
body::before {
  background:
    radial-gradient(780px 560px at 6% -12%, oklch(0.535 0.144 248 / 0.4), transparent 68%),
    radial-gradient(820px 600px at 99% 4%, oklch(0.767 0.157 71 / 0.3), transparent 66%),
    radial-gradient(680px 520px at 88% 46%, oklch(0.7 0.13 40 / 0.16), transparent 68%),
    radial-gradient(900px 680px at 46% 116%, oklch(0.62 0.13 235 / 0.32), transparent 68%),
    oklch(0.965 0.013 250);
}
body::after {
  z-index: -9;
  background-image: radial-gradient(oklch(0.3 0.02 248 / 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
html[data-surface="midnight"] body::before {
  background:
    radial-gradient(820px 600px at 12% -14%, oklch(0.45 0.13 248 / 0.6), transparent 66%),
    radial-gradient(700px 540px at 96% 2%, oklch(0.767 0.157 71 / 0.17), transparent 64%),
    radial-gradient(620px 500px at 90% 44%, oklch(0.5 0.14 300 / 0.14), transparent 66%),
    radial-gradient(980px 760px at 52% 120%, oklch(0.38 0.11 252 / 0.62), transparent 68%),
    oklch(0.145 0.02 250);
}
html[data-surface="midnight"] body::after {
  background-image:
    linear-gradient(oklch(0.75 0.08 240 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.75 0.08 240 / 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 78%);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* Single-sided rhythm: every section pays for the gap ABOVE it and nothing
   below, so section-to-section spacing is exactly --sp-y instead of double it.
   The last section restores its bottom padding before the footer. */
section { padding-top: var(--sp-y); padding-bottom: 0; }
main > section:last-of-type { padding-bottom: var(--sp-y); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 640; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow.amber { color: var(--amber-text); }

.section-head { max-width: 640px; margin-bottom: var(--sp-head); }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.06rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  color: #fff;
  box-shadow: 0 6px 18px oklch(0.535 0.144 248 / 0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px oklch(0.535 0.144 248 / 0.4); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); background: rgb(255 255 255 / 0.4); }
html[data-surface="midnight"] .btn-ghost { background: oklch(0.28 0.03 248 / 0.5); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-amber {
  background: linear-gradient(180deg, var(--amber), oklch(0.71 0.15 66));
  color: var(--amber-ink);
  box-shadow: 0 6px 18px oklch(0.767 0.157 71 / 0.34);
}
.btn-amber:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* --- header -------------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
html[data-surface="midnight"] header { background: oklch(0.17 0.022 250 / 0.78); }

.nav { display: flex; align-items: center; gap: 32px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 30px; width: auto; display: block; }
html[data-surface="midnight"] .brand img { filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 520;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
/* `.nav-links a` out-specifies `.btn-primary`, so restate the label colour. */
.nav-drawer-cta { display: none; }
.nav-links .nav-drawer-cta,
.nav-links .nav-drawer-cta:hover { color: #fff; border-bottom-color: transparent; }

.surface-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.surface-toggle:hover { color: var(--brand); border-color: var(--brand); }
.surface-toggle svg { width: 17px; height: 17px; }
html[data-surface="aurora"] .icon-moon { display: none; }
html[data-surface="midnight"] .icon-sun { display: none; }

.nav-burger {
  display: none;
  place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--hairline); background: transparent; color: var(--ink); cursor: pointer;
}
.nav-burger svg { width: 18px; height: 18px; }

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(48px, 5.6vw, 84px); }
/* Text column weighted heavier than the visual, and min-width:0 so the headline
   is never squeezed by the panel's intrinsic width. The pair stacks at 1040px —
   below that the text column drops under ~500px and the headline breaks badly. */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-split); align-items: center; }
.hero-grid > * { min-width: 0; }

/* 4.4vw (not 5.2) keeps "Run the whole job." on two lines all the way down to
   the 1040px stack point. */
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 680; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); max-width: 33em; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-faint); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 560;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.5);
  margin-bottom: 24px;
}
html[data-surface="midnight"] .pill { background: oklch(0.26 0.03 248 / 0.5); }
.pill .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px oklch(0.767 0.157 71 / 0.22);
}

/* Mock product panel. Wrapped in .hero-visual, which owns the coloured glow
   behind it and the two overlapping float cards. */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% -14% -6%;
  z-index: -1;
  background:
    radial-gradient(58% 52% at 76% 16%, oklch(0.62 0.15 248 / 0.34), transparent 70%),
    radial-gradient(52% 48% at 18% 88%, oklch(0.767 0.157 71 / 0.24), transparent 70%);
  filter: blur(28px);
}
html[data-surface="midnight"] .hero-visual::before {
  background:
    radial-gradient(58% 52% at 76% 16%, oklch(0.55 0.17 250 / 0.52), transparent 70%),
    radial-gradient(52% 48% at 18% 88%, oklch(0.7 0.15 68 / 0.26), transparent 70%);
}

.mock { padding: 18px; }
.mock-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 0 4px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--hairline); }
.mock-bar span { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-faint); }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-card {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55);
}
html[data-surface="midnight"] .stat-card { background: oklch(0.24 0.03 248 / 0.55); }
.stat-card .lbl { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); font-weight: 600; }
.stat-card .val { font-size: 1.22rem; font-weight: 680; letter-spacing: -0.02em; margin-top: 3px; }
.stat-card .val.pos { color: oklch(0.55 0.14 152); }
html[data-surface="midnight"] .stat-card .val.pos { color: oklch(0.75 0.16 152); }

.stat-card { position: relative; }
.stat-card .trend {
  position: absolute; top: 11px; right: 11px;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 5px 2px 3px; border-radius: 999px;
  color: oklch(0.48 0.13 152);
  background: oklch(0.62 0.14 152 / 0.14);
}
html[data-surface="midnight"] .stat-card .trend { color: oklch(0.82 0.16 152); background: oklch(0.62 0.14 152 / 0.2); }
.stat-card .trend svg { width: 9px; height: 9px; }

/* Collected-per-week bars. Heights come from --h so the markup stays readable;
   the last bar is amber to mark the current week. */
.chart-card {
  padding: 13px 14px 12px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55);
}
html[data-surface="midnight"] .chart-card { background: oklch(0.24 0.03 248 / 0.55); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.chart-head b { font-size: 0.78rem; font-weight: 620; }
.chart-head span { font-size: 0.68rem; color: var(--ink-faint); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--grad-b), var(--grad-a));
  opacity: 0.85;
}
.bars i.now {
  background: linear-gradient(180deg, var(--amber), oklch(0.7 0.15 62));
  opacity: 1;
  box-shadow: 0 0 12px oklch(0.767 0.157 71 / 0.45);
}

/* Who's out right now — the field-ops half of the pitch, in one row. */
.crew-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.crew-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 560;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.5);
  color: var(--ink-soft);
}
html[data-surface="midnight"] .crew-chip { background: oklch(0.24 0.03 248 / 0.5); }
.crew-chip i { width: 6px; height: 6px; border-radius: 999px; flex: 0 0 auto; }
.crew-chip.live i { background: oklch(0.6 0.15 152); box-shadow: 0 0 0 3px oklch(0.6 0.15 152 / 0.22); }
.crew-chip.due i { background: var(--amber); box-shadow: 0 0 0 3px oklch(0.767 0.157 71 / 0.22); }

/* Overlapping float cards. Small, opaque, and deliberately breaking the panel
   edge so the hero has depth instead of one flat rectangle. */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--panel-edge);
  background: var(--panel-solid);
  box-shadow: 0 10px 30px oklch(0.3 0.08 250 / 0.18);
  white-space: nowrap;
}
html[data-surface="midnight"] .float-card { box-shadow: 0 14px 36px rgb(0 0 0 / 0.5); }
.float-card b { display: block; font-size: 0.76rem; font-weight: 640; }
.float-card span { display: block; font-size: 0.68rem; color: var(--ink-faint); }
.float-card .fc-ico {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 8px; display: grid; place-items: center;
}
.float-card .fc-ico svg { width: 13px; height: 13px; }
/* Hung off the corner so it overlaps only the panel's rounded edge, never the
   tiles or the chart. */
.float-card.paid { left: -30px; bottom: -26px; }
.float-card.paid .fc-ico { background: oklch(0.62 0.14 152 / 0.18); color: oklch(0.48 0.13 152); }
html[data-surface="midnight"] .float-card.paid .fc-ico { color: oklch(0.82 0.16 152); }

/* Quix command bar */
.quix-bar {
  margin-top: 10px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid oklch(0.535 0.144 248 / 0.28);
  background: oklch(0.535 0.144 248 / 0.07);
}
html[data-surface="midnight"] .quix-bar {
  border-color: oklch(0.72 0.14 248 / 0.3);
  background: oklch(0.62 0.15 248 / 0.12);
}
.quix-ico {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 7px; display: grid; place-items: center;
  background: oklch(0.535 0.144 248 / 0.16); color: var(--brand);
}
.quix-ico svg { width: 12px; height: 12px; }
.quix-said {
  flex: 1; min-width: 0;
  font-size: 0.75rem; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quix-key {
  flex: 0 0 auto;
  font-size: 0.63rem; font-weight: 680; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand);
}

@media (max-width: 1040px) {
  /* Bottom-left is occupied by the Quix bar once the panel is full width, so
     hang it off the top-left corner instead — only the window dots are there. */
  .float-card.paid { left: 14px; top: -26px; bottom: auto; }
}
@media (max-width: 560px) {
  /* No room for them beside a full-width panel on a phone. */
  .float-card { display: none; }
}

.usage-row {
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55); margin-bottom: 12px;
}
html[data-surface="midnight"] .usage-row { background: oklch(0.24 0.03 248 / 0.55); }
.usage-row .top { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 8px; }
.usage-row .top b { font-weight: 620; }
.usage-row .top span { color: var(--ink-faint); }
.track { height: 6px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.track i { display: block; height: 100%; width: 68%; border-radius: 999px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }

/* Two-up, icon beside label. The original four square tiles were mostly empty
   space and read as unfinished placeholders. */
.mock-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55);
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px;
  font-size: 0.74rem; font-weight: 580; color: var(--ink-soft);
}
html[data-surface="midnight"] .tile { background: oklch(0.24 0.03 248 / 0.55); }
.tile svg { width: 19px; height: 19px; color: var(--brand); }
.tile.hot { border-color: oklch(0.767 0.157 71 / 0.5); background: oklch(0.767 0.157 71 / 0.12); }
.tile.hot svg { color: var(--amber-text); }

/* --- proof strip --------------------------------------------------------- */

/* Inherits the standard section rhythm — no override needed. */
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 4px; overflow: hidden; }
.proof-cell { padding: 26px 24px; text-align: center; }
.proof-cell b { display: block; font-size: 1.9rem; font-weight: 680; letter-spacing: -0.03em; }
.proof-cell b em { font-style: normal; color: var(--amber-text); }
.proof-cell span { font-size: 0.83rem; color: var(--ink-soft); }

/* --- capability cards ---------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; display: flex; flex-direction: column; }
.card-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(155deg, oklch(0.535 0.144 248 / 0.16), oklch(0.535 0.144 248 / 0.05));
  border: 1px solid oklch(0.535 0.144 248 / 0.22);
  color: var(--brand);
}
.card-ico.amber {
  background: linear-gradient(155deg, oklch(0.767 0.157 71 / 0.22), oklch(0.767 0.157 71 / 0.06));
  border-color: oklch(0.767 0.157 71 / 0.35);
  color: var(--amber-text);
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 0.93rem; }
.card ul {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 7px;
  font-size: 0.87rem; color: var(--ink-soft);
}
.card li { display: flex; gap: 9px; align-items: flex-start; }
.card li::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 8px;
  border-radius: 999px; background: var(--amber);
}

/* Signup-wizard mock (how-it-works split). Was inline styles; extracted so the
   two mock panels share one vocabulary. */
.mock-label {
  font-size: 0.72rem; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.mock-value { font-weight: 620; margin-bottom: 18px; }
.mock-list + .mock-label, .mock-value + .mock-label { margin-top: 0; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55);
  font-size: 0.88rem;
}
html[data-surface="midnight"] .mock-item { background: oklch(0.24 0.03 248 / 0.55); }
.mock-item b { font-weight: 620; white-space: nowrap; }
.mock-item em { font-style: normal; color: var(--ink-faint); }
.mock-suggest {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid oklch(0.767 0.157 71 / 0.4);
  background: oklch(0.767 0.157 71 / 0.1);
}
.mock-suggest b { display: block; font-size: 0.82rem; font-weight: 640; }
.mock-suggest span { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }

/* --- split feature ------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-split); align-items: center; }
.split > * { min-width: 0; }
.split.flip .split-media { order: -1; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split > div > p { margin-top: 16px; color: var(--ink-soft); font-size: 1.02rem; }
.steps { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 15px; }
.steps .n {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700; font-family: var(--mono);
  background: oklch(0.535 0.144 248 / 0.12); color: var(--brand);
  border: 1px solid oklch(0.535 0.144 248 / 0.2);
}
.steps b { display: block; font-weight: 620; font-size: 0.97rem; }
.fine-print { margin-top: 26px; font-size: 0.88rem; color: var(--ink-faint); }
.steps p { color: var(--ink-soft); font-size: 0.91rem; margin-top: 3px; }

/* Live-map mock. Stretches to the height of the prose beside it so the split
   doesn't read as two mismatched blocks. Scoped to #fieldops — the signup-wizard
   mock in the how-it-works split is content-sized and would go hollow if
   stretched. */
#fieldops .split-media { align-self: stretch; display: flex; }
.map-mock { padding: 0; overflow: hidden; position: relative; min-height: 440px; flex: 1; }
.map-face {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--map-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-line) 1px, transparent 1px);
  background-size: 38px 38px;
}
.map-road {
  position: absolute; background: var(--map-road);
  border-radius: 3px;
}
:root { --map-line: oklch(0.5 0.06 248 / 0.1); --map-road: oklch(0.5 0.06 248 / 0.14); }
html[data-surface="midnight"] { --map-line: oklch(0.78 0.06 240 / 0.09); --map-road: oklch(0.8 0.06 240 / 0.13); }
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  color: #fff; font-size: 0.66rem; font-weight: 700;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.25);
}
.map-pin.active { background: var(--brand); }
.map-pin.active::after {
  content: ""; position: absolute; inset: -8px; border-radius: 999px;
  border: 2px solid var(--brand); opacity: 0.35;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.map-pin.potential { background: var(--amber); color: var(--amber-ink); }
.map-pin.done { background: oklch(0.55 0.13 152); }
@keyframes ping { 0% { transform: scale(0.8); opacity: 0.5 } 100% { transform: scale(1.6); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .map-pin.active::after { animation: none } }

.map-legend {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  padding: 12px 14px; border-radius: 12px;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--panel-edge);
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.76rem; font-weight: 560;
}
html[data-surface="midnight"] .map-legend { background: oklch(0.2 0.025 248 / 0.86); }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; }

/* --- industries ---------------------------------------------------------- */

/* 4 across at desktop, which divides the 16 industry tiles into clean rows. */
.ind-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.ind {
  padding: 18px 16px; border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
/* Only the tiles with a landing page behind them lift and show a chevron —
   a hover state on a dead tile reads as a broken link. */
.ind.has-page:hover { transform: translateY(-2px); border-color: oklch(0.535 0.144 248 / 0.45); }
.ind .ind-go {
  width: 15px; height: 15px; margin-left: auto; color: var(--ink-faint);
  transition: transform 0.15s ease, color 0.15s ease;
}
.ind.has-page:hover .ind-go { transform: translateX(3px); color: var(--brand); }
.ind svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 auto; }
.ind b { font-size: 0.9rem; font-weight: 600; display: block; }
.ind span { font-size: 0.74rem; color: var(--ink-faint); }
.ind-foot {
  margin-top: var(--sp-head); text-align: center; font-size: 0.92rem; color: var(--ink-soft);
}
.ind-foot b { color: var(--ink); font-weight: 620; }

/* --- sub-page furniture (industry + legal pages) ------------------------- */

.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;
}

.page-hero { padding-block: clamp(36px, 4.4vw, 60px) 0; }
.page-hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: var(--sp-split); align-items: center;
}
.page-hero-grid > * { min-width: 0; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 680; max-width: 22ch; }

/* At-a-glance card — the numbers are derived from the page's own service list,
   so it can't drift out of sync with the table below. */
.glance { padding: 26px 28px; }
.glance-h {
  font-size: 0.72rem; font-weight: 680; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px; line-height: 1.6;
}
.glance dl { margin: 0; display: flex; flex-direction: column; }
.glance dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 0;
}
.glance dl > div + div { border-top: 1px solid var(--hairline); }
.glance dt { font-size: 0.86rem; color: var(--ink-soft); }
.glance dd { margin: 0; font-size: 0.92rem; font-weight: 640; text-align: right; }
.glance-foot { margin-top: 16px; font-size: 0.78rem; color: var(--ink-faint); }

@media (max-width: 1040px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
}
.page-lede {
  margin-top: 18px; max-width: 60ch;
  font-size: 1.1rem; color: var(--ink-soft);
}
.page-hero .hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.83rem; color: var(--ink-faint);
}
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* The industry pages' "what gets in the way" cards have no icon or list, so
   they'd otherwise inherit .card's icon spacing. */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-3 .card h3 { margin-bottom: 10px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* Starting-price table. The horizontal scroll container is required — the page
   body must never scroll sideways. */
.svc-table { padding: 6px 8px; overflow-x: auto; }
.svc-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.svc-table thead th {
  text-align: left; padding: 14px 16px;
  font-size: 0.7rem; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--hairline);
}
.svc-table thead th:last-child { text-align: right; }
.svc-table tbody th { text-align: left; font-weight: 620; padding: 13px 16px; }
.svc-table tbody td { padding: 13px 16px; color: var(--ink-soft); }
.svc-table tbody tr + tr th,
.svc-table tbody tr + tr td { border-top: 1px solid var(--hairline); }
.svc-table .svc-amt { text-align: right; font-weight: 640; color: var(--ink); white-space: nowrap; }
.svc-table .svc-desc { min-width: 15ch; }

.rel-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rel-chip {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.5);
  font-size: 0.88rem; font-weight: 560; color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}
html[data-surface="midnight"] .rel-chip { background: oklch(0.24 0.03 248 / 0.5); }
.rel-chip:hover { border-color: var(--brand); color: var(--brand); }

/* Legal-document body. Long-form, so it gets a measure and generous leading. */
.prose { padding: clamp(28px, 3.6vw, 52px); max-width: 78ch; margin: 0 auto; }
.prose h2 {
  font-size: 1.45rem; margin: 34px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--hairline);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.prose p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.95rem; }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose a { color: var(--brand); text-decoration: underline; }

/* --- partner logo band --------------------------------------------------- */

/* An h2 for document outline / SEO, but it must not look like a section heading. */
.band-label {
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}
.logo-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 68px);
  flex-wrap: wrap;
}
/* The source PNGs shipped with white baked in behind the marks; they've been
   re-keyed to black-on-transparent (see README "Partner logos"), so Aurora just
   needs opacity and Midnight inverts them to white. */
.logo-band img {
  height: clamp(34px, 4vw, 50px);
  width: auto;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}
.logo-band img:hover { opacity: 1; }
html[data-surface="midnight"] .logo-band img { filter: invert(1); opacity: 0.66; }
html[data-surface="midnight"] .logo-band img:hover { opacity: 0.92; }

.band-foot {
  margin: 26px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.band-foot strong { color: var(--ink); font-weight: 620; }

/* --- integrations -------------------------------------------------------- */

/* Capped width so the ten chips wrap into two balanced rows rather than 8 + 2. */
.logos {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  max-width: 780px; margin: 0 auto;
  list-style: none; padding: 0;
}
.band-narrow { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* --- FAQ ----------------------------------------------------------------- */

/* Answers are plain visible text, not an accordion — it matches the FAQPage
   JSON-LD exactly and there is nothing to click wrong. */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-item {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.faq-item h3 { font-size: 1rem; margin-bottom: 9px; }
.faq-item p { font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.logo-chip {
  padding: 12px 20px; border-radius: 11px;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.55);
  font-weight: 620; font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--ink-soft);
}
html[data-surface="midnight"] .logo-chip { background: oklch(0.24 0.03 248 / 0.5); }

/* --- pricing ------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.plan { padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.plan.featured {
  border-color: oklch(0.535 0.144 248 / 0.5);
  box-shadow: 0 14px 44px oklch(0.535 0.144 248 / 0.2);
}
.plan-tag {
  position: absolute; top: -11px; left: 24px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--amber); color: var(--amber-ink);
}
.plan h3 { font-size: 1.05rem; }
.plan .price { margin: 14px 0 4px; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.035em; }
.plan .price sup { font-size: 1rem; font-weight: 600; top: -0.85em; }
.plan .per { font-size: 0.8rem; color: var(--ink-faint); }
.plan ul {
  margin: 20px 0 24px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; flex: 1;
}
.plan li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); }
.plan li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--brand); }
.plan li.off { opacity: 0.42; }
.plan li.off svg { color: var(--ink-faint); }
.plan li b { color: var(--ink); font-weight: 620; }
.plan .btn { justify-content: center; width: 100%; }
.plans-note { margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--ink-faint); }

/* --- final CTA ----------------------------------------------------------- */

.cta-panel { padding: clamp(38px, 4.6vw, 62px) clamp(24px, 4vw, 52px); text-align: center; overflow: hidden; position: relative; }
.cta-panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta-panel p { margin: 16px auto 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.06rem; }
.cta-row { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 22px; font-size: 0.85rem; color: var(--ink-faint); }

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  background: rgb(255 255 255 / 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-surface="midnight"] footer { background: oklch(0.17 0.022 250 / 0.5); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 28px; margin-bottom: 14px; }
html[data-surface="midnight"] .foot-brand img { filter: brightness(0) invert(1); }
.foot-brand p { font-size: 0.89rem; color: var(--ink-soft); max-width: 30ch; }
.foot-brand .powered { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.foot-brand .powered strong { color: var(--ink); font-weight: 620; }
.foot-contact {
  margin-top: 16px; font-size: 0.86rem; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 5px;
  font-style: normal;   /* <address> italicises by default */
}
.foot-contact a:hover { color: var(--brand); }
.foot-col h2 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint); margin: 0 0 14px; font-weight: 680; line-height: 1.6;
}
.foot-col a { display: block; font-size: 0.89rem; color: var(--ink-soft); padding: 4px 0; }
.foot-col a:hover { color: var(--brand); }

/* The footer ships all 19 industry links and shows six. This rule is doing real
   work: the browser's built-in [hidden] { display: none } loses to the
   `display: block` above on specificity, so without it every hidden link would
   render anyway. site.js picks which six per page load. */
.foot-col a.foot-ind[hidden] { display: none; }
/* Qualified with .foot-col on purpose: `.foot-col a` above is specificity
   0-1-1 and would otherwise win, leaving this link the same grey as the six
   above it and invisible as a call to action. */
.foot-col a.foot-see-all { margin-top: 6px; font-weight: 620; color: var(--brand); }
.foot-col a.foot-see-all:hover { text-decoration: underline; }
.foot-bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-faint);
}
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: var(--brand); text-decoration: underline; }

.socials { display: flex; gap: 8px; }
.socials a,
.socials .social-soon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--hairline); color: var(--ink-soft);
}
.socials a:hover { color: var(--brand); border-color: var(--brand); }
/* Accounts aren't live yet. Shown, but not a link that goes nowhere — a dead
   href reads as a broken site. Swap back to <a href> when the URLs exist. */
.socials .social-soon { opacity: 0.45; cursor: default; }
.socials svg { width: 15px; height: 15px; }

/* --- back to top --------------------------------------------------------- */

/* Hidden until you're a screen or so down the page — see site.js. Kept clear of
   the iOS home indicator with env(safe-area-inset-bottom). */
.to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
              color 0.15s ease, border-color 0.15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.to-top svg { width: 19px; height: 19px; }

@media (max-width: 620px) {
  .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.01s, visibility 0.01s; transform: none; }
}
@media print { .to-top { display: none; } }

/* --- reveal on scroll ---------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none } }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* The two-column hero and splits stack here, well before the nav collapses:
   below ~1040px the text column is too narrow for the display type. */
@media (max-width: 1040px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
  .hero-sub { font-size: 1.1rem; }
  /* Seven links + the toggle + the CTA stop fitting on one row here. */
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-actions .btn-primary { display: none; }
  /* Four proof cells at ~210px each wrap to ragged one- and two-line labels. */
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    padding: 16px 24px 22px;
    background: var(--panel-solid);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
  }
  .nav-links.open a { padding: 10px 0; font-size: 1rem; }
  .nav-links.open .nav-drawer-cta {
    display: inline-flex; justify-content: center;
    margin-top: 12px; padding: 13px 22px; border-bottom: none;
  }
  .nav-links.open .nav-drawer-cta:hover { color: #fff; }
  .cta-panel { padding: 44px 24px; }
}

@media (max-width: 620px) {
  .cards, .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  /* Square tiles get absurdly tall at two-up on a phone. */
  .tile { aspect-ratio: auto; padding: 18px 10px; }
  .stat-card { padding: 11px 11px; }
  .stat-card .lbl { font-size: 0.58rem; letter-spacing: 0.04em; }
  .stat-card .val { font-size: 1.05rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
