:root {
  --paper: oklch(96.5% 0.014 85);
  --paper-2: oklch(93.5% 0.018 82);
  --card: oklch(98.5% 0.008 85);
  --ink: oklch(24% 0.06 260);
  --ink-2: oklch(38% 0.05 260);
  --muted: oklch(52% 0.03 260);
  --rule: oklch(84% 0.02 80);
  --red: #d24b33;
  --red-ink: oklch(48% 0.17 33);
  --blue: #1f5fa8;
  --violet: #7a4fa3;
  --ochre: #b08a14;
  --good: oklch(48% 0.12 150);
  --bad: oklch(50% 0.17 30);
  --display: 'Gloock', 'Georgia', serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 0.8em; }
a { color: inherit; }
b { font-weight: 600; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.dot { color: var(--red); }
.topbar nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.topbar nav a { text-decoration: none; color: var(--ink-2); }
.topbar nav a:hover { color: var(--red-ink); }
@media (max-width: 820px) { .topbar nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px);
  position: relative;
}
.hero::before {
  content: ''; position: absolute; left: var(--gutter); top: clamp(28px, 5vw, 64px);
  width: 96px; height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--card) 33.3% 66.6%, var(--red) 66.6%);
  box-shadow: 0 0 0 1px var(--rule);
}
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 12px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 18px 0 36px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; color: var(--ink-2); }
.lede.strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--red-ink); transform: translateY(-2px); }
.btn.ghost { border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.engagements { list-style: none; counter-reset: e; margin: 0; padding: 0; align-self: end; }
.engagements li {
  counter-increment: e;
  display: grid; grid-template-columns: 56px 1fr; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: 16px;
  opacity: 0; transform: translateY(12px);
  animation: rise 0.8s var(--ease) forwards;
}
.engagements li:last-child { border-bottom: 1px solid var(--rule); }
.engagements li::before { content: counter(e, decimal-leading-zero); font-family: var(--display); font-size: 26px; color: var(--red); }
.engagements li b { color: var(--ink); }
.engagements li:nth-child(1) { animation-delay: .15s } .engagements li:nth-child(2) { animation-delay: .22s }
.engagements li:nth-child(3) { animation-delay: .29s } .engagements li:nth-child(4) { animation-delay: .36s }
.engagements li:nth-child(5) { animation-delay: .43s } .engagements li:nth-child(6) { animation-delay: .5s }
.engagements li:nth-child(7) { animation-delay: .57s }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- Ribbon ---------- */
.ribbon {
  display: flex; white-space: nowrap; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 16px 0; font-family: var(--display); font-size: 22px;
}
.ribbon .track { display: flex; gap: 48px; flex: none; animation: slide 60s linear infinite; }
.ribbon span::after { content: '✦'; color: var(--red); margin-left: 48px; font-size: 14px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(calc(-50% - 24px)); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon .track, .engagements li { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); max-width: 1100px; }
.section-head .num { font-family: var(--display); font-size: clamp(40px, 6vw, 80px); line-height: 0.9; color: var(--red); margin: 0; }
.section-head h2 { font-family: var(--display); font-size: clamp(40px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.02em; }
.section-head .sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin-top: 14px; max-width: 40em; }

/* ---------- Programme ---------- */
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.themes button, .presets button {
  font: 500 15px var(--body); color: var(--ink);
  background: transparent; border: 1.5px solid var(--rule); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all 0.2s var(--ease);
}
.themes button:hover, .presets button:hover { border-color: var(--ink); }
.themes button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { max-width: 1100px; animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.panel h3 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 16px; letter-spacing: -0.01em; }
.panel h4 { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.panel .mt { margin-top: 28px; }
.big { font-size: clamp(19px, 1.8vw, 23px); max-width: 38em; color: var(--ink-2); }
.measures { list-style: none; padding: 0; margin: 12px 0; max-width: 46em; }
.measures li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px dashed var(--rule); }
.measures li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 12px; height: 2px; background: var(--red); }
.measures.cols { columns: 2 320px; column-gap: 48px; max-width: none; }
.measures.cols li { break-inside: avoid; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; }
.inline-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--red-ink); text-decoration: none; border-bottom: 2px solid currentColor; }
.accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin: 24px 0 28px; }
.accounts div { border-top: 2px solid var(--ink); padding-top: 14px; }
.accounts p { color: var(--ink-2); font-size: 16px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-bottom: 8px; }
.s1 { background: var(--blue); } .s2 { background: var(--red); } .s3 { background: var(--violet); } .s4 { background: var(--ochre); }
table.tax { width: 100%; max-width: 980px; border-collapse: collapse; }
.tax th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); }
.tax td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tax td:first-child { font-family: var(--display); font-size: 20px; width: 220px; }

