/* ==========================================================================
   BondForge marketing site
   Shared stylesheet. Design tokens mirror the product (assets/styles/app.scss)
   so the site feels like the same brand.
   ========================================================================== */

/* ---- Brand display face (same file the product uses for its wordmark) ---- */
@font-face {
  font-family: 'Cooper Black Regular';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../fonts/COOPBL.woff') format('woff');
}

/* ---------------------------------- Tokens -------------------------------- */
:root {
  /* Palette (from app.scss) */
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #d9e0ea;
  --ink: #162033;
  --muted: #58657a;
  --brand: #1d4ed8;        /* primary action blue */
  --brand-strong: #1035AC; /* misdemeanorBlue - deep trust blue */
  --orange: #ED702E;       /* felonyOrange - warm accent, sparingly */
  --orange-ink: #b8511b;   /* darker orange for text on light (AA) */

  /* Semantic */
  --content: var(--ink);
  --content-muted: var(--muted);
  --accent: var(--orange);

  /* Dark panel surfaces */
  --ink-900: #0f1830;
  --ink-800: #16223f;
  --ink-700: #223052;

  /* Type scale (fluid, ~1.25 ratio) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.4vw, 2.55rem);
  --step-4: clamp(2.3rem, 1.9rem + 2.4vw, 3.6rem);

  /* Spacing scale (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;

  /* Radii + shadows (echo the product) */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.16);

  --maxw: 1160px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--content);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

/* --------------------------- Accessibility helpers ------------------------ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Visible, high-contrast focus ring everywhere */
:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ------------------------------- Layout utils ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.stack > * + * { margin-top: var(--sp-3); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }
.center.measure, .center .measure { margin-inline: auto; }

