/* =============================================================================
   StoRadar marketing design system — "Daylight".

   Scope: the PUBLIC MARKETING surfaces only (landing, auth, public error
   pages). The console/wizard keep app.css; the two systems never load on the
   same page. Chosen 2026-08-08, replacing "Signal Deck" (a dark-capable
   graphite-instrument register) as a client-approved-comp redesign — the
   designer supplied a real mock and it is the authority, not a rolled
   direction. Signal Deck's tokens were close enough (same green family, same
   near-white ground) that this is a genuine reskin, not a full material
   swap: what changes is the page's composition and its commitment to a
   single light register with no dark variant.

   The world: pure white ground, near-black ink, one grass-green accent used
   only for the primary action, focus, live state, and small status motifs
   (checkmarks, step numbers, icon circles) — still the "one live color"
   discipline, just brighter and flatter than the retired graphite world.
   Corners are gently rounded (12/16/20px), never sharp; shadows stay soft
   and reserved for surfaces that are genuinely raised (cards, the demo
   frame) or floating (the hero product mock).

   Faces (vendored, /static/fonts): Space Grotesk 500/600/700 (variable) as
   the display face, Plus Jakarta Sans 400/500/600/700 (variable) for prose
   and UI, IBM Plex Mono 500/600 reserved for real data — code, coordinates,
   status labels — never as a "technical" costume.

   Structure: 1 fonts · 2 tokens (light only) · 3 base · 4 typography
   · 5 layout + chrome · 6 components · 7 landing sections · 8 auth
   · 9 motion + responsive
   ============================================================================= */

/* 1 -------------------------------------------------------------- FONTS ---- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-var.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-var.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* 2 ------------------------------------------------------------- TOKENS ---- */
/* Light only — Daylight is a deliberate single-register world, matched to
   the approved comp; there is no dark variant on this surface (task decision
   2026-08-08). The console's app.css keeps its own independent dark mode. */
:root {
  /* Surfaces. --surface-2 is the page ground, --surface the card/plate face. */
  --surface-2: #f6f7f9;
  --surface: #ffffff;
  --ink: #14161c;
  --ink-2: #3c4046;
  /* ≥4.5:1 on --surface (placeholders/meta must clear AA). */
  --ink-3: #5b6472;

  --border: #e2e4e8;
  --border-strong: #d0d3d9;

  /* Grass green: the ONE accent, measured off the approved comp. White type
     on it clears AA at this depth. */
  --accent: #00874a;
  --accent-press: #00693a;
  --accent-tint: #eaf6ef;
  --on-accent: #ffffff;

  /* Feedback (flash banners, form errors). */
  --ok: #00874a;
  --err: #c22b1f;
  --info: var(--ink-2);

  /* Faces. */
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale. */
  --t-label: 0.8rem;
  --t-small: 0.9rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.1rem, 1.5vw, 1.25rem);

  /* Rhythm (8pt grid). */
  --flow: 1rem;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4.5rem;
  --s6: 7rem;

  /* Plates: hairline borders, gentle rounding — a shape language, not a
     sharp-cornered one. */
  --bw: 1px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  --shadow-card: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 24px rgba(15, 17, 21, 0.06);
  --shadow-raised: 0 4px 8px rgba(15, 17, 21, 0.06), 0 16px 40px rgba(15, 17, 21, 0.12);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink-2);
  background-color: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `hidden` must actually hide (same WHATWG remedy app.css documents). */
[hidden] {
  display: none !important;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-press);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

::selection {
  background: var(--accent-tint);
  color: var(--ink);
}

/* 4 ----------------------------------------------------------- TYPE ---- */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 0 var(--flow);
}

:where(main, .flow) > * + * {
  margin-top: var(--flow);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
}

/* h4-h6: a quiet meta voice, used sparingly and never as a kicker above a
   heading — it names a region, it doesn't announce one. */
h4,
h5,
h6 {
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--ink-3);
}