/* ---------- Simulator ---------- */
.sim { background: var(--paper-2); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.presets span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.presets button { background: var(--card); }
.presets button.active { background: var(--red-ink); border-color: var(--red-ink); color: var(--card); }
.sim-grid, .eco-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .sim-grid, .eco-grid { grid-template-columns: 1fr; } }

.controls { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
@media (max-width: 900px) { .controls { position: static; max-height: none; } }
fieldset { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--rule); }
legend { font-family: var(--display); font-size: 22px; margin-bottom: 12px; padding: 0; }
.field { margin: 14px 0; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.field output { font-weight: 700; color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--red-ink); height: 28px; }
select { width: 100%; font: 500 15px var(--body); color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card); }
.seg { display: flex; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.2s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 12px 0; cursor: pointer; }
.check input { accent-color: var(--red-ink); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hyp summary { font-weight: 600; cursor: pointer; padding: 6px 0; }
[hidden] { display: none !important; }

.results { min-width: 0; }
.headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.headline > div { padding: 18px 18px 18px 0; }
.headline > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.headline .label { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.amount { font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1; margin: 0; letter-spacing: -0.02em; transition: color 0.3s; }
.amount.pos { color: var(--good); } .amount.neg { color: var(--bad); }
.amount small { font-family: var(--body); font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
@media (max-width: 620px) {
  .headline { grid-template-columns: 1fr; }
  .headline > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}

.block { margin-bottom: 40px; }
.block h3 { font-family: var(--display); font-size: 26px; margin-bottom: 14px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 8px; }
.chart-head h3 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.dash { height: 0; width: 18px; border-top: 2px dashed var(--muted); border-radius: 0; }
.sw.line { height: 3px; width: 18px; border-radius: 2px; }
.chart-box { position: relative; height: 300px; background: var(--card); border-radius: 14px; padding: 14px 10px 6px; }
.chart-box.short { height: 240px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 52em; }

.breakdown { list-style: none; margin: 0; padding: 0; }
.breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 160px) 86px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.breakdown .what b { display: block; font-weight: 600; font-size: 16px; }
.breakdown .what span { font-size: 13px; color: var(--muted); }
.breakdown .bar { height: 10px; position: relative; }
.breakdown .bar i { position: absolute; top: 0; height: 100%; border-radius: 3px; transition: width 0.5s var(--ease), left 0.5s var(--ease); }
.breakdown .bar::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--rule); }
.breakdown .val { text-align: right; font-weight: 700; }
.breakdown .val.pos { color: var(--good); } .breakdown .val.neg { color: var(--bad); }
.breakdown li.total { border-bottom: 0; border-top: 2px solid var(--ink); }
.breakdown li.total b { font-size: 17px; }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.compare > div { background: var(--card); border-radius: 14px; padding: 16px 18px; }
.compare h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.compare .v { font-family: var(--display); font-size: 30px; }
.compare p { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }

.vigil { background: var(--card); border-radius: 14px; padding: 18px 22px; }
.vigil:empty { display: none; }
.vigil h3 { font-size: 20px; margin-bottom: 8px; }
.vigil ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.vigil li { margin: 6px 0; }

