/* ==========================================================================
   Makoon site — one small design system.
   1. Tokens   2. Base   3. Layout   4. Components   5. Illustrations   6. Pages   7. Motion
   No framework. Edit tokens first; components only use tokens.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f4f4f0;
  --ink: #15191e;
  --ink-2: #363c44;
  --muted: #5f6670;
  --line: #e4e4de;
  --line-2: #cfcfc7;

  --accent: #0f5c4a;
  --accent-2: #0b4a3b;
  --accent-soft: #e6f1ec;
  --accent-ink: #ffffff;
  --warn: #9a5b00;
  --warn-soft: #fbf1df;

  --dark-bg: #101820;
  --dark-surface: #16202a;
  --dark-ink: #f2f2ee;
  --dark-muted: #aab2ba;
  --dark-line: #27323c;
  --dark-accent: #7ad1b2;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(21, 25, 30, .06), 0 1px 1px rgba(21, 25, 30, .03);
  --shadow-2: 0 12px 32px rgba(21, 25, 30, .08), 0 2px 6px rgba(21, 25, 30, .05);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: 1.5rem;
  --fs-5: clamp(1.75rem, 1.2rem + 2.2vw, 2.375rem);
  --fs-6: clamp(2.125rem, 1.2rem + 3.4vw, 3.25rem);

  --max: 74rem;
  --max-text: 42rem;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-2)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 var(--s4); }
a { color: var(--accent); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible { outline-color: var(--dark-accent); }
svg { display: inline-block; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: var(--s3) var(--s4); background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--radius) 0; text-decoration: none; font-weight: 600;
}
.skip:focus { left: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container.narrow { max-width: var(--max-text); }
.section { padding: clamp(3.5rem, 3rem + 4vw, 7rem) 0; }
.section--compact { padding: clamp(3rem, 2.5rem + 3vw, 5rem) 0; }
.section--compact .narrow { text-align: center; }
.section--compact .narrow h2 { font-size: var(--fs-5); margin: var(--s3) 0 var(--s4); }
.section--compact .narrow .actions { justify-content: center; }
.section--compact .narrow .status { justify-content: center; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark-bg); color: var(--dark-ink); }
.section--dark a { color: var(--dark-accent); }
.section--dark .eyebrow { color: var(--dark-accent); }
.section--dark .lede, .section--dark .section__foot { color: var(--dark-muted); }

.section__head { max-width: var(--max-text); margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.section__head h2 { font-size: var(--fs-5); margin-bottom: var(--s4); }
.section__foot { max-width: var(--max-text); color: var(--muted); margin: var(--s7) 0 0; }
.section__foot strong { color: inherit; }
.eyebrow {
  font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--s3);
}
.lede { font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); margin: 0; }
.lede + .lede { margin-top: var(--s4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* 4. Components ------------------------------------------------------------ */
/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s5); min-height: 4rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.site-nav a {
  display: inline-block; padding: .85rem 0; color: var(--ink-2); text-decoration: none;
  font-size: var(--fs-1); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); border-color: var(--line-2); }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.status-pill {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
@media (max-width: 47.99rem) {
  .site-header__inner { flex-wrap: wrap; column-gap: var(--s4); min-height: 0; padding-top: .6rem; }
  .status-pill { display: none; }
  .site-nav { flex-basis: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: .9rem; }
  .site-nav a { padding: .55rem 0 .75rem; font-size: var(--fs-0); }
}

/* Status */
.status {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
.status--light { color: var(--dark-accent); }
.status__dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); flex: none;
}
.status--light .status__dot { background: var(--dark-accent); box-shadow: 0 0 0 3px rgba(122, 209, 178, .2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: .7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 var(--fs-1)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }
/* Written with the section prefix so they beat ".section--dark a" for color. */
.section--dark .btn--light { background: var(--dark-ink); color: var(--dark-bg); }
.section--dark .btn--light:hover { background: #ffffff; color: var(--dark-bg); }
.section--dark .btn--ghost { color: var(--dark-ink); border-color: var(--dark-line); }
.section--dark .btn--ghost:hover { border-color: var(--dark-muted); color: var(--dark-ink); }

.link { font-weight: 600; text-decoration: none; }
.link::after { content: " \2192"; }
.link:hover { text-decoration: underline; }

.badge {
  margin-left: auto; padding: .15rem .45rem; border-radius: 4px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}

.caption { font-size: var(--fs-0); color: var(--muted); margin: var(--s3) 0 0; }
figcaption { font-size: var(--fs-0); color: var(--muted); margin-top: var(--s3); }

.checklist { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.checklist li::after {
  content: ""; position: absolute; left: .27rem; top: .62em; width: .3rem; height: .5rem;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.pull {
  font-family: var(--font-head); font-size: var(--fs-4); font-weight: 650; letter-spacing: -.015em; line-height: 1.25;
  margin: 0 0 var(--s5); color: var(--ink);
}

/* Hero */
.hero { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 21fr) minmax(0, 20fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-6); margin: var(--s4) 0 var(--s5); }
.hero__lede { font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); max-width: 34rem; margin: 0; }
.hero__note { font-size: var(--fs-0); color: var(--muted); margin: var(--s4) 0 0; }
.hero__visual { position: relative; margin: 0; }
.hero__visual::before {
  content: ""; position: absolute; inset: 12% -4% 2.6rem 10%; z-index: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.hero__visual .ui { position: relative; z-index: 1; }
.hero__visual figcaption { position: relative; z-index: 1; text-align: center; }
.hero__for {
  margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; padding: var(--s5) 0;
  border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-1); max-width: none;
}
.hero__for strong { color: var(--ink); }
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 40rem; min-width: 0; }
}

