/* ============================================================================
   GEMMEIN — Direction B: "The Register"

   Gemmein is not a tool you pick up. It is a custodian: it holds who your
   customers are, what they stored, who paid, and who may see what. So the page
   is built like a document of record, not a magazine.

   Cool paper, never cream. No serif. One family across every role, driven on
   its width and weight axes. The palette is the product's own vocabulary —
   allowed, held, refused — and the octagon from the logo is the seal that
   stamps a verdict.
   ========================================================================= */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  /* Paper. Cool, faintly green — daylight on good stock, not parchment. */
  --paper: #f6f7f6;
  --paper-sunk: #edefee;
  --card: #ffffff;
  --card-2: #fbfcfb;
  --deep: #08120e;

  --ink: #0b1310;
  --ink-2: #29352f;
  --muted: #566159;
  --faint: #626d66;
  --on-deep: #e8efea;
  --muted-deep: #8c9c93;

  --line: rgba(11, 19, 16, 0.1);
  --line-2: rgba(11, 19, 16, 0.17);
  --line-3: rgba(11, 19, 16, 0.3);
  --line-deep: rgba(232, 239, 234, 0.13);

  /* The three verdicts. These are brand colours here, not status garnish —
     allow / hold / refuse is the whole of what Gemmein says. */
  --seal: #0f7a5a;
  --seal-deep: #0a5540;
  --seal-lift: #14996f;
  --seal-soft: rgba(15, 122, 90, 0.08);
  --seal-soft-2: rgba(15, 122, 90, 0.15);
  --seal-glow: rgba(15, 122, 90, 0.26);
  --hold: #96660f;
  --hold-soft: rgba(150, 102, 15, 0.1);
  --refuse: #a5383c;
  --refuse-soft: rgba(165, 56, 60, 0.1);

  /* Atmosphere. The page carried one hue in 20px doses — seals, pills,
     hairlines — and read flat because nothing was ever a *field* of colour.
     These are the same custody green bent through a prism: jade cool, gild
     warm. Gild is seal wax rather than a gradient swatch; green and gold is a
     ledger palette, which is what Gemmein actually is. */
  --jade: #13a37e;
  --mint: #5fd0ad;
  --gild: #c9a86a;
  --sky: #2f7f9e;

  /* THE RIBBON. One sweep, fixed hue order, cropped differently on every
     surface. This is the whole consistency mechanism: a page coheres not
     because each section is tinted, but because every coloured thing on it is
     a crop of the same gradient in the same order. Never reorder these stops
     and never introduce a hue that isn't on them. */
  --ribbon: linear-gradient(112deg,
    #0a5540 0%, #0f7a5a 18%, #13a37e 34%,
    #5fd0ad 52%, #c9a86a 74%, #2f7f9e 100%);
  --ribbon-line: linear-gradient(90deg,
    #0f7a5a 0%, #13a37e 26%, #5fd0ad 48%, #c9a86a 74%, #2f7f9e 100%);

  --sh-1: 0 1px 2px rgba(11, 19, 16, 0.05);
  --sh-2: 0 1px 2px rgba(11, 19, 16, 0.04), 0 4px 14px rgba(11, 19, 16, 0.06);
  --sh-3: 0 2px 6px rgba(11, 19, 16, 0.05), 0 14px 36px rgba(11, 19, 16, 0.08);
  --sh-4: 0 4px 12px rgba(11, 19, 16, 0.06), 0 34px 80px rgba(11, 19, 16, 0.12);
  --sh-seal: 0 4px 14px rgba(15, 122, 90, 0.28);

  /* One family, three registers, driven on the width and weight axes. */
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1rem;
  --t-lg: clamp(1.0625rem, 0.99rem + 0.32vw, 1.1875rem);
  --t-h3: clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --t-h2: clamp(1.875rem, 1.42rem + 2.02vw, 3.25rem);
  --t-h1: clamp(2.5rem, 1.86rem + 2.7vw, 3.75rem);

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 52px);
  --nav: 60px;
  --band: clamp(80px, 9.5vw, 148px);
  --band-air: clamp(116px, 14vw, 232px);

  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stamp: cubic-bezier(0.2, 1.5, 0.4, 1);

  --octagon: polygon(
    29.29% 0%, 70.71% 0%, 100% 29.29%, 100% 70.71%,
    70.71% 100%, 29.29% 100%, 0% 70.71%, 0% 29.29%
  );
}

/* ── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 28px);
}

/* The room's own material, shared with the film: a truncated-square tiling of
   the brand mark — octagons meeting edge to edge with a small square in each
   gap. Fixed, so it does not scroll with the page and reads as the surface the
   site sits on rather than a texture printed onto it. Sections that set their
   own background (the deep close and footer) cover it and re-lay their own. */
html {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpolygon points='21,0 51,0 72,21 72,51 51,72 21,72 0,51 0,21' fill='none' stroke='rgba(15,122,90,0.055)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  background-attachment: fixed;
}

body {
  min-height: 100svh;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-variation-settings: "wght" 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

body.locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--seal-soft-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm); font-size: var(--t-sm);
  font-variation-settings: "wght" 600;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: translateY(0); }

/* ── Type ────────────────────────────────────────────────────────────────── */

/* Display: wider letterforms at heavy weight. Cornerstone, not headline. */
h1, h2 {
  font-variation-settings: "wght" 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: var(--t-h1); letter-spacing: -0.038em; text-wrap: pretty; }
h2 { font-size: var(--t-h2); }

h3 {
  font-size: var(--t-h3);
  font-variation-settings: "wght" 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

p { text-wrap: pretty; }
strong, b { font-variation-settings: "wght" 620; color: var(--ink); }

/* Labels: condensed, spaced, uppercase. The register's own hand. */
.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-variation-settings: "wght" 600;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
}

.label::before {
  content: "";
  width: 7px; height: 7px; flex: none;
  background: currentColor;
  clip-path: var(--octagon);
}

.label.bare::before { display: none; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.008em;
}

h1 + .lede, h2 + .lede, h2 + p { margin-top: 10px; }

.fine { font-size: var(--t-sm); color: var(--faint); line-height: 1.55; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.02em; }

.arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--seal);
  font-variation-settings: "wght" 620;
}
.arrow svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.arrow:hover svg { transform: translateX(3px); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: -0.02em;
}