p {
  max-width: 65ch;
}

small {
  font-size: var(--t-small);
  color: var(--ink-3);
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.9em;
}

.lede {
  font-size: var(--t-lede);
  color: var(--ink-2);
  font-weight: 400;
}

/* 5 ----------------------------------------------------- LAYOUT + CHROME ---- */
.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.site-header {
  background-color: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--bw) solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 64px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--r-sm);
  color: var(--on-accent);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
}

.nav-links > a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links > a:not(.btn).is-active {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.nav-account-email {
  font-size: var(--t-small);
  color: var(--ink-3);
}

.nav-logout {
  margin: 0;
}

/* Footer: quiet, on the page ground — no separate material. */
.site-footer {
  border-top: var(--bw) solid var(--border);
  padding-block: var(--s4);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--ink);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

.foot p {
  margin: 0;
  max-width: none;
  font-size: var(--t-small);
  color: var(--ink-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--r-sm);
  padding: var(--s1) var(--s2);
}

.skip-link:focus {
  left: var(--s2);
  top: var(--s1);
}

/* 6 --------------------------------------------------------- COMPONENTS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: var(--bw) solid transparent;
  border-radius: var(--r-sm);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out,
    box-shadow 140ms ease-out, transform 140ms ease-out;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06);
}

.btn-primary:hover {
  background-color: var(--accent-press);
  color: var(--on-accent);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background-color: var(--surface-2);
  border-color: var(--ink-3);
}

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Badge: a small pill for a live disclosure ("Sample data", "Most popular").
   Replaces the retired zip-tie tag; no strap, no hardware — just a clean
   label on the accent tint. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Plate: the standard bordered card. */
.plate {
  background-color: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3);
}

/* Flash banners: a neutral bordered strip with a status dot — the same
   dot motif the badge uses — rather than a colored side-tab border. */
.flash {
  display: flex;
  align-items: center;
  gap: var(--s2);
  border: var(--bw) solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  padding: var(--s2) var(--s3);
  margin-block: var(--s2);
}

.flash::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--info);
  flex: none;
}

.flash-ok::before {
  background: var(--ok);
}

.flash-error::before {
  background: var(--err);
}

/* Forms. */
label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.4rem;
}

.form-field + .form-field {
  margin-top: var(--s2);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"] {
  width: 100%;
  font-family: var(--body);
  font-size: var(--t-small);
  color: var(--ink);
  background: var(--surface);
  border: var(--bw) solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}

input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

input::placeholder {
  color: var(--ink-3);
}

form > * + * {
  margin-top: var(--s2);
}

/* 7 ---------------------------------------------------- LANDING SECTIONS ---- */

.hero {
  padding-block: var(--s5) var(--s4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s5);
  align-items: center;
}

/* The hero column is narrower than the global h1 assumes (5fr of the hero-grid split, not the
   full wrap), so the shared display size wrapped this headline to 4 lines. Scoped down here
   rather than in the shared h1 rule, which auth pages' short one-line headings still use as-is. */
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.hero-copy .lede {
  max-width: 46ch;
  margin-top: var(--s2);
}

.cta-row {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s3);
}

/* Checklist: three real capabilities, a filled check disc rather than a
   generic bullet — read as done, not merely listed. */
.checklist {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-2);
}

.check-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex: none;
}

.check-disc svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Trust bar: the plain-language facts a buyer checks before a card ever
   comes out — rendered from the same source of truth as pricing, never a
   hardcoded number. */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s3);
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
}

.trust-bar svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 2;
  flex: none;
}

/* ---- Hero product mock: a sheet card behind, a "Find a store" result
   panel floating in front — the one mechanism (sheet in, locator out)
   dramatized as the literal product, not an abstract instrument-panel
   illustration. ---- */
.hero-mock {
  position: relative;
  min-height: 420px;
}

.mock-sheet {
  position: absolute;
  inset: 0 14% 12% 0;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.mock-sheet-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem var(--s3);
  border-bottom: var(--bw) solid var(--border);
  flex: none;
}

