/* ─────────────────────────────────────────────────────────────
   Freeleads design system — Maquette v9 « Vert profond et menthe »
   Manrope (self-hosted) · light + dark ("vert nuit") themes
   No inline styles anywhere (strict CSP)
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand (fixed in both themes) */
  --deep: #05140f; /* Vert profond — hero, dark sections, footer */
  --deep-2: #0a1f18;
  --deep-3: #10291f;
  --deep-line: rgb(255 255 255 / 0.09);
  --mint: #34e3a4; /* Menthe — buttons, spotted missions */
  --mint-600: #1fcf8f;
  --mint-soft: rgb(52 227 164 / 0.12);
  --green-text: #0b7a55; /* Vert texte — accents on light */
  --on-mint: #05140f;
  --on-deep: #f2f7f4;
  --on-deep-muted: #a9bab2;

  /* Light theme */
  --ink: #05140f;
  --ink-2: #13271f;
  --text: #2c3c35;
  --muted: #5d6c66;
  --faint: #8d9c95;
  --line: #e1e9e4;
  --line-2: #cbd8d1;
  --bg: #fafafa; /* Fond clair */
  --bg-soft: #f3f6f4; /* Fond gris vert */
  --bg-sunk: #e9efeb;
  --surface: #ffffff;
  --surface-2: #f6f8f7;

  --brand: var(--green-text);
  --brand-600: #096746;
  --brand-700: #075238;
  --brand-50: #e8faf2;
  --brand-100: #d1f5e5;
  --brand-200: #a3ecce;

  --ok: #0b7a55;
  --ok-bg: #e8faf2;
  --ok-line: #a3ecce;
  --ok-ink: #075238;
  --warn: #a35c00;
  --warn-bg: #fff7e8;
  --warn-line: #f6d79b;
  --warn-ink: #7a4500;
  --danger: #c8312b;
  --danger-bg: #fdf0ef;
  --danger-line: #f4c4c1;
  --danger-ink: #8f1f1a;
  --info: #0b6a8a;
  --info-bg: #ecf7fb;
  --info-line: #b9e2ef;
  --info-ink: #08506a;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgb(5 20 15 / 0.05);
  --shadow: 0 1px 3px rgb(5 20 15 / 0.06), 0 8px 24px -12px rgb(5 20 15 / 0.12);
  --shadow-lg: 0 24px 48px -24px rgb(5 20 15 / 0.28), 0 4px 12px rgb(5 20 15 / 0.05);
  --shadow-mint: 0 10px 30px -10px rgb(52 227 164 / 0.55);
  --ring: 0 0 0 3px rgb(52 227 164 / 0.35);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  color-scheme: light;
}