:not(pre) > code {
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  background: var(--seal-soft);
  color: var(--seal-deep);
  border: 1px solid rgba(15, 122, 90, 0.14);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  padding-block: var(--band);
  scroll-margin-top: calc(var(--nav) + 16px);
}

.band-air { padding-block: var(--band-air); }
/* A wash rather than a flat fill, so the band has a top edge that catches
   light instead of reading as a grey box. */
.band-sunk {
  background:
    radial-gradient(70% 52% at 82% 0%, rgba(201, 168, 106, 0.16), transparent 66%),
    radial-gradient(64% 48% at 10% 4%, rgba(19, 163, 126, 0.16), transparent 68%),
    linear-gradient(178deg, rgba(47, 127, 158, 0.07), transparent 46%),
    var(--paper-sunk);
}

/* Hairline at every band boundary — the page as ruled paper. */
.band-sunk, .band + .band { border-top: 1px solid var(--line); }

.head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(38px, 4.6vw, 64px);
}

@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
}

.head h2 { max-width: 19ch; }
.head .lede { max-width: 46ch; }

.head-center {
  max-width: 660px; margin-inline: auto; text-align: center;
  margin-bottom: clamp(38px, 4.6vw, 64px);
}
.head-center h2 { max-width: none; }
.head-center .lede { margin-inline: auto; max-width: 52ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 20px;
  border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font-size: var(--t-base);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.008em;
  white-space: nowrap;
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out),
              background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-seal {
  --bg: var(--seal); --fg: #fff; --bd: transparent;
  box-shadow: var(--sh-seal);
}
.btn-seal:hover { --bg: var(--seal-lift); box-shadow: 0 8px 24px var(--seal-glow); }

.btn-lg { height: 50px; padding-inline: 26px; font-size: var(--t-md); border-radius: var(--r-md); }
.btn-sm { height: 36px; padding-inline: 14px; font-size: var(--t-sm); }
.btn-full { width: 100%; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-center { justify-content: center; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  color: var(--muted); border: 1px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.icon-btn:hover { background: var(--seal-soft); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

/* ── The seal ────────────────────────────────────────────────────────────── */

/* The logo's octagon, doing the one job a custodian does: stamping a verdict. */
.seal {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  color: #fff;
  background: var(--seal);
  clip-path: var(--octagon);
  box-shadow: var(--sh-seal);
}

.seal svg { width: 21px; height: 21px; }
.seal[data-v="refuse"] { background: var(--refuse); }
.seal[data-v="hold"] { background: var(--hold); }

/* The impact ring, thrown off as the stamp lands. */
.seal-ring {
  position: absolute;
  inset: -10px;
  border: 1.5px solid var(--seal);
  clip-path: var(--octagon);
  opacity: 0;
  pointer-events: none;
}

.seal-wrap { position: relative; display: grid; place-items: center; flex: none; }
.seal-wrap[data-v="refuse"] .seal-ring { border-color: var(--refuse); }

.is-stamping .seal { animation: stamp 620ms var(--stamp) both; }
.is-stamping .seal-ring { animation: ring 760ms var(--ease-out) both; }

@keyframes stamp {
  0% { transform: scale(1.75) rotate(-9deg); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes ring {
  0% { transform: scale(0.72); opacity: 0; }
  38% { opacity: 0.65; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Pills ───────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 25px; padding-inline: 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--card);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pill-seal { color: var(--seal-deep); background: var(--seal-soft); border-color: rgba(15, 122, 90, 0.24); }
.pill-refuse { color: var(--refuse); background: var(--refuse-soft); border-color: rgba(165, 56, 60, 0.24); }

.dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }

.dot-live { position: relative; background: var(--seal); }
.dot-live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--seal); opacity: 0;
  animation: ping 2.8s var(--ease-out) infinite;
}
@keyframes ping {
  0% { opacity: 0.7; transform: scale(0.7); }
  70%, 100% { opacity: 0; transform: scale(1.8); }
}

/* ── Command ─────────────────────────────────────────────────────────────── */

.cmd {
  display: inline-flex; align-items: center; gap: 16px;
  max-width: 100%;
  padding: 5px 5px 5px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--sh-2);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.cmd:hover { border-color: rgba(15, 122, 90, 0.36); box-shadow: var(--sh-3); }

.cmd-text {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; overflow-x: auto; scrollbar-width: none;
  padding-block: 5px;
  font-family: var(--mono);
  font-size: var(--t-base);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.cmd-text::-webkit-scrollbar { display: none; }
.cmd-text .prompt { color: var(--seal); user-select: none; font-weight: 600; }

/* margin-left:auto pins Copy to the right edge when the box is stretched
   (the hero); it does nothing when the box hugs its content. */
.cmd-copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  margin-left: auto;
  height: 34px; padding-inline: 13px;
  border-radius: var(--r-sm);
  background: var(--paper-sunk); color: var(--muted);
  font-size: var(--t-sm);
  font-variation-settings: "wght" 620;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.cmd-copy:hover { background: var(--seal-soft-2); color: var(--seal-deep); }
.cmd-copy svg { width: 14px; height: 14px; }
.cmd-copy .ico-done { display: none; }
.cmd.copied .cmd-copy { background: var(--seal); color: #fff; }
.cmd.copied .ico-copy { display: none; }
.cmd.copied .ico-done { display: block; }

@media (max-width: 460px) {
  .cmd { width: 100%; padding-left: 13px; }
  .cmd-copy span { display: none; }
  .cmd-copy { padding-inline: 10px; }
}

/* ── Notice + header ─────────────────────────────────────────────────────── */

.notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 36px; padding: 7px var(--gutter);
  background: var(--deep); color: var(--on-deep);
  font-size: var(--t-sm);
  text-align: center;
}
.notice b { color: #9fe8c9; font-variation-settings: "wght" 620; }
.notice a { color: #9fe8c9; border-bottom: 1px solid rgba(159, 232, 201, 0.4); }
.notice a:hover { border-color: #9fe8c9; }
.notice .sep { color: var(--muted-deep); }

@media (max-width: 560px) { .notice .sep, .notice .extra { display: none; } }

.hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease), background-color 260ms var(--ease);
}
.hdr.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }

.hdr-in { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  font-size: 1.0625rem;
  font-variation-settings: "wght" 620;
  letter-spacing: -0.03em;
}
.brand svg { width: 23px; height: 23px; flex: none; transition: transform 500ms var(--stamp); }
.brand:hover svg { transform: rotate(45deg); }

.nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 7px 11px; border-radius: var(--r-sm);
  font-size: var(--t-base); color: var(--muted);
  font-variation-settings: "wght" 500;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav a:hover, .nav a.on { color: var(--ink); background: var(--seal-soft); }

.hdr-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 960px) { .nav { display: flex; } .hdr-right { margin-left: 0; } }

.signin { display: none; padding: 7px 11px; font-size: var(--t-base); color: var(--muted); border-radius: var(--r-sm); }
.signin:hover { color: var(--ink); background: var(--seal-soft); }
@media (min-width: 640px) { .signin { display: inline-flex; } }

.hdr-cta { display: none; }
@media (min-width: 480px) { .hdr-cta { display: inline-flex; } }

.menu-btn { display: inline-flex; }
@media (min-width: 960px) { .menu-btn { display: none; } }
.bars { position: relative; width: 16px; height: 10px; }
.bars i { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease-out); }
.bars i:nth-child(1) { top: 0; }
.bars i:nth-child(2) { top: 8.5px; }
body.locked .bars i:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
body.locked .bars i:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Mobile sheet ────────────────────────────────────────────────────────── */

.sheet {
  position: fixed; inset: var(--nav) 0 0; z-index: 45;
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background: var(--paper); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease-out), visibility 260ms;
}
.sheet.open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 960px) { .sheet { display: none; } }

