/* bloomlogic.co.uk — one stylesheet for every page.
   Dark-first: the Canopy brand pair (lime #B7ED3E on ink #090D14) is the
   default; the light theme is the app's own Paper palette, deep lime on cool
   greys. Colours are tokens only — components never name a hex. */

:root {
  color-scheme: dark;
  --ground: #090D14;
  --ground-2: #0D121B;
  --surface: #121823;
  --surface-2: #182030;
  --ink: #E8ECF3;
  --ink-2: #BCC3D2;
  --ink-3: #8E97A8;
  --hair: rgba(232, 236, 243, 0.09);
  --hair-2: rgba(232, 236, 243, 0.17);
  --accent: #B7ED3E;
  --accent-text: #C4F25C;
  --accent-ink: #090D14;
  --accent-line: #9CC060;
  --accent-soft: rgba(183, 237, 62, 0.10);
  --glow: 183, 237, 62;
  --ok: #3FB67F;
  --warn: #E0A83A;
  --info: #6A9BFF;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(9, 13, 20, 0.72);
  --grain: 0.035;

  --font-display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);

  --gutter: clamp(16px, 4vw, 32px);
  --measure: 66ch;
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(72px, 9vw, 128px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ground: #F4F5F7;
    --ground-2: #ECEEF1;
    --surface: #FFFFFF;
    --surface-2: #F7F8FA;
    --ink: #20252D;
    --ink-2: #4A505A;
    --ink-3: #616770;
    --hair: rgba(32, 37, 45, 0.10);
    --hair-2: rgba(32, 37, 45, 0.18);
    --accent: #4A6608;
    --accent-text: #4A6608;
    --accent-ink: #FFFFFF;
    --accent-line: #6E9212;
    --accent-soft: rgba(110, 146, 18, 0.10);
    --glow: 110, 146, 18;
    --ok: #147545;
    --warn: #8A5F00;
    --info: #2E6FE8;
    --shadow-lg: 0 30px 70px -24px rgba(18, 20, 24, 0.28), 0 10px 24px -12px rgba(18, 20, 24, 0.16);
    --header-bg: rgba(244, 245, 247, 0.78);
    --grain: 0.02;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #F4F5F7;
  --ground-2: #ECEEF1;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --ink: #20252D;
  --ink-2: #4A505A;
  --ink-3: #616770;
  --hair: rgba(32, 37, 45, 0.10);
  --hair-2: rgba(32, 37, 45, 0.18);
  --accent: #4A6608;
  --accent-text: #4A6608;
  --accent-ink: #FFFFFF;
  --accent-line: #6E9212;
  --accent-soft: rgba(110, 146, 18, 0.10);
  --glow: 110, 146, 18;
  --ok: #147545;
  --warn: #8A5F00;
  --info: #2E6FE8;
  --shadow-lg: 0 30px 70px -24px rgba(18, 20, 24, 0.28), 0 10px 24px -12px rgba(18, 20, 24, 0.16);
  --header-bg: rgba(244, 245, 247, 0.78);
  --grain: 0.02;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.62 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent-line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(var(--glow), 0.35); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.025em; line-height: 1.04; font-optical-sizing: auto; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
strong { font-weight: 600; color: var(--ink); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--hair); border-radius: 5px; padding: 0.08em 0.36em; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--hair); }
.stack { display: grid; gap: 20px; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; max-width: 58ch; }

/* ---------- keys ---------- */