/* Creed (dark) */
.creed {
  list-style: none; margin: 0; padding: 0; counter-reset: creed;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); overflow: hidden;
}
.creed li { counter-increment: creed; background: var(--dark-bg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.creed__k { font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dark-accent); }
.creed__k::before { content: counter(creed, decimal-leading-zero) "\2002"; opacity: .65; font-variant-numeric: tabular-nums; }
.creed strong { font-family: var(--font-head); font-size: var(--fs-3); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.creed li > span:last-child { color: var(--dark-muted); font-size: var(--fs-1); }
@media (max-width: 64rem) { .creed { grid-template-columns: repeat(2, minmax(0, 1fr)); } .creed li:last-child { grid-column: 1 / -1; } }
@media (max-width: 36rem) { .creed { grid-template-columns: 1fr; } .creed li:last-child { grid-column: auto; } }

/* Journey */
.journey {
  list-style: none; margin: 0; padding: var(--s5) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); align-items: end;
}
.stage { position: relative; }
.stage__layer {
  position: absolute; inset: 0; z-index: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.stage[data-depth="2"] .stage__layer { transform: translate(-.6rem, -.6rem); }
.stage[data-depth="3"] .stage__layer:nth-child(1) { transform: translate(-1.2rem, -1.2rem); opacity: .7; }
.stage[data-depth="3"] .stage__layer:nth-child(2) { transform: translate(-.6rem, -.6rem); }
.stage__card {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow-1); border-top-width: 3px;
}
.stage[data-depth="1"] .stage__card { border-top-color: var(--line-2); }
.stage[data-depth="2"] .stage__card { border-top-color: #4f9c86; }
.stage[data-depth="3"] .stage__card { border-top-color: var(--accent); }
.stage__k {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 var(--s3);
  font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
.stage__num {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; letter-spacing: 0;
}
.stage__title { font-size: var(--fs-3); margin-bottom: var(--s3); }
.stage__who { color: var(--muted); font-size: var(--fs-1); margin-bottom: var(--s3); }
.stage__list {
  list-style: none; margin: 0 0 var(--s4); padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem; font-size: var(--fs-1); color: var(--ink-2);
}
.stage__list li { position: relative; padding-left: .9rem; }
.stage__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .3rem; height: .3rem; border-radius: 50%; background: var(--accent); }
.stage__inherits {
  margin: 0 0 var(--s3); padding: .45rem .6rem; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-0); font-weight: 600;
}
.stage__inherits::before { content: "+ "; }
.stage__note { margin: 0; color: var(--muted); font-size: var(--fs-1); }
.journey__foot { margin: var(--s7) 0 0; color: var(--muted); }
.journey__foot strong { color: var(--ink); }
@media (max-width: 60rem) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .stage + .stage::before {
    content: ""; position: absolute; top: -2.25rem; left: 2rem; width: 2px; height: 1.5rem; background: var(--accent);
  }
}

