/* Direction: dawn mist. Editorial, calm, fashion-magazine serif. */
:root {
  --ink: #1a1d22;
  --ink-2: #4b525b;
  --ink-3: #7d848c;
  --line: rgba(26, 29, 34, 0.18);
  --line-strong: rgba(26, 29, 34, 0.55);
  --accent: #b8673d;
  --paper: rgba(250, 249, 246, 0.72);
  --paper-solid: #f6f5f1;
  --fallback-sky: linear-gradient(180deg, #b4c3d1 0%, #e6e3dc 55%, #f0ddc8 100%);
  --error: #a3361f;
  --ok: #2f6a48;

  --font-serif: "Young Serif", Georgia, serif;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
  --text-h1: clamp(3rem, 1rem + 7.4vw, 8.75rem);
  --text-h2: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);

  --gutter: clamp(1.25rem, 0.5rem + 4vw, 4.5rem);
  --measure: 34rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  color-scheme: light dark;
}

/* Dark theme: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9ecef;
    --ink-2: #aab2ba;
    --ink-3: #737c86;
    --line: rgba(233, 236, 239, 0.16);
    --line-strong: rgba(233, 236, 239, 0.5);
    --accent: #e3a273;
    --paper: rgba(22, 27, 34, 0.7);
    --paper-solid: #161b22;
    --fallback-sky: linear-gradient(180deg, #0d1218 0%, #1a2129 60%, #2a2622 100%);
    --error: #f19a83;
    --ok: #8fd0a9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --ink: #e9ecef;
    --ink-2: #aab2ba;
    --ink-3: #737c86;
    --line: rgba(233, 236, 239, 0.16);
    --line-strong: rgba(233, 236, 239, 0.5);
    --accent: #e3a273;
    --paper: rgba(22, 27, 34, 0.7);
    --paper-solid: #161b22;
    --fallback-sky: linear-gradient(180deg, #0d1218 0%, #1a2129 60%, #2a2622 100%);
    --error: #f19a83;
    --ok: #8fd0a9;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--fallback-sky);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper-solid); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: 0.5rem 1rem; background: var(--ink); color: var(--paper-solid); }
.skip-link:focus { top: 1rem; }

/* Atmosphere ----------------------------------------------------------- */
.fog { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: 0.05; filter: invert(1); } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.05; filter: invert(1); }

/* Header --------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--gutter);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.5rem;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 0.18rem; text-decoration: none; }
.wordmark span { font-family: var(--font-serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.01em; }
.wordmark i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.wordmark i:nth-of-type(2) { width: 3.5px; height: 3.5px; opacity: 0.55; }
.wordmark i:nth-of-type(3) { width: 2px; height: 2px; opacity: 0.25; }
.wordmark:hover i:nth-of-type(1) { transform: translate(4px, -4px); }
.wordmark:hover i:nth-of-type(2) { transform: translate(10px, -9px); opacity: 0.35; }
.wordmark:hover i:nth-of-type(3) { transform: translate(17px, -15px); opacity: 0; }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: 0.9375rem; }
.site-header nav a { text-decoration: none; color: var(--ink-2); transition: color var(--duration-fast); }
.site-header nav a:hover { color: var(--ink); }
.site-header .link-cta { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }

/* Shared type ---------------------------------------------------------- */
.kicker { margin: 0 0 1.5rem; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-2); display: flex; align-items: center; gap: 0.75rem; }
.kicker::before { content: ""; width: 2.5rem; height: 1px; background: var(--line-strong); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; }
h1 em, h2 em { font-style: normal; }
.footnote { margin: 1.5rem 0 0; font-size: 0.8125rem; color: var(--ink-3); }