/* Section eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.eyebrow--center { justify-content: center; }

.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.6; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.24);
}
.btn--primary:hover { background: var(--brand-strong); color: #fff; }

.btn--accent {
  /* Orange with dark ink text keeps AA contrast (white on orange would fail) */
  background: var(--orange);
  color: #23140a;
  box-shadow: 0 12px 24px rgba(237, 112, 46, 0.28);
}
.btn--accent:hover { background: #e05f18; color: #23140a; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: #b9c4d6; color: var(--brand-strong); }

.btn--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

/* --------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { justify-self: start; }
.nav__menu { justify-self: center; }
.nav__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 4px;
  border-radius: 12px;
}
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px;
  object-fit: contain;
}
.brand__word {
  font-family: 'Cooper Black Regular', Inter, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__word b { font-weight: 400; }
.brand__word .b { color: var(--brand-strong); }
.brand__word .f { color: var(--orange); }

/* Header CTA has a full label by default; a shorter one swaps in on mobile. */
.nav__actions .btn .cta-label-short { display: none; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: #eef4ff; color: var(--brand-strong); }
.nav__link[aria-current] {
  color: var(--brand-strong);
  background: #eef4ff;
  box-shadow: inset 0 -2px 0 var(--orange);
}
/* Mobile nav: brand left, CTA + toggle right; links collapse into a dropdown */
@media (max-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .brand { margin-right: auto; flex-shrink: 0; }
  .nav .brand__word { font-size: 1.1rem; } /* keep the wordmark on mobile — trim it to fit logo + wordmark + short CTA + toggle at 375px */
  .nav__actions { order: 1; gap: 0.4rem; flex-shrink: 0; }
  .nav__toggle { display: inline-flex; order: 2; flex-shrink: 0; padding: 0.5rem 0.6rem; }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__actions .btn { white-space: nowrap; padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  /* Swap to the shorter CTA so it fits alongside the wordmark at 375px. */
  .nav__actions .btn .cta-label-full { display: none; }
  .nav__actions .btn .cta-label-short { display: inline; }
  .nav__menu {
    position: absolute;
    left: 0; right: 0; width: 100%; /* abs-pos flex child ignores left/right sizing; pin width explicitly */
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav__link { padding: 0.8rem 0.85rem; }
  /* When JS is present, honor the toggle */
  .js .nav__menu[hidden] { display: none; }
  .js .nav__menu { display: flex; }
}

/* -------------------------------- Hero ------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(29, 78, 216, 0.14), transparent 60%),
    radial-gradient(760px 420px at 8% 8%, rgba(237, 112, 46, 0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--brand-strong); }
.hero .lede { margin-bottom: 1.6rem; max-width: 52ch; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 650;
}
.hero__proof li { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.hero__proof ul { display: contents; }

/* Hero product card mock */
.hero__panel {
  position: relative;
}
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock__dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd8e6; }
.mock__title {
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
}
.mock__body { padding: 1.2rem; display: grid; gap: 0.9rem; }
.mock__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.mock__row strong { font-size: 1.02rem; }
.mock__row small { color: var(--muted); display: block; }
.mock__spark { border-left: 4px solid var(--orange); }
.mock__spark.mock__spark--blue { border-left-color: var(--brand); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill--active { background: #dbeafe; color: #1d4ed8; }
.pill--settled { background: #dcfce7; color: #15803d; }
.pill--offline { background: #fef3c7; color: #92600a; }

.chip-float {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 700;
  font-size: var(--step--1);
}
.chip-float .dot-ok { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.25); }

/* --------------------------- Section header block ------------------------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* --------------------------------- Cards ---------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d0e2; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); margin-bottom: 0; }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  background: #eaf0ff;
  color: var(--brand-strong);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--orange { background: #fdece0; color: var(--orange-ink); }

.card__more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.card--link:hover .card__more { gap: 0.6rem; }

/* Feature list with checks */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto;
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 7px;
  background: #eaf0ff; color: var(--brand-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list strong { display: block; }
.feature-list span.desc { color: var(--muted); font-size: var(--step--1); }

/* ---------------------------- Split / media rows -------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

/* ------------------------- Offline / dark feature panel ------------------- */
.panel-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(237, 112, 46, 0.18), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(29, 78, 216, 0.28), transparent 55%),
    var(--ink-900);
  color: #eaf0f8;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .lede { color: #b9c6dc; }
.panel-dark .eyebrow { color: #ffb489; }
.panel-dark .eyebrow::before { background: var(--orange); }

.signal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  padding: 1.3rem;
}
.signal-card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.signal-card p { color: #b9c6dc; margin: 0; font-size: var(--step--1); }
.signal-card .signal-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(237, 112, 46, 0.18);
  color: #ffc79f;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.signal-card .signal-ico svg { width: 24px; height: 24px; }

/* Sync status strip */
.sync-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--step--1);
  color: #cdd8ea;
}
.sync-strip .dot-ok { width: 10px; height: 10px; border-radius: 50%; background: #34d399; }

/* --------------------------------- Roadmap -------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.stage--current { border-color: var(--orange); box-shadow: 0 14px 34px rgba(237,112,46,0.16); }
.stage__status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.stage__status--now { background: #fdece0; color: var(--orange-ink); }
.stage__status--next { background: #eaf0ff; color: var(--brand-strong); }
.stage__status--later { background: #eef1f6; color: var(--muted); }
.stage__status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stage h3 { font-size: var(--step-2); }
.stage__meta { font-size: var(--step--1); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.stage p { color: var(--muted); }

/* ------------------------------- CTA band --------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(237,112,46,0.16), transparent 60%),
    linear-gradient(135deg, var(--brand-strong), #0b256f);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd8f4; max-width: 52ch; margin-inline: auto; }

/* ------------------------- Invite / signup callout ------------------------ */
.invite {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center;
  margin-top: 1.6rem;
}
.invite input[type="email"] {
  min-height: 48px;
  min-width: min(320px, 100%);
  flex: 1 1 260px;
  max-width: 360px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font: inherit;
}
.invite input::placeholder { color: #d7e0f6; }
.invite input:focus-visible { outline-color: #fff; }
.invite__note { flex-basis: 100%; color: #cdd8f4; font-size: var(--step--1); margin: 0.4rem 0 0; }
/* No-JS fallback form: broaden input styling to all fields, stack vertically */
.invite input { min-height: 48px; padding: 0.7rem 1rem; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); color: #fff; font: inherit; }
.invite--stack { flex-direction: column; align-items: stretch; max-width: 420px; margin-inline: auto; }
.invite--stack .field { display: grid; gap: 0.3rem; text-align: left; }
.invite--stack label { color: #eaf0ff; font-weight: 700; font-size: var(--step--1); }

/* ------------------------------ Alpha modal ------------------------------- */
/* Elements that only make sense with JS (the modal trigger). Hidden until
   site.js adds the .js class, so no-JS users get the <noscript> form instead. */
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

.modal {
  width: min(520px, calc(100vw - 2rem));
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--content);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); cursor: pointer;
}
.modal__close:hover { color: var(--ink); border-color: #b9c4d6; }
.modal__close svg { width: 20px; height: 20px; }
.modal h2 { margin-bottom: 0.35rem; }
.modal__lede { color: var(--muted); margin-bottom: 1.25rem; }

.aform { display: grid; gap: 0.9rem; }
.aform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; text-align: left; }
.field label { font-weight: 700; font-size: var(--step--1); color: var(--ink); }
.field input {
  width: 100%; min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--ink); font: inherit;
}
.field input::placeholder { color: #9fb0c6; }
.field input:hover { border-color: #b9c4d6; }
.field input:user-invalid { border-color: #dc3545; background: #fff6f6; }
.aform__submit { width: 100%; margin-top: 0.25rem; }
.aform__note { font-size: var(--step--1); color: var(--muted); margin: 0.25rem 0 0; text-align: left; }
/* Honeypot: kept in the DOM and submittable, but off-screen and out of tab order */
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal__success { text-align: center; }
.success__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%; background: #dcfce7; color: #15803d;
}
.success__icon svg { width: 30px; height: 30px; }

@media (max-width: 480px) { .aform__row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modalIn 0.18s ease; }
  .modal[open]::backdrop { animation: backdropIn 0.18s ease; }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------- Founder quote ------------------------------ */
.founder-quote {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.founder-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.32em; left: 0.28em;
  font-family: 'Cooper Black Regular', Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.18;
  pointer-events: none;
}
.founder-quote blockquote { margin: 0; }
.founder-quote blockquote p {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 550;
}
.founder-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.founder-quote__avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-family: 'Cooper Black Regular', Inter, sans-serif;
  font-size: 1rem; letter-spacing: 0.02em;
}
.founder-quote__who { display: grid; line-height: 1.35; }
.founder-quote__who strong { color: var(--ink); font-weight: 800; }
.founder-quote__title { color: var(--muted); font-size: var(--step--1); font-weight: 650; }

/* --------------------------------- FAQ ------------------------------------ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 1.25rem;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 750;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  margin-right: 4px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:hover { color: var(--brand-strong); }
.faq__a { padding: 0 0 1.15rem; color: var(--muted); }
.faq__a p { margin: 0; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--brand); text-decoration: underline; text-underline-offset: 2px;
}
.link-button:hover { color: var(--brand-strong); }

/* --------------------------- Legal / doc layout --------------------------- */
.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.doc__toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.doc__toc h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; counter-reset: toc; }
.doc__toc a {
  display: block; padding: 0.4rem 0.55rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.doc__toc a:hover { background: #eef4ff; color: var(--brand-strong); }
.doc__body { max-width: 72ch; }
.doc__body h2 { font-size: var(--step-2); margin-top: 2.2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font-size: var(--step-1); margin-top: 1.5rem; }
.doc__body p, .doc__body li { color: #2b3852; }
.placeholder-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--orange);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  color: #7c3d10;
  font-size: var(--step--1);
}
.placeholder-note svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.lorem { color: var(--muted) !important; }

/* --------------------------- Page hero (interior) ------------------------- */
.page-hero {
  background:
    radial-gradient(760px 360px at 90% -20%, rgba(29,78,216,0.12), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero .lede { max-width: 58ch; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* --------------------------------- Team ----------------------------------- */
.person { text-align: center; }
.person__avatar {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  font-family: 'Cooper Black Regular', sans-serif;
  font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}
.person__avatar--orange { background: linear-gradient(135deg, var(--orange), #c9531a); }
.person__photo {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: block; object-fit: cover;
}
.person h3 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.person__role { color: var(--orange-ink); font-weight: 700; font-size: var(--step--1); margin-bottom: 0.5rem; }
.person p { color: var(--muted); font-size: 0.98rem; }

/* Value cards */
.value h3 { font-size: var(--step-1); }
.value .num {
  font-family: 'Cooper Black Regular', sans-serif;
  color: var(--orange);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* --------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: #aeb9cd;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer .brand__word { color: #fff; }
.site-footer .brand__word .b { color: #7aa0ff; }
.site-footer .brand__word .f { color: #ffa06a; }
.footer-about { max-width: 34ch; font-size: 0.96rem; margin-top: 0.9rem; }
.footer-col h3 {
  color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: #aeb9cd; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--step--1);
}
.footer-eco { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-eco span {
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem; font-weight: 600; color: #cdd8ea;
}
.footer-social { display: flex; gap: 0.6rem; list-style: none; margin: 1.15rem 0 0; padding: 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #cdd8ea; transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ----------------------------- Cookie consent ----------------------------- */
/* Unobtrusive, non-modal region pinned bottom-left. Injected by site.js.
   Sits above the sticky header (z 80) but below the skip link (z 200) and the
   native <dialog> (top layer), so the Alpha modal always wins if both are up. */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: clamp(1rem, 4vw, 1.5rem);
  bottom: clamp(1rem, 4vw, 1.5rem);
  width: min(420px, calc(100vw - 2rem));
  background: var(--surface);
  color: var(--content);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.35rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.cookie-banner__title {
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.cookie-banner__text {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.cookie-banner__text a { font-weight: 700; }

/* Accept and Decline share the row equally — same size/weight, no dark pattern. */
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner__actions .btn {
  flex: 1 1 auto;
  width: auto; /* override the mobile full-width .btn rule so they stay side by side */
  min-height: 44px;
  padding: 0.6rem 1rem;
}

/* Mobile: full-width bottom sheet, corners rounded only at the top. */
@media (max-width: 560px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-inline: 0;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not([hidden]) { animation: cookieIn 0.28s ease both; }
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Footer "Cookie settings" trigger — matches the surrounding footer links. */
.footer-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #aeb9cd;
  text-align: left;
  cursor: pointer;
}
.footer-cookie-btn:hover { color: #fff; text-decoration: underline; }

/* --------------------------------- Motion --------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* -------------------------------- Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* When stacked, lead with the copy (eyebrow + headline) so the product is
     introduced before the mockup appears; the mockup follows as support. */
  .hero__copy { order: 0; }
  .hero__panel { order: 1; max-width: 520px; margin-top: 0.5rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .chip-float { position: static; margin-top: 1rem; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}
