/* Planitin — one stylesheet for every page.
   ---------------------------------------------------------------------------
   The site is typeset and shaped like the app on purpose. The radii below are
   the tokens from src/theme/layout.ts (card 18, inner 14, button 13, chip 9),
   the colours are src/theme/colors.ts, and the type is the same Geist the app
   renders in — subset into website/fonts by build_fonts.py. Someone who has
   used the app should recognise the site as the same object.

   Still no dependencies, no build step, nothing to fetch from a CDN: it drops
   into a bare bucket exactly as before. */

/* ── Faces ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --ink: #21242C;
  --ink-deep: #15171C;
  --ink-soft: #2B2F39;
  --graphite: #4B5563;
  --stone: #6B7280;
  --ash: #9CA3AF;
  --bone: #E5E7EB;
  --bone-soft: #EDEFF2;
  --paper: #FFFFFF;
  --paper-warm: #FAFAFA;
  --warm: #F4F5F7;

  --red: #DC2828;
  --amber: #F59E0B;
  --green: #10B981;

  --on-dark: #F3F4F6;
  --on-dark-dim: #969DAB;

  /* Straight from src/theme/layout.ts. */
  --r-card: 18px;
  --r-inner: 14px;
  --r-button: 13px;
  --r-chip: 9px;

  --header-h: 68px;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-lift: 0 1px 2px rgba(21, 23, 28, .04), 0 8px 24px -12px rgba(21, 23, 28, .12);
  --shadow-float: 0 2px 6px rgba(21, 23, 28, .06), 0 26px 60px -24px rgba(21, 23, 28, .38);

  /* Fine noise, so the dark slabs have a surface instead of being flat fill. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 748px; }

/* ── The mark ──────────────────────────────────────────────────────────── */
/* Three ascending bars — the roadmap the app models. Same component as
   src/components/PlanitinMark.tsx, drawn in CSS so it stays crisp and
   recolourable without shipping another image. */
.mark { display: block; width: var(--m, 26px); flex: none; }
.mark i {
  display: block;
  height: calc(var(--m, 26px) * .17);
  border-radius: 999px;
  margin-bottom: calc(var(--m, 26px) * .115);
  transform-origin: left center;
}
.mark i:last-child { margin-bottom: 0; }
.mark i:nth-child(1) { width: 45%;  background: var(--red); }
.mark i:nth-child(2) { width: 72%;  background: var(--amber); }
.mark i:nth-child(3) { width: 100%; background: var(--green); }

/* ── Header ────────────────────────────────────────────────────────────── */
/* Fixed, not sticky. Sticky leaves the bar sitting ABOVE the dark hero at the
   top of the page rather than over it — which made the pale-on-dark treatment
   below render white text on the light page background. Fixed puts the bar on
   top of the first section, and that section carries the height back as
   padding. */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 250, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
header.stuck { border-bottom-color: var(--bone); }
/* Over the dark hero (and the dark head of a legal page) the bar drops out
   entirely rather than laying a pale slab across it. The class is set from the
   scroll handler, which knows where the dark block ends. */