/* Prologue ------------------------------------------------------------- */
.prologue {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--gutter) clamp(2rem, 5vh, 4rem);
}
.prologue h1 {
  font-size: var(--text-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.prologue h1 em { font-weight: 400; color: var(--ink-2); }
.prologue-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(2rem, 6vh, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.intro { margin: 0; max-width: var(--measure); font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); }
.scroll-hint { flex-shrink: 0; text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-2); display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.scroll-hint::after { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(var(--ink-2), transparent); animation: hint 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* Story ---------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: 0 var(--gutter);
}
.story-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; order: 2; }
.story-steps { list-style: none; margin: 0; padding: 0; order: 1; }
.story-steps li { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; max-width: var(--measure); opacity: 0.28; transition: opacity 700ms var(--ease-out); }
.story-steps li.is-active { opacity: 1; }
.numeral { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.story-steps h2 { font-size: var(--text-h2); line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.story-steps p { margin: 0; font-size: var(--text-lead); line-height: 1.55; color: var(--ink-2); }
.story-end { margin-top: 2rem !important; font-family: var(--font-serif); color: var(--ink) !important; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem) !important; line-height: 1.25 !important; }

@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-stage { order: 1; height: auto; top: 4.5rem; z-index: 2; padding-block: 0.5rem; }
  .story-steps { order: 2; }
  .story-steps li { min-height: 85svh; justify-content: flex-end; padding-bottom: 12svh; }
  .story-steps h2 { font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); margin-bottom: 0.75rem; }
  .story-steps p { font-size: 1.0625rem; }
}

/* The fiche (index card) */
.fiche {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 0 0 auto;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--paper);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -40px rgba(26, 29, 34, 0.45);
}
.fiche-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fiche-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.02em; }
.fiche-score { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; line-height: 1; transition: color var(--duration-normal); }
.fiche-score small { font-size: 0.875rem; color: var(--ink-3); margin-left: 0.15rem; }
.fiche-score.is-clear { color: var(--accent); }
.fiche-name { margin: 0.75rem 0 1.25rem; font-family: var(--font-serif); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.015em; }
.fiche-lines { margin: 0; }
.fiche-lines > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.fiche-lines dt { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.fiche-lines dd { margin: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-lines [data-dissolve] { display: inline-block; transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out); }
.fiche-lines .is-gone [data-dissolve] { opacity: 0; filter: blur(6px); }
.fiche-lines > div.is-gone dt { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.fiche-note { margin: 1rem 0 0; font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .fiche { max-width: none; padding: 0.9rem 1rem 0.6rem; background: color-mix(in srgb, var(--paper-solid) 92%, transparent); }
  .fiche-head { font-size: 0.75rem; }
  .fiche-score { font-size: 1.5rem; }
  .fiche-name { font-size: 1.5rem; margin: 0.15rem 0 0.5rem; }
  .fiche-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .fiche-lines > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.4rem 0; }
  .fiche-lines dt { font-size: 0.625rem; }
  .fiche-lines dd { font-size: 0.8125rem; }
  .fiche-note { display: none; }
}

/* Try with your first name */
.try { margin-top: 2.25rem; }
.try label { display: block; font-size: 0.875rem; color: var(--ink-2); margin-bottom: 0.5rem; }
.try-field { display: flex; border-bottom: 1px solid var(--line-strong); max-width: 22rem; }
.try-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.5rem var(--font-serif); padding: 0.4rem 0; }
.try-field input::placeholder { color: var(--ink-3); }
.try-field input:focus-visible { outline: none; }
.try-field:focus-within { border-bottom-color: var(--ink); }
.try-field button { border: 0; background: none; color: var(--ink); font: 500 0.9375rem var(--font-sans); cursor: pointer; padding: 0 0 0 1rem; }
.try-field button::after { content: " →"; transition: margin var(--duration-normal) var(--ease-out); }
.try-field button:hover::after { margin-left: 0.3rem; }
.try-error { margin: 0.5rem 0 0; min-height: 1.25rem; font-size: 0.875rem; color: var(--error); }
.try-note { margin: 0.25rem 0 0 !important; font-size: 0.8125rem !important; color: var(--ink-3) !important; }