.sheet-label {
  margin-top: 16px; margin-bottom: 2px;
  font-variation-settings: "wght" 640;
  font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}

.sheet a.sheet-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-variation-settings: "wght" 560;
  letter-spacing: -0.018em;
  opacity: 0; transform: translateY(6px);
}
.sheet.open a.sheet-link { animation: sheet-in 420ms var(--ease-out) forwards; }
.sheet a.sheet-link svg { width: 15px; height: 15px; color: var(--faint); }
@keyframes sheet-in { to { opacity: 1; transform: none; } }

.sheet-foot { margin-top: 32px; display: grid; gap: 12px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(48px, 6.5vw, 96px);
  padding-bottom: clamp(56px, 8vw, 116px);
  overflow: clip;
}

/* Light falling across the page, weighted to the right so it pools behind the
   register and never sits under the headline. A conic sweep rather than a
   radial blob: blobs read as decoration, a sweep has a direction and a
   source. ::before so the ruled paper paints on top of it. */
.hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -16%;
  width: min(60%, 820px); aspect-ratio: 1;
  background:
    conic-gradient(from 172deg at 50% 50%,
      rgba(15, 122, 90, 0) 0deg,
      rgba(19, 163, 126, 0.5) 44deg,
      rgba(95, 208, 173, 0.4) 86deg,
      rgba(201, 168, 106, 0.5) 130deg,
      rgba(47, 127, 158, 0.3) 168deg,
      rgba(15, 122, 90, 0) 214deg);
  filter: blur(46px) saturate(134%);
  /* Radial, so it dies out well before the headline column. The previous mask
     was a linear one running the wrong way and it flooded the whole hero. */
  mask-image: radial-gradient(circle at 58% 46%, #000 0%, rgba(0, 0, 0, 0.74) 24%, rgba(0, 0, 0, 0.26) 48%, transparent 64%);
  -webkit-mask-image: radial-gradient(circle at 58% 46%, #000 0%, rgba(0, 0, 0, 0.74) 24%, rgba(0, 0, 0, 0.26) 48%, transparent 64%);
  pointer-events: none;
}

/* Below the two-column break the register sits under the copy, so a corner
   shape has nothing to sit behind — pull it back to a faint top edge. */
@media (max-width: 1019px) {
  .hero::before { top: -30%; right: -30%; width: 96%; opacity: 0.55; }
}

/* Ruled paper, fading out. Quiet — the record panel is the loud thing. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 76%);
  pointer-events: none;
}

.hero-in { position: relative; display: grid; gap: clamp(44px, 6vw, 64px); align-items: center; }

@media (min-width: 1020px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(40px, 4.5vw, 64px); }
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 640px; }

.h1-lead {
  display: block;
  margin-bottom: 0.2em;
  font-size: 0.6em;
  font-variation-settings: "wght" 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-2);
}

/* Emphasis by colour, not by changing face. A register does not get cute. */
.h1-mark { color: var(--seal); }

.hero h1 { max-width: 19ch; }
@media (max-width: 1019px) { .hero h1 { max-width: 18ch; } }

.hero-sub { font-size: var(--t-lg); line-height: 1.55; color: var(--muted); max-width: 48ch; letter-spacing: -0.008em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
.hero-actions .cmd { flex: 1 1 380px; }

.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; font-size: var(--t-sm); color: var(--faint); }
.hero-trust strong { color: var(--muted); font-variation-settings: "wght" 640; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; }
.hero-trust .tools { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.hero-trust .tools span {
  padding: 3px 9px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--card);
  font-size: var(--t-xs); color: var(--muted);
  font-variation-settings: "wght" 550;
}

/* ── The record ──────────────────────────────────────────────────────────── */

.rec-holder { position: relative; display: flex; flex-direction: column; align-items: stretch; }

.rec {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  /* Lit from the same direction as the aurora it floats in, so it reads as an
     object sitting in the light rather than a white rectangle pasted on it. */
  background:
    linear-gradient(158deg, rgba(19, 163, 126, 0.15), rgba(201, 168, 106, 0.05) 40%, rgba(255, 255, 255, 0) 66%),
    var(--card);
  box-shadow: var(--sh-4), 0 18px 60px rgba(15, 122, 90, 0.16);
  overflow: hidden;
}

.rec-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}
.rec-head > svg { width: 20px; height: 20px; flex: none; }
.rec-id { display: flex; flex-direction: column; line-height: 1.25; }
.rec-id b { font-size: var(--t-sm); font-variation-settings: "wght" 600; letter-spacing: -0.018em; }
.rec-id span {
  font-variation-settings: "wght" 600;
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint);
}
.rec-head .pill { margin-left: auto; }

