/* Mendloop marketing site
   Direction: "The product performs" (taste-skill v2, seed 1935047724), palette proportions from
   "Greys and mint" with the mint replaced by the brand's own gold seam (#D9A845). Type: Geist.
   One radius for the page: square. Fragments marked [data-ui] keep the app's own conventions. */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #ffffff;
  --surface: #f1f1f2;
  --surface-2: #e6e6e8;
  --ink: #111113;
  --muted: #55555d;

  --night: #0a0a0b;
  --night-2: #141416;
  --night-3: #1c1c1f;
  --night-ink: #ededef;
  --night-muted: #a6a6ae;

  --gold: #d9a845;          /* the kintsugi seam: the accent and the one flooding field */
  --gold-strong: #c8963a;
  --gold-ink: #111113;
  --blue: #4c8dff;          /* the app's AI accent */
  --orange: #f97316;        /* the app's test-mode colour */

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;                                     /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);       /* 17-18px */
  --step-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);        /* 20-24px */
  --step-sub: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);          /* 24-36px: plan names, statements in the loop, tiles */
  --step-head: clamp(2rem, 1.15rem + 2.9vw, 3.5rem);           /* 32-56px */
  --step-display: clamp(2.75rem, 0.9rem + 5.4vw, 5.75rem);     /* 44-92px */

  --margin: clamp(1rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 12rem);
  --anchor: 34%;            /* the off-centre text line reused across sections */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; }