/* Chapters ------------------------------------------------------------- */
.chapter { padding: clamp(6rem, 12vh, 10rem) var(--gutter); }
.chapter h2 { font-size: var(--text-h2); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.chapter h2 em { color: var(--ink-2); }

/* DIY: task table + time calculator */
.alone-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .alone-layout { grid-template-columns: minmax(0, 1fr); } }
.tasks { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tasks th, .tasks td { text-align: left; padding: 0.85rem 0.75rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.tasks thead th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--line-strong); }
.tasks tbody th { color: var(--ink); }
.tasks td:nth-child(2) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.tasks td:nth-child(3) { color: var(--ink); font-weight: 500; }
.tasks tfoot th, .tasks tfoot td { border-bottom: 0; padding-top: 1.1rem; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); white-space: nowrap; }
.tasks tfoot td:nth-child(2) { text-decoration: none; }
.tasks tfoot td:nth-child(2) { color: var(--ink-3); }
.tasks tfoot td:nth-child(3) { color: var(--accent); }
@media (max-width: 560px) {
  .tasks thead { display: none; }
  .tasks tr { display: grid; grid-template-columns: 1fr 1fr; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .tasks th, .tasks td { border: 0; padding: 0.15rem 0; }
  .tasks tbody th, .tasks tfoot th { grid-column: 1 / -1; }
}

.calc { background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); padding: clamp(1.25rem, 3vw, 2rem); }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc-head label { font-size: 0.9375rem; color: var(--ink-2); }
.calc-head output { font-family: var(--font-serif); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; margin: 1rem 0 1.5rem; accent-color: var(--accent); }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.calc-result > div { padding: 1rem 1rem 1rem 0; display: flex; flex-direction: column; gap: 0.2rem; }
.calc-result > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.calc-result span { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.calc-result strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-result > div:first-child strong { color: var(--ink-3); }
.calc-us strong { color: var(--accent); }
.calc-result small { font-size: 0.8125rem; color: var(--ink-2); }
.calc-verdict { margin: 1rem 0 1.5rem; color: var(--ink-2); }
.calc-verdict strong { color: var(--ink); font-weight: 600; }

/* Primary call to action */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.5rem; width: 100%;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper-solid);
  font: 600 1rem var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-normal), color var(--duration-normal), box-shadow var(--duration-normal);
}
.cta::after { content: "→"; transition: transform var(--duration-normal) var(--ease-out); }
.cta:hover { box-shadow: 0 14px 30px -14px rgba(26, 29, 34, 0.55); transform: translateY(-1px); }
.cta:hover::after { transform: translateX(4px); }
.cta:active { transform: translateY(1px); }
.cta--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cta--ghost:hover { background: var(--ink); color: var(--paper-solid); }

/* Pricing */
.billing { display: inline-flex; padding: 0.25rem; margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.billing button { appearance: none; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.9375rem var(--font-sans); padding: 0.6rem 1.15rem; cursor: pointer; transition: background var(--duration-normal), color var(--duration-normal); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper-solid); }
.billing .save { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--accent); }

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.5rem; align-items: stretch; }
.plans .plan--featured { order: 2; }
.plans .plan:nth-child(2) { order: 1; }
.plans .plan:nth-child(3) { order: 3; }
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plans .plan--featured { order: 1; }
  .plans .plan:nth-child(2) { order: 2; }
}
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); }
.plan--featured { background: var(--ink); color: var(--paper-solid); border-top-color: var(--accent); box-shadow: 0 40px 70px -40px rgba(26, 29, 34, 0.65); transform: translateY(-0.75rem); }
@media (max-width: 960px) { .plan--featured { transform: none; } }
.plan--featured .plan-for, .plan--featured .plan-note, .plan--featured .plan-features li { color: color-mix(in srgb, var(--paper-solid) 75%, transparent); }
.plan--featured .was { color: color-mix(in srgb, var(--paper-solid) 50%, transparent); }
.plan--featured .cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan-badge { position: absolute; top: -0.75rem; right: 1.5rem; margin: 0; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.plan h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; }
.plan-for { margin: 0.4rem 0 0; color: var(--ink-2); }
.plan-price { margin: 1.5rem 0 0; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.plan-price .amount, .plan-price .per { white-space: nowrap; }
.plan-price .amount { font-family: var(--font-serif); font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price .amount--text { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); }
.plan-price .per { color: inherit; opacity: 0.7; }
.was { flex-basis: 100%; font-size: 1rem; color: var(--ink-3); text-decoration-thickness: 1px; }
.was:empty { display: none; }
.plan-note { margin: 0.5rem 0 1.5rem; min-height: 2.6em; font-size: 0.875rem; color: var(--ink-2); }
.plan-features { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.65rem; font-size: 0.9375rem; color: var(--ink-2); }
.plan--featured .plan-features { border-top-color: color-mix(in srgb, var(--paper-solid) 18%, transparent); }
.plan-features li { position: relative; padding-left: 1.6rem; }
.plan-features li::before { content: ""; position: absolute; left: 0.1rem; top: 0.35em; width: 0.5rem; height: 0.85rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.assurances { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; font-size: 0.875rem; color: var(--ink-2); }
.assurances strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.95rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: var(--paper-solid); text-decoration: none; font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transform: translateY(170%); transition: transform 450ms var(--ease-out);
}
.sticky-cta span { font-weight: 400; opacity: 0.75; font-size: 0.875rem; }
.sticky-cta.is-shown { transform: none; }
@media (min-width: 901px) { .sticky-cta { display: none; } }

/* Questions */
.qa { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem); max-width: 64rem; margin-left: auto; }
.qa dt { font-family: var(--font-serif); font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem); line-height: 1.15; margin-bottom: 0.6rem; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); } }