/* Dark theme — "vert nuit". Follows the device unless the sun/moon toggle chose. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #eef5f1;
    --ink-2: #d6e3dc;
    --text: #bccbc4;
    --muted: #8fa199;
    --faint: #66786f;
    --line: #1b2f27;
    --line-2: #284037;
    --bg: #06120e;
    --bg-soft: #0a1813;
    --bg-sunk: #0f201a;
    --surface: #0c1b16;
    --surface-2: #10221b;
    --brand: var(--mint);
    --brand-600: #66ebbb;
    --brand-700: #8ff0cc;
    --brand-50: rgb(52 227 164 / 0.08);
    --brand-100: rgb(52 227 164 / 0.14);
    --brand-200: rgb(52 227 164 / 0.3);
    --ok: #4be7ae;
    --ok-bg: rgb(52 227 164 / 0.1);
    --ok-line: rgb(52 227 164 / 0.3);
    --ok-ink: #8ff0cc;
    --warn: #f3b453;
    --warn-bg: rgb(243 180 83 / 0.1);
    --warn-line: rgb(243 180 83 / 0.3);
    --warn-ink: #f7cd8a;
    --danger: #ff7b73;
    --danger-bg: rgb(255 123 115 / 0.1);
    --danger-line: rgb(255 123 115 / 0.3);
    --danger-ink: #ffaba5;
    --info: #6cc8e8;
    --info-bg: rgb(108 200 232 / 0.1);
    --info-line: rgb(108 200 232 / 0.3);
    --info-ink: #a6def1;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px rgb(0 0 0 / 0.35), 0 8px 24px -12px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 24px 48px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #eef5f1;
  --ink-2: #d6e3dc;
  --text: #bccbc4;
  --muted: #8fa199;
  --faint: #66786f;
  --line: #1b2f27;
  --line-2: #284037;
  --bg: #06120e;
  --bg-soft: #0a1813;
  --bg-sunk: #0f201a;
  --surface: #0c1b16;
  --surface-2: #10221b;
  --brand: var(--mint);
  --brand-600: #66ebbb;
  --brand-700: #8ff0cc;
  --brand-50: rgb(52 227 164 / 0.08);
  --brand-100: rgb(52 227 164 / 0.14);
  --brand-200: rgb(52 227 164 / 0.3);
  --ok: #4be7ae;
  --ok-bg: rgb(52 227 164 / 0.1);
  --ok-line: rgb(52 227 164 / 0.3);
  --ok-ink: #8ff0cc;
  --warn: #f3b453;
  --warn-bg: rgb(243 180 83 / 0.1);
  --warn-line: rgb(243 180 83 / 0.3);
  --warn-ink: #f7cd8a;
  --danger: #ff7b73;
  --danger-bg: rgb(255 123 115 / 0.1);
  --danger-line: rgb(255 123 115 / 0.3);
  --danger-ink: #ffaba5;
  --info: #6cc8e8;
  --info-bg: rgb(108 200 232 / 0.1);
  --info-line: rgb(108 200 232 / 0.3);
  --info-ink: #a6def1;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px rgb(0 0 0 / 0.35), 0 8px 24px -12px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 24px 48px -24px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1,
h2,
.serif {
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
}
h4 {
  font-size: 1rem;
  font-weight: 650;
}
.h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
small,
.small {
  font-size: 0.875rem;
}
.xs {
  font-size: 0.78rem;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.ink {
  color: var(--ink);
}
.ink-inverse {
  color: var(--on-deep);
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.nowrap {
  white-space: nowrap;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.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;
}
.hidden {
  display: none !important;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 6px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--brand-100);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: var(--on-deep);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
  color: var(--on-deep);
}

.icon {
  display: inline-block;
  vertical-align: -0.2em;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 760px;
}
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.lead-text {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stack > * + * {
  margin-top: 16px;
}
.stack-sm > * + * {
  margin-top: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-wrap {
  flex-wrap: wrap;
}
.row-between {
  justify-content: space-between;
}
.row-end {
  justify-content: flex-end;
}
.row-center {
  justify-content: center;
}
.row-top {
  align-items: flex-start;
}
.grow {
  flex: 1 1 auto;
  min-width: 0;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 40px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 72px 0;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 11px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover {
  text-decoration: none;
  color: var(--btn-fg);
  border-color: var(--faint);
  background: var(--bg-soft);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-primary {
  --btn-bg: var(--mint);
  --btn-fg: var(--on-mint);
  --btn-border: var(--mint);
  font-weight: 700;
  box-shadow: 0 8px 22px -12px rgb(52 227 164 / 0.8);
}
.btn-primary:hover {
  background: var(--mint-600);
  border-color: var(--mint-600);
  color: var(--on-mint);
}
.btn-dark {
  --btn-bg: var(--deep);
  --btn-fg: #fff;
  --btn-border: var(--deep);
}
.btn-dark:hover {
  background: var(--deep-3);
  border-color: var(--deep-3);
  color: var(--on-deep);
}
:root[data-theme='dark'] .btn-dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--deep);
  --btn-border: var(--ink);
}
:root[data-theme='dark'] .btn-dark:hover {
  background: var(--surface);
  color: var(--deep);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn-dark {
    --btn-bg: var(--ink);
    --btn-fg: var(--deep);
    --btn-border: var(--ink);
  }
  :root:not([data-theme='light']) .btn-dark:hover {
    background: var(--surface);
    color: var(--deep);
  }
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
}
.btn-ghost:hover {
  background: var(--bg-sunk);
  border-color: transparent;
}
.btn-danger {
  --btn-bg: var(--bg);
  --btn-fg: var(--danger);
  --btn-border: #fecaca;
}
.btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger-solid {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: var(--danger);
}
.btn-danger-solid:hover {
  background: var(--danger-ink);
  color: var(--on-deep);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-xs {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: 7px;
  gap: 4px;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  padding: 8px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}
.inline-form {
  display: inline;
}

/* ── Tags, badges ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 999px;
  background: var(--bg-sunk);
  color: var(--text);
  white-space: nowrap;
}
.tag .icon {
  width: 0.95em;
  height: 0.95em;
}
.tag-brand {
  background: var(--brand-50);
  color: var(--brand-700);
}
.tag-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.tag-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.tag-outline {
  background: transparent;
  border: 1px solid var(--line-2);
}
.tag-d-web,
.tag-d-marketing,
.tag-d-design,
.tag-d-copywriting,
.tag-d-video,
.tag-d-communications,
.tag-d-photography,
.tag-d-sales {
  background: var(--brand-50);
  color: var(--brand-700);
}
.status-new {
  background: var(--brand-50);
  color: var(--brand-700);
}
.status-contacted {
  background: var(--warn-bg);
  color: var(--warn);
}
.status-replied {
  background: var(--info-bg);
  color: var(--info);
}
.status-won {
  background: var(--ok-bg);
  color: var(--ok);
}
.status-lost,
.status-archived {
  background: var(--bg-sunk);
  color: var(--muted);
}
.count-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 0 7px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
}
.count-badge.warn {
  background: var(--warn);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-sm {
  padding: 18px;
  border-radius: var(--radius);
}
.card-flat {
  box-shadow: none;
}
.card-soft {
  background: var(--bg-soft);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-head h2,
.card-head h3 {
  margin: 0;
}
.card h2 {
  font-size: 1.35rem;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-icon .icon {
  width: 22px;
  height: 22px;
}
.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.callout-amber {
  border-color: var(--warn);
  background: var(--warn-bg);
}
.callout-green {
  border-color: var(--mint-600);
  background: var(--ok-bg);
}
.callout strong {
  color: var(--ink);
}

/* ── Alerts / flash ─────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.alert .icon {
  margin-top: 3px;
}
.alert-success {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-ink);
}
.alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger-ink);
}
.alert-warning {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}
.alert-info {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--info-ink);
}
.alert p:last-child {
  margin: 0;
}
.flash-stack {
  margin-bottom: 8px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  align-content: start;
  gap: 6px;
}
.field > label,
.label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.field-error {
  font-size: 0.84rem;
  color: var(--danger);
  font-weight: 500;
}
.input,
.select,
.textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 11px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--danger);
}
.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.textarea-tall {
  min-height: 280px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select-sm {
  padding: 5px 30px 5px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  background-position: right 8px center;
}
.input-code {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex: none;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.choice input:focus-visible + span {
  box-shadow: var(--ring);
}
.choice span .icon {
  color: var(--brand);
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.password-meter {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.password-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: width 0.2s, background 0.2s;
}
.password-meter[data-score='1'] i {
  width: 25%;
}
.password-meter[data-score='2'] i {
  width: 50%;
  background: var(--warn);
}
.password-meter[data-score='3'] i {
  width: 75%;
  background: #84cc16;
}
.password-meter[data-score='4'] i {
  width: 100%;
  background: var(--ok);
}
@media (max-width: 480px) {
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  position: relative; /* keeps absolutely-positioned .sr-only text inside the scroller */
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table-compare td:not(:first-child),
.table-compare th:not(:first-child) {
  text-align: center;
}
.table-compare .yes,
.table-compare .no {
  display: inline-flex;
  vertical-align: middle;
}
.table-compare .yes {
  color: var(--ok);
}
.table-compare .no {
  color: var(--faint);
}
.table-compare .hl {
  background: var(--brand-50);
}