/* ---------- Economy ---------- */
.eco-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eco-kpis .amount { font-size: clamp(28px, 3.4vw, 46px); }
@media (max-width: 760px) { .eco-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eco-kpis > div:nth-child(3) { border-left: 0; padding-left: 0; } }
.budget h3 .muted { font-family: var(--body); font-size: 14px; color: var(--muted); }
.budget-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.budget h4 { display: flex; justify-content: space-between; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 4px 10px; padding: 7px 0; font-size: 14px; }
.bars .bar { grid-column: 1 / -1; height: 6px; background: var(--paper-2); border-radius: 3px; position: relative; overflow: hidden; }
.bars .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width 0.5s var(--ease); }
.bars .n { text-align: right; font-weight: 700; }
.bars .delta { color: var(--good); font-weight: 600; margin-left: 6px; }
.bars .delta.neg { color: var(--bad); }

.compare-table { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 56px; }
@media (max-width: 900px) { .compare-table { grid-template-columns: 1fr; } }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--ink); }
.compare-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare-table td:first-child { font-weight: 600; }
.compare-table td:last-child { color: var(--red-ink); font-weight: 600; }
.money h3 { font-family: var(--display); font-size: 30px; margin-bottom: 10px; }

/* ---------- Portrait ---------- */
.portrait { background: var(--ink); color: var(--paper); }
.portrait .section-head .sub { color: color-mix(in oklch, var(--paper) 75%, var(--ink)); }
.story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story blockquote { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; }
.story blockquote p { margin-bottom: 0.9em; }
.portrait-facts { display: grid; gap: 0; align-content: start; }
.portrait-facts div { border-top: 1px solid color-mix(in oklch, var(--paper) 25%, var(--ink)); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.portrait-facts span { color: color-mix(in oklch, var(--paper) 78%, var(--ink)); font-size: 15px; }
.portrait-facts b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.portrait-facts .cap { grid-column: 1 / -1; font-size: 13px; color: color-mix(in oklch, var(--paper) 60%, var(--ink)); border: 0; padding: 0; }

/* ---------- Honest ---------- */
.risks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; max-width: 1200px; }
.risks div { border-top: 2px solid var(--red); padding-top: 14px; }
.risks h4 { font-family: var(--display); font-size: 23px; margin-bottom: 8px; }
.risks p { color: var(--ink-2); font-size: 16px; }

/* ---------- Timeline ---------- */
.timeline { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; counter-reset: s; }
.steps > li { counter-increment: s; padding: 22px 24px 8px 0; border-top: 6px solid var(--ink); position: relative; }
.steps > li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps > li::before { content: counter(s); position: absolute; top: -21px; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--card); font-family: var(--display); font-size: 18px; display: grid; place-items: center; }
.steps > li + li::before { left: 24px; }
.steps h4 { font-family: var(--display); font-size: 24px; margin: 10px 0; }
.steps ul { padding-left: 18px; margin: 0; color: var(--ink-2); font-size: 15px; }
.steps ul li { margin: 6px 0; }
@media (max-width: 560px) { .steps > li + li { border-left: 0; padding-left: 0; } .steps > li + li::before { left: 0; } .steps > li { margin-top: 28px; } }

/* ---------- Footer ---------- */
.footer { padding: 48px var(--gutter) 64px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 40px; font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 32px; color: var(--ink); }
.footer p { max-width: 70em; }
@media (max-width: 700px) { .footer { grid-template-columns: 1fr; } }