@media (pointer: fine) { html { overscroll-behavior-y: none; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, pre { margin: 0; }
ul[class], ol[class], .faq-list ul, .ft-nav ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target, [id] { scroll-margin-top: 1.5rem; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-gold :focus-visible, .on-light :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

pre, code, kbd { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
p code, li code, td code, dd code { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-weight: 500; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.042em; }
.head { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.032em; }
.lead { font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } }

/* ---------------------------------------------------------------- layout */
.wrap { padding-inline: var(--margin); max-width: 1840px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.night { background: var(--night); color: var(--night-ink); color-scheme: dark; }
.night .muted { color: var(--night-muted); }
.on-gold { background: var(--gold); color: var(--gold-ink); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0 1.4rem; background: var(--gold); color: var(--gold-ink);
  font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-light { background: var(--night-ink); color: var(--night); }
.link {
  text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.22em;
  text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link-quiet { text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gold-strong); }
  .btn-ink:hover { background: #2a2a2e; }
  .btn-light:hover { background: #ffffff; }
  .link:hover { text-decoration-color: var(--gold); }
  .on-gold .link:hover, .link-quiet:hover { text-decoration-color: currentColor; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }

/* ---------------------------------------------------------------- skip link + header */
.skip {
  position: absolute; left: var(--margin); top: 0.5rem; z-index: 50; padding: 0.7rem 1rem;
  background: var(--gold); color: var(--gold-ink); font-weight: 500; transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus { transform: none; }

.logo { width: 28px; height: 28px; flex: none; --logo-tile: var(--night-ink); --logo-hole: var(--night); }
.on-light .logo { --logo-tile: var(--ink); --logo-hole: var(--bg); }

.site-head { position: relative; z-index: 20; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.75rem); font-size: var(--step-small); }
.nav-links a { text-decoration: none; color: var(--night-muted); transition: color var(--t-hover) ease; padding-block: 0.6rem; }
.nav-links a[aria-current="page"] { color: var(--night-ink); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--night-ink); } }
.nav-end { display: flex; align-items: center; gap: 1.25rem; font-size: var(--step-small); }
.nav-end .signin { text-decoration: none; color: var(--night-ink); padding-block: 0.6rem; }
.nav-end .btn { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.menu { display: none; }
@media (max-width: 1080px) {
  .nav-links, .nav-end .signin, .nav-end .btn { display: none; }
  .js .menu { display: inline-flex; }
}
.menu {
  align-items: center; min-height: 2.75rem; padding: 0 0.9rem;
  background: var(--night-3); color: var(--night-ink); font-size: var(--step-small);
}
.menu-sheet {
  position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--night-ink);
  padding: 1rem var(--margin) 2rem; display: flex; flex-direction: column; overscroll-behavior: contain; overflow-y: auto;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet .menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; }
.menu-sheet .menu-close { min-height: 2.75rem; padding: 0 0.9rem; background: var(--night-3); font-size: var(--step-small); }
.menu-sheet ul { margin-top: 2rem; display: grid; gap: 0.25rem; }
.menu-sheet ul a { display: block; font-size: var(--step-sub); letter-spacing: -0.03em; text-decoration: none; padding-block: 0.35rem; }
.menu-sheet .btn { margin-top: auto; width: 100%; min-height: 3.25rem; }
.menu-sheet .signin { margin-top: 1rem; text-align: center; padding: 0.75rem; }

/* ---------------------------------------------------------------- hero (control that reads the page) */
.hero { background: var(--night); color: var(--night-ink); color-scheme: dark; position: relative; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 980px); }
.hero-split::before { /* the lighter right half, meeting the dark half at a clean vertical edge */
  content: ""; grid-column: 2; grid-row: 1; background: var(--night-2);
}
.hero-text {
  grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--margin) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-text h1 { max-width: 14ch; font-size: min(var(--step-display), 4.7vw); }
@media (max-width: 900px) { .hero-text h1 { font-size: var(--step-display); } }
.hero-text h1 .line { display: block; }
.hero-text .lead { margin-top: 1.5rem; color: var(--night-muted); max-width: 40ch; }
.hero-text .lead strong { color: var(--night-ink); font-weight: 500; }
.hero-text .actions { margin-top: 2.25rem; }
.hero-text .footnote { margin-top: 1.75rem; color: var(--night-muted); font-size: var(--step-small); }
.hero .muted { color: var(--night-muted); }
.hero .muted b { color: var(--night-ink); font-weight: 500; }
.hero-stage > div { width: 100%; min-width: 0; display: grid; justify-items: center; }
.hero-stage {
  grid-column: 2; grid-row: 1; display: grid; place-items: center;
  padding: 6.5rem clamp(1.25rem, 3vw, 3.5rem) 3rem;
}
.hero .site-head { position: absolute; inset: 0 0 auto 0; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-split::before { grid-column: 1; grid-row: 2; }
  .hero-text { grid-row: 1; padding-top: 6rem; padding-bottom: 2.5rem; }
  .hero-text h1 { max-width: 12ch; }
  .hero-stage { grid-column: 1; grid-row: 2; padding: 2.5rem var(--margin) 3rem; }
}

/* small page heroes (pricing, security, open source) */
.page-hero .hero-split { min-height: min(86svh, 820px); }
/* text-only heroes (privacy, terms): one dark column, no picture half */
.page-hero .hero-split.solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero-split.solo::before { content: none; }
.hero-split.solo .hero-text { padding-top: 10rem; }
.hero-split.solo .hero-text .lead { max-width: 56ch; }

/* ---------------------------------------------------------------- the decision fragment (app conventions) */
[data-ui] { font-size: 14px; line-height: 1.5; letter-spacing: 0; }
[data-ui].frag {
  width: 100%; max-width: 560px; background: #111113; color: #ededef; border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; overflow: hidden; text-align: left;
}
[data-ui] .f-head { padding: 18px 20px 14px; }
[data-ui] .f-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #ededef; }
[data-ui] .f-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: #a0a0a8; font-size: 13px; }
[data-ui] .f-meta b { color: #ededef; font-weight: 500; }
[data-ui] .tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12.5px; font-weight: 500; vertical-align: 2px; }
[data-ui] .tag.p1 { background: rgba(242,85,90,.14); color: #ff7b7f; }
[data-ui] .tag.wait { background: rgba(241,178,74,.13); color: #f1b24a; }
[data-ui] .tag.seam { background: rgba(217,168,69,.16); color: #e6bd66; }
[data-ui] .tag.ok { background: rgba(61,214,140,.12); color: #3dd68c; }
[data-ui] .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-ui] .tag.p1::before { display: none; }
[data-ui] .f-cause { padding: 14px 20px 16px; background: #0d0d0f; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
[data-ui] .f-label { display: flex; justify-content: space-between; color: #a0a0a8; font-size: 13px; }
[data-ui] .f-cause p { margin-top: 6px; color: #ededef; max-width: none; }
[data-ui] .cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 2px; padding: 0 4px; border-radius: 4px; background: #1e1e22; color: #a0a0a8; font-size: 11px; vertical-align: 2px; }
[data-ui] code { font-size: 12.5px; color: #ededef; }
[data-ui] .f-code { margin: 12px 0 0; padding: 8px 0; background: #0a0a0b; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
[data-ui] .f-code .ln { display: block; padding: 1px 12px 1px 0; white-space: pre; font-size: 12.5px; line-height: 21px; color: #c9c9cf; position: relative; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .f-code .ln i { display: inline-block; width: 44px; font-style: normal; color: #6f6f78; text-align: right; padding-right: 14px; }
[data-ui] .f-code .ln.hit { background: rgba(242,85,90,.13); }
[data-ui] .f-code .ln.hit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #f2555a; }
[data-ui] .f-code .ln.seamed { background: rgba(217,168,69,.12); }
[data-ui] .f-code .ln.seamed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #d9a845; }
[data-ui] .k { color: #ff7b9c; } [data-ui] .f { color: #7aaaff; } [data-ui] .t { color: #f1c27a; }
[data-ui] .f-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 20px 0; font-size: 13px; color: #8a8a93; }
[data-ui] .f-steps li { display: inline-flex; align-items: center; gap: 6px; transition: color 300ms ease; }
[data-ui] .f-steps li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #3a3a40; transition: background-color 300ms ease, border-color 300ms ease; }
[data-ui] .f-steps li.done { color: #c9c9cf; }
[data-ui] .f-steps li.done::before { background: #3dd68c; border-color: #3dd68c; }
[data-ui] .f-steps li.now { color: #ededef; }
[data-ui] .f-steps li.now::before { background: #4c8dff; border-color: #4c8dff; }
[data-ui] .f-steps li.gold { color: #e6bd66; }
[data-ui] .f-steps li.gold::before { background: #d9a845; border-color: #d9a845; }
[data-ui] .f-decide { padding: 16px 20px 18px; }
[data-ui] .f-buttons { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
[data-ui] .f-btn { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #17171a; color: #ededef; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
[data-ui] .f-btn:active { transform: scale(0.97); }
[data-ui] .f-btn.primary { background: #ededef; color: #0a0a0b; border-color: #ededef; }
[data-ui] .f-btn kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 4px; background: rgba(0,0,0,.1); color: #3a3a40; font-size: 11.5px; }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .f-btn:hover { background: #1e1e22; }
  [data-ui] .f-btn.primary:hover { background: #ffffff; }
}
[data-ui] .f-btn:focus-visible { outline: 2px solid #4c8dff; outline-offset: 2px; }
[data-ui] .f-note { margin-top: 12px; color: #a0a0a8; font-size: 13px; max-width: none; min-height: 39px; }
[data-ui] .f-log { padding: 10px 20px 0; display: grid; align-content: start; gap: 0; min-height: 190px; }
[data-ui] .f-log li.idle { color: #a0a0a8; }
[data-ui] .f-log li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 5px 0; font-size: 13px; color: #c9c9cf; }
[data-ui] .f-log time { color: #8a8a93; font-variant-numeric: tabular-nums; }
[data-ui] .f-log li.gold { color: #e6bd66; }
[data-ui] .f-log li.gold b { color: #e6bd66; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  [data-ui] .f-log li { animation: f-in 420ms var(--ease-out) both; }
  @keyframes f-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (max-width: 520px) {
  [data-ui] .f-buttons { grid-template-columns: 1fr 1fr; }
  [data-ui] .f-buttons .primary { grid-column: 1 / -1; height: 48px; }
  [data-ui] .f-code .ln { font-size: 11.5px; }
}

/* ---------------------------------------------------------------- loop: pinned fragment, changing state */
.loop { background: var(--bg); }
.loop-intro { padding-top: calc(var(--section) * 0.75); }
.loop-intro .head { max-width: 16ch; }
.loop-intro p { margin-top: 1.25rem; }
.loop-body { align-items: start; }
.loop-steps { grid-column: 1 / span 4; }
.loop-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2.5rem; }
.loop-step h3 { font-size: var(--step-sub); line-height: 1.12; letter-spacing: -0.028em; max-width: 17ch; color: var(--muted); transition: color 300ms ease; }
.loop-step.is-active h3 { color: var(--ink); }
.loop-step p { margin-top: 1rem; max-width: 44ch; }
.loop-step .inline-shot { display: none; margin-top: 1.5rem; }
.loop-stage { grid-column: 5 / span 8; position: sticky; top: 11vh; height: 78vh; display: grid; place-items: center; background: var(--surface); margin-block: 12vh; }
.loop-stage figure { position: absolute; inset: clamp(1rem, 1.6vw, 1.5rem); display: grid; place-items: center; opacity: 0; transition: opacity 500ms ease; }
.loop-stage figure.is-on { opacity: 1; }
.loop-stage img { width: 100%; height: 100%; object-fit: contain; }
.loop-stage figcaption { position: absolute; left: 0; bottom: calc(clamp(1.25rem, 3vw, 3rem) * -1); transform: translateY(-50%); font-size: var(--step-small); color: var(--muted); }
html:not(.js) .loop-stage { display: none; }
html:not(.js) .loop-step .inline-shot { display: block; }
@media (max-width: 900px) {
  .loop-steps { grid-column: 1 / -1; }
  .loop-stage { display: none; }
  .loop-step { min-height: 0; padding-block: 2.5rem; }
  .loop-step h3 { color: var(--ink); }
  .loop-step .inline-shot { display: block; background: var(--surface); padding: 0.75rem; }
}

/* ---------------------------------------------------------------- switches (sentences with switches) */
.switches { padding-top: calc(var(--section) / 2); }
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 20vh; padding: 1.75rem var(--margin); background: var(--bg); color: var(--ink); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.band .band-text { grid-column: 1 / span 10; }
.band h3 { font-size: var(--step-head); line-height: 1.06; letter-spacing: -0.032em; color: var(--muted); transition: color 420ms var(--ease-out); }
.band .consequence { margin-top: 0.75rem; max-width: 70ch; display: none; }
.band.is-on h3 { color: inherit; }
.band.is-on .consequence { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .band.is-on .consequence { animation: rise-in 520ms var(--ease-out) both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.band .toggle-cell { grid-column: 11 / span 2; justify-self: end; }
.band.is-on[data-field="ink"] { background: var(--night); color: var(--night-ink); }
.band.is-on[data-field="gold"] { background: var(--gold); color: var(--gold-ink); }
.band.is-on[data-field="blue"] { background: var(--blue); color: var(--ink); }
.band.is-on[data-field="orange"] { background: var(--orange); color: var(--ink); }
.band.is-on[data-field="stone"] { background: var(--surface-2); color: var(--ink); }
.band.is-on[data-field="ink"] :focus-visible { outline-color: var(--gold); }
.band.is-on:not([data-field="ink"]) :focus-visible { outline-color: var(--ink); }

[data-ui].switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; }
[data-ui].switch .track { position: relative; width: 4.2rem; height: 2.4rem; border-radius: 999px; background: #c9c9cf; transition: background-color 240ms ease; }
[data-ui].switch .thumb { position: absolute; top: 0.25rem; left: 0.25rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #ffffff; transition: transform 300ms var(--ease-out); }
[data-ui].switch[aria-checked="true"] .track { background: #111113; }
[data-ui].switch[aria-checked="true"] .thumb { transform: translateX(1.8rem); }
.band[data-field="ink"].is-on [data-ui].switch[aria-checked="true"] .track { background: #d9a845; }
.band[data-field="ink"].is-on [data-ui].switch .thumb { background: #0a0a0b; }
@media (max-width: 700px) {
  .band { min-height: 132px; padding-block: 1.5rem; }
  .band .band-text { grid-column: 1 / span 9; }
  .band .toggle-cell { grid-column: 10 / span 3; }
  .band h3 { font-size: 1.5rem; }
  .band .consequence { font-size: 1rem; }
  [data-ui].switch .track { width: 3.4rem; height: 2rem; }
  [data-ui].switch .thumb { width: 1.5rem; height: 1.5rem; }
  [data-ui].switch[aria-checked="true"] .thumb { transform: translateX(1.4rem); }
}

/* ---------------------------------------------------------------- mended in gold (the one image screen) */
.mended { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); background: var(--surface); margin-top: var(--section); }
.mended figure { grid-column: 1 / span 7; position: relative; overflow: hidden; min-height: 72svh; background: var(--surface-2); }
.mended figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.mended .mended-text { grid-column: 8 / span 5; align-self: end; padding: 4rem var(--margin) 4rem 0; }
.mended .mended-text p { margin-top: 1.25rem; }
.mended .mended-text .lead { margin-top: 1.5rem; }
.mended .credit { margin-top: 2rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .mended { grid-template-columns: 1fr; }
  .mended figure { grid-column: 1; min-height: 0; aspect-ratio: 4 / 3; }
  .mended .mended-text { grid-column: 1; padding: 2.5rem var(--margin) 3rem; }
}

/* ---------------------------------------------------------------- integrations (tabs + banded list) */
.tools-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.tools-head h2 .soft { color: var(--muted); display: block; }
.tools-head h2 .full { display: block; }
.tools { display: grid; grid-template-columns: 170px 1fr; gap: 2.5rem; margin-top: 3.5rem; align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: 1.5rem; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 64px; padding: 0 1rem; background: var(--surface); color: var(--ink); text-align: left;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.tab .tab-name { font-size: var(--step-body); font-weight: 500; }
.tab .tab-count { font-size: var(--step-small); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"] .tab-count { color: #c9c9cf; }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: var(--surface-2); } }
.tool-list { display: grid; gap: 4px; }
.tool {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 15rem); gap: 1.5rem; align-items: center;
  min-height: 76px; padding: 0.9rem 1.25rem; background: var(--surface);
}
.tool:nth-child(even) { background: var(--surface-2); }
.tool .status { font-size: var(--step-body); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.55rem; }
.tool .status::before { content: ""; width: 10px; height: 10px; background: var(--muted); flex: none; }
.tool .status.now::before { background: var(--gold); }
.tool .status.next { color: var(--muted); }
.tool .name { font-size: var(--step-body); font-weight: 500; }
.tool .what { font-size: var(--step-small); color: var(--muted); margin-top: 0.15rem; }
.tool .scope { font-size: var(--step-small); text-align: right; color: var(--ink); }
.tool-panel[hidden] { display: none; }
.tools-note { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr; gap: 1rem; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
  .tab { min-height: 56px; }
  .tool { grid-template-columns: 1fr; gap: 0.35rem; padding: 1rem; }
  .tool .scope { text-align: left; color: var(--muted); }
}

/* ---------------------------------------------------------------- open source: side facts, wide paragraph */
.os-row { display: grid; grid-template-columns: var(--anchor) 1fr; column-gap: var(--gutter); }
.os-row + .os-row { margin-top: 7.5rem; }
.facts { display: grid; gap: 1.25rem; align-content: start; font-size: var(--step-small); }
.facts dt { color: var(--muted); }
.facts dd { font-size: var(--step-body); font-weight: 500; }
.os-para { font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.012em; max-width: 34em; }
.os-word { font-size: var(--step-body); font-weight: 500; }
.os-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: 2rem 4rem; }
.os-lists h3 { font-size: var(--step-body); font-weight: 500; margin-bottom: 0.75rem; }
.os-lists ul li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; font-size: var(--step-body); }
.os-lists ul li span:last-child { color: var(--muted); text-align: right; }
.terminal { background: var(--night); color: var(--night-ink); padding: 1.5rem 1.75rem; overflow-x: auto; font-size: var(--step-small); line-height: 1.75; max-width: 46rem; }
.terminal .c { color: var(--night-muted); }
.terminal .p { color: var(--gold); user-select: none; }
.os-cmds .actions { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .os-row { grid-template-columns: 1fr; row-gap: 2rem; }
  .os-row + .os-row { margin-top: 4rem; }
  .facts { grid-template-columns: 1fr 1fr; grid-row: 2; }
  .os-lists { grid-template-columns: 1fr; }
  .terminal { padding: 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------- privacy: large marks on tiles */
.marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mark { background: var(--surface); padding: 1.5rem; aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.mark b { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.mark b code { font-size: 0.82em; font-weight: 500; letter-spacing: -0.02em; }
.mark span { font-size: var(--step-body); max-width: 26ch; }
.mark.lead-tile { grid-column: span 2; aspect-ratio: auto; background: var(--gold); color: var(--gold-ink); }
.mark.lead-tile h2 { max-width: 12ch; }
.mark.lead-tile p { max-width: 38ch; }
.mark.night { background: var(--night); color: var(--night-ink); }
@media (max-width: 1000px) { .marks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .mark { aspect-ratio: auto; min-height: 9.5rem; padding: 1.1rem; } }
@media (max-width: 520px) { .mark b { font-size: var(--step-lead); } .mark span { font-size: var(--step-small); } }

/* ---------------------------------------------------------------- plans as a large table */
.plans-wrap { margin-top: 0; }
.plans { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.plans col.c-label { width: 30%; }
.plans th, .plans td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem; font-weight: 400; }
.plans thead th { vertical-align: bottom; padding-top: 1.75rem; }
.plans thead th:first-child { vertical-align: top; }
.plans .plan-name { display: block; font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.plans .plan-price { display: block; margin-top: 0.4rem; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.05; }
.plans .plan-price small { font-size: var(--step-small); letter-spacing: 0; color: var(--muted); }
.plans .plan-sub { display: block; margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); min-height: 2.6em; }
.plans tbody tr:nth-child(odd) td, .plans tbody tr:nth-child(odd) th { background: var(--surface); }
.plans tbody th { font-weight: 400; }
.plans .rec { background: var(--gold) !important; color: var(--gold-ink); }
.plans .rec small, .plans .rec .plan-sub { color: var(--gold-ink); }
.plans tfoot td { padding-block: 1.5rem 1.75rem; }
.plans tfoot .btn { width: 100%; white-space: normal; text-align: center; padding: 0.6rem 0.9rem; font-size: var(--step-small); }
.plans .muted { color: var(--muted); }
.plans-cards { display: none; }
@media (max-width: 900px) {
  .plans { display: none; }
  .plans-cards { display: grid; gap: 8px; }
  .plan-card { background: var(--surface); padding: 1.5rem 1.25rem; }
  .plan-card.rec { background: var(--gold); color: var(--gold-ink); }
  .plan-card h3 { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.03em; }
  .plan-card .plan-price { font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.1; }
  .plan-card .plan-price small { font-size: var(--step-small); }
  .plan-card dl { margin-top: 1.25rem; display: grid; gap: 0.85rem; }
  .plan-card dt { color: var(--muted); font-size: var(--step-small); }
  .plan-card.rec dt { color: var(--gold-ink); }
  .plan-card dd { font-size: var(--step-body); }
  .plan-card .btn { width: 100%; margin-top: 1.5rem; min-height: 3.25rem; }
}

/* ---------------------------------------------------------------- question index, one answer */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq-list { grid-column: 1 / span 5; }
.faq-list h2 { font-size: var(--step-body); font-weight: 400; color: var(--muted); margin-bottom: 1.1rem; }
.faq-list ul { display: grid; gap: 0.35rem; }
.q { display: flex; gap: 0.9rem; align-items: baseline; width: 100%; text-align: left; padding: 0.55rem 0; font-size: var(--step-body); color: var(--muted); transition: color var(--t-hover) ease; }
.q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-0.12em); transition: background-color var(--t-hover) ease; }
.q[aria-expanded="true"] { color: var(--ink); }
.q[aria-expanded="true"]::before { background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .q:hover { color: var(--ink); } }
.a-inline { display: none; }
.faq-pane { grid-column: 7 / span 6; position: sticky; top: 7.5rem; min-height: 16rem; }
.faq-pane .answer { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.015em; max-width: 30ch; }
.faq-pane .answer p + p { margin-top: 0.8em; }
@media (prefers-reduced-motion: no-preference) { .faq-pane .answer.swap { animation: fade 150ms ease both; } }
@keyframes fade { from { opacity: 0; } }
html:not(.js) .faq-pane { display: none; }
html:not(.js) .a-inline { display: block; }
@media (max-width: 900px) {
  .faq-list { grid-column: 1 / -1; }
  .faq-pane { display: none; }
  .a-inline { padding: 0.25rem 0 1rem 1.4rem; line-height: 1.5; }
  .a-inline[hidden] { display: none; }
  .js .a-inline:not([hidden]) { display: block; }
}

/* ---------------------------------------------------------------- closing: first step, already open */
.closing { background: var(--gold); color: var(--gold-ink); min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin); }
.closing-text { grid-column: 1 / span 5; align-self: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.closing-text h2 { font-size: var(--step-display); line-height: 0.94; letter-spacing: -0.045em; font-weight: 500; }
.closing-text p { margin-top: 1.5rem; max-width: 40ch; }
.closing-text .alt { margin-top: 1.25rem; }
.closing-dialog { grid-column: 7 / span 5; align-self: center; justify-self: center; width: 100%; max-width: 460px; }
@media (max-width: 900px) {
  .closing { grid-template-columns: minmax(0, 1fr); min-height: 84svh; padding-block: 3.5rem 2.5rem; }
  .closing-text { grid-column: 1; grid-row: 1; align-self: start; padding-bottom: 2.5rem; }
  .closing-text h2 { font-size: 13vw; }
  .closing-dialog { grid-column: 1; grid-row: 2; max-width: none; align-self: end; }
}
[data-ui].dialog { background: #ffffff; color: #111113; border-radius: 12px; padding: 24px; box-shadow: 0 24px 60px -20px rgba(17,17,19,.35), 0 2px 6px rgba(17,17,19,.08); }
[data-ui].dialog h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui].dialog .d-sub { margin-top: 4px; color: #55555d; font-size: 14px; }
[data-ui].dialog label, [data-ui].dialog .d-label { display: block; margin-top: 20px; font-size: 13px; font-weight: 500; color: #3a3a40; }
[data-ui].dialog .d-field { display: flex; align-items: center; margin-top: 6px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fafafa; transition: border-color 160ms ease; }
[data-ui].dialog .d-field:focus-within { border-color: #111113; outline: 2px solid rgba(17,17,19,.15); outline-offset: 1px; }
[data-ui].dialog input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 16px; outline: none; }
[data-ui].dialog .d-suffix { padding-right: 12px; color: #6f6f78; font-size: 14px; white-space: nowrap; }
[data-ui].dialog .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; padding: 4px; background: #f1f1f2; border-radius: 8px; }
[data-ui].dialog .seg button { height: 38px; border-radius: 6px; font-size: 14px; color: #55555d; transition: background-color 160ms ease, color 160ms ease; }
[data-ui].dialog .seg button[aria-pressed="true"] { background: #ffffff; color: #111113; font-weight: 500; }
[data-ui].dialog .seg button:focus-visible { outline: 2px solid #111113; outline-offset: 1px; }
[data-ui].dialog .d-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 24px; border-radius: 8px; background: #111113; color: #ffffff; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
[data-ui].dialog .d-go:active { transform: scale(0.98); }
[data-ui].dialog .d-go:focus-visible { outline: 2px solid #111113; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { [data-ui].dialog .d-go:hover { background: #2a2a2e; } }
[data-ui].dialog .d-foot { margin-top: 14px; font-size: 13px; color: #55555d; }

/* ---------------------------------------------------------------- footer of tiles */
.site-foot { padding: 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ft { background: var(--surface); padding: 1.5rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.ft-statement { grid-column: 1 / span 4; }
.ft-statement .say { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; max-width: 20ch; }
.ft-legal { font-size: var(--step-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.ft-legal a { color: var(--ink); }
.ft-nav { grid-column: 5 / span 3; }
.ft-nav ul { display: grid; gap: 0.15rem; }
.ft-nav a { text-decoration: none; padding-block: 0.15rem; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .ft-nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.ft-photo { grid-column: 8 / span 2; padding: 0; position: relative; overflow: hidden; background: var(--surface-2); }
.ft-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.ft-mail { grid-column: 10 / span 3; }
.ft-mail a { font-size: var(--step-lead); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ft-mail p { font-size: var(--step-small); color: var(--muted); }
.ft-word { grid-column: 1 / span 8; min-height: 320px; background: var(--night); color: var(--night-ink); justify-content: center; align-items: center; }
.ft-word span { font-size: clamp(3.5rem, 9vw, 10rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9; display: inline-flex; align-items: center; gap: 0.18em; }
.ft-word .logo { width: 0.82em; height: 0.82em; }
.ft-go { grid-column: 9 / span 4; min-height: 320px; background: var(--gold); color: var(--gold-ink); text-decoration: none; position: relative; transition: background-color var(--t-hover) ease; }
.ft-go .say { font-size: var(--step-sub); letter-spacing: -0.025em; line-height: 1.15; max-width: 12ch; }
.ft-go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ft-go:hover { background: var(--gold-strong); } .ft-go:hover svg { transform: translate(4px, -4px); } }
.ft-go:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.ft-credits { grid-column: 1 / -1; padding: 0.75rem 0.5rem 0.5rem; font-size: var(--step-small); color: var(--muted); }
.ft-credits a { color: var(--muted); }
@media (max-width: 900px) {
  .site-foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .ft { min-height: 0; padding: 1.25rem; }
  .ft-word { grid-column: 1 / -1; grid-row: 1; min-height: 160px; }
  .ft-word span { font-size: 15vw; }
  .ft-go { grid-column: 1 / -1; grid-row: 2; min-height: 160px; }
  .ft-nav { grid-column: 1; grid-row: 3; }
  .ft-photo { grid-column: 2; grid-row: 3; min-height: 180px; }
  .ft-statement { grid-column: 1 / -1; grid-row: 4; }
  .ft-mail { grid-column: 1 / -1; grid-row: 5; }
  .ft-statement .say { font-size: var(--step-body); }
  .ft-mail a { font-size: var(--step-body); }
}

/* ---------------------------------------------------------------- inner pages: shared pieces */
.split-row { display: grid; grid-template-columns: var(--anchor) 1fr; column-gap: var(--gutter); }
.split-row + .split-row { margin-top: 6rem; }
.split-row .row-head h2 { max-width: 13ch; }
.split-row .row-body > * + * { margin-top: 1.25rem; }
.shot { background: var(--night); }
.shot img { width: 100%; height: auto; }
.shot-cap { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.data { width: 100%; border-collapse: collapse; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.data caption { text-align: left; font-size: var(--step-small); color: var(--muted); padding-bottom: 0.75rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--surface-2); }
.data thead th { font-weight: 500; font-size: var(--step-small); color: var(--muted); }
.data tbody th { font-weight: 500; }
.data .grp th { padding-top: 2rem; font-size: var(--step-body); font-weight: 600; border-bottom-color: var(--ink); }
.data .yes { font-weight: 500; }
.data .no { color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 900px) {
  .split-row { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .split-row + .split-row { margin-top: 4rem; }
}

/* ---------------------------------------------------------------- reveals (content stays visible without script) */
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .js .lines [data-line] { display: block; transform: translateY(108%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 420ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.1); transition: transform 1600ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
  }
}

/* ---------------------------------------------------------------- pricing: the estimate (app conventions) */
[data-ui].calc { width: 100%; max-width: 520px; background: #111113; color: #ededef; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 22px 22px 8px; }
[data-ui].calc h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui].calc .c-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: #a0a0a8; flex-wrap: wrap; }
[data-ui].calc .stepper { display: inline-flex; align-items: stretch; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
[data-ui].calc .stepper button { width: 44px; height: 44px; background: #17171a; color: #ededef; font-size: 18px; transition: background-color 160ms ease; }
[data-ui].calc .stepper button:active { background: #26262b; }
[data-ui].calc .stepper input { width: 64px; height: 44px; border: 0; background: #0d0d0f; color: #ededef; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
[data-ui].calc .stepper input::-webkit-outer-spin-button, [data-ui].calc .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
[data-ui].calc .stepper input:focus-visible, [data-ui].calc .stepper button:focus-visible, [data-ui].calc .seg button:focus-visible { outline: 2px solid #4c8dff; outline-offset: -2px; }
[data-ui].calc .seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: #0d0d0f; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; }
[data-ui].calc .seg button { height: 36px; padding: 0 12px; border-radius: 6px; color: #a0a0a8; font-size: 14px; transition: background-color 160ms ease, color 160ms ease; }
[data-ui].calc .seg button[aria-pressed="true"] { background: #ededef; color: #0a0a0b; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { [data-ui].calc .stepper button:hover { background: #1e1e22; } [data-ui].calc .seg button[aria-pressed="false"]:hover { color: #ededef; } }
[data-ui].calc .c-out { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.07); }
[data-ui].calc .c-out > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
[data-ui].calc .c-out > div:last-child { border-bottom: 0; }
[data-ui].calc dt { color: #a0a0a8; padding-top: 4px; }
[data-ui].calc dd b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #ededef; font-variant-numeric: tabular-nums; }
[data-ui].calc dd > span:first-child { color: #a0a0a8; }
[data-ui].calc .plan-sub { display: block; margin-top: 2px; color: #d9a845; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- inner pages on a dark field */
.night .split-row .lead { color: var(--night-ink); }
.counts { display: grid; gap: 1.25rem; margin-top: 2rem; }
.counts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.counts b { font-weight: 500; }
.night .counts span { color: var(--night-muted); }
.wide-shot { margin-top: 4rem; }
.wide-shot img { width: 100%; height: auto; }
.night .shot-cap { color: var(--night-muted); }
.row-body figure img { width: 100%; height: auto; }
.row-body figure + figure { margin-top: 8px; }
.compare-wrap { margin-top: 3rem; }
.compare th, .compare td { width: 15%; padding-block: 1rem; }
.compare tbody th { width: 40%; font-weight: 400; }
.field { background: var(--surface); }
.field .data th, .field .data td { border-bottom-color: var(--surface-2); }
.compare thead th { font-size: var(--step-body); color: var(--ink); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.compare .grp th { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; padding-top: 3rem; }
@media (max-width: 700px) {
  .compare { font-size: var(--step-small); table-layout: fixed; }
  .compare tbody th { width: 34%; }
  .compare th, .compare td { padding-right: 0.5rem; overflow-wrap: anywhere; }
  .compare thead th { font-size: var(--step-small); }
}
@media (max-width: 700px) { .counts li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------------------------------------------------------------- security / open source pieces */
.stage-shot { width: 100%; max-width: 640px; }
.stage-shot img { width: 100%; height: auto; }
.hero .shot-cap { color: var(--night-muted); }
.pair { display: grid; grid-template-columns: 5fr 7fr; gap: 8px; margin-top: 4rem; align-items: start; }
.pair img { width: 100%; height: auto; }
.disclosure { grid-column: 7 / span 5; align-self: center; }
.disclosure .counts { margin-top: 0; }
.disclosure .counts li { grid-template-columns: 10rem 1fr; }
.on-gold .counts b { font-weight: 600; }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; }
  .disclosure { grid-column: 1; grid-row: 2; }
}
.hero-term { max-width: none; background: var(--night); font-size: var(--step-small); line-height: 1.9; padding: 1.75rem 2rem; }
.night-table th, .night-table td { border-bottom-color: var(--night-3); }
.night-table caption, .night-table thead th { color: var(--night-muted); }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 3rem; }
.size { background: var(--bg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; min-height: 22rem; }
.size h3 { font-size: var(--step-body); font-weight: 500; }
.size .size-fig { font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.size ul { display: grid; gap: 0.6rem; margin-top: auto; }
.size.night { background: var(--night); color: var(--night-ink); }
.size.night li { color: var(--night-muted); }
/* "coming soon" marker for Cloud and the open-source release */
.soon-tag { display: inline-block; font-size: 0.72em; line-height: 1.4; padding: 0.05em 0.5em; margin-right: 0.35em; border: 1px solid currentColor; opacity: 0.8; vertical-align: 0.12em; white-space: nowrap; }
a .soon-tag { margin: 0 0 0 0.35em; }
.link-tile.is-soon .soon-tag { margin: 0.75rem 0 0; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .link-tile.is-soon:hover { background: inherit !important; } }
.link-tile { text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link-tile:not(.night):hover { background: var(--surface-2); } .link-tile.night:hover { background: var(--night-3); } }
.link-tile:focus-visible { outline-color: var(--ink); outline-offset: -4px; }
.mended img[src*="kintsugi-jar"] { object-position: 52% 55%; }
@media (max-width: 900px) { .sizes { grid-template-columns: 1fr; } .size { min-height: 0; } .hero-term { padding: 1.25rem; white-space: pre-wrap; } }
.size ul { list-style: none; padding: 0; }
.hero-term { font-size: 1rem; width: 100%; }

/* Docs: numbered setup steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.night .steps li::before { color: var(--night-muted); }
.night .data caption, .night .data thead th { color: var(--night-muted); }
.night .data th, .night .data td { border-bottom-color: rgb(255 255 255 / 0.12); }
.data code { white-space: nowrap; }
.row-body .data { display: block; overflow-x: auto; }
@media (min-width: 900px) { .row-body .data { display: table; } }
.split-row > * { min-width: 0; }
.row-body p code { overflow-wrap: anywhere; }