header.on-dark {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
header.on-dark .brand { color: #fff; }
header.on-dark .mark i { opacity: .95; }
header.on-dark nav a { color: #A7AEBB; }
header.on-dark nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
header.on-dark nav a[aria-current='page'] { color: #fff; }
header .wrap { display: flex; align-items: center; gap: 11px; height: var(--header-h); }
.brand {
  font-weight: 700; font-size: 17.5px; letter-spacing: -.022em;
  color: var(--ink); text-decoration: none;
}
.brand-row { display: flex; align-items: center; gap: 11px; text-decoration: none; }
nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav a {
  color: var(--stone); text-decoration: none;
  font-size: 14.5px; padding: 7px 12px; border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
nav a:hover { color: var(--ink); background: var(--warm); }
nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  nav { gap: 0; margin-left: auto; }
  nav a { padding: 6px 8px; font-size: 13px; }
  nav a.only-wide { display: none; }
}

/* ── Shared bits ───────────────────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ash); margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--dash, var(--ash)); flex: none;
}
.on-ink .eyebrow, .eyebrow.on-ink { color: var(--on-dark-dim); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 20px; border-radius: var(--r-button);
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2C303B; transform: translateY(-2px); }
.btn-line { color: var(--ink); border-color: var(--bone); background: var(--paper); }
.btn-line:hover { border-color: var(--ash); transform: translateY(-2px); }
.btn .apple { width: 17px; height: 17px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-chip);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
/* The one button that is on every page, in the bar. Hidden where the nav is
   already tight — the hero and the closing section both carry the same link,
   so nothing is lost on a phone. */
.btn-mini {
  font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 999px;
  background: var(--ink); color: var(--paper); margin-left: 12px; flex: none;
}
.btn-mini:hover { background: #2C303B; transform: translateY(-1px); }
header.on-dark .btn-mini { background: #fff; color: var(--ink); }
header.on-dark .btn-mini:hover { background: #fff; }
@media (max-width: 880px) { .btn-mini { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 76px) 0 106px;
  isolation: isolate;
}
/* A faint plan grid, faded out at the edges: the surface the board sits on. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 90% at 22% 6%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 22% 6%, #000 0%, transparent 72%);
}
/* Three coloured washes, one per bar of the mark, kept well under the type. */
.hero::after {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -3;
  background:
    radial-gradient(38% 44% at 76% 12%, rgba(220, 40, 40, .20), transparent 70%),
    radial-gradient(40% 42% at 92% 44%, rgba(245, 158, 11, .16), transparent 72%),
    radial-gradient(46% 48% at 62% 84%, rgba(16, 185, 129, .16), transparent 72%);
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 160px 160px;
  opacity: .19; mix-blend-mode: overlay;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px; align-items: center;
}

h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.85rem);
  line-height: .99;
  letter-spacing: -.043em;
  font-weight: 700;
  margin: 0 0 22px;
  color: #fff;
}
h1 .dim { color: #6E7684; }
.hero .lede {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: #AEB5C1; max-width: 46ch; margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: #7C8393;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { width: 5px; height: 5px; border-radius: 50%; display: block; }

/* ── The device ────────────────────────────────────────────────────────── */
/* The screen is real markup in real Geist rather than a screenshot: it stays
   sharp on any display, and it cannot drift out of date the way a PNG does. */
/* Flush to the right edge of the container: it buys the float card the room to
   sit beside the phone instead of on top of the task text. */
.stage-art { display: flex; justify-content: flex-end; }
/* The float card is anchored to the DEVICE, not to the column, so the overlap
   is a fixed number of pixels instead of whatever the column happens to be
   wide. Anchored to the column it slid across the screen and covered the task
   text at some widths. */
.device-wrap { position: relative; }
.device {
  position: relative; width: 300px; flex: none;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #3A3F4B, #191C22 42%, #303541);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(255,255,255,.07) inset;
  transform: rotate(-2.4deg);
}
.screen {
  border-radius: 36px; overflow: hidden; background: var(--paper-warm);
  border: 1px solid rgba(0,0,0,.5);
}
.screen-top {
  height: 26px; position: relative; background: var(--paper-warm);
}
.screen-top::after {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 999px; background: #15171C;
}
.screen-body { padding: 4px 13px 15px; }
.screen-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.screen-title { font-size: 25px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.screen-org { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--stone); text-transform: uppercase; }
.segment {
  display: flex; gap: 4px; background: var(--warm); padding: 3px;
  border-radius: var(--r-button); margin-bottom: 12px;
}
.segment span {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  padding: 6px 0; border-radius: 10px; color: var(--stone);
}
.segment span.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--bone); background: rgba(255,255,255,.9);
  padding: 9px 0 13px; margin: 14px -13px -15px;
}
.tabbar b { width: 17px; height: 17px; border-radius: 5px; background: var(--bone); display: block; }
.tabbar b.on { background: var(--ink); }

/* A task card — src/components/TaskCard.tsx, in HTML. */
.tcard {
  position: relative; display: flex; gap: 10px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 11px 12px 11px 14px;
  overflow: hidden; margin-bottom: 8px;
}
.tcard .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.tcard .check {
  width: 21px; height: 21px; flex: none; border-radius: var(--r-chip);
  border: 2px solid var(--ash); margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.tcard .check.doing { border-color: var(--c); }
.tcard .check.doing::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tcard .check.done { background: var(--green); border-color: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.tcard .body { min-width: 0; flex: 1; }
.tcard .chips { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.chip {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  padding: 3px 6px; border-radius: var(--r-chip); white-space: nowrap;
}
.tcard .who {
  margin-left: auto; width: 19px; height: 19px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 8px; font-weight: 600; letter-spacing: .02em;
}
.tcard .title { font-size: 13px; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; color: var(--ink); }
.tcard .meta { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ash); margin-top: 6px; }
.tcard.is-done { opacity: .55; }
.tcard.is-done .title { text-decoration: line-through; color: var(--stone); }

/* The card is built from spans so it can nest anywhere; give them boxes. */
.tcard .body > span, .tcard .title, .tcard .meta { display: block; }
.tcard .chips { display: flex; }

/* The roadmap card that floats off the phone. */
.float-card {
  position: absolute; left: -190px; bottom: -26px; width: 248px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 15px;
  box-shadow: var(--shadow-float); transform: rotate(2deg);
}
@media (max-width: 1180px) { .float-card { left: -128px; width: 224px; } }

.stagehead { display: flex; align-items: center; gap: 10px; }
.stagehead .num {
  width: 26px; height: 26px; border-radius: var(--r-chip); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.stagehead .txt { min-width: 0; display: block; }
.stagehead .name, .stagehead .sub { display: block; }
.stagehead .name { font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; }
.stagehead .sub { font-size: 11.5px; color: var(--stone); line-height: 1.35; }
.stagemeta {
  display: flex; justify-content: space-between; margin-top: 13px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ash);
}
.stagerows { margin-top: 11px; display: flex; flex-direction: column; gap: 5px; }
.stagerow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--graphite); }
.stagerow i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.stagerow.done { color: var(--ash); text-decoration: line-through; }

/* ── Sections ──────────────────────────────────────────────────────────── */
section { position: relative; }
.band { padding: 104px 0; }
.band.tight { padding: 76px 0; }
.band.paper { background: var(--paper); border-block: 1px solid var(--bone); }

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 700;
  margin: 0 0 16px; color: var(--ink);
}
h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -.018em; margin: 0 0 7px; color: var(--ink); }
p { margin: 0 0 16px; color: var(--graphite); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 18.5px; color: var(--stone); max-width: 56ch; }
a { color: var(--ink); text-decoration-color: var(--ash); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.feature {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 72px; align-items: center;
}
.feature.flip > .feature-art { order: -1; }
.feature + .feature { margin-top: 104px; padding-top: 104px; border-top: 1px solid var(--bone); }
.feature-copy { max-width: 44ch; }
.feature-copy h2 { margin-bottom: 14px; }
.feature-art { position: relative; }

.facts { list-style: none; margin: 26px 0 0; padding: 0; }
.facts li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--graphite); font-size: 15.5px;
}
.facts li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 11px; height: 2px; border-radius: 2px; background: var(--c, var(--ash));
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .28s ease;
}
/* The three arts are naturally different heights. Letting the art absorb the
   slack lands every heading on the same line instead of three ragged ones. */
.card .card-art { flex: 1 0 auto; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--bone-soft); }
.card .kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 16px; display: block;
}
.card p { font-size: 15px; margin: 0; }
.card-art { margin: 0 -4px 18px; }