.rec-req {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: -0.025em;
}
.rec-req .verb {
  padding: 2px 8px; border-radius: var(--r-xs);
  background: var(--seal-soft-2); color: var(--seal-deep);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
}
.rec-req .path { color: var(--ink); font-weight: 500; }
.rec-req .who {
  margin-left: auto; color: var(--faint); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

.rec-checks { display: flex; flex-direction: column; padding: 4px 0; }

.rec-checks li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  font-size: var(--t-sm);
  opacity: 0; transform: translateY(4px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), background-color 180ms var(--ease);
}
.rec-checks li.shown { opacity: 1; transform: none; }
/* Motion drives these when it loads; leave only the colour transition so the
   CSS one does not race the spring on the same two properties. */
.fx .rec-checks li { transition: background-color 180ms var(--ease); }
.rec-checks li b { font-variation-settings: "wght" 600; letter-spacing: -0.012em; min-width: 88px; }
.rec-checks li .said {
  margin-left: auto; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: -0.02em; color: var(--faint); text-align: right;
}

.ck {
  display: grid; place-items: center;
  width: 19px; height: 19px; flex: none;
  clip-path: var(--octagon);
  background: var(--paper-sunk); color: var(--faint);
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.ck svg { width: 11px; height: 11px; }

li[data-s="ok"] .ck { background: var(--seal-soft-2); color: var(--seal); }
li[data-s="hold"] .ck { background: var(--hold-soft); color: var(--hold); }
li[data-s="stop"] .ck { background: var(--refuse-soft); color: var(--refuse); }
li[data-s="skip"] .ck { opacity: 0.4; }
li[data-s="stop"] { background: var(--refuse-soft); }
li[data-s="stop"] .said { color: var(--refuse); }
li[data-s="hold"] .said { color: var(--hold); }

/* Where the stamp lands */
.rec-verdict {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--card-2);
  min-height: 78px;
}

.rec-said { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-said b {
  font-variation-settings: "wght" 620;
  font-size: var(--t-sm); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--seal);
}
.rec-verdict[data-v="refuse"] .rec-said b { color: var(--refuse); }
.rec-said span { font-size: var(--t-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rec-code {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint);
  text-align: right; line-height: 1.5;
}
.rec-code b { display: block; color: var(--ink); font-size: 13px; letter-spacing: 0; }

.rec-caption {
  display: flex; gap: 10px;
  margin-top: 18px; padding-inline: 2px;
  font-size: var(--t-sm); line-height: 1.55; color: var(--faint); max-width: 52ch;
}
.rec-caption svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--seal); opacity: 0.75; }

/* ── Rule strip ──────────────────────────────────────────────────────────── */

.strip {
  position: relative;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(92deg, rgba(19, 163, 126, 0.13), rgba(95, 208, 173, 0.08) 34%, rgba(201, 168, 106, 0.11) 68%, rgba(47, 127, 158, 0.09)),
    var(--paper-sunk);
}
.strip p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px clamp(16px, 2.6vw, 34px); font-size: var(--t-sm); color: var(--muted); }
.strip .fig { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.strip .fig b {
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.03em; color: var(--ink);
}
.strip i { width: 5px; height: 5px; flex: none; align-self: center; background: var(--seal); clip-path: var(--octagon); opacity: 0.45; }
.strip .say { margin-left: auto; max-width: 50ch; color: var(--faint); line-height: 1.5; }
@media (max-width: 900px) { .strip .say { margin-left: 0; flex-basis: 100%; } }

/* The dots are flex siblings, so a wrap strands one at the end of a row with
   nothing after it. Below the wrap point, give each step its own line and drop
   the separators — stacked, the order alone reads as the sequence. */
@media (max-width: 640px) {
  .strip p { gap: 12px; }
  .strip i { display: none; }
  .strip .fig { flex-basis: 100%; }
  .strip .say { margin-top: 4px; }
}

/* ── Rule shapes ─────────────────────────────────────────────────────────── */

/* Deliberately not interactive. Asking the visitor to configure something is
   onboarding, and it spends the page's one bold moment on the least
   impressive thing Gemmein does — the register already carries that. Showing
   all three at once also proves the range to everyone, not just the few who
   would have fiddled with chips. */

.shapes-lead {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  font-size: var(--t-lg); line-height: 1.5; color: var(--muted);
}
.shapes-lead svg { width: 18px; height: 18px; flex: none; }

.shapes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 860px) {
  .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.shape {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, rgba(19, 163, 126, 0.17), rgba(19, 163, 126, 0.03) 42%, rgba(255, 255, 255, 0) 62%), var(--card);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

/* Each card carries its own stop on the ribbon, named again in the kind label
   above it — so the colour is doing identification, not decoration. */
.shape::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #0f7a5a, #3fc79f);
}

.shape:nth-child(2) { background: linear-gradient(158deg, rgba(201, 168, 106, 0.22), rgba(201, 168, 106, 0.04) 42%, rgba(255, 255, 255, 0) 62%), var(--card); }
.shape:nth-child(3) { background: linear-gradient(158deg, rgba(47, 127, 158, 0.18), rgba(47, 127, 158, 0.03) 42%, rgba(255, 255, 255, 0) 62%), var(--card); }
.shape:nth-child(2)::before { background: linear-gradient(90deg, #a8813a, #dcbd7c); }
.shape:nth-child(3)::before { background: linear-gradient(90deg, #256d8a, #55b6cf); }
.shape:nth-child(2) .shape-kind { color: #8a6a1f; }
.shape:nth-child(3) .shape-kind { color: #276c88; }

.shape-kind {
  font-family: var(--mono);
  font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--seal);
}

.shape-said {
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  line-height: 1.34;
  letter-spacing: -0.022em;
  font-variation-settings: "wght" 500;
  color: var(--ink);
  text-wrap: pretty;
}

/* Pushed to the bottom so the sentences stay on a shared baseline across the
   three cards even when the "for" lines run to different lengths. */
.shape-for {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); line-height: 1.55; color: var(--faint);
  text-wrap: pretty;
}

/* ── Handoff ─────────────────────────────────────────────────────────────── */

.hand {
  display: grid; gap: 22px; align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card-2);
}
@media (min-width: 860px) { .hand { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); } }

.hand p { font-size: var(--t-base); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.hand-run { display: flex; flex-direction: column; gap: 9px; }
.hand-label { font-variation-settings: "wght" 600; font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ── Layers ──────────────────────────────────────────────────────────────── */

.layers {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(19, 163, 126, 0.10), rgba(201, 168, 106, 0.05) 38%, rgba(255, 255, 255, 0) 68%), var(--card);
  box-shadow: var(--sh-3);
  overflow: hidden;
}

/* The ribbon itself, drawn once per major panel. */
.layers::after, .console::after, .rec::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--ribbon-line);
}

.layer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 5px clamp(14px, 1.8vw, 20px);
  padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
  transition: background-color 260ms var(--ease);
}
.layer:first-child { border-top: 0; }
.layer:hover { background: var(--card-2); }