.mock-sheet-bar .mock-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  align-items: center;
  justify-content: center;
  flex: none;
}

.mock-sheet-bar .mock-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.mock-sheet-bar span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.mock-sheet-grid {
  padding: 0 var(--s2);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mock-sheet-grid-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: var(--s2);
  padding: 0.6rem 0.4rem;
  border-bottom: var(--bw) solid var(--border);
  align-items: center;
}

.mock-sheet-grid-row.head span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.mock-sheet-grid-row:not(.head) span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.mock-sheet-grid-row.is-live {
  background: var(--accent-tint);
  border-radius: var(--r-sm);
  border-bottom-color: transparent;
}

.mock-sheet-grid-row.is-live span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.mock-panel {
  position: absolute;
  inset: 20% 0 0 34%;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  padding: var(--s3);
  gap: 0.85rem;
}

.mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.mock-panel-head span:first-child {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: var(--bw) solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.7rem;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.mock-search svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 2;
  flex: none;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-height: 0;
  overflow: clip;
}

.mock-list-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: var(--bw) solid var(--border);
}

.mock-list-row:first-child {
  border-top: none;
}

.mock-list-row .mock-pin {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.2;
  flex: none;
  margin-top: 0.15rem;
}

.mock-list-row strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.mock-list-row small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.section {
  padding-block: var(--s6) 0;
}

section.wrap {
  padding-block: var(--s6);
}

.sec-head {
  max-width: 56ch;
  margin-bottom: var(--s4);
}

.sec-head .lede {
  margin-top: var(--s1);
}

/* ---- Demo: a real instrument panel — a plain card, a status rail, the
   badge disclosing sample data. ---- */
.demo-frame {
  position: relative;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: clip;
}

.demo-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 3rem;
  padding: 0.6rem var(--s3);
  border-bottom: var(--bw) solid var(--border);
  background-color: var(--surface-2);
}

.demo-rail .label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
}

.demo-body {
  min-height: 480px;
  position: relative;
}

.demo-sample-flag {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  z-index: 10;
}

.demo-unavailable {
  min-height: 480px;
  display: grid;
  place-content: center;
  gap: var(--s1);
  text-align: center;
  padding: var(--s3);
}

.muted {
  color: var(--ink-3);
}

.mono-inline {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: var(--bw) solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

/* ---- Feature grid: four real capabilities, each with an icon, a title, a
   one-line description, and a link into the section that backs the claim
   (no capability here is asserted without a real destination). ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: var(--s1);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

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

.feature-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--t-small);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--accent);
}

.feature-link:hover {
  color: var(--accent-press);
}

.feature-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
}

/* ---- How it works: a quiet panel — numbered steps read left to right (the
   sequence is the information), a real product photo grounds the scene on
   the right. The number is the only ordering device. ---- */
.steps-panel {
  background-color: var(--surface-2);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s4);
  align-items: center;
}

.steps-panel h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: var(--s3);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
}

.step {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.step-arrow {
  flex: none;
  margin-top: 1.1rem;
  color: var(--border-strong);
}

.step-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--s2);
}

.step h3 {
  margin-bottom: var(--s1);
  font-size: 0.98rem;
}

.step p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.steps-photo {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
}

/* ---- Pricing. ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  align-items: stretch;
}

.price-card {
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  background-color: var(--surface);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  position: relative;
}

.price-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-raised);
}

.price-flag {
  position: absolute;
  top: -0.9rem;
  right: var(--s3);
}

.price-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.price-amount {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--ink);
  margin: 0.2rem 0 0;
}

.price-per {
  font-family: var(--body);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-3);
}

.price-caption {
  font-size: var(--t-small);
  color: var(--ink-3);
  margin: 0;
  min-height: 2.6em;
}

.price-features {
  list-style: none;
  margin: var(--s1) 0 var(--s2);
  padding: 0;
  font-size: var(--t-small);
  color: var(--ink-2);
  flex: 1;
}

.price-features li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: var(--bw) solid var(--border);
  position: relative;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 1rem;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-note {
  font-size: var(--t-small);
  color: var(--ink-3);
  max-width: none;
  margin: var(--s3) 0 0;
}

.pricing-note + .pricing-note {
  margin-top: var(--s1);
}

/* ---- FAQ: a ruled index. ---- */
.faq-index {
  border-bottom: var(--bw) solid var(--border);
}