/* ── Marketing header (always dark, as in the mock-up) ──────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(9 26 20 / 0.86);
  border-bottom: 1px solid var(--deep-line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--on-deep);
}
.site-header.is-scrolled {
  background: rgb(7 21 16 / 0.96);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.site-header .brand,
.site-footer .brand {
  color: var(--on-deep);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #c4d3cc;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--on-deep);
  text-decoration: none;
}
.nav-links-cta {
  display: none;
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-signin {
  color: #e2ece7;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-signin:hover {
  color: var(--on-deep);
  text-decoration: none;
}
.theme-toggle,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.04);
  color: #e2ece7;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover,
.nav-toggle:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.24);
}
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.theme-toggle .icon,
.nav-toggle .icon {
  width: 18px;
  height: 18px;
}
.theme-toggle-light {
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--ink);
}
.theme-toggle-light:hover {
  background: var(--bg-soft);
  border-color: var(--faint);
}
/* Show the icon of the theme you'd switch to. Hidden until main.js wires the button. */
html:not(.js) .theme-toggle {
  visibility: hidden;
}
.theme-moon {
  display: none;
}
:root[data-theme='light'] .theme-sun {
  display: none;
}
:root[data-theme='light'] .theme-moon {
  display: inline-block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-sun {
    display: none;
  }
  :root:not([data-theme]) .theme-moon {
    display: inline-block;
  }
}
.nav-toggle {
  display: none;
}
@media (max-width: 1080px) {
  .nav-links {
    gap: 18px;
  }
  .nav-signin {
    display: none;
  }
}
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
  }
  .nav-desktop {
    display: none !important;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--deep);
    border-bottom: 1px solid var(--deep-line);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6);
  }
  .nav.is-open .nav-links {
    display: flex;
  }
  .nav-links li a {
    display: block;
    padding: 13px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--deep-line);
  }
  .nav-links-cta {
    display: grid;
    gap: 10px;
    padding-top: 16px;
  }
  .nav-links-cta a {
    border-bottom: 0 !important;
  }
  .nav-links .nav-links-cta a.btn {
    display: flex;
    justify-content: center;
    padding: 13px 18px;
    color: var(--btn-fg);
  }
}

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #f2f7f4;
  --btn-border: rgb(255 255 255 / 0.22);
}
.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.4);
  color: var(--on-deep);
}