.layer::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--seal);
  transform: scaleY(0); transform-origin: center;
  transition: transform 260ms var(--ease-out);
}
.layer:hover::before { transform: scaleY(1); }

.layer .tile {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none; margin-top: 2px;
  clip-path: var(--octagon);
  background: var(--seal-soft); color: var(--seal);
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}
.layer .tile svg { width: 17px; height: 17px; }
.layer:hover .tile { background: var(--seal); color: #fff; }

.layer b {
  display: block;
  font-size: var(--t-lg);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.02em; line-height: 1.3; color: var(--ink);
}
.layer p { font-size: var(--t-base); line-height: 1.6; color: var(--muted); max-width: 62ch; }

.layer .sys {
  position: absolute;
  top: clamp(22px, 2.6vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  font-variation-settings: "wght" 640;
  font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint);
  transition: color 180ms var(--ease);
}
.layer:hover .sys { color: var(--seal); }

@media (max-width: 640px) {
  .layer { grid-template-columns: minmax(0, 1fr); }
  .layer .tile { grid-row: auto; margin-bottom: 5px; }
  .layer .sys { position: static; display: block; margin-top: 11px; }
}
@media (min-width: 641px) { .layer b { padding-right: 10ch; } }

/* ── Note line ───────────────────────────────────────────────────────────── */

.note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px;
  margin-top: 24px; padding: 17px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card-2);
  font-size: var(--t-base); line-height: 1.55; color: var(--muted);
}
.note > svg { width: 17px; height: 17px; flex: none; color: var(--seal); }
.note span { flex: 1 1 24ch; }
.note a { margin-left: auto; }

/* ── Console ─────────────────────────────────────────────────────────────── */

.console {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(168deg, rgba(47, 127, 158, 0.09), rgba(19, 163, 126, 0.05) 40%, rgba(255, 255, 255, 0) 70%), var(--card);
  box-shadow: var(--sh-4);
  overflow: hidden;
}
.cns { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 420px; }
@media (min-width: 880px) { .cns { grid-template-columns: 200px minmax(0, 1fr); } }

.cns-rail { display: none; flex-direction: column; gap: 2px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--card-2); }
@media (min-width: 880px) { .cns-rail { display: flex; } }

.cns-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-size: var(--t-base); font-variation-settings: "wght" 620; letter-spacing: -0.026em; }
.cns-brand svg { width: 18px; height: 18px; }

.cns-grp { padding: 14px 9px 5px; font-variation-settings: "wght" 640; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.cns-nav {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 9px; border-radius: var(--r-xs);
  font-size: var(--t-sm); font-variation-settings: "wght" 500;
  color: var(--muted); text-align: left;
}
.cns-nav svg { width: 14px; height: 14px; flex: none; opacity: 0.72; }
.cns-nav.on { background: var(--seal-soft-2); color: var(--seal-deep); font-variation-settings: "wght" 640; }
.cns-nav.on svg { opacity: 1; }
.cns-nav[disabled] { cursor: default; }

.cns-rail-foot { margin-top: auto; padding-top: 16px; }

.cns-main { display: flex; flex-direction: column; min-width: 0; }

.cns-top { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cns-top .tile { display: grid; place-items: center; width: 32px; height: 32px; flex: none; clip-path: var(--octagon); background: var(--seal); color: #fff; }
.cns-top .tile svg { width: 15px; height: 15px; }
.cns-app { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cns-app b { font-size: var(--t-base); font-variation-settings: "wght" 600; letter-spacing: -0.018em; }
.cns-app span { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cns-top .pill { margin-left: auto; }
@media (max-width: 520px) { .cns-top .pill.hide-xs { display: none; } }

.cns-strip { display: flex; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--card-2); }
.cns-strip::-webkit-scrollbar { display: none; }
@media (min-width: 880px) { .cns-strip { display: none; } }
.cns-strip button {
  flex: none; padding: 5px 11px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--card);
  font-size: var(--t-xs); font-variation-settings: "wght" 620; color: var(--muted); white-space: nowrap;
}
.cns-strip button.on { background: var(--seal-soft); border-color: rgba(15, 122, 90, 0.28); color: var(--seal-deep); }

.cns-body { flex: 1; padding: clamp(16px, 2.2vw, 26px); min-width: 0; }
.cns-hd { margin-bottom: 18px; }
.cns-hd h3 { font-size: var(--t-h3); margin-bottom: 4px; }
.cns-hd p { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }

.cns-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cns-fig { padding: 14px 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card-2); }
.cns-fig b { display: block; font-size: clamp(1.25rem, 1.08rem + 0.8vw, 1.75rem); font-variation-settings: "wght" 620; letter-spacing: -0.038em; line-height: 1.1; }
.cns-fig span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.cns-fig .delta { display: inline-flex; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--seal); }
@media (max-width: 560px) { .cns-fig .delta { display: none; } }

.cns-box { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.cns-box-hd { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-variation-settings: "wght" 640; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); }
.cns-box-hd a { margin-left: auto; text-transform: none; letter-spacing: -0.01em; font-size: 11.5px; color: var(--seal); font-variation-settings: "wght" 600; }

.cns-events li { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.cns-events li:first-child { border-top: 0; }
.cns-events code { flex: none; padding: 2px 7px; border-radius: var(--r-xs); background: var(--paper-sunk); border: 1px solid var(--line); color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.cns-events li.stop code { background: var(--refuse-soft); color: var(--refuse); border-color: transparent; }
.cns-events .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cns-events time { margin-left: auto; flex: none; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.plan {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 2.8vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(164deg, rgba(19, 163, 126, 0.055), rgba(255, 255, 255, 0) 48%), var(--card);
  box-shadow: var(--sh-1);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.plan.pick {
  position: relative; overflow: hidden;
  border-color: rgba(15, 122, 90, 0.4); box-shadow: var(--sh-3);
  background: linear-gradient(160deg, rgba(19, 163, 126, 0.16), rgba(201, 168, 106, 0.05) 40%, rgba(255, 255, 255, 0) 66%), var(--card);
}
.plan.pick::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--ribbon-line);
}

.plan-name { display: flex; align-items: center; gap: 9px; font-variation-settings: "wght" 600; font-size: var(--t-sm); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.plan.pick .plan-name { color: var(--seal); }

.plan-price { display: flex; align-items: baseline; gap: 1px; font-size: clamp(2.125rem, 1.7rem + 1.6vw, 3rem); font-variation-settings: "wght" 620; letter-spacing: -0.045em; line-height: 1; }
.plan-price .cur { font-size: 0.48em; align-self: flex-start; margin-top: 0.16em; }
.plan-price .per { margin-left: 6px; font-family: var(--mono); font-size: 0.3em; font-weight: 500; letter-spacing: -0.01em; color: var(--faint); }
.plan-price .from { margin-right: 9px; font-family: var(--mono); font-size: 0.28em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); align-self: center; }

.plan > p { font-size: var(--t-base); color: var(--muted); line-height: 1.58; }

.plan-feats { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.plan-feats svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--seal); }

.plan-note { padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: -0.015em; color: var(--faint); }

.bigger { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: var(--t-base); color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-in { display: grid; gap: clamp(30px, 4vw, 56px); align-items: start; }
@media (min-width: 940px) { .faq-in { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); } }

.faq-aside { display: flex; flex-direction: column; gap: 16px; }

/* Only sticky once it has a column of its own — stacked above the questions
   it would otherwise scroll over the top of them. */
@media (min-width: 940px) {
  .faq-aside { position: sticky; top: calc(var(--nav) + 32px); }
}
.faq-aside p { color: var(--muted); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }

.qa-q {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: clamp(17px, 2vw, 22px) 0;
  text-align: left;
  font-size: var(--t-lg);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.02em; color: var(--ink);
  transition: color 180ms var(--ease);
}
.qa-q:hover { color: var(--seal); }

.qa-ico { position: relative; width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--faint); transition: color 180ms var(--ease), transform 380ms var(--ease-out); }
.qa-ico::before, .qa-ico::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; border-radius: 2px;
  background: currentColor; translate: 0 -50%;
  transition: transform 260ms var(--ease-out), opacity 180ms var(--ease);
}
.qa-ico::after { rotate: 90deg; }
.qa.open .qa-ico { color: var(--seal); transform: rotate(180deg); }
.qa.open .qa-ico::after { opacity: 0; }