.faq-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s3);
  border-top: var(--bw) solid var(--border);
  padding-block: var(--s3);
}

.faq-row h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  margin: 0;
}

.faq-row p {
  margin: 0;
  font-size: var(--t-small);
  color: var(--ink-2);
}

/* ---- Close: a quiet mint-tinted banner — the page's one field of color,
   used once, at the close. Replaces Signal Deck's inverted dark band, which
   has no place in a light-only world. ---- */
.final {
  padding-block: var(--s6);
}

.cta-banner {
  background-color: var(--accent-tint);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.cta-banner-lead {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  flex: 1 1 360px;
  min-width: 0;
}

.cta-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex: none;
}

.cta-banner-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.cta-banner-copy h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.cta-banner-copy p {
  margin: 0;
  color: var(--ink-2);
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s2);
  flex: none;
}

.cta-banner-actions .cta-row {
  margin-top: 0;
}

.cta-banner-actions .trust-bar {
  margin-top: 0;
}

/* 8 --------------------------------------------------------------- AUTH ---- */
.auth {
  padding-block: var(--s5);
}

/* The section's own .wrap is nearly full-width (min(1180px, 92vw)); without
   this the card, a block child, would sit flush left inside it instead of
   centered on the page — the composition defect flagged at the previous
   finish review. */
.auth .wrap {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(440px, 100%);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  background-color: var(--surface);
  padding: var(--s4);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  margin-bottom: var(--s1);
}

.auth-lede {
  font-size: var(--t-small);
  color: var(--ink-3);
}

.auth-foot {
  font-size: var(--t-small);
  color: var(--ink-3);
  margin: var(--s2) 0 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-block: var(--s2);
  font-size: var(--t-small);
  color: var(--ink-3);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: var(--bw) solid var(--border);
}

/* 9 -------------------------------------------- MOTION + RESPONSIVE ---- */

/* The one authored moment: the "Live & synced" badge's status dot pulses in
   the hero product mock — the single live signal earning motion on the page. */
@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: ping 2.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot::after {
    animation: none;
  }

  .btn,
  .btn:active {
    transition: none;
    transform: none;
  }
}

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

  .hero-mock {
    min-height: 340px;
  }

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

  .steps-panel {
    grid-template-columns: 1fr;
  }

  .steps-photo {
    order: -1;
  }

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

  .faq-row {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }

  .cta-banner {
    justify-content: flex-start;
  }

  .cta-banner-actions {
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: var(--s1);
  }

  .nav-links {
    gap: 0.2rem;
  }

  .nav-account-email {
    display: none;
  }

  .hero {
    padding-block: var(--s3) var(--s3);
  }

  .checklist,
  .trust-bar {
    gap: 0.5rem;
  }

  /* Overlapping absolute cards don't survive a narrow viewport — stack them
     in normal flow instead of shrinking the overlap into illegibility. */
  .hero-mock {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s2);
  }

  .mock-sheet,
  .mock-panel {
    position: static;
    inset: auto;
    width: 100%;
  }

  .mock-sheet {
    min-height: 220px;
  }

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

  .steps-panel {
    padding: var(--s3);
  }

  .steps-row {
    flex-direction: column;
    gap: var(--s3);
  }

  .step-arrow {
    display: none;
  }

  .cta-banner-lead {
    flex: 1 1 auto;
  }

  .demo-body {
    min-height: 420px;
  }
}
