/* SuloBase site styles: one design language for every page.
   Tokens first, then the shared frame (header, footer, buttons), then the
   homepage sections, then document pages. */
:root {
  --paper: #F5F6F4;
  --white: #FFFFFF;
  --ink: #0F1B33;
  --muted: #5B6472;
  --rule: #DCDFE3;
  --amber: #C47D00;
  --term-text: #E4E9F0;
  --term-dim: #8C98AC;
  --term-ok: #86C99A;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.top { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; background: var(--paper); }
html { scroll-padding-top: 72px; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; margin: -4px -4px -4px -6px; }
.top nav { display: flex; align-items: center; align-self: stretch; gap: 22px; font-size: 15px; white-space: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top .brand { flex: none; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.strip { display: none; }
.top nav a[aria-current="page"], .strip a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.top .right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 18px; font-size: 15px; white-space: nowrap; }
.top .right a.plain { text-decoration: none; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  background: var(--amber); color: var(--ink);
  border: 1px solid transparent;
}
.button:hover { background: #D48A06; }
.button.quiet { background: transparent; border-color: var(--rule); color: var(--ink); }
.button.quiet:hover { border-color: var(--ink); background: transparent; }
.top .button { padding: 8px 14px; font-size: 14px; }

/* ── Hero ── */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px;
}
.place { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; margin: 0 0 20px; }
h1 {
  font: 600 clamp(40px, 5.2vw, 62px)/1.02 var(--sans);
  letter-spacing: -0.03em; margin: 0 0 22px;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

.recording { margin: 0; }
.recording .frame {
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 0 rgba(15, 27, 51, 0.04), 0 24px 48px -28px rgba(15, 27, 51, 0.28);
}
.recording .bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--rule); font: 400 12px/1 var(--mono); color: var(--muted);
}
.recording .bar .url { color: var(--ink); }
.recording .bar .rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.recording .bar .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C8372D; }
.recording figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ── Sections ── */
section.block { padding: 88px 0; border-top: 1px solid var(--rule); }
h2 { font: 600 clamp(28px, 3.2vw, 38px)/1.1 var(--sans); letter-spacing: -0.02em; margin: 0 0 14px; }
.intro { max-width: 40em; color: var(--muted); margin: 0 0 36px; }
.intro strong { color: var(--ink); font-weight: 500; }

/* Founding cohort */
.cohort { border-top: 1px solid var(--rule); background: var(--white); }
.cohort-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.cohort-label { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; margin: 0 0 8px; }
.cohort-big { font: 600 22px/1.2 var(--sans); margin: 0; white-space: nowrap; }
.cohort-big span { font-family: var(--mono); font-weight: 500; }
ol.slots { list-style: none; display: grid; grid-template-columns: repeat(10, 18px); gap: 6px; margin: 0; padding: 0; }
ol.slots li { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); }
ol.slots li.taken { background: var(--amber); border-color: var(--amber); }
.cohort-more { font-size: 15px; color: var(--muted); margin: 0; max-width: 34em; }

