/* Scan&Serve landing page
   Plain CSS, no build step. Order: fonts, tokens, base, layout, components, sections, utilities. */

/* ---------- Fonts (self-hosted, Latin subset, variable weight) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* surfaces and text */
  --bg: #FBF8F3;
  --bg-alt: #F3ECDF;
  --surface: #FFFFFF;
  --ink: #1F1D1A;          /* headings, primary text      16.8:1 on white */
  --text: #4A453E;         /* body copy                    9.0:1 on --bg   */
  --muted: #6B655C;        /* secondary text               5.4:1 on --bg   */
  --line: #E6DDCC;         /* decorative borders */

  /* brand */
  --accent: #E8A23B;       /* buttons and highlights (dark text on top: 7.7:1) */
  --accent-ink: #9A5200;   /* amber used as text on light surfaces: 5.0:1+ */
  --accent-soft: #FBE9C9;
  --accent-soft-ink: #6E3C00;

  /* data viz: every bar colour is at least 3:1 against its background (WCAG 1.4.11) */
  --bar: #B8741A;
  --bar-muted: #968563;
  --track: #F3ECDF;

  /* dark sections */
  --dark: #1F1D1A;
  --dark-line: #3F3B34;
  --on-dark: #F3EEE6;
  --on-dark-muted: #CFC8BB;
  --on-dark-subtle: #B8B0A3;
  --dark-field-border: #8A8173;
  --error-on-dark: #FFB4A6;
  --error: #B3261E;

  /* type */
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 4.4vw, 32px);
  --section-y: clamp(64px, 7.25vw, 104px);
  --stack-lg: clamp(32px, 4vw, 48px);

  /* shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 26px;
  --r-pill: 999px;
  --shadow-card: 0 28px 48px -28px rgba(31, 29, 26, .3);
  --shadow-panel: 0 32px 56px -34px rgba(31, 29, 26, .3);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }

.display { font-family: var(--font-display); }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* SVG sprite holder and decorative QR */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.qr rect { fill: #FFFFFF; }
.qr path { fill: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: var(--accent); color: var(--ink);
  font-weight: 600; line-height: 1.2; text-align: center;
  transition: filter .15s;
}
.btn:hover { filter: brightness(.93); }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--xl { min-height: 56px; padding: 15px 34px; font-size: 1.125rem; }
.btn--ghost { background: transparent; border-color: var(--ink); transition: background-color .15s; }
.btn--ghost:hover { background: var(--bg-alt); filter: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  max-width: var(--container); margin-inline: auto;
  padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 56px; width: auto; }

.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9375rem; font-weight: 500;
}
.nav-link:hover, .footer-link:hover { color: var(--accent-ink); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

@media (max-width: 860px) {
  .brand img { height: 48px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex: 1 0 100%; }
  .js .site-nav[data-open] { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 12px; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .js .nav-link { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  .js .site-nav .btn { width: 100%; }
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.on-dark .eyebrow { color: var(--accent); }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em;
  overflow-wrap: break-word;
}
.lead { font-size: 1.125rem; color: var(--text); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__stack { display: flex; flex-direction: column; gap: var(--stack-lg); }
.section__head--wide { max-width: 780px; }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-soft-ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.badge--solid { background: var(--ink); color: var(--bg); }
.badge--accent { background: var(--accent); color: var(--ink); }
.badge--sm { padding: 3px 9px; font-size: .6875rem; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--thin { stroke-width: 1.6; }
.icon--bold { stroke-width: 3; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(16px, 3vw, 48px) var(--section-y); }
.hero__grid {
  display: grid; align-items: start; gap: clamp(40px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (min-width: 1000px) { .hero__copy { padding-top: 27px; } }  /* optical alignment of the eyebrow with the dashboard title */
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.625rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.hero__lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__note { font-size: .9375rem; color: var(--muted); }

.hero__visual { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero__devices { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 20px; }
.hero__caption { text-align: center; font-size: .8125rem; color: var(--muted); }

.mini {
  flex: 1 1 320px; max-width: 430px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-card);
}
.mini__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.mini__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mini__title .display { font-weight: 700; font-size: 1.1875rem; }
.chip-static {
  font-size: .8125rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px;
}

.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { flex: 1 1 90px; background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.stat__label { font-size: .75rem; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; }
.stat--lg { flex-basis: 110px; border-radius: var(--r-md); padding: 16px 18px; }
.stat--lg .stat__label { font-size: .8125rem; }
.stat--lg .stat__value { font-size: 1.625rem; }
.stat--b60 { flex-basis: 60px; }
.stat--b80 { flex-basis: 80px; }
.stat--b140 { flex-basis: 140px; }
.stat--b150 { flex-basis: 150px; }
.stat--b200 { flex-basis: 200px; }
.stat__sub { font-size: .9375rem; font-weight: 600; color: var(--muted); }

/* phone mock-up (decorative) */
.phone {
  flex: 0 0 230px; width: 230px; height: 450px; padding: 9px;
  border-radius: 38px; background: var(--ink); box-shadow: 0 28px 50px -22px rgba(31, 29, 26, .5);
}
.phone__screen { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 30px; background: var(--bg); }
.phone__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px; }
.phone__top .display { font-weight: 700; font-size: 1rem; }
.phone__top span:last-child { font-size: .6875rem; color: var(--muted); }
.phone__cats { display: flex; gap: 6px; padding: 0 16px 10px; }
.phone__cat { font-size: .6875rem; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.phone__cat--on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.phone__list { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.phone__item { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.phone__thumb { flex: 0 0 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.phone__thumb--1 { background: #F2D9B0; }
.phone__thumb--2 { background: #EAD3B8; }
.phone__thumb--3 { background: #E6D5BC; }
.phone__meta { flex: 1 1 0; min-width: 0; }
.phone__name { font-size: .75rem; font-weight: 600; line-height: 1.2; }
.phone__desc { font-size: .625rem; color: var(--muted); line-height: 1.2; }
.phone__price { margin-top: 3px; font-size: .6875rem; font-weight: 600; }
.phone__add { flex: 0 0 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); }
.phone__cart { margin-top: auto; padding: 12px; }
.phone__cart div { display: flex; justify-content: space-between; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 600; }

/* ---------- Charts (CSS-only, driven by --h / --w custom properties) ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.chart > li { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart__bar { order: 2; width: 100%; height: calc(var(--h) * 1px); background: var(--bar-muted); border-radius: 7px 7px 2px 2px; }
.chart__value { order: 1; font-size: .75rem; font-weight: 600; color: var(--text); }
.chart__label { order: 3; font-size: .75rem; color: var(--muted); }
.chart .is-peak .chart__bar { background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }
.chart--week { height: 196px; gap: 10px; }
.chart--week .chart__bar { border-radius: 8px 8px 2px 2px; }
.chart--hour { height: 150px; gap: 6px; }
.chart--hour > li { gap: 5px; }
.chart--hour .chart__bar { border-radius: 6px 6px 2px 2px; }

.figure { display: flex; flex-direction: column; gap: 10px; }
.figure__title { font-size: .9375rem; font-weight: 600; }
.figure__note { font-size: .8125rem; color: var(--muted); }

.hbars { display: flex; flex-direction: column; gap: 16px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.hbar__name { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.hbar__name small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.hbar__bar { grid-column: 1 / -1; order: 3; height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.hbar__fill { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: 6px; background: var(--bar); }
.hbar__value { text-align: right; font-weight: 600; font-size: .9375rem; }
.hbar.is-muted .hbar__fill { background: var(--bar-muted); }
.hbar.is-low .hbar__fill { background: var(--muted); }
.hbar.is-peak .hbar__fill { background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }
.hbar--total { border-top: 1px solid var(--line); padding-top: 14px; color: var(--text); }
.hbar--total .hbar__name { font-weight: 400; }
@media (min-width: 640px) {
  .hbar { grid-template-columns: var(--label, 160px) minmax(140px, 1fr) 72px; }
  .hbar__bar { grid-column: auto; order: 0; }
  .hbar--total { grid-template-columns: minmax(0, 1fr) 72px; }
  .hbars--compact .hbar { --label: 130px; }
}

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 280px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
}
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-size: .875rem; font-weight: 700; color: var(--accent-ink); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.card p { color: var(--text); }
.punchline {
  font-family: var(--font-display); font-weight: 600; text-align: center;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em;
}

.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step {
  flex: 1 1 240px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 28px;
}
.step--planned { border-color: var(--accent); }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.step__num { font-size: .875rem; font-weight: 700; color: var(--accent); }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.step p { color: var(--on-dark-muted); font-size: 1rem; }
.steps__flow { font-size: .9375rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-subtle); }

/* ---------- Analytics tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.tabs__list { flex: 1 1 280px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tabs__list li { display: block; }
.tab {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  padding: 18px 20px; text-align: left;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 18px;
  transition: border-color .15s, background-color .15s;
}
.tab:hover { border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--ink); }
.tab__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tab__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tab__desc { font-size: .9375rem; line-height: 1.45; color: var(--text); }

.panels {
  flex: 999 1 560px; min-width: 0;
  display: flex; flex-direction: column; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-panel);
}
.panel { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.panel[hidden] { display: none; }
html:not(.js) .panel + .panel { border-top: 1px solid var(--line); padding-top: 24px; }  /* without JS all four views are stacked */
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.panel__sub { font-size: .9375rem; font-weight: 600; }
.panel__note { font-size: .8125rem; color: var(--muted); }

.highlights { display: flex; flex-direction: column; gap: 10px; }
.highlights__list { display: flex; flex-wrap: wrap; gap: 12px; }
.highlight {
  flex: 1 1 220px; min-width: 0; display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border-radius: var(--r-md); padding: 16px 18px;
}
.highlight--wide { flex-basis: 100%; }
.highlight__icon {
  flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink);
}
.highlight__icon--low { background: #ECE5D8; color: var(--text); }
.highlight__label { font-size: .8125rem; color: var(--muted); }
.highlight__value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.highlight__sub { font-size: .875rem; color: var(--text); }

.groups { display: flex; flex-direction: column; gap: 14px; }
.groups + .groups { border-top: 1px solid var(--line); padding-top: 22px; }

.insight { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 18px; padding: 22px; }
.insight .eyebrow { font-size: .75rem; letter-spacing: .08em; }
.insight p { font-size: 1rem; }

/* ---------- Status ---------- */
.status { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.status__card {
  flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3vw, 32px);
}
.status__card--planned { border: 1.5px solid var(--accent); }
.status__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.status__title { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-ink); stroke-width: 2.2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .875rem; font-weight: 500; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-pill); padding: 6px 14px; }
.chip--custom { font-weight: 600; border: 1.5px dashed var(--accent-ink); color: var(--accent-soft-ink); background: transparent; padding: 5px 14px; }
.small-note { font-size: .9375rem; color: var(--text); }
.fine { font-size: .9375rem; color: var(--muted); }

/* ---------- Early access (dark CTA card with the lead form) ---------- */
.cta { padding-block: clamp(48px, 6.6vw, 96px); }
.cta__card {
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  background: var(--dark); color: var(--on-dark); border-radius: 32px;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 40px);
}
.cta__title { max-width: 820px; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; }
.cta__text { max-width: 620px; font-size: 1.1875rem; color: var(--on-dark-muted); }

.lead-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 22px; margin-top: 8px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { font-size: .9375rem; font-weight: 600; color: var(--on-dark); padding: 0; }
legend.field__label { margin-bottom: 8px; }
.field__optional { font-weight: 400; color: var(--on-dark-subtle); }
.input {
  width: 100%; min-height: 54px; padding: 12px 18px;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--dark-field-border); border-radius: 14px;
  font-size: 1rem;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--error-on-dark); box-shadow: 0 0 0 1.5px var(--error-on-dark); }
.field__error { display: flex; gap: 8px; font-size: .9375rem; font-weight: 500; color: var(--error-on-dark); }
.field__error[hidden] { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1.5px solid var(--dark-field-border); border-radius: var(--r-pill);
  color: var(--on-dark); font-size: .9375rem;
}
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid var(--on-dark); outline-offset: 3px; }
.pill:hover input:not(:checked) + span { border-color: var(--on-dark-subtle); }

.consent { display: flex; flex-direction: column; gap: 8px; }
.consent__row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-size: .9375rem; color: var(--on-dark-muted); }
.consent__row input { flex: 0 0 24px; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent__row a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

.lead-form .btn { width: 100%; }
.form-status { min-height: 1.5em; font-size: .9375rem; text-align: center; color: var(--on-dark-muted); }
.form-status[data-state="error"] { color: var(--error-on-dark); font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lead-success { display: flex; flex-direction: column; gap: 8px; max-width: 560px; padding: 24px; border: 1.5px solid var(--accent); border-radius: var(--r-lg); text-align: left; }
.lead-success[hidden] { display: none; }
.lead-success h3 { font-family: var(--font-display); font-size: 1.5rem; }
.lead-success p { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer__main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
.footer__brand { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { width: 180px; height: auto; }
.footer__brand p { font-size: .9375rem; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.footer__col { display: flex; flex-direction: column; font-size: .9375rem; }
.footer__title { font-weight: 700; margin-bottom: 4px; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { padding-bottom: 40px; font-size: .8125rem; color: var(--muted); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Privacy page ---------- */
.doc { max-width: 760px; padding-block: 24px 96px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.doc h2 { font-family: var(--font-display); font-size: 1.5rem; margin-top: 16px; }
.doc ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc__draft { padding: 16px 20px; background: var(--accent-soft); color: var(--accent-soft-ink); border-radius: var(--r-md); font-weight: 600; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
