/* =========================================================================
   TaxTraces — Landing page
   Design system: editorial premium (serif headings + grotesque body)
   Base bleu nuit / bleu profond + accent vert
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Type families (serif swappable via Tweaks) */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Accent (swappable via Tweaks) — default = TaxTraces brand vermilion */
  --accent: #e8463a;
  --accent-soft: color-mix(in oklab, var(--accent) 15%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 38%, transparent);
  --accent-ink: #ffffff;

  /* Light surfaces */
  --bg: #f4f7fb;
  --bg-2: #eaf0f7;
  --surface: #ffffff;
  --ink: #0d1a2d;
  --ink-2: #33455c;
  --muted: #5e7088;
  --line: color-mix(in oklab, #0d1a2d 11%, transparent);
  --line-2: color-mix(in oklab, #0d1a2d 7%, transparent);

  /* Dark surfaces (intensity swappable via Tweaks) */
  --navy-deep: #081020;   /* darkest bands / footer */
  --navy: #0c1a31;        /* primary dark band */
  --navy-2: #122643;      /* raised surface on dark */
  --navy-3: #18304f;      /* hovered / lines */
  --on-dark: #eaf1fb;
  --on-dark-2: #aebfd6;
  --on-dark-mute: #7e92ae;
  --line-dark: color-mix(in oklab, #ffffff 12%, transparent);
  --line-dark-2: color-mix(in oklab, #ffffff 7%, transparent);

  /* Geometry */
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 7px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);

  --shadow-sm: 0 1px 2px rgba(13,26,45,.06), 0 2px 6px rgba(13,26,45,.05);
  --shadow: 0 18px 40px -22px rgba(13,26,45,.34), 0 4px 14px -8px rgba(13,26,45,.14);
  --shadow-lg: 0 40px 90px -40px rgba(8,16,32,.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1320px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(54px, 6vw, 84px); }

/* Section themes */
.band-light { background: var(--bg); color: var(--ink); }
.band-tint  { background: var(--bg-2); color: var(--ink); }
.band-dark  { background: var(--navy); color: var(--on-dark); }
.band-deep  { background: var(--navy-deep); color: var(--on-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}
.band-light .eyebrow, .band-tint .eyebrow { color: color-mix(in oklab, var(--accent) 72%, #0d1a2d); }

.h-display {
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
}
.h-section {
  font-size: clamp(1.95rem, 3.7vw, 3.05rem);
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
}
.band-dark .lead, .band-deep .lead { color: var(--on-dark-2); }
.muted { color: var(--muted); }
.band-dark .muted, .band-deep .muted { color: var(--on-dark-mute); }

.section-head { max-width: 720px; }
.section-head .h-section { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) 24px;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -10px var(--accent);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); box-shadow: 0 12px 30px -12px var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.btn-ghost:hover { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.band-light .btn-ghost, .band-tint .btn-ghost { border-color: var(--line); color: var(--ink); }
.band-light .btn-ghost:hover, .band-tint .btn-ghost:hover { border-color: var(--ink); background: transparent; }
.btn-lg { --pad-y: 16px; padding-inline: 30px; font-size: 16px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--navy-deep) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; position: relative;
  background: linear-gradient(145deg, var(--accent), color-mix(in oklab, var(--accent) 55%, #0c1a31));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -8px var(--accent);
}
.brand-mark::after {
  content: ""; width: 11px; height: 11px; border-radius: 3px;
  background: var(--navy-deep);
  transform: rotate(45deg);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand-name b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--on-dark-2); font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 560px at 78% -8%, color-mix(in oklab, var(--accent) 13%, transparent), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, color-mix(in oklab, #2e63b8 24%, transparent), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: clamp(54px, 7vw, 92px);
  padding-bottom: clamp(64px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 520px at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(900px 520px at 30% 30%, #000 0%, transparent 75%);
  opacity: .5; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  background: color-mix(in oklab, #ffffff 4%, transparent);
  font-size: 13px; color: var(--on-dark-2);
  font-weight: 500;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.hero h1 { margin-top: 26px; }
.hero .lead { margin-top: 24px; max-width: 560px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--on-dark-mute); font-family: var(--mono); letter-spacing: 0.01em;
}
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero title variants — toggled via [data-hero] on <html> */
.hero-variant { display: none; }
:root[data-hero="a"] .hero-variant--a,
:root[data-hero="b"] .hero-variant--b,
:root[data-hero="c"] .hero-variant--c { display: block; }
.hl { color: var(--accent); }

/* trust strip */
.trust {
  position: relative; z-index: 1;
  margin-top: clamp(46px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark-2);
  display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap;
}
.trust-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mute); }
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.tlogo {
  font-size: 13px; font-weight: 600; color: var(--on-dark-2);
  padding: 6px 13px; border: 1px solid var(--line-dark-2); border-radius: 8px;
  background: color-mix(in oklab, #ffffff 3%, transparent);
}

/* ---------- Faux dashboard (hero visual) ---------- */
.window {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-2), color-mix(in oklab, var(--navy-2) 80%, #06101f));
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-dark-2);
  background: color-mix(in oklab, #ffffff 3%, transparent);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-dark); display: block; }
.win-title { font-size: 12.5px; color: var(--on-dark-2); font-family: var(--mono); letter-spacing: 0.01em; }
.win-title b { color: var(--on-dark); font-weight: 500; }
.win-body { display: grid; grid-template-columns: 168px 1fr; min-height: 360px; }
.win-rail { border-right: 1px solid var(--line-dark-2); padding: 14px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in oklab, #06101f 30%, transparent); }
.rail-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mute); margin: 4px 4px 8px; }
.connector { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; font-size: 13px; color: var(--on-dark-2); }
.connector:hover { background: color-mix(in oklab, #ffffff 4%, transparent); }
.connector .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; font-family: var(--mono); color: var(--navy-deep); flex: none; }
.connector .st { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.win-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.win-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wm-title { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.dtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dtable th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mute); padding: 0 8px 9px; }
.dtable td { padding: 9px 8px; border-top: 1px solid var(--line-dark-2); color: var(--on-dark-2); }
.dtable td.name { color: var(--on-dark); font-weight: 500; }
.dtable td.h { font-family: var(--mono); color: var(--on-dark); }
.badge-elig { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); }
.badge-elig::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.badge-part { color: #e7b864; }
.badge-part::before { background: #e7b864; }
.win-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.metric { border: 1px solid var(--line-dark-2); border-radius: var(--r-sm); padding: 12px 13px; background: color-mix(in oklab, #ffffff 3%, transparent); }
.metric .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute); }
.metric .v { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.metric .v small { font-size: 13px; color: var(--on-dark-mute); font-family: var(--sans); }
.bar { height: 6px; border-radius: 100px; background: var(--line-dark); margin-top: 9px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, #2e63b8)); }

/* floating audit card on dashboard */
.float-card {
  position: absolute; z-index: 2;
  right: -14px; bottom: -22px;
  width: 232px;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
}
.float-card .fh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.float-card .fh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.audit-line { display: flex; gap: 10px; margin-top: 11px; font-size: 11.5px; }
.audit-line .t { font-family: var(--mono); color: var(--muted); white-space: nowrap; font-size: 10.5px; }
.audit-line .d { color: var(--ink-2); }
.hero-visual { position: relative; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 18px; }
  .float-card { right: 0; }
}
@media (max-width: 520px) {
  .win-body { grid-template-columns: 1fr; }
  .win-rail { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line-dark-2); }
  .rail-h { width: 100%; }
  .float-card { display: none; }
}

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(34px, 5vw, 72px); align-items: start; }
.pain-list { display: grid; gap: 12px; }
.pain {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pain:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pain .x {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--ink) 7%, transparent);
  color: var(--muted);
}
.pain .x svg { width: 16px; height: 16px; }
.pain p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.pain p b { color: var(--ink); font-weight: 600; }

/* ---------- Solution section ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 52px; }
.sol-card {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.sol-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.05em; }
.sol-card h3 { font-size: 1.18rem; margin-top: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.sol-card p { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- How it works (dark) ---------- */
.steps { display: grid; gap: 0; margin-top: 56px; }
.step {
  display: grid; grid-template-columns: 92px 1fr; gap: clamp(18px, 3vw, 40px);
  padding: 30px 0;
  border-top: 1px solid var(--line-dark-2);
  align-items: start;
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-dark-2); }
.step-n {
  font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600;
  color: color-mix(in oklab, var(--accent) 70%, transparent);
  letter-spacing: -0.04em; line-height: 1;
}
.step-body { max-width: 640px; }
.step-body h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--on-dark); }
.step-body p { color: var(--on-dark-2); margin-top: 10px; font-size: 15.5px; }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-2);
  padding: 5px 11px; border: 1px solid var(--line-dark-2); border-radius: 100px;
  background: color-mix(in oklab, #ffffff 3%, transparent);
}
.step:hover .step-n { color: var(--accent); }

/* ---------- Modules grid ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 52px; }
.mod {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.mod::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0; transition: opacity .2s ease;
}
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.mod:hover::after { opacity: 1; }
.mod-top { display: flex; align-items: center; justify-content: space-between; }
.mod-ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 72%, #0d1a2d);
  border: 1px solid var(--accent-line);
}
.mod-ic svg { width: 22px; height: 22px; }
.status {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 100px; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.status .d { width: 6px; height: 6px; border-radius: 50%; background: #e7b864; }
.mod h3 { font-size: 1.16rem; margin-top: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.mod p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- Benefits ---------- */
.ben-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 64px); align-items: center; }
.ben-list { display: grid; gap: 4px; }
.ben {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-2);
}
.ben:last-child { border-bottom: none; }
.ben .ck {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: color-mix(in oklab, var(--accent) 72%, #0d1a2d);
  margin-top: 1px;
}
.ben .ck svg { width: 15px; height: 15px; }
.ben div h4 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; }
.ben div p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* coherence diagram card */
.flowcard {
  background: var(--navy); color: var(--on-dark);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-dark);
}
.flowcard .fc-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mute); }
.flow-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.flow-node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r);
  background: color-mix(in oklab, #ffffff 4%, transparent);
  border: 1px solid var(--line-dark-2);
  position: relative;
}
.flow-node .fn-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); flex: none; }
.flow-node .fn-ic svg { width: 18px; height: 18px; }
.flow-node .fn-t { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.flow-node .fn-s { font-size: 12px; color: var(--on-dark-mute); font-family: var(--mono); }
.flow-node .fn-meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.flow-connect { display: grid; place-items: center; height: 14px; }
.flow-connect span { width: 1px; height: 14px; background: var(--accent-line); }
.flow-out {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  border: 1px dashed var(--accent-line); background: var(--accent-soft);
  display: flex; align-items: center; gap: 12px;
}
.flow-out .fo-t { font-size: 13.5px; color: var(--on-dark); font-weight: 600; }
.flow-out .fo-t span { color: var(--accent); }

@media (max-width: 880px) {
  .problem-grid, .ben-grid { grid-template-columns: 1fr; }
}

/* ---------- Target / personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 52px; }
.persona {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.persona:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.persona-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--accent); display: grid; place-items: center; }
.persona-ic svg { width: 24px; height: 24px; }
.persona h3 { font-size: 1.3rem; margin-top: 22px; }
.persona p { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.persona ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 9px; }
.persona li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.persona li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); margin-top: 7px; }

/* ---------- Form section ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.form-aside .h-section { color: var(--on-dark); }
.form-aside .lead { margin-top: 20px; }
.aside-points { margin-top: 30px; display: grid; gap: 16px; }
.aside-point { display: flex; gap: 13px; align-items: flex-start; }
.aside-point .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; }
.aside-point .ck svg { width: 14px; height: 14px; }
.aside-point p { font-size: 14.5px; color: var(--on-dark-2); }
.aside-point p b { color: var(--on-dark); font-weight: 600; }

.form-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: #c44b42; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d4574e; box-shadow: 0 0 0 3px color-mix(in oklab, #d4574e 16%, transparent); }
.err { font-size: 12px; color: #c44b42; display: none; }
.field.invalid .err { display: block; }

.fieldset-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span {
  display: inline-block; padding: 8px 13px; border-radius: 100px;
  border: 1px solid var(--line); font-size: 13px; cursor: pointer; white-space: nowrap;
  background: var(--surface); transition: all .15s ease; user-select: none;
}
.chip-opt input:checked + span { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.chip-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-opt span:hover { border-color: var(--ink); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-block: 6px 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; cursor: pointer; }
.consent span { font-size: 13.5px; color: var(--ink-2); }
.field.invalid.consent span { color: #c44b42; }
.form-submit { width: 100%; }
.form-fine { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.55; }


/* ================= FORMULAIRE / CONFIRMATION ================= */

/* État de confirmation */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 8px;
}