/* Where your data sits: the map */
.residency-map { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.map-card { margin: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #E8EDF1; }
.map { display: block; width: 100%; height: auto; }
.m-sea { fill: #E8EDF1; }
.m-land { fill: #FFFFFF; stroke: #C9D1D9; stroke-width: 1; stroke-linejoin: round; }
.m-zambia { fill: var(--ink); stroke: var(--ink); stroke-linejoin: round; }
.m-country { font: 500 11px var(--sans); letter-spacing: 0.18em; fill: #8A94A3; }
.m-ocean { font: 400 11px var(--sans); letter-spacing: 0.22em; fill: #93A3B3; }
.m-city { font: 600 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; stroke-linejoin: round; }
.m-city.m-in-zambia { fill: #FFFFFF; stroke: var(--ink); }
.m-route { fill: none; stroke: var(--amber); stroke-width: 2.25; stroke-linecap: round; }
.m-backup { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.m-arrowhead { fill: var(--amber); }
.m-arrowhead-ink { fill: var(--ink); }
.m-km { font: 500 13px var(--mono); fill: #9A5B00; }
.m-users { fill: #FFFFFF; }
.m-lusaka { fill: var(--amber); stroke: #FFFFFF; stroke-width: 2; }
.m-joburg { fill: var(--ink); stroke: #FFFFFF; stroke-width: 2; }
.m-steps circle { fill: var(--amber); stroke: #FFFFFF; stroke-width: 1.5; }
.m-steps text { font: 600 12px var(--sans); fill: var(--ink); text-anchor: middle; }
.m-scale path { fill: none; stroke: #6B7684; stroke-width: 1.25; }
.m-scale text { font: 400 11px var(--mono); fill: #6B7684; }
ol.journey { list-style: none; margin: 0; padding: 0; counter-reset: none; }
ol.journey li { position: relative; padding: 0 0 20px 40px; }
ol.journey li:last-child { padding-bottom: 0; }
ol.journey .step { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); font: 600 13px/24px var(--sans); text-align: center; color: var(--ink); }

.why-cf { margin: 8px 0 40px; }
.why-cf h3 { font: 600 19px/1.3 var(--sans); margin: 0; }
.why-cf dl.moves { margin-top: 18px; padding-top: 22px; }

dl.moves.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
ul.measures { list-style: none; margin: 0; padding: 0; }
ul.measures li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 16px; }
ul.measures li:first-child { border-top: 0; padding-top: 0; }
ul.measures strong { color: var(--ink); font-weight: 600; }
figure.proof { margin: 0; min-width: 0; }
figure.proof figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Why Supabase */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 22px 24px 22px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact-n { display: block; font: 600 28px/1.15 var(--sans); letter-spacing: -0.02em; }
.fact-l { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.source { font-size: 13px; color: var(--muted); margin: 10px 0 48px; }
.stack { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.layer { border-radius: 12px; padding: 22px 24px; }
.layer-supa { background: var(--white); border: 1px solid var(--rule); }
.layer-sulo { background: var(--ink); color: #FFFFFF; }
.layer-name { font: 600 17px/1.3 var(--sans); margin: 0 0 6px; }
.layer-items { margin: 0; font-size: 15px; color: var(--muted); }
.layer-sulo .layer-items { color: #C5CDDA; }
.layer-sulo .layer-name::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--amber); margin-right: 10px; vertical-align: 1px; }
.thesis { font: 600 clamp(22px, 2.4vw, 28px)/1.3 var(--sans); letter-spacing: -0.015em; max-width: 30em; margin: 56px 0 0; }

#exit .split { align-items: center; }

/* Agencies: example projects */
ul.tenants { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; }
li.tenant { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; }
li.tenant svg { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.t-host { font: 500 12.5px var(--mono); overflow-wrap: anywhere; }
.t-meta { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* The law */
.law { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.statute { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 28px; }
.statute .cite { font: 500 12px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em; margin-bottom: 16px; }
.statute blockquote { margin: 0; }
.statute p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
.statute p:last-child { margin-bottom: 0; }
.statute p.key { border-left: 3px solid var(--amber); margin-left: -28px; padding-left: 25px; }
.statute .sub { font: 400 14px var(--mono); color: var(--muted); margin-right: 8px; }
.law-text { margin: 0 0 20px; color: var(--muted); }
pre.schema { font-size: 14px; line-height: 1.8; }
pre.schema .sens { color: #F2B84B; }
.schema-caption { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.for-whom { max-width: 44em; margin: 40px 0 0; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Where your data sits */
table.sits { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
table.sits th, table.sits td { padding: 15px 20px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.sits tr:first-child th, table.sits tr:first-child td { border-top: 0; }
table.sits th { font-weight: 500; width: 42%; }
table.sits td { color: var(--muted); }
table.sits td.here { font: 500 15px var(--mono); color: var(--ink); }
table.sits tr.transit th::after { content: "in transit"; display: block; margin-top: 4px; font: 500 12px var(--mono); color: var(--muted); }
table.sits tr.abroad th::after { content: "outside Zambia"; display: block; margin-top: 4px; font: 500 12px var(--mono); color: #9A5B00; }

/* Moving here */
.move-lead { font: 600 21px/1.3 var(--sans); margin: 0 0 10px; }
.move-text { color: var(--muted); margin: 0; }
.move-text code { font: 400 15px var(--mono); color: var(--ink); }
dl.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--rule); }
dl.moves dt { font-weight: 600; margin-bottom: 8px; }
dl.moves dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Agencies */
.agency { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
ul.points { list-style: none; margin: 0; padding: 0; }
ul.points li { padding: 18px 0; border-top: 1px solid var(--rule); }
ul.points li:first-child { border-top: 0; padding-top: 6px; }

/* Studio tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button {
  font: 500 14px/1 var(--sans); color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--white); border-color: var(--rule); }
.shot { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.shot-caption { font-size: 15px; color: var(--muted); margin-top: 14px; min-height: 1.6em; }

/* Code */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
pre.code {
  margin: 0; padding: 22px 24px; border-radius: 12px; overflow-x: auto;
  background: var(--ink); color: var(--term-text);
  font: 400 14px/1.7 var(--mono);
}
pre.code .dim { color: var(--term-dim); }
pre.code .del { color: #F0A39B; display: block; background: rgba(240, 163, 155, 0.08); margin: 0 -24px; padding: 0 24px; }
pre.code .add { color: var(--term-ok); display: block; background: rgba(134, 201, 154, 0.1); margin: 0 -24px; padding: 0 24px; }
.aside { font-size: 15px; color: var(--muted); margin-top: 18px; }
.aside code { font: 400 14px var(--mono); color: var(--ink); }

/* Distance table */
table.distance { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
table.distance th, table.distance td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; }
table.distance thead th { border-top: 0; font: 500 12px/1.2 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
table.distance td.num { font: 500 15px var(--mono); text-align: right; white-space: nowrap; width: 1%; }
table.distance td.bar { width: 42%; }
table.distance .track { height: 8px; background: #EEF0F2; border-radius: 0 4px 4px 0; }
table.distance .fill { height: 100%; background: var(--ink); opacity: 0.55; border-radius: 0 4px 4px 0; }
table.distance tr.home td { background: #FBF6EC; }
table.distance tr.home .place-name { font-weight: 600; }
table.distance td.note-ref { font: 13px var(--sans); color: var(--muted); }
table.distance .who { display: block; font-size: 13px; color: var(--muted); }
.footnote { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 46em; }

/* Terminal */
.terminal {
  background: var(--ink); color: var(--term-text); border-radius: 12px;
  font: 400 14px/1.75 var(--mono); padding: 22px 26px; overflow-x: auto;
}
.terminal .group { color: var(--term-text); font-weight: 500; }
.terminal .ok { color: var(--term-ok); }
.terminal .line { padding-left: 2ch; white-space: pre; }
.terminal .total { margin-top: 10px; color: var(--term-ok); font-weight: 500; }
.terminal .control { color: var(--term-dim); }

/* Biking */
.pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.pair figure { margin: 0; }
.pair figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Pricing */
.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}
.plan { background: var(--white); padding: 26px 24px 24px; display: flex; flex-direction: column; }
.plan h3 { font: 600 18px/1.2 var(--sans); margin: 0 0 6px; }
.plan .for { font-size: 15px; color: var(--muted); margin: 0 0 22px; min-height: 3.1em; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.plan .amount { font: 500 30px/1 var(--mono); letter-spacing: -0.02em; }
.plan .per { font: 400 13px var(--mono); color: var(--muted); }
.plan .button { justify-content: center; }
.plans.compact .plan .button { margin-top: auto; }
.plans-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.backups { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; margin-top: 48px; }
.backups p { margin: 0 0 10px; color: var(--muted); }
.backups p strong { color: var(--ink); font-weight: 500; }

/* Who */
.who-lead { margin: 0 0 32px; max-width: 34em; font-size: 19px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 40px; }
.person { margin: 0; }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 848 / 900; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.person figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.person strong { font-weight: 600; }
.person span { color: var(--muted); }
.person a { margin-top: 6px; overflow-wrap: anywhere; }


@media (max-width: 1060px) {
  /* Seven page links no longer fit beside the logo and button. They move to a row below the header
     that scrolls sideways when it must, and away with the page: only the logo row stays pinned. */
  .top nav { display: none; }
  .top .wrap { height: 56px; }
  .strip {
    display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 24px;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 15px;
    border-bottom: 1px solid var(--rule);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip a { text-decoration: none; color: var(--muted); }
  .strip a:hover { color: var(--ink); }
  html { scroll-padding-top: 64px; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .pair, .backups, .law, .agency, dl.moves, dl.moves.two { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cohort-row { grid-template-columns: 1fr; gap: 16px; }
  .residency-map { grid-template-columns: 1fr; gap: 28px; }
  table.sits th { width: 48%; }
  .hero .wrap { padding-top: 48px; }
  section.block { padding: 64px 0; }
  .people { gap: 20px; }
  .person figcaption { font-size: 14px; }
  table.distance .bar { display: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top .right a.plain { display: none; }
  body { font-size: 16px; }
  table.distance th, table.distance td { padding: 12px; }
  table.distance td.num { font-size: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan .for, .plans.compact .plan .for { min-height: 0; }
  ol.slots { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .m-city { font-size: 20px; } .m-km { font-size: 18px; } .m-country, .m-ocean { font-size: 15px; } .m-steps text { font-size: 16px; } .m-scale text { font-size: 15px; }
  ol.slots li { width: auto; aspect-ratio: 1; }
  ul.tenants { grid-template-columns: 1fr; }
  table.sits tr { display: block; border-top: 1px solid var(--rule); }
  table.sits tr:first-child { border-top: 0; }
  table.sits th, table.sits td { display: block; width: auto; border-top: 0; }
  table.sits th { padding-bottom: 4px; }
  table.sits td { padding-top: 0; }
}

/* ── Join: the sign-up form, its steps and the onboarding dialog ── */
.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.join-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.join-steps li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 16px; }
.join-steps li:first-child { border-top: 0; padding-top: 0; }
.join-steps strong { color: var(--ink); font-weight: 600; }
.join-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; scroll-margin-top: 90px; }
.join-card-title { font: 600 21px/1.3 var(--sans); margin: 0 0 6px; }
.join-card-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.reserve-form { display: flex; flex-direction: column; gap: 10px; }
.rf-input, .rf-select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--white); color: var(--ink); font: 400 16px/1.3 var(--sans);
}
.rf-input::placeholder { color: #8A94A3; }
.rf-input:focus, .rf-select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.rf-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.rf-select:invalid { color: #8A94A3; }
.rf-submit {
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--amber); color: var(--ink); font: 600 16px var(--sans);
}
.rf-submit:hover { background: #D48A06; }
.rf-submit:disabled { opacity: 0.6; cursor: default; }
.rf-back { background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; padding: 6px 0; align-self: flex-start; }
.rf-back:hover { color: var(--ink); }
.rf-privacy { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.rf-privacy a { color: inherit; }
.step2-head { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.step2-head span { color: var(--ink); font-weight: 600; }
.reserve-success { display: none; }
.reserve-success.visible { display: block; }
.success-icon { width: 40px; height: 40px; border-radius: 50%; background: #EAF3E6; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.success-title { font: 600 20px/1.3 var(--sans); margin: 0 0 6px; }
.success-desc { color: var(--muted); font-size: 15px; margin: 0; }
.onb-actions { display: none; flex-direction: column; gap: 10px; margin-top: 20px; }
.onb-actions.visible { display: flex; }
.onb-action { min-height: 46px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; text-align: left; }
.onb-action:hover { border-color: var(--ink); }
.onb-action.primary { background: var(--amber); border-color: var(--amber); }
.onb-action.primary:hover { background: #D48A06; }
.onb-action.done { background: #EAF3E6; border-color: #EAF3E6; color: #1F5E17; cursor: default; }
.onb-action small { font-weight: 400; color: var(--muted); }

dialog.onb { width: min(640px, calc(100% - 32px)); max-height: min(90vh, 900px); padding: 0; border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); background: var(--paper); }
dialog.onb::backdrop { background: rgba(15, 27, 51, 0.45); }
.onb-inner { display: flex; flex-direction: column; max-height: min(90vh, 900px); }
.onb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--rule); background: var(--white); }
.onb-title { font: 600 18px/1.3 var(--sans); }
.onb-close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rule); background: var(--white); font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.onb-close:hover { color: var(--ink); border-color: var(--ink); }
.onb-body { padding: 20px 24px; overflow-y: auto; }
.onb-lead { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.onb-q { margin-bottom: 20px; }
.onb-q-label { font: 600 15px/1.4 var(--sans); margin-bottom: 8px; }
.onb-q-label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.onb-chip:hover { border-color: var(--ink); }
.onb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.onb-text { margin-top: 8px; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--white); }
.onb-foot .rf-submit { flex-shrink: 0; }
.onb-note { font-size: 13px; color: var(--muted); }
.onb-paper { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; }
.onb-days, .onb-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.onb-msg { font-size: 14px; color: var(--muted); margin: 0; }
.onb-msg.error { color: #B42318; }
.onb-confirm { text-align: center; padding: 20px 0; }
.onb-confirm .success-icon { margin: 0 auto 14px; }

/* ── Questions ── */
.faq { max-width: 820px; }
details.qa { border-top: 1px solid var(--rule); }
details.qa:last-child { border-bottom: 1px solid var(--rule); }
details.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.4 var(--sans); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--sans); color: var(--muted); }
details.qa[open] summary::after { content: "\2212"; }
details.qa .qa-a { padding: 0 0 22px; color: var(--muted); max-width: 44em; }
details.qa .qa-a p { margin: 0 0 12px; }
details.qa .qa-a p:last-child { margin-bottom: 0; }
details.qa .qa-a a { color: var(--ink); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 15px; background: var(--white); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--muted); margin: 12px 0 0; max-width: 24em; font-size: 14px; }
.foot-col h2 { font: 600 13px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }

/* ── Document pages: privacy, terms, data protection, subprocessors ── */
.doc-head { padding: 64px 0 36px; border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 14px; }
.doc-head .lede { margin: 0; max-width: 40em; }
.doc-meta { font: 500 13px/1.5 var(--mono); color: var(--muted); margin: 18px 0 0; }
.doc-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 88px; }
.doc-toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.doc-toc p { font: 600 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin: 0 0 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 18px/1.35 var(--sans); margin: 28px 0 8px; }
.prose p, .prose li { color: #2E3746; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); }
.prose .cite { font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--rule); }
.prose thead th { border-top: 0; font: 600 13px/1.3 var(--mono); color: var(--muted); background: #FAFAF8; }
.prose td { color: #2E3746; }
.prose .table-scroll { overflow-x: auto; margin: 8px 0 24px; }
.prose .table-scroll table { margin: 0; min-width: 560px; }
/* Narrow screens: each row becomes a block, the first cell its heading, the rest labelled. */
@media (max-width: 600px) {
  .prose .table-scroll { overflow: visible; }
  .prose .table-scroll table, .prose .table-scroll tbody, .prose .table-scroll tr, .prose .table-scroll td { display: block; min-width: 0; }
  .prose .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose .table-scroll tr { padding: 14px 16px; border-top: 1px solid var(--rule); }
  .prose .table-scroll tbody tr:first-child { border-top: 0; }
  .prose .table-scroll td { padding: 0; border: 0; }
  .prose .table-scroll td:first-child { font-weight: 600; color: var(--ink); }
  .prose .table-scroll td + td::before { content: attr(data-label); display: block; margin-top: 10px; font: 600 12px/1.4 var(--mono); color: var(--muted); }
}
.callout { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--amber); border-radius: 8px; padding: 16px 18px; margin: 0 0 20px; }
.callout p:last-child { margin-bottom: 0; }
.tag-out { display: inline-block; font: 500 12px var(--mono); color: #9A5B00; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; padding-top: 48px; padding-bottom: 88px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form label { font: 600 14px var(--sans); margin-top: 6px; }
.contact-form textarea.rf-input { min-height: 150px; resize: vertical; }
.contact-msg { font-size: 14px; margin: 4px 0 0; color: var(--muted); }
.contact-msg.error { color: #B42318; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list h2 { font: 600 17px/1.3 var(--sans); margin: 0 0 6px; }
.contact-list p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-list a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .join, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .doc-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-toc { position: static; }
}
@media (max-width: 520px) {
  .join-card { padding: 22px 18px; }
  .onb-head, .onb-body, .onb-foot { padding-left: 18px; padding-right: 18px; }
  .onb-foot { flex-direction: column; align-items: stretch; }
  .doc-head { padding: 44px 0 28px; }
}

/* ── Updates: the /updates/ list and the homepage "latest" section ── */
.upd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.upd-head h2 { margin: 0; }
.upd-kicker { font: 600 13px/1 var(--mono); letter-spacing: 0.02em; color: var(--amber); margin: 0 0 12px; }
.upd-all { font: 600 15px/1 var(--sans); white-space: nowrap; }
.upd-list { padding-top: 48px; padding-bottom: 88px; display: grid; gap: 28px; }
.upd-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.upd-card .upd-img { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.upd-card .upd-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.upd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 13px/1.4 var(--mono); color: var(--muted); margin: 0 0 10px; }
.upd-text h2, .upd-text h3 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--sans); letter-spacing: -0.02em; margin: 0 0 12px; }
.upd-text h2 a, .upd-text h3 a { text-decoration: none; }
.upd-text h2 a:hover, .upd-text h3 a:hover { text-decoration: underline; }
.upd-text p { margin: 0 0 16px; color: #2E3746; }
.upd-text p.upd-meta { color: var(--muted); }
.upd-more { font: 600 15px/1 var(--sans); }
.upd-older { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.upd-older time { font: 500 13px var(--mono); color: var(--muted); margin-right: 10px; }
.upd-sub { border-top: 1px solid var(--rule); padding-top: 32px; }
.upd-sub h2 { font-size: 24px; }
.upd-sub p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 900px) {
  .upd-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .upd-head { flex-direction: column; align-items: flex-start; }
  .upd-card { padding: 14px; }
}

/* ── Pages split out of the homepage: pricing, data residency, security, moving, why Supabase ── */
section.block.first { border-top: 0; padding-top: 48px; }
.cta-band { background: var(--white); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .intro { margin-bottom: 24px; }

/* Homepage: what we say, and where to check it */
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proof { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.proof h3 { font: 600 20px/1.25 var(--sans); letter-spacing: -0.01em; margin: 0 0 8px; }
.proof p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.proof a { margin-top: auto; font: 600 15px/1.3 var(--sans); }
.proof-more { margin: 28px 0 0; color: var(--muted); max-width: 44em; }
.proof-more a { color: var(--ink); }
.more-link { margin: 28px 0 0; font: 600 16px/1.4 var(--sans); }
.supa-lite .stack { max-width: 640px; }
.supa-lite .thesis { margin-top: 40px; }

/* Homepage pricing: the short version. The full cards are on /pricing. */
.plans.compact .plan { padding: 22px 24px; }
.plan-top { margin: 0 0 6px; }
.plan-top h3 { margin: 0 0 4px; }
.plan-top .price { margin: 0; }
.plan-top .per { white-space: nowrap; }
.plans.compact .amount { font-size: 24px; }
.plans.compact .plan .for { margin: 0 0 12px; }
.plans-more { margin: 18px 0 0; font: 600 16px/1.4 var(--sans); }

@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; gap: 14px; }
  .proof { padding: 20px; }
}
@media (max-width: 600px) {
  /* The picture repeats the headline beside it; on a phone it only adds scrolling. */
  #updates .upd-img { display: none; }
}
@media (max-width: 520px) {
  /* One column: the card is wide enough for the plan's name and price on one line. */
  .plan-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
  .plan-top h3 { margin: 0; }
}

/* ── Plans: three numbers and backups on the homepage, what each step adds on /pricing, and the comparison ── */
.ic { flex: none; display: inline-block; }
.ic.ok circle { fill: var(--amber); }
.ic.ok path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.no circle { fill: #E9ECEF; }
.ic.no path { fill: none; stroke: #8C95A3; stroke-width: 2; stroke-linecap: round; }

/* Homepage cards */
.plans.compact .stats { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats li { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 62px; padding: 9px 4px 8px; text-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.stats strong { font: 500 17px/1.1 var(--mono); letter-spacing: -0.04em; }
.stats span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.plans.compact .agreed { display: flex; align-items: center; justify-content: center; min-height: 62px; margin: 4px 0 16px; padding: 9px 12px; text-align: center; font-size: 14px; color: var(--muted); border: 1px dashed #C7CDD4; border-radius: 8px; }
.backup { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; font-size: 14px; line-height: 1.35; }
.backup .ic { margin-top: 1px; }
.backup.none { color: var(--muted); }

/* /pricing cards: what the plan holds, and what it adds to the one before */
.plan .plus { margin: 24px 0 14px; padding-top: 18px; border-top: 1px solid var(--rule); font: 600 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gains li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.35; }
.gains .ic { margin-top: 1px; }
.gains strong { display: block; font-weight: 600; }
.gains em { display: block; margin-top: 2px; font: 400 13.5px/1.4 var(--sans); font-style: normal; color: var(--muted); }
.gains li.no strong { font-weight: 500; color: var(--muted); }

/* Comparison table */
.compare-wrap { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
table.compare { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.compare thead th:first-child { width: 23%; }
.compare th, .compare td { text-align: left; vertical-align: middle; }
.compare thead th { vertical-align: top; padding: 20px 20px 18px; font-weight: 400; background: #FAFAF8; border-bottom: 1px solid var(--rule); }
.compare thead .n { display: block; font: 600 18px/1.2 var(--sans); }
.compare thead .p { display: block; margin-top: 4px; font: 500 15px/1.4 var(--mono); }
.compare thead .p small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--muted); }
.compare thead .button { margin-top: 14px; padding: 8px 14px; font-size: 14px; }
.compare tr.group th { padding: 11px 20px; font: 600 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); background: #FAFAF8; }
.compare tbody + tbody tr.group th { border-top: 1px solid var(--rule); }
.compare tr.row th, .compare tr.row td { padding: 16px 20px; border-top: 1px solid var(--rule); }
.compare tr.row th { font-weight: 500; }
.compare .cell { display: grid; gap: 8px; }
.compare .v { display: inline-flex; align-items: center; gap: 8px; font: 500 16px/1.2 var(--mono); }
.compare .v.none, .compare .v.agreed { font-weight: 400; color: var(--muted); }
.compare .bar { display: block; height: 6px; border-radius: 3px; background: #ECEEF1; overflow: hidden; }
.compare .bar i { display: block; height: 100%; border-radius: 3px; background: var(--amber); }
.compare-note { max-width: 52em; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.backups.alone { margin-top: 0; }

@media (max-width: 760px) {
  /* A phone cannot hold five columns: each row becomes a block that lists the four plans. */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr.group th { padding: 11px 16px; }
  .compare tr.row { padding: 14px 16px 12px; border-top: 1px solid var(--rule); }
  .compare tr.row th { width: auto; padding: 0 0 8px; border: 0; font-weight: 600; }
  .compare tr.row td { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 0; border: 0; }
  .compare tr.row td::before { content: attr(data-label); font: 500 12px/1.3 var(--mono); color: var(--muted); }
}