/* ---------- Manifeste ---------- */
.manifeste { max-width: 1280px; }
.m-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .m-open { grid-template-columns: 1fr; } }
.m-lead { font-family: var(--display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.m-prose p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 38em; }
.m-open .m-prose p:first-child::first-letter { font-family: var(--display); float: left; font-size: 4.2em; line-height: 0.8; padding: 6px 10px 0 0; color: var(--red); }

.m-waits { margin: clamp(56px, 8vw, 104px) 0; padding: clamp(32px, 5vw, 64px) 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.m-big { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; max-width: 22em; }
.m-big em { font-style: normal; color: var(--red); }
.m-waits ul { list-style: none; padding: 0; margin: clamp(24px, 4vw, 40px) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.m-waits li { padding: 14px 0; border-bottom: 1px dashed var(--rule); font-size: 18px; color: var(--ink-2); }
.m-waits li:first-child { color: var(--ink); font-weight: 500; }

.m-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px) clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .m-chapters { grid-template-columns: 1fr; } }
.m-chapters h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.m-chapters p { color: var(--ink-2); }
.m-chapters p b { color: var(--ink); }
.refuse { background: var(--ink); color: var(--paper); padding: clamp(24px, 3.5vw, 44px); border-radius: 4px; align-self: start; }
.refuse h3 { border-color: color-mix(in oklch, var(--paper) 25%, var(--ink)); }
.refuse ul { list-style: none; padding: 0; margin: 0; }
.refuse li { padding: 10px 0 10px 28px; position: relative; color: color-mix(in oklch, var(--paper) 80%, var(--ink)); }
.refuse li::before { content: '×'; position: absolute; left: 0; top: 6px; font-family: var(--display); font-size: 22px; color: var(--red); }
.refuse li b { color: var(--paper); }
.refuse .m-coda { margin-top: 18px; font-family: var(--display); font-size: 21px; line-height: 1.3; color: var(--paper); }
.method { margin: 0; }
.method dt { font-family: var(--display); font-size: 22px; margin-top: 16px; }
.method dd { margin: 4px 0 0; color: var(--ink-2); }
.method .inline-link { margin-top: 6px; }

.m-pledge { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px clamp(28px, 5vw, 80px); }
@media (max-width: 900px) { .m-pledge { grid-template-columns: 1fr; } }
.m-pledge h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); }
.m-pledge .m-big, .m-pledge .m-note, .m-pledge .m-sign { grid-column: 1 / -1; }
.m-pledge .m-big { margin-top: 16px; max-width: none; }
.m-note { font-size: 16px; color: var(--muted); max-width: 46em; }
.m-sign { font-family: var(--display); font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.03em; margin: 12px 0 0; }
.m-sign > span:last-child { display: block; color: var(--red); font-size: 0.55em; margin-top: 8px; }

/* =====================================================================
   Lisibilité : texte plus grand, plus contrasté, lignes plus courtes
   ===================================================================== */
:root { --ink-2: oklch(33% 0.05 260); --muted: oklch(46% 0.03 260); }
body { font-size: 18px; line-height: 1.65; }
.section-head .sub { color: var(--ink-2); }
.measures li { padding: 12px 0 12px 26px; }
.big, .lede { line-height: 1.5; }
p, li, dd { max-width: 68ch; }

/* ---------- Hero illustration ---------- */
.hero-art { margin: 0; align-self: center; }
.hero-art img { width: 100%; height: auto; display: block; animation: rise 1s var(--ease) both .1s; }
@media (max-width: 900px) { .hero-art { order: -1; max-width: 560px; } }

/* ---------- Menu mobile ---------- */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; display: grid; min-width: 220px; box-shadow: 0 12px 32px oklch(24% 0.06 260 / 0.15); }
.menu-list a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.menu-list a:hover { background: var(--paper-2); }
@media (max-width: 820px) { .menu { display: block; } }

/* ---------- L'essentiel ---------- */
.ess-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 48px; counter-reset: ess; }
.ess-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); counter-increment: ess; }
.ess-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--red-ink); display: grid; place-items: center; position: relative; }
.ess-icon svg { width: 28px; height: 28px; }
.ess-icon::after { content: counter(ess); position: absolute; top: -4px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 12px/22px var(--body); text-align: center; }
.ess-list h3 { font-family: var(--display); font-size: 25px; line-height: 1.15; margin-bottom: 6px; }
.ess-list p { color: var(--ink-2); margin-bottom: 6px; font-size: 17px; }
.ess-list a { font-weight: 600; color: var(--red-ink); text-decoration: none; font-size: 15px; }
.ess-list a:hover { text-decoration: underline; }