/* Classe existante dans ton design */
.form-card.is-sent .form-body {
  display: none;
}

.form-card.is-sent .form-success {
  display: block;
}

/* Alias de sécurité si le JS utilise is-success */
.form-card.is-success .form-body {
  display: none;
}

.form-card.is-success .form-success {
  display: block;
}

.success-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: color-mix(in oklab, var(--accent) 70%, #0d1a2d);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.success-ic svg {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  font-size: 1.6rem;
}

.form-success p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 380px;
  margin-inline: auto;
  font-size: 15px;
}

/* ================= FORMULAIRE / ERREURS ================= */

/* Par défaut, les messages d'erreur restent masqués */
.field .err {
  display: none;
}

/* Affichage des erreurs uniquement sur les champs invalides */
.field.has-error .err {
  display: block;
}

/* Mise en évidence des champs en erreur */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger, #ff6b6b);
  outline-color: var(--danger, #ff6b6b);
}

/* Cas spécifique de la case de consentement */
.consent.has-error,
.field.has-error.consent {
  color: var(--danger, #ffb4b4);
}

/* Message global sous le bouton */
.form-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.form-status[data-status="error"] {
  color: var(--danger, #ffb4b4);
}

.form-status[data-status="loading"] {
  color: var(--muted);
}

/* État du bouton pendant l'envoi */
.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

/* ================= RESPONSIVE EXISTANT ================= */

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reassurance ---------- */
.reassure { text-align: center; }
.reassure .quote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.7vw, 2.05rem); line-height: 1.35; letter-spacing: -0.015em;
  max-width: 920px; margin: 24px auto 0; color: var(--on-dark);
}
.reassure .quote b { color: var(--accent); font-weight: 500; }
.reassure-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--on-dark); padding-block: clamp(54px, 6vw, 80px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand-name { color: var(--on-dark); }
.footer-blurb { color: var(--on-dark-mute); font-size: 14px; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--on-dark-2); padding: 6px 12px; border: 1px solid var(--line-dark-2); border-radius: 100px; }
.foot-status .d { width: 7px; height: 7px; border-radius: 50%; background: #e7b864; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute); font-weight: 600; }
.foot-col ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 11px; }
.foot-col a { font-size: 14.5px; color: var(--on-dark-2); transition: color .18s ease; }
.foot-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--on-dark-mute); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-dark-2); display: grid; place-items: center; color: var(--on-dark-2); transition: all .18s ease; }
.foot-social a:hover { color: var(--accent); border-color: var(--accent-line); }
.foot-social svg { width: 17px; height: 17px; }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Entrance: content is ALWAYS visible (no JS reveal, no opacity animation) ---------- */
.reveal { } /* no-op kept for markup compatibility */
@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Vision / multi-régime ---------- */
.vision {
  margin-top: 30px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,52px);
  align-items: center;
  background: var(--navy); color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg); padding: clamp(26px,3vw,40px);
  box-shadow: var(--shadow);
}
.vision-copy h3 { font-size: clamp(1.4rem,2.4vw,1.95rem); color: var(--on-dark); margin-top: 16px; }
.vision-copy .eyebrow { color: var(--accent); }
.vision-copy p { color: var(--on-dark-2); margin-top: 14px; font-size: 15.5px; }
.vision-regimes { display: grid; gap: 10px; }
.regime {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: var(--r);
  background: color-mix(in oklab, #ffffff 4%, transparent);
  border: 1px solid var(--line-dark-2);
}
.regime.is-active { border-color: var(--accent-line); background: var(--accent-soft); }
.rg-flag {
  flex: none; width: 42px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500;
  background: color-mix(in oklab, #ffffff 8%, transparent); color: var(--on-dark-2);
  border: 1px solid var(--line-dark-2); letter-spacing: 0.04em;
}
.regime.is-active .rg-flag { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.rg-t { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.rg-s { font-size: 12px; color: var(--on-dark-mute); font-family: var(--mono); }
.rg-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.rg-badge.muted { background: transparent; color: var(--on-dark-mute); border-color: var(--line-dark-2); }
@media (max-width: 760px) { .vision { grid-template-columns: 1fr; } }

/* ---------- Reassurance fine print ---------- */
.reassure-fine {
  max-width: 770px; margin: 30px auto 0; font-size: 13px; line-height: 1.65;
  color: var(--on-dark-mute);
}

/* ---------- Tweaks mount ---------- */
#tweaks-root:empty { display: none; }