/* ── Landing sections ───────────────────────────────────────── */
.section-alt {
  background: var(--bg-soft);
}
.section-tight {
  padding: 48px 0 72px;
}
.section-dark {
  position: relative;
  background: radial-gradient(900px 500px at 85% 0%, rgb(52 227 164 / 0.12), transparent 60%), var(--deep);
  color: var(--on-deep-muted);
  overflow: hidden;
}
.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: var(--on-deep);
}
.section-dark .eyebrow {
  color: var(--mint);
}
.sec-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.sec-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head h2 {
  margin-bottom: 14px;
}
.sec-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}
.section-dark .sec-lead {
  color: var(--on-deep-muted);
}
.strong-link {
  font-weight: 700;
  color: var(--ink);
}
.fineprint {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-deep-muted);
  background:
    radial-gradient(800px 520px at 78% 30%, rgb(52 227 164 / 0.14), transparent 62%),
    radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--deep);
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.04);
  color: #dbe7e1;
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-pill .live-dot,
.scan-pill .live-dot {
  color: var(--mint);
  box-shadow: 0 0 0 4px rgb(52 227 164 / 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgb(52 227 164 / 0.05);
  }
}
.hero h1 {
  color: var(--on-deep);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
.hero h1 .accent {
  display: block;
  color: var(--mint);
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #b9c9c1;
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: #c4d3cc;
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-checks .icon {
  color: var(--mint);
}

/* The mission machine */
.machine {
  position: relative;
  min-height: 560px;
}
.machine-ghost {
  position: absolute;
  top: 0;
  left: 6%;
  right: 4%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.05);
  color: rgb(255 255 255 / 0.18);
  font-size: 0.8rem;
  transform: rotate(-1.2deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.machine-window {
  --slot: 152px;
  position: relative;
  height: 540px;
  margin-top: 28px;
  overflow: hidden;
  perspective: 1200px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%);
}
.machine-track {
  list-style: none;
  margin: 0;
  padding: 10px 6% 0;
  display: grid;
  gap: 16px;
}
.machine-track.is-shifting {
  transform: translateY(calc(-1 * var(--slot)));
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}
.mcard {
  height: 136px;
  perspective: 1000px;
}
.mcard:nth-child(odd) {
  transform: rotate(-0.8deg);
}
.mcard:nth-child(even) {
  transform: rotate(0.6deg) translateX(-6px);
}
.mcard-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.mcard.is-mission .mcard-inner {
  transform: rotateX(180deg);
}
.mcard-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mcard-offer {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.035));
  border: 1px solid rgb(255 255 255 / 0.1);
  color: #9fb1a9;
  transition: opacity 0.6s, filter 0.6s;
}
.mcard-mission {
  transform: rotateX(180deg);
  background: linear-gradient(180deg, rgb(19 61 46 / 0.96), rgb(11 40 30 / 0.96));
  border: 1px solid rgb(52 227 164 / 0.55);
  box-shadow: 0 0 0 1px rgb(52 227 164 / 0.12), 0 18px 40px -18px rgb(52 227 164 / 0.55);
  color: #c9dbd3;
}
.mcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}
.mcard-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ea198;
}
.pill-cdi {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: #c4d3cc;
}
.badge-found {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 0.72rem;
  font-weight: 700;
}
.mcard-title {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--on-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcard-offer .mcard-title {
  color: #e0eae5;
}
.mcard-meta,
.mcard-quote,
.mcard-dm {
  margin: 0;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcard-quote {
  margin-top: auto;
  font-style: italic;
  color: #7f938a;
}
.mcard-dm .grow {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcard-dm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.avatar-xs {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: var(--on-deep);
  font-size: 0.6rem;
  font-weight: 800;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: var(--mint);
  font-weight: 700;
  font-size: 0.8rem;
}
.verified .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 3;
}
.mcard-discarded {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(255 123 115 / 0.16);
  color: #ffb0aa;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s;
}
.mcard.is-discarded .mcard-offer {
  opacity: 0.38;
  filter: saturate(0.4);
}
.mcard.is-discarded .mcard-discarded {
  opacity: 1;
}
.mcard.is-discarded .pill-cdi {
  visibility: hidden;
}
.scanline {
  position: absolute;
  left: -8%;
  right: -4%;
  top: calc(10px + var(--slot) + 68px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(52 227 164 / 0.9) 18%, var(--mint) 70%, transparent);
  box-shadow: 0 0 18px 2px rgb(52 227 164 / 0.45);
  pointer-events: none;
}
.scan-pill {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgb(52 227 164 / 0.5);
  background: rgb(5 20 15 / 0.92);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.machine-counters {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: grid;
  gap: 12px;
  margin: 0;
  z-index: 2;
}
.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 250px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(9 26 20 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.8);
}
.counter dt {
  font-size: 0.86rem;
  color: #d5e2dc;
}
.counter dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

/* Score ring */
.ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
}
.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 3.2;
}
.ring-fg {
  fill: none;
  stroke: var(--mint-600);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.ring-value {
  position: relative;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}
.ring-sm {
  width: 34px;
  height: 34px;
}
.ring-sm .ring-value {
  font-size: 0.74rem;
}
.ring-dark .ring-bg {
  stroke: rgb(255 255 255 / 0.12);
}
.ring-dark .ring-fg {
  stroke: var(--mint);
}
.ring-dark .ring-value {
  color: var(--on-deep);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.time-pill,
.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 6px;
  height: 6px;
}
.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.recap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.recap .h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.tick-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tick-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.tick-list strong {
  color: var(--ink);
}
.check-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  border: 1.6px solid var(--mint-600);
  color: var(--green-text);
}
.check-dot .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3.2;
}
.device {
  margin: 0;
  padding: 9px;
  border-radius: 26px;
  background: var(--deep);
  box-shadow: var(--shadow-lg);
}
.device-screen {
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.device-head strong {
  display: block;
  color: var(--ink);
}
.device-head span:not(.soft-pill) {
  font-size: 0.82rem;
  color: var(--muted);
}
.soft-pill {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
}
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.device-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.device-list li + li {
  border-top: 1px solid var(--line);
}
.d-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.d-meta,
.d-dm {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.d-dm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.device .avatar-xs,
.shortlist .avatar-sm {
  background: var(--bg-sunk);
  color: var(--ink);
}
.device .verified {
  color: var(--green-text);
}
.d-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}
.d-tag.is-new {
  border-color: transparent;
  background: var(--brand-50);
  color: var(--brand);
}

/* Benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.benefit-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--deep-3), var(--deep));
  color: var(--mint);
  margin-bottom: 26px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.icon-tile .icon {
  width: 22px;
  height: 22px;
}
.icon-tile-sm {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 10px;
}
.icon-tile-sm .icon {
  width: 17px;
  height: 17px;
}
.benefit-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
}

/* Time saved */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: 18px;
}
.time-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.time-card p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.time-card strong {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.time-card small {
  font-size: 1.1rem;
  margin-left: 3px;
  color: var(--muted);
}
.time-total {
  justify-content: flex-start;
  gap: 14px;
  background: linear-gradient(160deg, var(--deep-3), var(--deep));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.time-total p {
  color: #dbe7e1;
}
.time-total strong {
  color: var(--mint);
  font-size: 4rem;
  margin-top: 26px;
}
.time-total small {
  color: #dbe7e1;
}
.time-total span {
  color: #c4d3cc;
  line-height: 1.6;
}

/* Missions by discipline */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mission-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mission-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1rem;
}
.mission-card h3 a {
  color: var(--ink);
}
.mission-example {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.m-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.m-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.m-meta strong {
  color: var(--brand);
  white-space: nowrap;
}
.missing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
}
.missing-bar p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

/* Companies */
.companies-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.companies-grid .sec-head {
  margin-bottom: 30px;
}
.stat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.stat-box {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--deep-line);
  background: rgb(255 255 255 / 0.03);
}
.stat-box strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--mint) !important;
  margin-bottom: 8px;
}
.stat-box span {
  font-size: 0.92rem;
}
.num-steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.num-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.num-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--deep-line);
  background: rgb(255 255 255 / 0.04);
  color: var(--on-deep);
  font-size: 0.8rem;
  font-weight: 700;
}
.num-steps li > span:last-child {
  padding-top: 5px;
}
.num-steps-light .num-badge {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--ink);
}
.shortlist {
  margin: 0;
  border-radius: 20px;
  background: var(--surface);
  color: #2c3c35;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
  overflow: hidden;
}
.shortlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #e1e9e4;
}
.shortlist-head strong {
  display: block;
  color: #05140f !important;
  font-size: 1.05rem;
}
.shortlist-head span:not(.soft-pill) {
  font-size: 0.84rem;
  color: #5d6c66;
}
.shortlist .soft-pill {
  background: #f3f6f4;
  color: #5d6c66;
  white-space: nowrap;
}
.shortlist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shortlist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
}
.shortlist li + li {
  border-top: 1px solid #e1e9e4;
}
.avatar-sm {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #e1e9e4;
  background: #f6f8f7 !important;
  color: #13271f !important;
  font-size: 0.74rem;
  font-weight: 700;
}
.s-name {
  margin: 0;
  font-weight: 700;
  color: #05140f;
}
.s-meta {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #5d6c66;
}
.badge-ok {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8faf2;
  color: #0b7a55;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 2px;
}
.s-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #05140f !important;
  font-variant-numeric: tabular-nums;
}
.s-score.is-top {
  color: #0b7a55 !important;
}