/* A panel used to frame product art on the light bands. */
.panel {
  background: var(--warm); border: 1px solid var(--bone);
  border-radius: 26px; padding: 26px; position: relative; overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(33,36,44,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,36,44,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(90% 80% at 50% 0%, #000, transparent 78%);
}
.panel > * { position: relative; }

/* Stage manager rows. */
.srow {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-inner); padding: 13px 15px; margin-bottom: 9px;
}
.srow .swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.srow .nm { font-size: 15px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.srow .tf { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ash); margin-left: auto; text-transform: uppercase; }
.srow .grip { display: flex; flex-direction: column; gap: 3px; margin-left: 10px; }
.srow .grip i { width: 13px; height: 1.5px; background: var(--bone); border-radius: 2px; display: block; }

/* Goal cards — a ring, what it counts, how far along. Stacked rather than in a
   row: three rings side by side wrapped 2 + 1 and left a hole, and stacking is
   what GoalsScreen does anyway. */
.goal {
  display: flex; align-items: center; gap: 15px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 14px 17px; margin-bottom: 11px;
}
.goal:last-child { margin-bottom: 0; }
.goal .g-txt { min-width: 0; flex: 1; }
.goal .g-name { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.goal .g-k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.goal .g-pct { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }

/* Org cards. */
.org {
  display: flex; align-items: center; gap: 13px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 15px 17px; margin-bottom: 11px;
}
.org .badge {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.org .nm { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); display: block; }
.org .mt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ash); text-transform: uppercase; display: block; }
.org .tickmark { margin-left: auto; color: var(--green); font-size: 15px; font-weight: 700; }
.org.muted { opacity: .62; }