/* Epilogue / waitlist */
.epilogue { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6rem var(--gutter); }
.epilogue h2 { font-size: var(--text-h2); line-height: 1.02; letter-spacing: -0.02em; }
.epilogue h2 em { color: var(--ink-2); }
.epilogue > p { margin: 1.5rem 0 0; max-width: 32rem; font-size: var(--text-lead); color: var(--ink-2); }
.waitlist { width: min(100%, 32rem); margin-top: 2.5rem; text-align: left; }
.waitlist-field { display: flex; border-bottom: 1px solid var(--ink); }
.waitlist-field input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.375rem var(--font-serif); padding: 0.6rem 0; }
.waitlist-field input::placeholder { color: var(--ink-3); }
.waitlist-field input:focus-visible { outline: none; }
.waitlist-field button { border: 0; background: none; color: var(--ink); font: 600 1rem var(--font-sans); cursor: pointer; padding-left: 1rem; white-space: nowrap; }
.waitlist-field button::after { content: " →"; display: inline-block; transition: transform var(--duration-normal) var(--ease-out); }
.waitlist-field button:hover::after { transform: translateX(4px); }
.waitlist-field button:disabled { opacity: 0.5; cursor: progress; }
.form-message { margin: 1rem 0 0; min-height: 1.5rem; font-size: 0.9375rem; }
.form-message.is-error { color: var(--error); }
.form-message.is-success { color: var(--ok); }
.consent { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem var(--gutter); font-size: 0.8125rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages ---------------------------------------------------------- */
.legal { max-width: 46rem; margin: 0 auto; padding: 8rem var(--gutter) 5rem; }
.legal h1 { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.legal h2 { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); margin: 3rem 0 1rem; }
.legal h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li, .legal dd, .legal td { color: var(--ink-2); }
.legal p { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal-lead { font-size: var(--text-lead); line-height: 1.5; }
.legal-summary { list-style: none; padding: 1.25rem 1.5rem !important; background: var(--paper); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.9375rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 600; font-size: 0.8125rem; color: var(--ink); }
.legal-dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); margin: 0; }
.legal-dl dt, .legal-dl dd { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font-size: 0.875rem; color: var(--ink-3); padding-right: 1rem; }
@media (max-width: 600px) { .legal-dl { grid-template-columns: minmax(0, 1fr); } .legal-dl dt { border-bottom: 0; padding-bottom: 0; } }
.legal-foot { margin-top: 3rem !important; }
mark.todo { background: color-mix(in srgb, #f2c94c 45%, transparent); color: var(--ink); padding: 0.05em 0.3em; border-radius: 3px; font-size: 0.92em; }
.site-footer nav a[aria-current="page"] { color: var(--ink); }

/* SEO guides ----------------------------------------------------------- */
.crumbs { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.guide-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 0.75rem; border-top: 1px solid var(--line-strong); }
.guide-facts div { padding: 0.9rem 1rem 0.9rem 0; }
.guide-facts div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.guide-facts dt { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.guide-facts dd { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.125rem; color: var(--ink) !important; }
@media (max-width: 560px) { .guide-facts { grid-template-columns: minmax(0, 1fr); } .guide-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.status { display: inline-block; font-family: var(--font-sans) !important; font-size: 0.8125rem !important; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.status--verifiee { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok) !important; }
.status--a-confirmer { background: color-mix(in srgb, #c9963f 20%, transparent); color: #8a611c !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status--a-confirmer { color: #e8c27e !important; } }
:root[data-theme="dark"] .status--a-confirmer { color: #e8c27e !important; }
.guide-status-note { font-size: 0.875rem; color: var(--ink-3) !important; }
.guide-steps { list-style: none; counter-reset: step; padding: 0 !important; }
.guide-steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0; }
.guide-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper-solid); font-family: var(--font-serif); font-size: 1.05rem; }
.guide-steps h3 { margin: 0.3rem 0 0.35rem !important; font-size: 1.0625rem !important; color: var(--ink); }
.guide-steps p { margin: 0; }
.guide-letter { border-top: 1px solid var(--line-strong); padding: 1rem 0; }
.guide-letter summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.guide-letter pre { white-space: pre-wrap; font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); background: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.25rem; margin: 1rem 0 0; }
.guide-cta { margin: 3rem 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--ink); color: var(--paper-solid); }
.guide-cta h2 { margin: 0 0 0.75rem !important; color: var(--paper-solid); }
.guide-cta p { color: color-mix(in srgb, var(--paper-solid) 78%, transparent) !important; }
.guide-cta .cta { width: auto; background: var(--accent); border-color: var(--accent); color: #fff; margin-top: 0.5rem; }
.guide-sources { font-size: 0.875rem; }
.guide-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.guide-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.guide-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .guide-list li { flex-direction: column; gap: 0.35rem; } }

/* Figures ----------------------------------------------------------------
   Young Serif digits read poorly at large sizes: every big number uses the
   sans with lining, tabular figures instead. Headlines stay in the serif. */
:root { --font-num: var(--font-sans); }
.fiche-score,
.calc-head output,
.calc-result strong,
.plan-price .amount:not(.amount--text),
.tasks tfoot td,
.guide-steps li::before {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
}
.plan-price .amount:not(.amount--text) { letter-spacing: -0.035em; font-variant-numeric: lining-nums proportional-nums; }
.guide-steps li::before { font-size: 0.95rem; letter-spacing: 0; }

/* Navigation (desktop links + mobile menu) ------------------------------ */
.site-header { gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: 0.9375rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); transition: color var(--duration-fast); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.menu-toggle {
  display: none;
  align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 0.9375rem var(--font-sans); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.menu-toggle .bars { position: relative; width: 1rem; height: 0.7rem; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--duration-normal) var(--ease-out), top var(--duration-normal) var(--ease-out); }
.menu-toggle .bars::before { top: 0.1rem; }
.menu-toggle .bars::after { top: 0.5rem; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0.3rem; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0.3rem; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .site-header .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

.menu-panel {
  position: fixed; inset: 0; z-index: 39;
  padding: 6rem var(--gutter) 2rem;
  background: color-mix(in srgb, var(--paper-solid) 94%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
  animation: menu-in 280ms var(--ease-out);
}
.menu-panel[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-main a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-serif); font-size: clamp(1.625rem, 6vw, 2.25rem); line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.menu-main a::after { content: "→"; font-family: var(--font-sans); font-size: 1rem; color: var(--ink-3); }
.menu-main a[aria-current="page"] { color: var(--accent); }
.menu-panel .cta { margin-top: 2rem; }
.menu-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2rem !important; font-size: 0.875rem; }
.menu-legal a { color: var(--ink-2); text-decoration: none; }
html.menu-open { overflow: hidden; }
html.menu-open .sticky-cta { display: none; }

/* Back link on sub-pages */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.5rem; padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; color: var(--ink-2); text-decoration: none;
  background: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.back-link::before { content: "←"; transition: transform var(--duration-normal) var(--ease-out); }
.back-link:hover { color: var(--ink); border-color: var(--line-strong); }
.back-link:hover::before { transform: translateX(-3px); }

/* Blog ----------------------------------------------------------------- */
.article-meta { font-size: 0.875rem; color: var(--ink-3) !important; margin: -0.5rem 0 1.5rem !important; }
.article h2 { margin-top: 2.5rem; }
.post-list { list-style: none; padding: 0 !important; margin: 2rem 0 !important; border-top: 1px solid var(--line); }
.post-list li { margin: 0; border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 1.5rem 0; text-decoration: none; }
.post-list h2 { margin: 0 0 0.5rem !important; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--ink); transition: color var(--duration-fast); }
.post-list a:hover h2 { color: var(--accent); }
.post-list p { margin: 0 0 0.5rem; }
.post-list .article-meta { display: block; margin: 0 !important; }
.back-bottom { margin-top: 3rem !important; }

/* On phones the headline already fills the screen: no cover-style empty space above it. */
@media (max-width: 820px) {
  .prologue { min-height: auto; justify-content: flex-start; padding-top: 6.5rem; padding-bottom: 3.5rem; }
  .prologue-foot { margin-top: 2rem; }
}

/* Theme switch (header button) -------------------------------------------- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--paper); color: var(--ink); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; display: none; }
.theme-toggle[data-mode="auto"] .icon-auto,
.theme-toggle[data-mode="light"] .icon-light,
.theme-toggle[data-mode="dark"] .icon-dark { display: block; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