/* Split (copy + tabs) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split__copy p:last-child { margin-bottom: 0; color: var(--ink-2); }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); } .split__visual { min-width: 0; } }

/* Tabs */
.tabs__list {
  display: none; max-width: 100%; overflow-x: auto; gap: .25rem; padding: .25rem; margin-bottom: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.js .tabs__list { display: inline-flex; }
.tabs__list [role="tab"] {
  flex: none; min-height: 2.75rem; padding: .5rem 1rem; border: 0; border-radius: var(--radius); background: transparent;
  font: 600 var(--fs-1)/1.2 var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tabs__list [role="tab"]:hover { color: var(--ink); background: var(--surface-2); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs__panel + .tabs__panel { margin-top: var(--s4); }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel[hidden] { display: none; }

/* Depth ladder (experience layers) */
.depth-block { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: clamp(2rem, 1.5rem + 2.5vw, 3rem); border-top: 1px solid var(--line); }
.depth-block h3 { font-size: var(--fs-4); margin-bottom: var(--s6); max-width: var(--max-text); }
.depth { list-style: none; margin: 0; padding: 0; counter-reset: depth; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.depth li { counter-increment: depth; position: relative; padding-top: var(--s4); border-top: 2px solid var(--line-2); }
.depth li::before {
  content: counter(depth); position: absolute; top: -.85rem; left: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.depth__meter { display: block; position: relative; width: 5rem; height: .35rem; margin: .5rem 0 var(--s3); border-radius: 2px; background: var(--line); overflow: hidden; }
.depth__meter::after { content: ""; position: absolute; inset: 0; width: var(--fill, 20%); background: var(--accent); }
.depth__meter--1 { --fill: 20%; } .depth__meter--2 { --fill: 40%; } .depth__meter--3 { --fill: 60%; } .depth__meter--4 { --fill: 80%; } .depth__meter--5 { --fill: 100%; }
.depth__k { font-family: var(--font-head); font-size: var(--fs-3); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 .15rem; }
.depth__lens { font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s3); }
.depth__text { font-size: var(--fs-1); color: var(--ink-2); margin: 0; }
@media (max-width: 64rem) { .depth { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .depth { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0; border-top: 1px solid var(--line);
}
.feature__copy h3 { font-size: var(--fs-4); margin-bottom: var(--s4); }
.feature__copy p { color: var(--ink-2); }
.feature__copy p:last-child { margin-bottom: 0; }
.feature--flip .feature__copy { order: 2; }
@media (max-width: 60rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__copy { order: 0; }
}

/* Flows */
.flows { display: grid; gap: var(--s7); }
.flow__title { font-size: var(--fs-0); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s4); }
.flow__rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow__rail li { position: relative; padding: 1.6rem .5rem 0 0; font-size: var(--fs-1); font-weight: 500; }
.flow__rail li::before { content: ""; position: absolute; top: .5rem; left: .9rem; right: 0; height: 2px; background: var(--line-2); }
.flow__rail li:last-child::before { display: none; }
.flow__rail li::after {
  content: ""; position: absolute; top: .05rem; left: 0; width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
@media (max-width: 52rem) {
  .flow__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0 var(--s5); }
  .flow__rail li { padding: .4rem 0 .4rem 1.75rem; }
  .flow__rail li::before { top: 1.3rem; left: .42rem; right: auto; bottom: -.4rem; width: 2px; height: auto; }
  .flow__rail li:nth-child(3)::before, .flow__rail li:nth-child(6)::before { display: none; }
  .flow__rail li::after { top: .62rem; }
}

/* Panels (illustrations with text) */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: var(--s4) var(--s5); font-size: var(--fs-1);
}
.panel__title {
  display: flex; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.panel__title span { color: var(--muted); font-weight: 500; }

.controls { list-style: none; margin: 0; padding: 0; }
.controls li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.controls li:last-child { border-bottom: 0; }
.controls em { display: inline-flex; align-items: center; gap: .45rem; font-style: normal; font-size: var(--fs-0); color: var(--muted); white-space: nowrap; }
.controls em::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--line-2); }
.controls .is-on em { color: var(--accent); font-weight: 600; }
.controls .is-on em::before { background: var(--accent); border-color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative; padding: .55rem 0 .55rem 1.75rem;
  display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: .2rem var(--s4); align-items: baseline;
}
.steps li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--line-2); }
.steps li::after { content: ""; position: absolute; left: .5rem; top: 1.75rem; bottom: -.55rem; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps .is-warn::before { background: var(--warn); }
.steps .is-ok::before { background: var(--accent); }
.steps__k { font-weight: 600; }
.steps__meta { color: var(--muted); font-size: var(--fs-0); white-space: nowrap; }
@media (max-width: 36rem) { .steps li { grid-template-columns: 1fr; } .steps__meta { white-space: normal; } }

.history { margin: 0; }
.history div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s3); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.history div:last-child { border-bottom: 0; }
.history dt { color: var(--muted); font-size: var(--fs-0); padding-top: .1rem; }
.history dd { margin: 0; }
@media (max-width: 36rem) { .history div { grid-template-columns: 1fr; gap: .1rem; } }

/* Capabilities */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5) var(--s5) var(--s5); }
.cap__head { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--s4); }
.cap__head svg { width: 1.35rem; height: 1.35rem; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cap__head h3 { font-size: var(--fs-3); }
.cap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: var(--fs-1); color: var(--ink-2); }
.cap ul li { position: relative; padding-left: .9rem; }
.cap ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: .3rem; height: .3rem; border-radius: 50%; background: var(--line-2); }
@media (max-width: 64rem) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .caps { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); font-size: var(--fs-1); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s7); }
.site-footer__brand p { color: var(--ink-2); max-width: 32rem; margin: var(--s4) 0 0; }
.site-footer__status { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: var(--fs-0); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.site-footer nav a { display: inline-block; padding: .35rem 0; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-0);
}
.site-footer__legal p { margin: 0; }
@media (max-width: 40rem) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