/* The invite code, set in mono because it is meant to be read aloud and typed. */
.invite {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  border: 1px dashed var(--bone); border-radius: var(--r-inner);
  padding: 13px 16px; background: rgba(255,255,255,.55);
}
.invite .k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ash);
}
.invite .code {
  margin-left: auto; font-family: var(--mono); font-size: 14px;
  letter-spacing: .18em; color: var(--ink);
}

/* Miniature roadmap: a stage, a bar, a count. */
.mrow { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.mrow:last-child { margin-bottom: 0; }
.mrow .nm { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); width: 52px; flex: none; }
.mrow .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--warm); overflow: hidden; }
.mrow .bar i { display: block; height: 100%; border-radius: 999px; transform-origin: left; }
.in .mrow .bar i { animation: fill .9s cubic-bezier(.22,.86,.3,1) both; animation-delay: .2s; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mrow .pc { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ash); width: 30px; text-align: right; flex: none; }

/* Miniature month. */
.cal { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--r-inner); padding: 13px; }
.cal-top { display: flex; align-items: baseline; gap: 7px; margin-bottom: 11px; }
.cal-month { font-size: 14px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cal-year { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ash); }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head span {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--ash); text-align: center; padding-bottom: 5px;
}
.cal-grid .d {
  position: relative; aspect-ratio: 1; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--stone);
}
.cal-grid .d.on { background: var(--ink); color: #fff; font-weight: 600; }
.cal-grid .d b { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; gap: 2px; justify-content: center; }
.cal-grid .d b i { width: 3px; height: 3px; border-radius: 50%; display: block; }
.cal-grid .d.on b i { background: #fff !important; }

/* ── Dark slab ─────────────────────────────────────────────────────────── */
.slab {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
}
.slab::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 12% 0%, rgba(16,185,129,.13), transparent 70%),
              radial-gradient(50% 60% at 88% 100%, rgba(220,40,40,.10), transparent 72%);
}
.slab h2 { color: #fff; }
.slab p { color: #A7AEBB; }
.slab .lede { color: #A7AEBB; }
.slab .card {
  background: rgba(255,255,255,.032); border-color: rgba(255,255,255,.09);
}
.slab .card h3 { color: #fff; }
.slab .card p { color: #98A0AE; }
.slab .card .kicker { color: #6E7684; }
.slab .card.hover:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); box-shadow: none; }

.no-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.no-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.075);
  color: #C3C9D4; font-size: 16px;
}
.no-list li:last-child { border-bottom: 0; }
.no-list .x {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: #6E7684;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta { text-align: center; padding: 108px 0 118px; }
.cta .mark { margin: 0 auto 26px; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lede { margin: 0 auto 30px; text-align: center; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta .mark.draw { margin-bottom: 26px; }

/* Inline-flex so the centred text alignment of the section centres the whole
   card, while its own contents stay left-aligned and readable. */
.scan {
  display: inline-flex; align-items: center; gap: 16px; text-align: left;
  margin-top: 36px; padding: 13px 22px 13px 13px;
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); box-shadow: var(--shadow-lift);
}
/* 33 modules across; at 112px that is ~3.4 device pixels per module, which
   a phone camera picks up from arm's length. Smaller and it gets fiddly. */
.scan .qr { display: block; width: 112px; height: 112px; }
.scan-txt { display: block; }
.scan-k { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.scan-v { display: block; font-size: 14px; color: var(--stone); margin-top: 2px; }
/* Pointless on the device that would be doing the scanning. */
@media (max-width: 700px) { .scan { display: none; } }

.cta-meta {
  margin-top: 28px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ash);
}

/* ── Documents (privacy / terms / support / impressum) ─────────────────── */
.doc-head {
  background: var(--ink-deep); color: var(--on-dark);
  padding: calc(var(--header-h) + 62px) 0 62px;
  position: relative; overflow: hidden; isolation: isolate;
}
/* The reading measure stays 748px, but pinned to the container's LEFT edge
   rather than centred, so a document's title starts on the same vertical as
   the wordmark in the bar above it. Centring put the two 200px apart. */
@media (min-width: 940px) {
  .doc-head .wrap.narrow, .prose .wrap.narrow { max-width: 1140px; }
  .doc-head .wrap.narrow > *, .prose .wrap.narrow > * { max-width: 748px; }
}
.doc-head::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(90% 120% at 8% 0%, #000, transparent 70%);
  mask-image: radial-gradient(90% 120% at 8% 0%, #000, transparent 70%);
}
.doc-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin: 0; }
.doc-head .updated {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-dim);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 13px;
}
.doc-head .lede { color: #AEB5C1; margin-top: 20px; font-size: 17.5px; }
.doc-head .lede a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }

.prose { padding: 62px 0 96px; }
.prose h2 {
  font-size: 21px; line-height: 1.3; letter-spacing: -.02em;
  margin: 46px 0 12px; padding-top: 26px; border-top: 1px solid var(--bone);
}
.prose .wrap > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 16.5px; margin: 30px 0 6px; }
.prose p, .prose li { color: var(--graphite); font-size: 16.5px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); font-weight: 500; }

table {
  border-collapse: collapse; width: 100%; margin: 20px 0 4px;
  font-size: 15px; background: var(--paper);
  border: 1px solid var(--bone); border-radius: var(--r-card);
  overflow: hidden;
}
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--bone); vertical-align: top; color: var(--graphite); }
tr:last-child td { border-bottom: 0; }
th {
  color: var(--stone); font-family: var(--mono); font-weight: 500;
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  background: var(--warm); border-bottom-color: var(--bone);
}
/* Three columns do not fit a phone. Each row becomes a block and every cell
   reprints its column heading from data-l, so "Performance of a contract" on
   its own line still says what it is answering. */