/* Pricing (landing + pricing page) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
}
.plan-audience {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 0.74rem;
  font-weight: 700;
}
.plan-card h3 {
  font-size: 1.2rem;
  margin: 10px 0 14px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 20px;
}
.plan-price strong {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.plan-price span {
  font-size: 0.84rem;
  color: var(--muted);
}
.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
}
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan-features .icon {
  margin-top: 3px;
  color: var(--mint-600);
  stroke-width: 3;
}
.plan-card .btn {
  margin-top: auto;
}
.plan-card.is-popular {
  background: linear-gradient(170deg, var(--deep-3), var(--deep) 70%);
  border-color: transparent;
  color: #d5e2dc;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.plan-card.is-popular h3,
.plan-card.is-popular .plan-price strong {
  color: var(--on-deep);
}
.plan-card.is-popular .plan-audience,
.plan-card.is-popular .plan-price span {
  color: #a9bab2;
}
.plan-card.is-popular .plan-features .icon {
  color: var(--mint);
}
.plan-card.is-popular .btn-primary {
  box-shadow: var(--shadow-mint);
}
.founders-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--brand-50), var(--brand-100));
}
.founders-bar p {
  margin: 0;
  color: var(--text);
}
.founders-bar strong {
  color: var(--brand);
}
.founders-left {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Commitments */
.trust-band .sec-head {
  margin-bottom: 30px;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.trust-list .icon {
  color: var(--brand);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.faq-plus {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  transition: transform 0.2s;
}
.faq-plus .icon {
  width: 14px;
  height: 14px;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}
.faq-item p {
  margin: -6px 0 22px;
  max-width: 640px;
  color: var(--muted);
}
/* Legacy FAQ (affiliates page) */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Sign-up */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.signup-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.signup-card-done .btn {
  margin-top: 8px;
}
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.seg-tab {
  padding: 10px 12px;
  border-radius: 9px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.seg-tab:hover {
  color: var(--ink);
  text-decoration: none;
}
.seg-tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}
.form-grid > .col-2,
.form-grid > .alert {
  grid-column: 1 / -1;
}
.form-legal {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.founder-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Inner marketing pages ──────────────────────────────────── */
.page-head {
  padding: 72px 0 40px;
  background: var(--bg);
}
.page-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-head .sec-lead,
.page-head .lead-text {
  max-width: 680px;
}
.page-head.center .sec-lead {
  margin: 0 auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-proof .icon {
  color: var(--mint);
}
.hero .lead-text {
  color: #b9c9c1;
}
.hero .eyebrow {
  color: var(--mint);
}
.hero em {
  font-style: normal;
  color: var(--mint);
}
.hero .card {
  color: var(--text);
}
.hero .btn:not(.btn-primary) {
  --btn-bg: transparent;
  --btn-fg: #f2f7f4;
  --btn-border: rgb(255 255 255 / 0.22);
}
.stage-time {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}
.discipline-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.discipline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
  text-decoration: none;
  color: var(--text);
}
.discipline-card h3 {
  margin: 0;
}
.cta-band {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: radial-gradient(600px 300px at 90% 0%, rgb(52 227 164 / 0.16), transparent 60%), var(--deep);
  color: var(--on-deep-muted);
  text-align: center;
}
.cta-band h2 {
  color: var(--on-deep);
}
.cta-band p {
  color: var(--on-deep-muted);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check-list .icon {
  margin-top: 4px;
  color: var(--mint-600);
  stroke-width: 3;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}
.avatar-locked {
  background: var(--bg-sunk);
  color: var(--muted);
}
.avatar-locked .icon {
  width: 15px;
  height: 15px;
}
.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.score meter {
  width: 64px;
  height: 7px;
}

/* App billing cards */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-card.popular {
  border-color: var(--mint-600);
  box-shadow: 0 0 0 1px var(--mint-600), var(--shadow);
}
.price-card.current {
  background: var(--bg-soft);
}
.price-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--on-mint);
  font-size: 0.74rem;
  font-weight: 700;
}
.price-card h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.price-tagline {
  color: var(--muted);
  font-size: 0.9rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0;
}
.price strong {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.price span {
  color: var(--muted);
  font-size: 0.86rem;
}
.price-card .check-list {
  margin-bottom: 22px;
  font-size: 0.92rem;
}
.price-card .btn,
.price-card form {
  margin-top: auto;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang-switch a,
.lang-switch button {
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch a:hover,
.lang-switch button:hover {
  color: var(--ink);
  text-decoration: none;
}
.lang-switch [aria-current='true'] {
  background: var(--bg-sunk);
  color: var(--ink);
}
.lang-switch-dark {
  border-color: var(--deep-line);
  background: transparent;
}
.lang-switch-dark a {
  color: #8ea198;
}
.lang-switch-dark a:hover,
.lang-switch-dark [aria-current='true'] {
  background: rgb(255 255 255 / 0.08);
  color: var(--on-deep);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  color: #8ea198;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p {
  margin: 16px 0 18px;
  max-width: 300px;
  line-height: 1.65;
}
.footer-title {
  margin: 4px 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ea198;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer a {
  color: #d5e2dc;
}
.site-footer a:hover {
  color: var(--on-deep);
}
.site-footer .btn-primary {
  color: var(--on-mint);
}
.footer-mail {
  font-weight: 700;
  color: #fff !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--deep-line);
  font-size: 0.84rem;
}

/* ── Responsive (landing) ───────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .machine {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .time-total {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .time-total strong {
    margin-top: 0;
  }
  .plan-grid,
  .mission-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-card.is-popular {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .recap,
  .companies-grid,
  .faq-grid,
  .signup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid .sec-head,
  .signup-grid .sec-head {
    margin-bottom: 0;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 44px 0 56px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero-lead {
    font-size: 1.02rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .machine {
    min-height: 0;
  }
  .machine-window {
    --slot: 140px;
    height: 330px;
  }
  .mcard {
    height: 124px;
  }
  .machine-ghost {
    display: none;
  }
  .machine-counters {
    position: static;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }
  .counter {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .counter dt {
    font-size: 0.78rem;
  }
  .steps,
  .benefit-grid,
  .mission-grid,
  .plan-grid,
  .stat-pair,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .time-card {
    min-height: 150px;
    padding: 18px;
  }
  .time-card strong {
    font-size: 2.4rem;
  }
  .device-list li {
    padding: 14px;
    gap: 12px;
  }
  .d-tag {
    display: none;
  }
  .shortlist li,
  .shortlist-head {
    padding-left: 16px;
    padding-right: 16px;
  }
  .signup-card {
    padding: 18px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-band {
    padding: 32px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .machine-track.is-shifting {
    transform: none;
  }
}

/* ── Prose (blog, legal) ────────────────────────────────────── */
.prose {
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.75;
}
.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.2em;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 20px;
  border-left: 4px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-sunk);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5em 0;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.prose th {
  background: var(--bg-soft);
}
.prose strong {
  color: var(--ink);
}
.page-head {
  padding: 72px 0 40px;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.post-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
  color: var(--text);
}
.post-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
}
.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  background: var(--bg);
}
.auth-main {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 5vw, 64px);
}
.auth-main > .row:first-child {
  margin-bottom: auto;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 48px auto;
}
.auth-wide .auth-card {
  max-width: 620px;
}
.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-card .sub {
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-wide .signup-card {
  box-shadow: var(--shadow);
}
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background:
    radial-gradient(600px 420px at 80% 10%, rgb(52 227 164 / 0.16), transparent 60%),
    radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--deep);
  color: var(--on-deep-muted);
}
.auth-aside h2 {
  color: var(--on-deep);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-aside .eyebrow {
  color: var(--mint);
}
.auth-aside .check-list .icon {
  color: var(--mint);
}
.auth-aside .check-list {
  color: #d5e2dc;
}
.auth-foot {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.8rem;
  margin: 8px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-aside {
    display: none;
  }
}

/* ── App shell ──────────────────────────────────────────────── */
.app-body {
  background: var(--bg-soft);
}
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.sidebar .brand {
  padding: 4px 10px 18px;
}
.side-label {
  padding: 14px 12px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 550;
}
.side-link:hover {
  background: var(--bg-sunk);
  color: var(--ink);
  text-decoration: none;
}
.side-link[aria-current='page'] {
  background: var(--brand-50);
  color: var(--brand-700);
}
.side-link .icon {
  color: var(--muted);
}
.side-link[aria-current='page'] .icon {
  color: var(--brand);
}
.side-link .lock {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.side-foot {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.plan-box {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.plan-box strong {
  color: var(--ink);
}
.plan-box meter {
  width: 100%;
  margin: 8px 0 4px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
}
.user-chip .who {
  min-width: 0;
  line-height: 1.3;
}
.user-chip .who strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip .who span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-main {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 64px;
}
.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.app-top h1 {
  font-size: 1.9rem;
  margin: 0;
}
.app-top .sub {
  color: var(--muted);
  margin: 4px 0 0;
}
.mobile-bar {
  display: none;
}
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
}
.banner .grow {
  min-width: 200px;
}
.banner-warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.banner-danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-ink);
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open {
    transform: none;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .scrim {
    position: fixed;
    inset: 0;
    background: rgb(5 20 15 / 0.55);
    z-index: 55;
  }
}

/* Filter chips */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 550;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--faint);
  color: var(--ink);
}
.chip[aria-current='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-deep);
}

/* Lead cards (feed) */
.lead-list {
  display: grid;
  gap: 14px;
}
.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}
.lead-card.is-archived {
  opacity: 0.5;
}
.lead-card h3 {
  margin: 6px 0 4px;
  font-size: 1.08rem;
}
.lead-card h3 a {
  color: var(--ink);
}
.lead-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.lead-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lead-summary {
  margin: 10px 0 12px;
  font-size: 0.94rem;
  color: var(--text);
}
.lead-dm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
}
.lead-dm strong {
  color: var(--ink);
}
.dm-channels {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.dm-channels .icon {
  color: var(--faint);
}
.dm-channels .on {
  color: var(--ok);
}
.lead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.lead-scores {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.lead-scores .score {
  display: grid;
  grid-template-columns: auto 64px 24px;
  gap: 8px;
  text-align: right;
}
.lead-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.thumb {
  color: var(--muted);
}
.thumb[aria-pressed='true'].up {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
.thumb[aria-pressed='true'].down {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
@media (max-width: 720px) {
  .lead-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: var(--brand);
}
.empty h3 {
  margin: 4px 0 0;
}
.empty p {
  max-width: 460px;
  color: var(--muted);
  margin: 0;
}

/* Lead detail */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.detail-grid .card + .card {
  margin-top: 24px;
}
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  font-size: 0.92rem;
  margin: 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.description {
  white-space: pre-line;
  font-size: 0.95rem;
}
.dm-card {
  display: grid;
  gap: 14px;
}
.dm-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.dm-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  min-width: 0;
}
.contact-line a,
.contact-line span.val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-line .icon {
  color: var(--muted);
}
.contact-line .btn {
  margin-left: auto;
}
.tpl-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tpl-preview {
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tpl-subject {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 0.88rem;
}
.timeline-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
}
.timeline-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand-200);
}
@media (max-width: 1080px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kanban */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: start;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 12px;
  background: var(--bg-sunk);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.column.is-over {
  border-color: var(--brand);
  background: var(--brand-50);
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 6px;
}
.column-head h2 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
}
.column-head .n {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.column-head .val {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}
.kcard {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.kcard:active {
  cursor: grabbing;
}
.kcard.is-dragging {
  opacity: 0.5;
}
.kcard h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.kcard h3 a {
  color: var(--ink);
}
.kcard .meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.kcard form {
  display: flex;
  gap: 6px;
}
.kcard .select-sm {
  flex: 1;
}
.column-empty {
  padding: 18px 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--faint);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
}

/* Stat tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.tile {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.tile .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.tile .value {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tile .value.xs-value {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
}
.tile .delta {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Charts (inline SVG, attribute-sized) */
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart .grid-line {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .axis-label {
  font-size: 11px;
  fill: var(--muted);
  font-family: var(--font-sans);
}
.chart .bar-a {
  fill: var(--brand);
}
.chart .bar-b {
  fill: var(--mint-600);
}
.chart .bar-track {
  fill: var(--bg-sunk);
}
.chart .bar-label {
  font-size: 12px;
  fill: var(--ink);
  font-weight: 600;
  font-family: var(--font-sans);
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.legend .a {
  background: var(--brand);
}
.legend .b {
  background: var(--mint-600);
}

/* Settings */
.settings-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.settings-tabs a {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.settings-tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.settings-tabs a[aria-current='page'] {
  color: var(--brand-700);
  border-bottom-color: var(--brand);
}
.settings-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section:first-of-type {
  padding-top: 0;
}
.settings-section h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.settings-section > div:first-child p {
  font-size: 0.9rem;
  color: var(--muted);
}
.danger-zone {
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--danger-bg);
}
@media (max-width: 860px) {
  .settings-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
.qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  margin: 0;
}
.secret-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--brand-200);
  background: var(--brand-50);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.secret-box code {
  flex: 1;
  min-width: 0;
}
.copy-field {
  display: flex;
  gap: 8px;
}
.copy-field .input {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Upgrade prompt */
.upgrade {
  max-width: 620px;
  margin: 40px auto;
  text-align: center;
}
.upgrade .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-200);
}
.error-page pre {
  max-width: 900px;
  overflow: auto;
  text-align: left;
  font-size: 0.8rem;
  background: var(--bg-sunk);
  padding: 16px;
  border-radius: var(--radius);
}

/* Dev mailbox */
.mail-frame {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-deep);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── v9 additions: banners, quotas, dark-mode details ───────── */
.banner-info {
  border-color: var(--info-line);
  background: var(--info-bg);
  color: var(--info-ink);
}
.plan-quota {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.input-narrow {
  max-width: 200px;
}
select.input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