.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding-bottom: clamp(18px, 2.2vw, 24px); padding-right: clamp(0px, 4vw, 46px); font-size: var(--t-md); line-height: 1.68; color: var(--muted); max-width: 66ch; }
.qa-a .tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: clamp(18px, 2.2vw, 24px); }
.qa-a .tags span {
  padding: 4px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--card-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: -0.02em; color: var(--muted);
}

/* ── Close ───────────────────────────────────────────────────────────────── */

/* The deep surface. Re-points the neutral tokens instead of overriding rule by
   rule, so every descendant inverts on its own — including ones added later.
   The page was light end to end, which is why it read flat: with no value
   range nothing could feel bright. The notice bar is dark, so closing dark
   bookends the page rather than introducing a stray band. */
.close, .ftr {
  --paper: var(--deep);
  --paper-sunk: #0b1712;
  --card: rgba(232, 239, 234, 0.055);
  --card-2: rgba(232, 239, 234, 0.03);
  --ink: #ffffff;
  --ink-2: #d6e2da;
  --muted: #9fb0a6;
  --faint: #8b9a91;
  --line: rgba(232, 239, 234, 0.12);
  --line-2: rgba(232, 239, 234, 0.18);
  --line-3: rgba(232, 239, 234, 0.34);
  --seal: #3fd39f;
  --seal-deep: #7fe6c0;
  --seal-lift: #5fe0b4;
  --seal-soft: rgba(63, 211, 159, 0.12);
  --seal-soft-2: rgba(63, 211, 159, 0.2);
  --sh-1: none;
  --sh-2: none;
  --sh-3: 0 18px 46px rgba(0, 0, 0, 0.4);
  background: var(--deep);
  color: var(--on-deep);
}

/* Bright green needs dark type on it, not the white it carries on paper. */
.close .btn-seal, .ftr .btn-seal { --fg: #04231a; box-shadow: 0 6px 22px rgba(63, 211, 159, 0.26); }
.close .btn-seal:hover, .ftr .btn-seal:hover { box-shadow: 0 10px 30px rgba(63, 211, 159, 0.36); }

.close { position: relative; overflow: clip; text-align: center; border-top: 0; }

/* The glow the seal has been pressed into. */
.close::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 58% at 50% 36%, rgba(19, 163, 126, 0.36), transparent 70%),
    radial-gradient(42% 48% at 86% 96%, rgba(201, 168, 106, 0.18), transparent 72%),
    radial-gradient(38% 46% at 10% 6%, rgba(47, 127, 158, 0.16), transparent 74%);
}

.close-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 640px; margin-inline: auto; }
.close h2 { font-size: clamp(2.5rem, 1.7rem + 3.5vw, 4.75rem); letter-spacing: -0.04em; color: #fff; }
.close p { font-size: var(--t-lg); color: var(--muted); max-width: 44ch; }

/* A single seal, pressed into the page. */
.close-seal {
  position: absolute; inset: 50% auto auto 50%;
  width: min(88vw, 460px); aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 74%);
}
.close-seal i {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  border: 1px solid var(--seal); clip-path: var(--octagon); opacity: 0.16;
}
.close-seal i:nth-child(1) { width: 100%; aspect-ratio: 1; }
.close-seal i:nth-child(2) { width: 70%; aspect-ratio: 1; opacity: 0.2; }
.close-seal i:nth-child(3) { width: 42%; aspect-ratio: 1; opacity: 0.26; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.ftr { position: relative; padding-top: clamp(56px, 7vw, 92px); padding-bottom: calc(40px + env(safe-area-inset-bottom)); background: var(--paper-sunk); border-top: 1px solid var(--line); overflow: hidden; }

.ftr-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px 20px; margin-bottom: clamp(30px, 3.6vw, 44px);
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card);
  font-size: var(--t-base); color: var(--muted);
}
.ftr-note a { margin-left: auto; }