@media (max-width: 620px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--bone); padding: 12px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 8px 16px; }
  td[data-l]::before {
    content: attr(data-l); display: block;
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ash); margin-bottom: 3px;
  }
  td:first-child { color: var(--ink); font-weight: 600; }
}

.note {
  background: var(--paper); border: 1px solid var(--bone);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-inner); padding: 16px 18px; font-size: 15px;
  color: var(--graphite); margin: 22px 0;
}

.qa { margin-top: 8px; }
.qa details {
  background: var(--paper); border: 1px solid var(--bone);
  border-radius: var(--r-card); margin-bottom: 10px; overflow: hidden;
}
.qa summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; margin-left: auto; flex: none; width: 10px; height: 10px;
  border-right: 1.8px solid var(--ash); border-bottom: 1.8px solid var(--ash);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .22s ease;
}
.qa details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.qa .n { font-family: var(--mono); font-size: 11px; color: var(--ash); letter-spacing: .1em; }
.qa .answer { padding: 0 22px 20px 58px; }
.qa .answer p { font-size: 16px; }
@media (max-width: 620px) { .qa .answer { padding-left: 22px; } }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--ink-deep); color: var(--on-dark-dim);
  padding: 66px 0 54px; font-size: 14.5px;
}
.foot-top {
  display: flex; gap: 40px; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.foot-brand { max-width: 30ch; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: #7C8393; font-size: 14px; margin: 14px 0 0; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #6E7684; margin: 0 0 14px; font-weight: 500;
}
.foot-col a {
  display: block; color: #B4BAC5; text-decoration: none; padding: 4px 0;
  transition: color .18s ease;
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 26px; color: #6E7684; font-size: 13px;
}

/* ── Motion ────────────────────────────────────────────────────────────── */
/* The same idea as src/components/Enter.tsx: things rise and fade in, staggered,
   so a section assembles itself instead of appearing finished. Opacity and
   transform only — the two properties that stay off the main thread.

   Gated on .js, set by an inline script in <head>. Hiding these by default in
   plain CSS would mean a blank page for anyone whose JavaScript never runs —
   the observer is what brings them back, so it must also be what takes them
   away. */
.js .r { opacity: 0; transform: translateY(16px); }
.js .r.in {
  animation: rise .62s cubic-bezier(.22,.86,.3,1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* The mark draws itself bar by bar. */
.mark.draw i { transform: scaleX(0); animation: barIn .72s cubic-bezier(.22,.86,.3,1) forwards; }
.mark.draw i:nth-child(1) { animation-delay: .10s; }
.mark.draw i:nth-child(2) { animation-delay: .22s; }
.mark.draw i:nth-child(3) { animation-delay: .34s; }
@keyframes barIn { to { transform: scaleX(1); } }

/* Progress rings sweep to their value once on screen — and sit at their value
   already if there is no script to trigger the sweep. */
.ring circle.val { stroke-dasharray: var(--len); stroke-dashoffset: var(--off); }
.js .ring circle.val { stroke-dashoffset: var(--len); }
.js .in .ring circle.val, .js .ring.in circle.val {
  animation: sweep 1.05s cubic-bezier(.22,.86,.3,1) forwards;
  animation-delay: calc(.18s + var(--i, 0) * 90ms);
}
@keyframes sweep { to { stroke-dashoffset: var(--off); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r, .js .r.in { opacity: 1; transform: none; animation: none; }
  .mark.draw i { transform: none; animation: none; }
  .js .ring circle.val { stroke-dashoffset: var(--off); animation: none; }
  .in .mrow .bar i { animation: none; }
  .btn, .card { transition: none; }
}

/* ── Narrow ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding: calc(var(--header-h) + 52px) 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .stage-art { justify-content: flex-start; padding-left: 96px; }
  .float-card { left: -96px; bottom: 20px; width: 212px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip > .feature-art { order: 0; }
  .feature + .feature { margin-top: 72px; padding-top: 72px; }
  .grid { grid-template-columns: 1fr; }
  .band { padding: 76px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .stage-art { padding-left: 0; justify-content: center; }
  .device { width: min(280px, 82vw); }
  .float-card { display: none; }
  .panel { padding: 18px; border-radius: 20px; }
  .band { padding: 58px 0; }
  .cta { padding: 76px 0 84px; }
  .prose { padding: 44px 0 72px; }
  .foot-cols { gap: 32px; }
}