/* ---------- Comment ça marche ---------- */
.how { background: var(--paper-2); }
.how-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.how-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--rule); }
.how-nav a:hover { border-color: var(--ink); }
.how-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--card); border-radius: 22px; padding: clamp(24px, 4vw, 52px); margin-bottom: 24px; scroll-margin-top: 90px; }
.how-card.alt { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.how-card.alt .how-text { order: 2; }
@media (max-width: 900px) { .how-card, .how-card.alt { grid-template-columns: 1fr; } .how-card.alt .how-text { order: 0; } }
.step { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--red-ink); margin-bottom: 8px; }
.how-card h3 { font-family: var(--display); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.how-card h3 em { font-style: normal; color: var(--red); }
.how-text p { color: var(--ink-2); }

.sbar { display: flex; height: 76px; border-radius: 12px; overflow: hidden; gap: 3px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.sbar span { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--card); padding: 0 4px; min-width: 0; }
.seg-net { background: var(--ink); font-size: 16px; }
.seg-s { background: var(--blue); } .seg-c { background: var(--red); } .seg-r { background: var(--ochre); }
.flow { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.flow li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.flow li > b { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 18px; }
.flow p { margin: 4px 0 0; color: var(--ink-2); }
.flow strong { color: var(--ink); font-weight: 600; }

.floors { display: grid; gap: 10px; }
.floor { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; }
.floor h4 { font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.floor p { margin: 0; font-size: 16px; }
.fl { font-family: var(--display); font-size: 36px; text-align: center; }
.f1 { background: var(--blue); color: var(--card); margin: 0; }
.f2 { background: oklch(88% 0.04 255); margin: 0 6%; }
.f3 { background: var(--paper-2); margin: 0 12%; }
.f1 p { color: oklch(93% 0.02 255); }

.own-diagram { padding: 8px 0; }
.own-track { height: 64px; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, oklch(89% 0.02 80) 10px 20px); position: relative; overflow: hidden; }
.own-fill { position: absolute; inset: 14px auto 14px 0; width: 100%; background: linear-gradient(90deg, oklch(80% 0.06 300) 0%, var(--violet) 100%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.own-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.own-steps li { border-top: 3px solid var(--violet); padding-top: 10px; }
.own-steps b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; }
.own-steps span { font-size: 15px; color: var(--ink-2); }
.own-note { font-size: 14px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot-own, .dot-land { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--violet); }
.dot-land { background: repeating-linear-gradient(135deg, var(--paper-2) 0 3px, oklch(84% 0.02 80) 3px 6px); border: 1px solid var(--rule); margin-left: 10px; }
@media (max-width: 560px) { .own-steps { grid-template-columns: 1fr; } }

.before { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 14px; border: 1.5px dashed var(--rule); border-radius: 12px; }
.before p { margin: 0; font-size: 15px; }
.dots { flex: none; width: 92px; height: 46px; background-image: radial-gradient(circle, var(--muted) 1.6px, transparent 1.8px); background-size: 6px 6px; opacity: .6; }
.tax-map { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tax-map li { flex: var(--v) 1 0; min-width: 130px; min-height: calc(70px + var(--v) * 0.6px); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tax-map li:nth-child(1) { background: var(--red-ink); }
.tax-map b { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tax-map span { font-size: 13px; opacity: .85; line-height: 1.35; }
.tax-map em { font-style: normal; font-family: var(--display); font-size: 20px; margin-top: auto; }

.hundred { list-style: none; padding: 0; margin: 0; }
.hundred li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 48px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.hundred i { height: 12px; width: var(--w); background: var(--blue); border-radius: 3px; }
.hundred li:first-child i { background: var(--red); }
.hundred b { text-align: right; font-family: var(--display); font-weight: 400; font-size: 22px; }
@media (max-width: 560px) { .hundred li { grid-template-columns: 1fr 48px; } .hundred i { grid-column: 1 / -1; grid-row: 2; } }

.lexique { margin-top: 28px; background: var(--card); border-radius: 18px; padding: 18px 24px; }
.lexique summary { font-family: var(--display); font-size: 24px; cursor: pointer; }
.lexique dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 40px; margin: 16px 0 4px; }
.lexique dl div { padding: 10px 0; border-top: 1px solid var(--rule); }
.lexique dt { font-weight: 700; }
.lexique dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Termes et bulles ---------- */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.portrait .term { text-decoration-color: var(--paper); }
.tip { position: absolute; z-index: 50; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.45; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 32px oklch(24% 0.06 260 / 0.25); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s var(--ease); }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; color: oklch(80% 0.1 35); margin-bottom: 2px; }

/* ---------- Thèmes : illustration et Aujourd'hui / Demain ---------- */
.panel { overflow: hidden; }
.panel-art { float: right; width: min(38%, 360px); margin: 0 0 16px 32px; }
.panel-art img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .panel-art { float: none; width: 100%; max-width: 380px; margin: 0 0 16px; } }
.before-after { margin: 8px 0 28px; max-width: 760px; }
.ba-head { display: grid; grid-template-columns: 1fr 28px 1fr; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0 0 6px; }
.ba-head span:first-child { color: var(--muted); }
.ba-head span:last-child { grid-column: 3; color: var(--red-ink); }
.before-after ul { list-style: none; padding: 0; margin: 0; }
.before-after li { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 0; padding: 10px 0; border-top: 1px solid var(--rule); max-width: none; }
.was { color: var(--muted); text-decoration: line-through; text-decoration-color: oklch(70% 0.03 260); font-size: 16px; padding-right: 8px; }
.arrow { color: var(--red); font-weight: 700; text-align: center; }
.now { font-weight: 600; font-size: 16px; }
@media (max-width: 560px) {
  .ba-head { display: none; }
  .before-after li { grid-template-columns: 1fr; gap: 2px; }
  .arrow { display: none; }
  .now::before { content: '→ '; color: var(--red); }
}

/* ---------- Profils avec avatars ---------- */
.presets button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; }
.presets button img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.presets span { font-size: 15px; color: var(--ink-2); font-weight: 500; flex-basis: 100%; margin-bottom: 4px; }

/* ---------- Phrases en clair ---------- */
.plain { font-family: var(--display); font-size: clamp(21px, 2vw, 26px); line-height: 1.35; margin: 0 0 22px; max-width: 36em; }
.plain b { font-weight: 400; color: var(--red-ink); }

/* ---------- Portrait 2042 ---------- */
.portrait-side { display: grid; gap: 24px; align-content: start; }
.sarah { margin: 0; max-width: 420px; }
.sarah img { width: 100%; height: auto; display: block; border-radius: 24px; }

.sbar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.sbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sbar-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
@media (max-width: 700px) {
  .themes, .presets, .how-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scroll-snap-type: x proximity; }
  .themes::-webkit-scrollbar, .presets::-webkit-scrollbar, .how-nav::-webkit-scrollbar { display: none; }
  .themes button, .presets button, .how-nav a { flex: none; scroll-snap-align: start; }
  .presets span { display: none; }
}

/* ---------- Une France de l'égalité ---------- */
.eq-quote { margin: 0 0 clamp(32px, 5vw, 56px); font-family: var(--display); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; max-width: 30em; }
.eq-quote em { font-style: normal; color: var(--red); }
.eq-quote cite { display: block; font: 600 14px var(--body); color: var(--muted); margin-top: 10px; font-style: normal; text-transform: uppercase; letter-spacing: .1em; }
.eq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 1000px) { .eq-grid { grid-template-columns: 1fr; } }
.eq-col { background: var(--card); border-radius: 22px; padding: clamp(22px, 3vw, 34px); border-top: 8px solid var(--c); }
.eq-col.geo { --c: var(--blue); } .eq-col.cls { --c: var(--red); } .eq-col.ori { --c: var(--ochre); }
.eq-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--c); margin-bottom: 6px; }
.eq-col h3 { font-family: var(--display); font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; margin-bottom: 12px; }
.eq-lead { color: var(--ink-2); font-size: 17px; }
.eq-col ul { list-style: none; padding: 0; margin: 14px 0 0; }
.eq-col li { padding: 11px 0 11px 22px; border-top: 1px solid var(--rule); position: relative; font-size: 16px; color: var(--ink-2); }
.eq-col li::before { content: ''; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.eq-col li b { color: var(--ink); }

/* ---------- Terre d'accueil ---------- */
.accueil { background: var(--ink); color: var(--paper); }
.accueil .section-head .sub, .accueil p { color: color-mix(in oklch, var(--paper) 82%, var(--ink)); }
.acc-why { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .acc-why { grid-template-columns: 1fr; } }
.acc-text h3, .acc-h { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 18px; color: var(--paper); }
.acc-text h3 em { font-style: normal; color: oklch(72% 0.15 35); }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.f-box { padding: 12px 16px; border-radius: 12px; background: color-mix(in oklch, var(--paper) 12%, var(--ink)); font-weight: 700; color: var(--paper); }
.f-a { background: var(--red); } .f-b { background: var(--blue); }
.f-op { font-family: var(--display); font-size: 30px; color: var(--paper); }
.acc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.acc-facts li { padding: 16px 0; border-top: 1px solid color-mix(in oklch, var(--paper) 22%, var(--ink)); display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
.acc-facts b { font-family: var(--display); font-weight: 400; font-size: 38px; color: var(--paper); line-height: 1; }
.acc-facts span { font-size: 16px; color: color-mix(in oklch, var(--paper) 82%, var(--ink)); }
.sources { font-size: 13px; margin-top: 18px; }
.sources a { color: inherit; }
.acc-h { margin-top: clamp(48px, 7vw, 88px); }
.acc-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .acc-path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .acc-path { grid-template-columns: 1fr; } }
.acc-path li { background: color-mix(in oklch, var(--paper) 8%, var(--ink)); border-radius: 18px; padding: 22px; position: relative; }
.acc-path li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 26px; color: oklch(72% 0.15 35); font-weight: 700; z-index: 1; }
@media (max-width: 900px) { .acc-path li::after { display: none; } }
.p-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--card); font-family: var(--display); font-size: 18px; margin-bottom: 10px; }
.acc-path h4 { font-family: var(--display); font-size: 24px; color: var(--paper); margin-bottom: 6px; }
.acc-path p { font-size: 16px; margin: 0; }
.accueil .term { text-decoration-color: var(--paper); }