.ftr-top { display: grid; gap: clamp(34px, 5vw, 56px); padding-bottom: clamp(34px, 4.4vw, 56px); }
@media (min-width: 860px) { .ftr-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr); } }

.ftr-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.ftr-brand p { color: var(--muted); font-size: var(--t-base); line-height: 1.6; }

.ftr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 40px) 24px; }
@media (min-width: 620px) { .ftr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ftr-col h3 { margin-bottom: 14px; font-variation-settings: "wght" 600; font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ftr-col a { display: block; padding-block: 6px; font-size: var(--t-base); color: var(--muted); width: fit-content; transition: color 180ms var(--ease), transform 180ms var(--ease-out); }
.ftr-col a:hover { color: var(--ink); transform: translateX(2px); }
.ftr-col a .tag { margin-left: 5px; font-size: 10px; color: var(--seal); }

/* Stacked, the two halves read as one centred block. Only split them apart —
   legal left, links right — at the width where they share a single row. */
.ftr-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 24px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--faint); text-align: center;
}
.ftr-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.ftr-bottom nav a { padding-block: 2px; }
.ftr-bottom nav a:hover { color: var(--ink); }
.ftr-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }

@media (min-width: 660px) {
  .ftr-bottom { justify-content: flex-start; text-align: left; }
  .ftr-bottom nav { margin-left: auto; }
}

.ftr-mark {
  position: relative; margin-top: clamp(24px, 4vw, 44px); margin-bottom: calc(-0.24em - 10px);
  font-size: clamp(4.5rem, 17vw, 15rem);
  font-variation-settings: "wght" 620;
  letter-spacing: -0.05em; line-height: 0.78; text-align: center;
  color: transparent;
  background: linear-gradient(to bottom, rgba(120, 226, 187, 0.2) 0%, rgba(232, 239, 234, 0.11) 48%, transparent 94%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; pointer-events: none;
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

.js [data-in] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-in].seen { opacity: 1; transform: none; }
[data-in="scale"] { transform: translateY(18px) scale(0.988); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 720ms var(--ease-out) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 40ms; }
  .hero-copy > *:nth-child(2) { animation-delay: 110ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 180ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 250ms; }
  .rec-holder { animation: settle 900ms var(--ease-out) 160ms both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-in] { opacity: 1 !important; transform: none !important; }
}

/* ── Utilities ───────────────────────────────────────────────────────────── */

.stack { display: flex; flex-direction: column; }
.g-2 { gap: 8px; }
.g-4 { gap: 16px; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: revert; } }


/* ── Shared primitives the long-form pages rely on ───────────────────────── */

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-sm); font-size: var(--t-sm);
  font-variation-settings: "wght" 600; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip-link:focus-visible { transform: translateY(0); }

/* .eyebrow and .link-arrow are the long-form names for .label and .arrow. */
.eyebrow { display: inline-flex; align-items: center; gap: 9px;
  font-variation-settings: "wght" 600; font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--seal); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; clip-path: var(--octagon); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--seal);
  font-variation-settings: "wght" 620; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

.accent { color: var(--seal); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-primary { --bg: var(--seal); --fg: #fff; --bd: transparent; box-shadow: var(--sh-seal); }
.btn-primary:hover { --bg: var(--seal-lift); }

/* Base icon tile — the octagon at component scale. */
.tile { display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  clip-path: var(--octagon); background: var(--seal-soft); color: var(--seal);
  transition: background-color 260ms var(--ease), color 260ms var(--ease); }
.tile svg { width: 19px; height: 19px; }

/* Five saturated octagons stepping along the ribbon in order — Payments lands
   on the gild because money should, Data on the sky. Pale tinted chips read as
   iconography; solid ones read as objects, which is the whole difference. */
.layer .tile { color: #fff; }
.layer:nth-child(1) .tile { background: linear-gradient(145deg, #16a578, #0a5540); }
.layer:nth-child(2) .tile { background: linear-gradient(145deg, #3fc79f, #108966); }
.layer:nth-child(3) .tile { background: linear-gradient(145deg, #55b6cf, #256d8a); }
.layer:nth-child(4) .tile { background: linear-gradient(145deg, #dcbd7c, #a8813a); }
.layer:nth-child(5) .tile { background: linear-gradient(145deg, #1fae86, #0c6349); }

/* Ruled paper behind a document hero, matching the homepage. */
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 44px; opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 20%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 20%, #000, transparent 78%); }

@media print {
  .hdr, .sheet, .notice, .doc-toc, .doc-toc-mobile, .ftr-mark, .doc-next { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-body { max-width: none; }
}

/* ── 14 Legal & long-form pages ──────────────────────────────────────────── */

.doc-hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.doc-hero-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.doc-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);
}

.doc-hero .lede {
  max-width: 64ch;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: -0.01em;
  color: var(--faint);
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Two-column: sticky contents + body */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 72px);
  align-items: start;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav) + 24px);
  display: none;
  flex-direction: column;
  max-height: calc(100svh - var(--nav) - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
}

@media (min-width: 1000px) {
  .doc-toc { display: flex; }
}

.doc-toc-label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc-toc a {
  position: relative;
  padding: 7px 12px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--muted);
  border-left: 2px solid var(--line);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.doc-toc a:hover {
  color: var(--ink);
  background: var(--seal-soft);
}

.doc-toc a.is-on {
  color: var(--seal);
  border-left-color: var(--seal);
  font-variation-settings: "wght" 550;
}

/* Horizontal contents for narrow screens */
.doc-toc-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px var(--gutter);
  position: sticky;
  top: var(--nav);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.doc-toc-mobile::-webkit-scrollbar { display: none; }

@media (min-width: 1000px) {
  .doc-toc-mobile { display: none; }
}

.doc-toc-mobile a {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: var(--t-sm);
  color: var(--muted);
  white-space: nowrap;
}

.doc-toc-mobile a.is-on {
  color: var(--seal-deep);
  background: var(--seal-soft);
  border-color: color-mix(in srgb, var(--seal) 30%, transparent);
}

.doc-body {
  min-width: 0;
  max-width: 74ch;
  font-size: var(--t-md);
  line-height: 1.72;
  color: var(--muted);
}

.doc-body section {
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav) + 88px);
}

.doc-body section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc-body h2 {
  margin-bottom: 16px;
  font-size: var(--t-h3);
  letter-spacing: -0.024em;
}

.doc-body h2 .num {
  display: inline-block;
  min-width: 1.7em;
  font-family: var(--mono);
  font-size: 0.62em;
  font-variation-settings: "wght" 500;
  letter-spacing: 0;
  color: var(--seal);
  vertical-align: 3px;
}

.doc-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: var(--t-md);
  font-variation-settings: "wght" 600;
  letter-spacing: -0.014em;
}

.doc-body h3:first-child {
  margin-top: 0;
}

.doc-body p + p,
.doc-body ul + p,
.doc-body p + ul,
.doc-body p + .doc-panel,
.doc-body .doc-panel + p {
  margin-top: 16px;
}

.doc-body a:not(.btn):not(.link-arrow) {
  color: var(--seal);
  font-variation-settings: "wght" 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--seal) 35%, transparent);
  transition: text-decoration-color 200ms var(--ease);
}

.doc-body a:not(.btn):not(.link-arrow):hover {
  text-decoration-color: var(--seal);
}

.doc-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-body ul li {
  position: relative;
  padding-left: 22px;
}

.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.63em;
  width: 6px;
  height: 6px;
  background: var(--seal);
  clip-path: var(--octagon);
  opacity: 0.6;
}

.doc-body ul.check li::before {
  opacity: 1;
}

/* The plain-English summary that opens each legal section. Gemmein's whole
   voice lives in these lines, so they get real typographic weight. */
.doc-plain {
  position: relative;
  margin-bottom: 20px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--seal);
  font-size: var(--t-lg);
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--ink);
  font-variation-settings: "wght" 450;
  text-wrap: pretty;
}

.doc-plain strong {
  font-variation-settings: "wght" 600;
}

/* Guarantee grid — the security page's centrepiece */
.guards {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.guard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(17px, 2vw, 21px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--sh-1);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease);
}

.guard:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
}