/* 5. Illustrations (the "ui" mock) ----------------------------------------- */
.ui {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); overflow: hidden; font-size: var(--fs-0); line-height: 1.45; color: var(--ink);
}
.ui__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ui__crumbs { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__crumbs b { color: var(--ink); }
.ui__sep { color: var(--line-2); margin: 0 .15rem; }
.ui__chip {
  flex: none; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.ui__chip--warn { background: var(--warn-soft); color: var(--warn); }
.ui__journey { list-style: none; margin: 0; padding: .55rem .9rem; display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ui__journey::-webkit-scrollbar { display: none; }
.ui__journey li { flex: 1 0 auto; text-align: center; padding: .3rem .5rem; border-radius: var(--radius); color: var(--muted); white-space: nowrap; }
.ui__journey li.is-done { color: var(--accent); font-weight: 600; }
.ui__journey li.is-current { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ui__body { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; }
.ui__main { padding: .9rem; min-width: 0; }
.ui__side { border-left: 1px solid var(--line); padding: .9rem; background: var(--surface-2); }
.ui__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; margin-bottom: .9rem; }
.ui__fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui__field { display: flex; flex-direction: column; min-width: 0; }
.ui__label { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.ui__value { font-weight: 500; }
.ui__ok { display: block; font-style: normal; color: var(--accent); font-weight: 500; }
.ui__table { width: 100%; border-collapse: collapse; }
.ui__table th, .ui__table td { text-align: left; padding: .4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ui__table th { color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.ui__table tfoot td { border-bottom: 0; font-weight: 600; }
.ui__table th + th, .ui__table td + td { padding-left: .75rem; }
.ui__tick { color: var(--accent); font-weight: 600; }
.ui__tick::before { content: "\2713\00a0"; }
.ui__pending { color: var(--warn); font-weight: 600; }
.ui__side-title { margin: 0 0 .5rem; color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ui__side .ui__side-title:not(:first-child) { margin-top: .9rem; }
.ui__main .ui__side-title { margin-top: .25rem; }
.ui__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ui__checks li { position: relative; padding-left: 1.1rem; }
.ui__checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.ui__checks .is-muted { color: var(--muted); }
.ui__checks .is-muted::before { background: var(--line-2); }
.ui__log { list-style: none; margin: 0; padding: 0; }
.ui__log li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.ui__log li span:last-child { color: var(--muted); text-align: right; }
.ui__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: .9rem; }
.ui__btn { display: inline-block; padding: .4rem .8rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ui__hint { color: var(--muted); }
.ui__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ui__tile { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ui__big { font-family: var(--font-head); font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ui__small { color: var(--muted); font-size: .75rem; line-height: 1.35; }
@media (max-width: 40rem) {
  .ui__journey { flex-wrap: wrap; }
  .ui__journey li { flex: 1 1 auto; }
  .ui__body { grid-template-columns: minmax(0, 1fr); }
  .ui__side { border-left: 0; border-top: 1px solid var(--line); }
  .ui__fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui__tiles { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* 6. Pages (principles, about, privacy, 404) --------------------------------- */
.page { padding: clamp(3rem, 2.5rem + 3vw, 5rem) 0 clamp(4rem, 3rem + 4vw, 7rem); max-width: var(--max-text); }
.page__head { margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.page__head h1 { font-size: var(--fs-6); margin-bottom: var(--s4); }
.page__foot { margin-top: var(--s7); color: var(--muted); }
.prose h2 { font-size: var(--fs-4); margin: var(--s7) 0 var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: principle; }
.principles li { counter-increment: principle; padding: var(--s5) 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h2 { font-size: var(--fs-4); margin-bottom: var(--s3); display: flex; gap: var(--s3); align-items: baseline; }
.principles h2::before { content: counter(principle, decimal-leading-zero); color: var(--accent); font-size: var(--fs-1); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.principles p { color: var(--ink-2); margin: 0; }
.page__aside { margin-top: var(--s7); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.page__aside h2 { font-size: var(--fs-3); margin: 0 0 var(--s3); }
.page__aside p { margin: 0; color: var(--ink-2); }

/* 7. Motion (only when the visitor allows it) -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .stage__layer { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
  .js [data-reveal]:not(.is-in) .stage__layer { transform: none; opacity: 0; }
  .js [data-reveal] .flow__rail li::after { transition: border-color .35s ease; }
  .js [data-reveal] .flow__rail li::before { transition: background-color .35s ease; }
  .js [data-reveal]:not(.is-in) .flow__rail li::after { border-color: var(--line-2); }
  .js [data-reveal]:not(.is-in) .flow__rail li::before { background: var(--line); }
  .js [data-reveal] .flow__rail li:nth-child(2)::after { transition-delay: .08s; }
  .js [data-reveal] .flow__rail li:nth-child(3)::after { transition-delay: .16s; }
  .js [data-reveal] .flow__rail li:nth-child(4)::after { transition-delay: .24s; }
  .js [data-reveal] .flow__rail li:nth-child(5)::after { transition-delay: .32s; }
  .js [data-reveal] .flow__rail li:nth-child(6)::after { transition-delay: .4s; }
  .js [data-reveal] .flow__rail li:nth-child(7)::after { transition-delay: .48s; }
  .js [data-reveal] .flow__rail li:nth-child(8)::after { transition-delay: .56s; }
}