/* ---------- Garanti à tous ---------- */
.garanti { background: oklch(93% 0.03 255); border-radius: 14px; padding: 18px 22px; }
.garanti h3 { font-size: 22px; margin-bottom: 8px; }
.garanti ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.garanti li { margin: 6px 0; }
.garanti b { color: var(--ink); }

/* ---------- Hero photo ---------- */
.hero.has-photo { grid-template-columns: minmax(0, 1fr); min-height: min(90vh, 860px); background: #fbf3e2; overflow: hidden; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; }
.has-photo .hero-inner { position: relative; z-index: 1; max-width: min(620px, 46vw); }
.has-photo .hero-art { display: none; }
.has-photo::before { z-index: 1; }
.has-photo .hero-inner::before { content: ''; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(251, 243, 226, .85), rgba(251, 243, 226, 0)); }
@media (max-width: 900px) {
  .hero.has-photo { min-height: 0; padding-top: 0; }
  .hero-bg { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 78% center; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); max-width: none; }
  .has-photo .hero-inner { max-width: none; }
  .has-photo::before { display: none; }
}
@media (min-width: 901px) {
  .hero.has-photo { aspect-ratio: 1942 / 809; min-height: 560px; max-height: 900px; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
  .has-photo .hero-bg { object-position: 75% center; }
  .has-photo .hero-inner { max-width: min(560px, 38vw); }
  .has-photo h1 { font-size: clamp(64px, 8.4vw, 150px); margin: 12px 0 24px; }
  .has-photo .lede { font-size: clamp(16px, 1.3vw, 19px); }
  .has-photo .lede:not(.strong) { display: none; }
}