.guard-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.guard .tile {
  width: 32px;
  height: 32px;
}

.guard .tile svg { width: 16px; height: 16px; }

.guard h3 {
  margin: 0;
  font-size: var(--t-base);
  font-variation-settings: "wght" 600;
  letter-spacing: -0.016em;
  line-height: 1.3;
}

.guard p {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--muted);
}

.guard-on {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seal);
  opacity: 0.8;
}

/* Chip list — "these are not add-ons, they are how it works" */
.doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.doc-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--t-sm);
  line-height: 1.3;
  color: var(--muted);
}

.doc-chips li::before { display: none; }

.doc-chips li svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--seal);
}

/* Subprocessor table */
.doc-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  scrollbar-width: thin;
}

.doc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--t-base);
  text-align: left;
}

.doc-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-variation-settings: "wght" 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.doc-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  vertical-align: top;
}

.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td b { color: var(--ink); font-variation-settings: "wght" 600; }
.doc-table td:last-child,
.doc-table th:last-child { white-space: nowrap; text-align: right; }
.doc-table td:last-child { font-family: var(--mono); font-size: var(--t-sm); }

/* The one line each legal page is proud of */
.doc-proud {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--seal) 22%, transparent);
  font-size: var(--t-md);
  font-variation-settings: "wght" 600;
  letter-spacing: -0.018em;
  color: var(--seal-deep);
}

.doc-proud svg { width: 17px; height: 17px; flex: none; color: var(--seal); }

/* Definition rows — "we collect X / because Y" */
.doc-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  margin-top: 20px;
}

.doc-row {
  display: grid;
  gap: 4px 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: var(--t-base);
}

.doc-row:first-child {
  border-top: 0;
}

@media (min-width: 700px) {
  .doc-row {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    align-items: baseline;
  }
}

.doc-row dt {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-variation-settings: "wght" 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc-row dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Emphasis panel inside long-form copy */
.doc-panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--t-base);
  line-height: 1.65;
  box-shadow: var(--sh-1);
}

.doc-panel.accent {
  border-color: color-mix(in srgb, var(--seal) 24%, transparent);
  background: var(--seal-soft);
}

.doc-panel.accent strong {
  color: var(--seal-deep);
}

.doc-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--t-base);
  font-variation-settings: "wght" 600;
  color: var(--ink);
  letter-spacing: -0.014em;
}

.doc-panel-title svg {
  width: 15px;
  height: 15px;
  color: var(--seal);
  flex: none;
}

/* "We don't collect this" list — struck through, unmissable */
.doc-nope {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 620px) {
  .doc-nope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.doc-nope li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--t-base);
  color: var(--muted);
}

.doc-nope li::before {
  display: none;
}

.doc-nope li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 4px;
  color: var(--refuse);
}

.doc-nope li s {
  text-decoration-color: color-mix(in srgb, var(--refuse) 62%, transparent);
  text-decoration-thickness: 1.5px;
}

/* Contact block that closes every legal page */
.doc-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--seal-soft), transparent 58%),
    var(--card);
  box-shadow: var(--sh-2);
}

.doc-contact h3 {
  font-size: var(--t-h3);
}

.doc-contact p {
  color: var(--muted);
  max-width: 60ch;
}

.doc-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--seal) 28%, transparent);
  background: var(--card);
  font-family: var(--mono);
  font-size: var(--t-base);
  font-variation-settings: "wght" 500;
  letter-spacing: -0.025em;
  color: var(--seal);
  text-decoration: none !important;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease-out);
}

.doc-mail:hover {
  background: var(--seal-soft);
  transform: translateY(-1px);
}

.doc-mail svg {
  width: 15px;
  height: 15px;
}

/* Page-to-page navigation at the foot of docs */
.doc-next {
  display: grid;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .doc-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.doc-next a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none !important;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.doc-next a:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
}

.doc-next .k {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc-next .v {
  font-size: var(--t-base);
  font-variation-settings: "wght" 550;
  color: var(--ink) !important;
  letter-spacing: -0.014em;
}