kbd, .key {
  font-family: var(--font-mono); font-size: 0.8em; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9em; height: 1.75em; padding: 0 0.5em;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--hair-2); border-bottom-width: 2px; border-radius: 6px;
  line-height: 1; vertical-align: 0.08em; white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  --b: var(--hair-2);
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.98rem/1 var(--font-body); letter-spacing: 0.005em;
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--b);
  text-decoration: none; color: var(--ink); background: transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 28px -10px rgba(var(--glow), 0.7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent); box-shadow: 0 12px 34px -8px rgba(var(--glow), 0.85), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-sm { padding: 10px 15px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #090D14; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-mark img { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-display); font-weight: 750; font-size: 1.38rem; letter-spacing: -0.03em; line-height: 1; }
.brand-by { font-size: 0.74rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.02em; margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--hair-2);
  display: inline-grid; place-items: center; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--accent-line); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; } :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; } }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: grid;
}
.menu-panel a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .header-tools { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) 0; overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(var(--glow), 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(106, 155, 255, 0.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 26px; padding-bottom: 12px; }
.hero h1 { font-size: clamp(2.8rem, 1.5rem + 5.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--accent-text); }
.hero .lede { max-width: 40ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-3); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-text); }
.hero-art { position: relative; aspect-ratio: 1 / 0.86; max-width: 520px; justify-self: end; width: 100%; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .static-mark { position: absolute; inset: 6% 8% 10%; opacity: 0.9; }
.hero-art.is-live .static-mark { display: none; }

.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); perspective: 1600px; }
.stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: -8%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--glow), 0.28), transparent 72%);
  filter: blur(40px);
}
.window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #F4F5F7; border: 1px solid var(--hair-2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)); will-change: transform;
}
.window-bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  background: #E7E9ED; border-bottom: 1px solid #D5D9DF; color: #4A505A;
  font: 500 0.78rem/1 var(--font-mono);
}
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: #C5CAD2; display: block; }
.window-url { flex: 1; min-width: 0; text-align: center; background: #F6F7F9; border: 1px solid #D5D9DF; border-radius: 7px; padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-url b { color: #20252D; font-weight: 500; }
.window-body { position: relative; aspect-ratio: 16 / 10; background: #F4F5F7; }
.window-body video, .window-body img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.window-cta { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.window-cta .btn { background: rgba(9, 13, 20, 0.86); color: #E8ECF3; border-color: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.window-cta .btn:hover { color: #fff; border-color: #B7ED3E; }
.window-toggle { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.caption-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 18px; color: var(--ink-3); font-size: 0.88rem; }
.caption-strip span { display: inline-flex; align-items: center; gap: 8px; }
.caption-strip a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.caption-strip a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .window-bar { height: 32px; }
  .window-dots { display: none; }
}

/* ---------- the three views (category) ---------- */

.contrast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contrast-item {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--hair);
  background: var(--ground-2); display: grid; gap: 14px; align-content: start;
}
.contrast-item.is-canopy { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface); }
.contrast-item h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.contrast-item p { color: var(--ink-2); }
.contrast-item .what { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contrast-item.is-canopy .what { color: var(--accent-text); }
.mini { height: 96px; border-radius: 10px; border: 1px dashed var(--hair-2); position: relative; overflow: hidden; }
.mini svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .contrast { grid-template-columns: 1fr; } }

/* ---------- feature rows ---------- */

.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 18px; }
.feature-copy p { color: var(--ink-2); }
.feature-copy .keys { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; font-size: 0.94rem; color: var(--ink-2); }
.feature-copy .keys span { display: inline-flex; align-items: center; gap: 8px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair-2);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.shot img, .shot video { width: 100%; height: auto; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; font: 500 0.75rem/1 var(--font-mono); background: rgba(9,13,20,.82); color: #E8ECF3; padding: 7px 10px; border-radius: 6px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- key strip ---------- */

.keystrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.keystrip div { background: var(--ground); padding: 22px; display: grid; gap: 10px; align-content: start; }
.keystrip .k { display: flex; gap: 6px; flex-wrap: wrap; }
.keystrip kbd { font-size: 0.9rem; }
.keystrip p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) { .keystrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .keystrip { grid-template-columns: 1fr; } }

/* ---------- reference grid (tour, admins) ---------- */

.ref { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.ref > div { background: var(--ground); padding: 24px; display: grid; gap: 10px; align-content: start; }
.ref h3 { font-size: 1.08rem; }
.ref p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.ref kbd { font-size: 0.78em; }

.transcript { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--ground-2); }
.transcript summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.transcript summary:hover { color: var(--ink); }
.transcript .prose { padding: 0 16px 16px; gap: 12px; }

/* ---------- trust ---------- */

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.trust-item { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid var(--hair-2); }
.trust-item svg { width: 28px; height: 28px; color: var(--accent-text); }
.trust-item h3 { font-size: 1.3rem; }
.trust-item p { color: var(--ink-2); }
.trust-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- video ---------- */

.player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.player-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #090D14; border: 1px solid var(--hair-2); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.player-frame video { width: 100%; height: 100%; object-fit: contain; background: #090D14; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: ch; }
.chapters button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline;
  background: transparent; border: 0; border-radius: 10px; padding: 12px 14px; color: var(--ink-2); cursor: pointer;
  font: 500 0.98rem/1.35 var(--font-body);
}
.chapters button:hover { background: var(--accent-soft); color: var(--ink); }
.chapters button[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.chapters time { font: 500 0.8rem/1 var(--font-mono); color: var(--accent-text); }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } }

/* ---------- not for you ---------- */

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fit-col { border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; background: var(--ground-2); }
.fit-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fit-col li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.fit-col li svg { width: 18px; height: 18px; margin-top: 4px; }
.fit-col.yes li svg { color: var(--accent-text); }
.fit-col.no li svg { color: var(--ink-3); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.price-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.price-card { border-radius: var(--radius); border: 1px solid var(--hair-2); background: var(--surface); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.price-card.lead { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface); }
.price { font-family: var(--font-display); font-weight: 750; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.ticks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-text); }
@media (max-width: 820px) { .price-hero { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--ground-2); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--ground-2); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td code { white-space: nowrap; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-mono); color: var(--accent-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 24px; color: var(--ink-2); max-width: var(--measure); display: grid; gap: 12px; }

/* ---------- final call ---------- */

.closer { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--hair-2); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px); background: radial-gradient(70% 90% at 100% 0%, rgba(var(--glow), 0.18), transparent 70%), var(--surface); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.closer h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.closer .mark-bg { position: absolute; right: -40px; bottom: -80px; width: 380px; opacity: 0.1; pointer-events: none; }
@media (max-width: 820px) { .closer { grid-template-columns: 1fr; } .closer .mark-bg { width: 260px; } }

/* ---------- page head (inner pages) ---------- */

.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 56px); position: relative; isolation: isolate; overflow: clip; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% 0 40%; z-index: -1; background: radial-gradient(50% 60% at 70% 30%, rgba(var(--glow), 0.12), transparent 70%); }
.page-head .stack { gap: 22px; max-width: 820px; }
.page-head h1 { font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.4rem); }

/* ---------- prose (legal and help pages) ---------- */

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
.toc { position: sticky; top: 96px; display: grid; gap: 4px; font-size: 0.9rem; }
.toc p { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--ink-3); padding: 6px 0 6px 12px; border-left: 1px solid var(--hair-2); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent-line); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: var(--measure); display: grid; gap: 18px; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); color: var(--ink); margin-top: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.prose li::marker { color: var(--accent-line); }
.prose .callout { border: 1px solid var(--hair-2); border-left: 3px solid var(--accent-line); background: var(--surface); padding: 16px 18px; border-radius: 10px; color: var(--ink); }
.prose .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-3); }
.prose a { color: var(--ink); }
.prose .table-wrap { margin-block: 6px; }

/* ---------- admin note ---------- */

.note-card { border-radius: var(--radius); border: 1px solid var(--accent-line); background: var(--surface); overflow: hidden; }
.note-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--hair); background: var(--accent-soft); }
.note-card header span { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.note-card blockquote { margin: 0; padding: 24px; font-size: 1.05rem; line-height: 1.65; color: var(--ink); display: grid; gap: 14px; }
.copy-ok { color: var(--accent-text); font-size: 0.85rem; min-width: 5ch; }

/* ---------- steps (get started) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-block: 28px; border-top: 1px solid var(--hair); }
.steps > li::before { content: counter(s); font: 600 1rem/1 var(--font-mono); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.steps h3 { margin-bottom: 8px; }
.steps p + p { margin-top: 10px; }
.steps p { color: var(--ink-2); }

/* ---------- about ---------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--ground); padding: 22px 24px; display: grid; gap: 6px; }
.facts dt { font: 500 0.72rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- try page ---------- */

.try-body { height: 100%; }
.try-shell { display: grid; grid-template-rows: auto 1fr; height: calc(100vh - 68px); height: calc(100dvh - 68px); }
.try-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px var(--gutter); border-bottom: 1px solid var(--hair); background: var(--ground-2); font-size: 0.92rem; color: var(--ink-2); }
.try-bar strong { color: var(--ink); }
.try-bar .spacer { flex: 1; }
.try-frame { width: 100%; height: 100%; border: 0; display: block; background: #F4F5F7; }
.try-small { display: none; padding: 48px var(--gutter); }
@media (max-width: 900px) { .try-shell { display: none; } .try-small { display: block; } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hair); padding-block: 64px 40px; margin-top: var(--section); background: var(--ground-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.foot-grid a:hover { color: var(--ink); }
.foot-about { display: grid; gap: 16px; align-content: start; color: var(--ink-2); font-size: 0.95rem; max-width: 36ch; }
.legal-line { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair); display: grid; gap: 8px; color: var(--ink-3); font-size: 0.82rem; line-height: 1.6; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

main > .section:first-child { border-top: 0; }
.no-foot-gap + .site-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .window { transform: none !important; }
}
