/* ==========================================================================
   HTMLToolz — Prism design system (v3)
   Calm, Apple-grade surfaces with a monday-style colour spectrum for status.
   Every component reads colour from the tone variables (--tone, --tone-wash,
   --tone-ink, --tone-on); add .tone-{iris|mint|sun|coral|sky|grape|rose|gray}
   to any element to recolour it and everything inside it.
   Reference: docs/design/HTMLTOOLZ_DESIGN_SYSTEM.md
   ========================================================================== */

/* ── 1. Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-sunken: #ececf0;
  --fill: rgba(118, 118, 128, 0.1);
  --fill-strong: rgba(118, 118, 128, 0.18);
  --text: #1d1d1f;
  --text-2: #424245;
  --text-3: #6e6e73;
  --text-4: #a1a1a6;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-2: rgba(0, 0, 0, 0.15);
  --glass: rgba(255, 255, 255, 0.74);
  --inverse: #1d1d1f;
  --on-inverse: #f5f5f7;

  --iris: #5b4bff;   --iris-wash: #efedff;  --iris-ink: #3f2fe0;
  --mint: #00a878;   --mint-wash: #e0f7ee;  --mint-ink: #007353;
  --sun: #ffb01f;    --sun-wash: #fff3d9;   --sun-ink: #8a5800;
  --coral: #f23c52;  --coral-wash: #ffe8ea; --coral-ink: #c01a31;
  --sky: #0a84ff;    --sky-wash: #e3f0ff;   --sky-ink: #005fc2;
  --grape: #9a46f2;  --grape-wash: #f3e8ff; --grape-ink: #7420cc;
  --rose: #ff4f9a;   --rose-wash: #ffe6f1;  --rose-ink: #c4166a;
  --stone: #8e8e93;  --stone-wash: #efeff2; --stone-ink: #48484c;

  --tone: var(--iris);
  --tone-wash: var(--iris-wash);
  --tone-ink: var(--iris-ink);
  --tone-on: #ffffff;

  --spectrum: linear-gradient(90deg, #5b4bff 0%, #9a46f2 26%, #f23c52 52%, #ffb01f 76%, #00a878 100%);
  --spectrum-text: linear-gradient(100deg, #5b4bff 0%, #9a46f2 30%, #f23c52 62%, #ff8a1f 100%);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --lift-1: 0 1px 2px rgba(17, 17, 26, 0.05), 0 0 0 1px rgba(17, 17, 26, 0.02);
  --lift-2: 0 6px 18px -6px rgba(17, 17, 26, 0.12), 0 2px 4px rgba(17, 17, 26, 0.04);
  --lift-3: 0 30px 70px -28px rgba(30, 24, 90, 0.32), 0 10px 24px -12px rgba(17, 17, 26, 0.12);
  --ring: 0 0 0 4px color-mix(in srgb, var(--iris) 26%, transparent);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-elevated: #161618; --bg-sunken: #0c0c0e;
    --fill: rgba(120, 120, 128, 0.2); --fill-strong: rgba(120, 120, 128, 0.32);
    --text: #f5f5f7; --text-2: #d2d2d7; --text-3: #98989d; --text-4: #636366;
    --hairline: rgba(255, 255, 255, 0.09); --hairline-2: rgba(255, 255, 255, 0.17);
    --glass: rgba(22, 22, 24, 0.72); --inverse: #f5f5f7; --on-inverse: #1d1d1f;
    --iris: #7a6dff; --iris-wash: #1d1940; --iris-ink: #b3abff;
    --mint: #12b886; --mint-wash: #0b2a20; --mint-ink: #5fe0b4;
    --sun: #ffb01f; --sun-wash: #2e2208; --sun-ink: #ffd07a;
    --coral: #ff4d62; --coral-wash: #3a1218; --coral-ink: #ff9aa6;
    --sky: #2b95ff; --sky-wash: #0c2240; --sky-ink: #8cc4ff;
    --grape: #ac63ff; --grape-wash: #2a1440; --grape-ink: #d3a8ff;
    --rose: #ff62a6; --rose-wash: #3a1028; --rose-ink: #ff9fca;
    --stone: #8e8e93; --stone-wash: #232326; --stone-ink: #c7c7cc;
    --lift-1: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --lift-2: 0 8px 24px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --lift-3: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-elevated: #161618; --bg-sunken: #0c0c0e;
  --fill: rgba(120, 120, 128, 0.2); --fill-strong: rgba(120, 120, 128, 0.32);
  --text: #f5f5f7; --text-2: #d2d2d7; --text-3: #98989d; --text-4: #636366;
  --hairline: rgba(255, 255, 255, 0.09); --hairline-2: rgba(255, 255, 255, 0.17);
  --glass: rgba(22, 22, 24, 0.72); --inverse: #f5f5f7; --on-inverse: #1d1d1f;
  --iris: #7a6dff; --iris-wash: #1d1940; --iris-ink: #b3abff;
  --mint: #12b886; --mint-wash: #0b2a20; --mint-ink: #5fe0b4;
  --sun: #ffb01f; --sun-wash: #2e2208; --sun-ink: #ffd07a;
  --coral: #ff4d62; --coral-wash: #3a1218; --coral-ink: #ff9aa6;
  --sky: #2b95ff; --sky-wash: #0c2240; --sky-ink: #8cc4ff;
  --grape: #ac63ff; --grape-wash: #2a1440; --grape-ink: #d3a8ff;
  --rose: #ff62a6; --rose-wash: #3a1028; --rose-ink: #ff9fca;
  --stone: #8e8e93; --stone-wash: #232326; --stone-ink: #c7c7cc;
  --lift-1: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --lift-2: 0 8px 24px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --lift-3: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}

/* Tones: recolour a component and its children. */
.tone-iris  { --tone: var(--iris);  --tone-wash: var(--iris-wash);  --tone-ink: var(--iris-ink);  --tone-on: #fff; }
.tone-mint  { --tone: var(--mint);  --tone-wash: var(--mint-wash);  --tone-ink: var(--mint-ink);  --tone-on: #fff; }
.tone-sun   { --tone: var(--sun);   --tone-wash: var(--sun-wash);   --tone-ink: var(--sun-ink);   --tone-on: #2b1c00; }
.tone-coral { --tone: var(--coral); --tone-wash: var(--coral-wash); --tone-ink: var(--coral-ink); --tone-on: #fff; }
.tone-sky   { --tone: var(--sky);   --tone-wash: var(--sky-wash);   --tone-ink: var(--sky-ink);   --tone-on: #fff; }
.tone-grape { --tone: var(--grape); --tone-wash: var(--grape-wash); --tone-ink: var(--grape-ink); --tone-on: #fff; }
.tone-rose  { --tone: var(--rose);  --tone-wash: var(--rose-wash);  --tone-ink: var(--rose-ink);  --tone-on: #fff; }
.tone-gray  { --tone: var(--stone); --tone-wash: var(--stone-wash); --tone-ink: var(--stone-ink); --tone-on: #fff; }

/* ── 2. Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.58;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.on-gray { background: var(--bg); }
img, svg, video, canvas { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
svg.glyph { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--iris) 24%, transparent); }
h1, h2, h3, h4, h5 { margin: 0 0 0.45em; font-weight: 750; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 1rem; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
small { font-size: 0.8125rem; }
b, strong { font-weight: 650; }
code, kbd, samp, pre { font-family: var(--font-code); font-size: 0.86em; }
:not(pre) > code { padding: 0.14em 0.42em; border-radius: 6px; background: var(--fill); color: var(--text); font-size: 0.82em; }
kbd { display: inline-block; min-width: 1.6em; padding: 0.14em 0.45em; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--hairline-2); box-shadow: 0 1px 0 var(--hairline-2); font-size: 0.75em; text-align: center; color: var(--text-2); }
hr { border: 0; height: 1px; background: var(--hairline); margin: 2rem 0; }
table { border-collapse: collapse; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 18px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skiplink:focus { top: 14px; }

/* ── 3. Type helpers ────────────────────────────────────────────────────── */
.t-display { font-size: clamp(2.75rem, 7.2vw, 5.75rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.05em; }
.t-title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.045em; }
.t-heading { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 750; line-height: 1.15; letter-spacing: -0.03em; }
.t-lead { font-size: clamp(1.125rem, 1.7vw, 1.4rem); line-height: 1.45; font-weight: 500; color: var(--text-3); letter-spacing: -0.015em; }
.t-lg { font-size: 1.125rem; }
.t-sm { font-size: 0.9rem; }
.t-xs { font-size: 0.78rem; }
.t-muted { color: var(--text-3); }
.t-soft { color: var(--text-2); }
.t-faint { color: var(--text-4); }
.t-tone { color: var(--tone-ink); }
.t-strong { font-weight: 650; }
.t-center { text-align: center; }
.t-right { text-align: right; }
.t-mono { font-family: var(--font-code); font-size: 0.92em; letter-spacing: 0; }
.t-nowrap { white-space: nowrap; }
.t-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t-wrap { overflow-wrap: anywhere; }
.t-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-balance { text-wrap: balance; }
.t-num { font-variant-numeric: tabular-nums; }
.t-gradient { background: var(--spectrum-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.06em; }
.t-measure { max-width: 40rem; }
.t-center.t-measure, .t-center .t-measure { margin-inline: auto; }

/* ── 4. Layout ──────────────────────────────────────────────────────────── */
.shell { width: 100%; max-width: calc(var(--page-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: calc(720px + var(--gutter) * 2); }
.shell--mid { max-width: calc(980px + var(--gutter) * 2); }
.shell--wide { max-width: calc(1320px + var(--gutter) * 2); }

.band { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }
.band--flush-top { padding-top: 0; }
.band--gray { background: var(--bg); }
.band--dark {
  --bg: #000; --bg-elevated: #161618; --bg-sunken: #0c0c0e; --fill: rgba(120, 120, 128, 0.22); --fill-strong: rgba(120, 120, 128, 0.34);
  --text: #f5f5f7; --text-2: #d2d2d7; --text-3: #a1a1a6; --text-4: #6e6e73;
  --hairline: rgba(255, 255, 255, 0.1); --hairline-2: rgba(255, 255, 255, 0.18);
  --inverse: #f5f5f7; --on-inverse: #1d1d1f;
  --iris-wash: #1d1940; --iris-ink: #b3abff; --mint-wash: #0b2a20; --mint-ink: #5fe0b4; --sun-wash: #2e2208; --sun-ink: #ffd07a;
  --coral-wash: #3a1218; --coral-ink: #ff9aa6; --sky-wash: #0c2240; --sky-ink: #8cc4ff; --grape-wash: #2a1440; --grape-ink: #d3a8ff;
  background: #000; color: var(--text); color-scheme: dark;
}

.intro { max-width: 52rem; margin-bottom: clamp(36px, 5vw, 64px); }
.intro--center { margin-inline: auto; text-align: center; }
.intro--center .t-lead, .intro--center .intro__lead { margin-inline: auto; }
.intro__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--tone-ink); }
.intro__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px var(--tone-wash); }
.intro__title { margin: 0; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.045em; }
.intro__lead { margin: 18px 0 0; max-width: 40rem; font-size: clamp(1.125rem, 1.7vw, 1.35rem); line-height: 1.45; font-weight: 500; color: var(--text-3); letter-spacing: -0.015em; }

.hstack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hstack--between { justify-content: space-between; }
.hstack--center { justify-content: center; }
.hstack--end { justify-content: flex-end; }
.hstack--top { align-items: flex-start; }
.hstack--base { align-items: baseline; }
.hstack--nowrap { flex-wrap: nowrap; }
.hstack--fill > * { flex: 1 1 0; }
.vstack { display: grid; gap: 16px; align-content: start; }
.vstack > *, .hstack > * { min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-0 { gap: 0; } .gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: clamp(28px, 5vw, 48px); } .gap-64 { gap: clamp(32px, 6vw, 72px); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-auto > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid--center { align-items: center; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--side { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 960px) { .split, .split--even, .split--side { grid-template-columns: minmax(0, 1fr); } }

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: clamp(32px, 5vw, 48px); } .mt-64 { margin-top: clamp(40px, 6vw, 64px); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: clamp(32px, 5vw, 48px); }
.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }
.minw-0 { min-width: 0; }
.block { display: block; }
@media (max-width: 680px) { .hide-sm { display: none !important; } }
@media (min-width: 681px) { .show-sm { display: none !important; } }

/* ── 5. Buttons & links ─────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--fill); --btn-fg: var(--text); --btn-bd: transparent; --btn-hover: var(--fill-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 0.9375rem/1 var(--font); letter-spacing: -0.012em; white-space: nowrap; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-loading { opacity: 0.5; pointer-events: none; }
.btn svg.glyph { width: 17px; height: 17px; }
.btn--primary { --btn-bg: var(--iris); --btn-fg: #fff; --btn-hover: color-mix(in srgb, var(--iris) 86%, #000); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--iris) 80%, transparent); }
.btn--dark { --btn-bg: var(--inverse); --btn-fg: var(--on-inverse); --btn-hover: color-mix(in srgb, var(--inverse) 82%, var(--iris)); }
.btn--soft { --btn-bg: var(--fill); --btn-fg: var(--text); --btn-hover: var(--fill-strong); }
.btn--tone { --btn-bg: var(--tone-wash); --btn-fg: var(--tone-ink); --btn-hover: color-mix(in srgb, var(--tone-wash) 70%, var(--tone)); }
.btn--outline { --btn-bg: var(--bg-elevated); --btn-fg: var(--text); --btn-bd: var(--hairline-2); --btn-hover: var(--bg-elevated); }
.btn--outline:hover { --btn-bd: var(--text-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-2); --btn-hover: var(--fill); }
.btn--danger { --btn-bg: var(--coral-wash); --btn-fg: var(--coral-ink); --btn-hover: color-mix(in srgb, var(--coral-wash) 75%, var(--coral)); }
.btn--white { --btn-bg: #fff; --btn-fg: #1d1d1f; --btn-hover: #e8e8ed; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 0.85rem; gap: 6px; }
.btn--sm svg.glyph { width: 15px; height: 15px; }
.btn--xs { min-height: 28px; padding: 0 10px; font-size: 0.78rem; gap: 5px; }
.btn--xs svg.glyph { width: 13px; height: 13px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--square { padding: 0; width: 44px; }
.btn--sm.btn--square { width: 34px; }
.btn--start { justify-content: flex-start; }

.txtlink { color: var(--iris-ink); font-weight: 600; text-decoration: none; }
.txtlink:hover { text-decoration: underline; }
.txtlink--more::after { content: " ›"; font-weight: 700; }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--iris-ink); font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ── 6. Pills, status, tags ─────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg-elevated); border: 1px solid var(--hairline); color: var(--text-2); font-size: 0.8125rem; font-weight: 550; line-height: 1.3; white-space: nowrap; }
.pill svg.glyph { width: 14px; height: 14px; }
.pill--fill { background: var(--fill); border-color: transparent; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--tone-wash); color: var(--tone-ink); font-size: 0.78rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); flex: none; }
.status--plain::before { display: none; }
.status svg.glyph { width: 13px; height: 13px; }
.status--solid { background: var(--tone); color: var(--tone-on); }
.status--solid::before { background: currentColor; opacity: 0.7; }
.status--cell { display: flex; justify-content: center; width: 100%; min-height: 40px; border-radius: 0; background: var(--tone); color: var(--tone-on); font-size: 0.82rem; }
.status--cell::before { display: none; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--text-3); font: 600 0.72rem/1.5 var(--font-code); letter-spacing: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: none; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--coral); color: #fff; font-size: 0.7rem; font-weight: 750; line-height: 1; }

.icon-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tone-wash); color: var(--tone-ink); flex: none; }
.icon-chip svg.glyph { width: 22px; height: 22px; }
.icon-chip--solid { background: var(--tone); color: var(--tone-on); box-shadow: 0 8px 20px -10px var(--tone); }
.icon-chip--sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-chip--sm svg.glyph { width: 17px; height: 17px; }
.icon-chip--lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-chip--lg svg.glyph { width: 28px; height: 28px; }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tone-wash); color: var(--tone-ink); font-size: 0.78rem; font-weight: 750; flex: none; letter-spacing: 0; }
.avatar svg.glyph { width: 16px; height: 16px; }
.avatar--solid { background: var(--tone); color: var(--tone-on); }
.avatar--sm { width: 26px; height: 26px; font-size: 0.66rem; }

/* ── 7. Surfaces ────────────────────────────────────────────────────────── */
.card { position: relative; background: var(--bg-elevated); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--lift-1); }
.card--line { box-shadow: none; border: 1px solid var(--hairline); }
.card--sm { padding: 16px 18px; border-radius: var(--r-md); }
.card--lg { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); }
.card--flush { padding: 0; overflow: hidden; }
.card--wash { background: var(--tone-wash); box-shadow: none; }
.card--sunken { background: var(--bg); box-shadow: none; }
.card--raised { box-shadow: var(--lift-2); }
.card--dark { background: #1d1d1f; color: #f5f5f7; box-shadow: none; }
.card--dark .t-muted { color: #a1a1a6; }
.card--hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em; }
.card__title svg.glyph { color: var(--tone); }
.card__sub { margin: 4px 0 0; color: var(--text-3); font-size: 0.9rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.card > :last-child { margin-bottom: 0; }

/* Bento tiles (marketing) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { min-width: 0; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg-elevated); grid-column: span 2; }
.tile--wide { grid-column: span 3; }
.tile--hero { grid-column: span 4; }
.tile--full { grid-column: 1 / -1; }
.tile--tall { grid-row: span 2; }
.tile--dark { background: #1d1d1f; color: #f5f5f7; --text-3: #a1a1a6; }
.tile--wash { background: var(--tone-wash); }
.tile--solid { background: var(--tone); color: var(--tone-on); --text-3: color-mix(in srgb, var(--tone-on) 78%, transparent); }
.tile__kicker { font-size: 0.875rem; font-weight: 700; color: var(--tone-ink); }
.tile--dark .tile__kicker { color: color-mix(in srgb, var(--tone) 70%, #fff); }
.tile--solid .tile__kicker { color: inherit; opacity: 0.85; }
.tile__title { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: inherit; }
.tile__text { margin: 0; color: var(--text-3); font-size: 0.98rem; }
.tile__visual { margin-top: auto; padding-top: 16px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile--wide { grid-column: span 1; } .tile--hero, .tile--full { grid-column: 1 / -1; } .tile--tall { grid-row: auto; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .tile--wide, .tile--hero { grid-column: 1 / -1; min-height: 0; } }

/* Feature item (icon + heading + copy) */
.feature { display: grid; gap: 10px; align-content: start; }
.feature__title { margin: 6px 0 0; font-size: 1.125rem; font-weight: 750; letter-spacing: -0.02em; }
.feature__text { margin: 0; color: var(--text-3); font-size: 0.97rem; }
.feature--row { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
.feature--row .icon-chip { grid-row: span 2; }
.feature--row .feature__title { margin: 0; align-self: end; }

/* ── 8. Header (glass bar) & footer ─────────────────────────────────────── */
.glassbar { position: sticky; top: 0; z-index: 60; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease), background-color 0.25s; }
.glassbar.is-scrolled { border-bottom-color: var(--hairline); }
.glassbar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; height: 64px; }
.glassbar__links { display: flex; justify-content: center; gap: 2px; }
.glassbar__links a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--text-2); font-size: 0.9rem; font-weight: 550; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.glassbar__links a:hover { background: var(--fill); color: var(--text); }
.glassbar__links a[aria-current="page"] { color: var(--text); background: var(--fill); }
.glassbar__actions { display: flex; align-items: center; gap: 8px; }
.glassbar__toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fill); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.glassbar__toggle svg.glyph { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .glassbar__inner { grid-template-columns: auto auto; justify-content: space-between; height: 58px; }
  .glassbar__toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .glassbar__links, .glassbar__actions { display: none; }
  .glassbar.is-open { background: var(--bg-elevated); }
  .glassbar.is-open .glassbar__inner { height: auto; padding-block: 11px 20px; grid-template-columns: 1fr auto; row-gap: 8px; }
  .glassbar.is-open .glassbar__links { display: grid; grid-column: 1 / -1; justify-content: stretch; gap: 0; padding-top: 8px; }
  .glassbar.is-open .glassbar__links a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--hairline); font-size: 1.125rem; font-weight: 650; background: none; }
  .glassbar.is-open .glassbar__actions { display: flex; grid-column: 1 / -1; padding-top: 12px; }
  .glassbar.is-open .glassbar__actions .btn { flex: 1; }
}

.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand__logo { display: block; height: 26px; width: auto; }
.brand__mark { display: block; height: 1em; width: auto; }

.colophon { position: relative; padding: 64px 0 36px; background: var(--bg); color: var(--text-3); font-size: 0.875rem; }
.colophon::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.colophon__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.colophon__about { max-width: 22rem; margin: 14px 0 0; }
.colophon h2 { margin: 0 0 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0; color: var(--text); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.colophon a { color: var(--text-3); text-decoration: none; }
.colophon a:hover { color: var(--text); text-decoration: underline; }
.colophon__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--text-4); font-size: 0.8125rem; }
@media (max-width: 760px) { .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .colophon__grid > :first-child { grid-column: 1 / -1; } }

/* ── 9. Hero (stage) ────────────────────────────────────────────────────── */
.stage { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); text-align: center; }
.stage::before { content: ""; position: absolute; z-index: -1; inset: -30% -20% auto; height: 110%;
  background:
    radial-gradient(32% 36% at 22% 30%, color-mix(in srgb, var(--iris) 16%, transparent), transparent 70%),
    radial-gradient(28% 34% at 50% 18%, color-mix(in srgb, var(--grape) 12%, transparent), transparent 70%),
    radial-gradient(30% 34% at 80% 32%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none; }
.stage__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--bg-elevated); box-shadow: var(--lift-2); font-size: 0.875rem; font-weight: 650; color: var(--text-2); text-decoration: none; }
.stage__kicker .status { font-size: 0.72rem; }
.stage__title { margin: 0 auto; max-width: 15ch; }
.stage__lead { margin: 24px auto 0; max-width: 38rem; }
.stage__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stage__proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-3); font-size: 0.875rem; font-weight: 550; }
.stage__proof span { display: inline-flex; align-items: center; gap: 7px; }
.stage__proof svg.glyph { color: var(--mint); }
.stage__visual { margin-top: clamp(44px, 6vw, 72px); text-align: left; }
@media (max-width: 520px) { .stage__actions .btn { flex: 1 1 100%; } }
.stage--left { text-align: left; }
.stage--left .stage__title, .stage--left .stage__lead { margin-inline: 0; }
.stage--left .stage__actions, .stage--left .stage__proof { justify-content: flex-start; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 980px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ── 10. Forms ──────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field:last-child, .grid-2 > .field, .grid-3 > .field, .grid-4 > .field, .grid-auto > .field, .vstack > .field, .hstack > .field { margin-bottom: 0; }
.field__label { display: block; font-size: 0.875rem; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.field__label .t-faint, .field__label small { font-weight: 500; }
.field__hint { margin: 0; color: var(--text-3); font-size: 0.82rem; line-height: 1.45; }
.field__error { margin: 0; color: var(--coral-ink); font-size: 0.82rem; font-weight: 600; }

.input,
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"],
select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--hairline-2); border-radius: var(--r-sm); background-color: var(--bg-elevated); color: var(--text);
  font: 450 0.97rem/1.4 var(--font); letter-spacing: -0.01em;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--text-4); }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.input--code, .input--code { font-family: var(--font-code); font-size: 0.84rem; }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
.input:hover, input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--hairline-2) 60%, var(--text-3)); }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--iris); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--iris); width: 18px; height: 18px; }
input[type="file"] { font: inherit; font-size: 0.9rem; }
.input--sm { min-height: 38px; padding: 7px 12px; font-size: 0.9rem; }
.input--auto { width: auto; }

.affix { display: flex; align-items: stretch; border: 1px solid var(--hairline-2); border-radius: var(--r-sm); background: var(--bg-elevated); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.affix:focus-within { border-color: var(--iris); box-shadow: var(--ring); }
.affix > span { display: flex; align-items: center; padding: 0 12px; background: var(--fill); color: var(--text-3); font: 500 0.84rem var(--font-code); white-space: nowrap; }
.affix > input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.affix > .btn { border-radius: 0; }

.search { position: relative; }
.search > svg.glyph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.search > input { padding-left: 40px; border-radius: var(--r-pill); }

.switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px !important; height: 28px !important; margin: 0; border: 0; border-radius: var(--r-pill); background: var(--fill-strong); cursor: pointer; transition: background-color 0.22s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.04); transition: transform 0.24s var(--ease); }
.switch:checked { background: var(--mint); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.45; cursor: not-allowed; }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }

.checkrow { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; }
.checkrow + .checkrow { border-top: 1px solid var(--hairline); }
.checkrow > input { margin-top: 2px; }
.checkrow__title { display: block; font-weight: 650; font-size: 0.95rem; }
.checkrow__text { display: block; color: var(--text-3); font-size: 0.85rem; }

/* Segmented control: <div class="choice"><label><input type=radio><span>…</span></label></div> */
.choice { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--fill); }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; color: var(--text-3); font-size: 0.875rem; font-weight: 650; cursor: pointer; transition: background-color 0.18s var(--ease), color 0.18s; }
.choice span svg.glyph { width: 15px; height: 15px; }
.choice input:checked + span { background: var(--bg-elevated); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.choice input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.choice--block { display: flex; }
.choice--block label { flex: 1; }
.choice--block span { width: 100%; justify-content: center; }

.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-4); font-size: 0.8125rem; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ── 11. Feedback: notices, toasts, meter ───────────────────────────────── */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--tone-wash); color: var(--text); font-size: 0.93rem; --tone: var(--sky); --tone-wash: var(--sky-wash); --tone-ink: var(--sky-ink); }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent); }
.notice > p, .notice__body { flex: 1; margin: 0; min-width: 0; }
.notice > form, .notice > .btn { margin: 0; flex: none; }
.notice.tone-mint { --tone: var(--mint); --tone-wash: var(--mint-wash); --tone-ink: var(--mint-ink); }
.notice.tone-coral { --tone: var(--coral); --tone-wash: var(--coral-wash); --tone-ink: var(--coral-ink); }
.notice.tone-sun { --tone: var(--sun); --tone-wash: var(--sun-wash); --tone-ink: var(--sun-ink); }
.notice.tone-iris { --tone: var(--iris); --tone-wash: var(--iris-wash); --tone-ink: var(--iris-ink); }
.notice--banner { border-radius: 0; justify-content: center; padding-block: 10px; }
.notice--banner::before { display: none; }
.notices { display: grid; gap: 8px; margin-top: 16px; }

.toast-tray { position: fixed; z-index: 400; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 22px; border-radius: var(--r-pill); background: rgba(29, 29, 31, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #f5f5f7; font-size: 0.92rem; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); animation: prism-rise 0.35s var(--ease); }
@keyframes prism-rise { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

.meter { height: 6px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.meter > i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--spectrum); background-size: 300px 100%; transition: width 0.3s var(--ease); }
.meter--tone > i { background: var(--tone); }

/* ── 12. Tables & the board ─────────────────────────────────────────────── */
.scroller { position: relative; overflow-x: auto; border-radius: var(--r-lg); background: var(--bg-elevated); box-shadow: var(--lift-1); -webkit-overflow-scrolling: touch; }
.datatable { width: 100%; font-size: 0.9rem; }
.datatable th { padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--text-3); white-space: nowrap; border-bottom: 1px solid var(--hairline); letter-spacing: 0; }
.datatable td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.datatable tbody tr:last-child > * { border-bottom: 0; }
.datatable tbody tr { transition: background-color 0.12s; }
.datatable tbody tr:hover { background: color-mix(in srgb, var(--fill) 50%, transparent); }
.datatable th[scope="row"] { color: var(--text); font-size: 0.92rem; font-weight: 600; white-space: normal; }
.datatable .num { text-align: right; font-variant-numeric: tabular-nums; }
.datatable .center { text-align: center; }
.datatable--top td { vertical-align: top; }
.datatable--compact td, .datatable--compact th { padding: 9px 12px; }

/* Compare table */
.versus th, .versus td { text-align: center; }
.versus th:first-child, .versus td:first-child { text-align: left; }
.versus .versus__us { background: var(--iris-wash); color: var(--iris-ink); }
.versus .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: #fff; }
.versus .yes svg.glyph { width: 15px; height: 15px; }
.versus .no { color: var(--text-4); font-weight: 700; }

/* Board: monday-style grouped table with colour-coded rows and status cells. */
.board { --board-row: 52px; }
.board + .board { margin-top: 28px; }
.board__group { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding-left: 4px; color: var(--tone); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.board__group small { color: var(--text-4); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; }
.board__frame { overflow-x: auto; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.board__table { width: 100%; min-width: 640px; font-size: 0.9rem; border-collapse: separate; border-spacing: 0; }
.board__table th { height: 38px; padding: 0 12px; text-align: center; font-size: 0.78rem; font-weight: 650; color: var(--text-3); white-space: nowrap; border-bottom: 1px solid var(--hairline); }
.board__table th:first-child { text-align: left; padding-left: 20px; }
.board__table td { height: var(--board-row); padding: 0 12px; text-align: center; border-bottom: 1px solid var(--hairline); border-left: 1px solid var(--hairline); white-space: nowrap; }
.board__table td:first-child { position: relative; text-align: left; padding-left: 20px; border-left: 0; white-space: normal; }
.board__table td:first-child::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone); }
.board__table tbody tr:first-child td:first-child::before { border-top-left-radius: var(--r-md); }
.board__table tbody tr:last-child td { border-bottom: 0; }
.board__table tbody tr:last-child td:first-child::before { border-bottom-left-radius: var(--r-md); }
.board__table thead th:first-child { position: relative; }
.board__table tbody tr { transition: background-color 0.12s; }
.board__table tbody tr:hover { background: color-mix(in srgb, var(--fill) 45%, transparent); }
.board__table td.board__cell { padding: 0; width: 140px; }
.board__table td.board__cell .status--cell { min-height: var(--board-row); }
.board__name { display: block; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
a.board__name:hover { color: var(--iris-ink); }
.board__meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 2px; color: var(--text-3); font-size: 0.8rem; }
.board__meta .t-mono { font-size: 0.76rem; }
.board__table--mini { min-width: 0; font-size: 0.8rem; --board-row: 40px; }
.board__table--mini th { height: 30px; font-size: 0.7rem; }
.board__table--mini td.board__cell { width: 104px; }
.board__table--mini .status--cell { font-size: 0.72rem; }
.board--stack { container-type: inline-size; }
@container (max-width: 700px) {
  .board--stack .board__frame { overflow: visible; background: none; box-shadow: none; }
  .board--stack .board__table { min-width: 0; }
  .board--stack .board__table thead { display: none; }
  .board--stack .board__table, .board--stack .board__table tbody { display: block; }
  .board--stack .board__table tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-1); overflow: hidden; }
  .board--stack .board__table td { height: auto; min-height: 40px; padding: 10px 14px; border-left: 0; border-bottom: 1px solid var(--hairline); text-align: left; display: flex; align-items: center; gap: 8px; }
  .board--stack .board__table td:first-child { grid-column: 1 / -1; padding: 14px 14px 12px 20px; display: block; }
  .board--stack .board__table td[data-label]::before { content: attr(data-label); color: var(--text-4); font-size: 0.72rem; font-weight: 650; }
  .board--stack .board__table td.board__cell { width: auto; padding: 0 0 0 14px; }
  .board--stack .board__table td.board__cell .status--cell { min-height: 30px; margin: 5px 14px 5px 0; border-radius: 8px; }
  .board--stack .board__table td:first-child::before { border-radius: 0 !important; }
  .board--stack .board__table tr > td:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ── 13. Data viz: KPIs & spark bars ────────────────────────────────────── */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { position: relative; overflow: hidden; padding: 18px 20px 18px 24px; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.kpi__label { display: block; color: var(--text-3); font-size: 0.82rem; font-weight: 600; }
.kpi__value, .kpi > b { display: block; margin-top: 4px; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__note { display: block; margin-top: 2px; color: var(--text-4); font-size: 0.78rem; }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.spark > i { flex: 1; min-width: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 55%, transparent)); transition: opacity 0.15s; }
.spark > i:hover { opacity: 0.75; }
.spark > i.is-zero { height: 3px !important; background: var(--fill-strong); }
.spark__axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-4); font-size: 0.74rem; font-weight: 600; }

/* ── 14. Navigation pieces ──────────────────────────────────────────────── */
.segtabs { display: flex; gap: 2px; width: max-content; max-width: 100%; padding: 4px; margin-bottom: 26px; border-radius: var(--r-pill); background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.segtabs::-webkit-scrollbar { display: none; }
.segtabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--r-pill); color: var(--text-3); font-size: 0.875rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color 0.18s var(--ease), color 0.18s; }
.segtabs a:hover { color: var(--text); }
.segtabs a[aria-current="page"], .segtabs a[aria-current="true"] { background: var(--bg-elevated); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.14); }
.segtabs svg.glyph { width: 15px; height: 15px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--text-3); font-size: 0.85rem; font-weight: 550; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--iris-ink); }
.crumbs > * + *::before { content: "›"; margin-right: 6px; color: var(--text-4); }

details.popover { position: relative; display: inline-block; }
details.popover > summary { list-style: none; cursor: pointer; }
details.popover > summary::-webkit-details-marker { display: none; }
.popover__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(420px, 86vw); padding: 18px; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-3); text-align: left; white-space: normal; }

/* ── 15. Content blocks ─────────────────────────────────────────────────── */
.qa { border-top: 1px solid var(--hairline); }
.qa details { border-bottom: 1px solid var(--hairline); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details > div { padding: 0 0 24px; max-width: 46rem; color: var(--text-3); }

.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: journey; }
.journey__step { counter-increment: journey; position: relative; padding: 26px 24px; border-radius: var(--r-lg); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.journey__step::before { content: counter(journey); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 12px; background: var(--tone); color: var(--tone-on); font-size: 1rem; font-weight: 800; }
.journey__step:nth-child(4n + 1) { --tone: var(--iris); }
.journey__step:nth-child(4n + 2) { --tone: var(--grape); }
.journey__step:nth-child(4n + 3) { --tone: var(--coral); }
.journey__step:nth-child(4n + 4) { --tone: var(--mint); }
.journey__step h3 { margin-bottom: 6px; }
.journey__step p { margin: 0; color: var(--text-3); font-size: 0.95rem; }
@media (max-width: 980px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .journey { grid-template-columns: minmax(0, 1fr); } }

/* Launch-check findings and grade */
.findings { display: grid; gap: 8px; }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.finding__sev { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--tone); color: var(--tone-on); font-size: 0.85rem; font-weight: 800; }
.finding--error { --tone: var(--coral); --tone-on: #fff; }
.finding--warn { --tone: var(--sun); --tone-on: #2b1c00; }
.finding--info { --tone: var(--sky); --tone-on: #fff; }
.finding__title { display: block; font-size: 0.95rem; font-weight: 650; letter-spacing: -0.01em; }
.finding__text { margin: 2px 0 0; color: var(--text-3); font-size: 0.86rem; }
.grade { display: inline-grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 18px; background: var(--fill); color: var(--text-3); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; }
.grade--A { background: var(--mint); color: #fff; }
.grade--B { background: var(--sky); color: #fff; }
.grade--C { background: var(--sun); color: #2b1c00; }
.grade--D, .grade--F { background: var(--coral); color: #fff; }

/* Activity feed */
.feed { display: grid; }
.feed__item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.feed__item:last-child { border-bottom: 0; }
.feed__who { display: block; font-size: 0.93rem; font-weight: 650; }
.feed__what { display: block; color: var(--text-3); font-size: 0.84rem; }
.feed__when { color: var(--text-4); font-size: 0.8rem; font-weight: 550; white-space: nowrap; }

/* Empty state */
.blank { padding: clamp(36px, 6vw, 72px) 24px; border-radius: var(--r-xl); border: 2px dashed var(--hairline-2); background: var(--bg-elevated); text-align: center; }
.blank .icon-chip { margin-bottom: 18px; }
.blank__title { margin: 0 0 6px; font-size: 1.3rem; }
.blank__text { margin: 0 auto 22px; max-width: 30rem; color: var(--text-3); }

/* Comment threads & pins */
.thread { padding: 18px; border-radius: var(--r-md); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.thread--resolved { opacity: 0.55; }
.thread__reply { margin: 0 0 12px 14px; padding-left: 14px; border-left: 2px solid var(--hairline-2); }
.pin { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50% 50% 50% 4px; background: var(--tone); color: var(--tone-on); font-size: 0.72rem; font-weight: 800; box-shadow: 0 6px 14px -6px var(--tone); }

/* ── 16. Composer (publish box) ─────────────────────────────────────────── */
.composer { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-elevated); box-shadow: var(--lift-3); text-align: left; }
.composer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--spectrum); }
.composer__tabs { display: flex; gap: 2px; margin: 18px 18px 0; padding: 3px; border-radius: var(--r-sm); background: var(--fill); }
.composer__tab { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font: 650 0.9rem/1 var(--font); cursor: pointer; transition: background-color 0.18s var(--ease), color 0.18s; }
.composer__tab[aria-selected="true"] { background: var(--bg-elevated); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.14); }
.composer__body { padding: 16px 18px 18px; }
.composer__drop { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 240px; padding: 28px 20px; border: 2px dashed var(--hairline-2); border-radius: var(--r-lg); background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.composer__drop:hover, .composer__drop.is-over { border-color: var(--iris); background: var(--iris-wash); }
.composer__drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.composer__dropicon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 19px; background: var(--spectrum); background-size: 180% 100%; color: #fff; box-shadow: 0 14px 30px -14px var(--iris); transition: background-position 0.6s var(--ease), transform 0.3s var(--ease); }
.composer__drop:hover .composer__dropicon, .composer__drop.is-over .composer__dropicon { background-position: 100% 0; transform: translateY(-3px); }
.composer__dropicon svg.glyph { width: 26px; height: 26px; }
.composer__droptitle { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.02em; }
.composer__types { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.composer__paste textarea { min-height: 240px; font: 0.84rem/1.6 var(--font-code); border-radius: var(--r-lg); background: var(--bg); }
.composer__options { display: grid; gap: 16px; margin-top: 18px; }
.composer__options .field { margin: 0; }
.composer__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 60%, var(--bg-elevated)); }
.composer__status { margin: 0; color: var(--text-3); font-size: 0.86rem; }
.composer__status.is-error { color: var(--coral-ink); font-weight: 600; }
.composer.is-busy .composer__foot .btn { opacity: 0.55; pointer-events: none; }
.composer__result { padding: 26px 22px 22px; }
.composer__url { display: flex; align-items: center; gap: 6px; margin: 14px 0 18px; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline); }
.composer__urltext { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 600 0.92rem/1.3 var(--font-code); text-decoration: none; }
.composer__claim { margin-top: 18px; }
@media (max-width: 520px) {
  .composer__url { flex-wrap: wrap; padding: 10px; border-radius: var(--r-md); }
  .composer__urltext { flex-basis: 100%; padding: 2px 4px 8px; }
  .composer__url .btn { flex: 1 1 auto; }
  .composer__claim .hstack > .btn { flex: 1 1 100%; }
}

/* ── 17. Mockups: window, console ───────────────────────────────────────── */
.window { overflow: hidden; border-radius: var(--r-lg); background: var(--bg-elevated); box-shadow: var(--lift-3); }
.window__bar { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; gap: 12px; padding: 11px 14px; background: color-mix(in srgb, var(--bg) 70%, var(--bg-elevated)); border-bottom: 1px solid var(--hairline); }
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window__dots i:nth-child(2) { background: #febc2e; }
.window__dots i:nth-child(3) { background: #28c840; }
.window__url { display: block; min-width: 0; padding: 6px 12px; border-radius: 8px; background: var(--fill); color: var(--text-3); font: 500 0.78rem/1.1 var(--font-code); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__url svg.glyph { width: 12px; height: 12px; margin-right: 6px; vertical-align: -0.15em; color: var(--mint); }
@media (max-width: 560px) { .window__bar { grid-template-columns: auto minmax(0, 1fr); } .window__bar > span:last-child { display: none; } .window__url { text-align: left; } }
.window__body { position: relative; }

pre.console, .console { margin: 0; padding: 24px 26px; overflow-x: auto; border-radius: var(--r-lg); background: #0f0f12; color: #e8e8ed; font: 0.82rem/1.75 var(--font-code); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--lift-3); }
.console .tk-prompt { color: #a99dff; }
.console .tk-dim { color: #6e6e73; }
.console .tk-ok { color: #3ddc97; }
.console .tk-call { color: #ffc94d; }
.console .tk-str { color: #ff9aa6; }
.copyable { position: relative; }
.copyable > pre { padding-right: 96px; }
.copyable > .btn { position: absolute; top: 12px; right: 12px; --btn-bg: rgba(255, 255, 255, 0.12); --btn-fg: #f5f5f7; --btn-bd: rgba(255, 255, 255, 0.16); --btn-hover: rgba(255, 255, 255, 0.22); }

/* ── 18. Pricing ────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--r-xl); background: var(--bg-elevated); box-shadow: var(--lift-1); }
.plan--featured { box-shadow: 0 0 0 2px var(--iris), var(--lift-3); }
.plan__ribbon { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--spectrum); color: #fff; font-size: 0.75rem; font-weight: 750; letter-spacing: 0; box-shadow: 0 8px 18px -8px var(--grape); }
.plan__name { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.plan__for { margin: 6px 0 22px; min-height: 2.9em; color: var(--text-3); font-size: 0.93rem; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 3.1rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.plan__price span { color: var(--text-3); font-weight: 550; }
.plan__note { min-height: 1.5em; margin: 8px 0 0; color: var(--text-3); font-size: 0.85rem; }
.plan__list { display: grid; gap: 11px; margin: 24px 0 28px; padding: 0; list-style: none; font-size: 0.93rem; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; }
.plan__list svg.glyph { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--mint-wash); color: var(--mint-ink); stroke-width: 3; }
.plan__cta { margin-top: auto; }
.plan__alt { display: block; margin-top: 12px; color: var(--text-3); font-size: 0.85rem; text-align: center; }

/* ── 19. App workspace (dashboard) ──────────────────────────────────────── */
.workspace { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; height: 100vh; padding: 18px 14px; overflow-y: auto; background: var(--bg-elevated); border-right: 1px solid var(--hairline); }
.rail__brand { padding: 4px 8px 18px; }
.rail__new { margin-bottom: 14px; }
.rail__nav { display: grid; gap: 2px; }
.rail__label { padding: 18px 10px 6px; color: var(--text-4); font-size: 0.74rem; font-weight: 700; }
.rail__link { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 11px; color: var(--text-2); font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.rail__link .icon-chip { width: 28px; height: 28px; border-radius: 8px; }
.rail__link .icon-chip svg.glyph { width: 16px; height: 16px; }
.rail__link:hover { background: var(--fill); color: var(--text); }
.rail__link[aria-current="page"] { background: var(--tone-wash); color: var(--tone-ink); }
.rail__link[aria-current="page"] .icon-chip { background: var(--tone); color: var(--tone-on); }
.rail__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
.upsell { position: relative; overflow: hidden; padding: 18px 16px 16px; border-radius: var(--r-md); background: #1d1d1f; color: #f5f5f7; font-size: 0.86rem; }
.upsell::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spectrum); }
.upsell b { display: block; font-size: 0.95rem; letter-spacing: -0.015em; }
.upsell p { margin: 4px 0 14px; color: #a1a1a6; line-height: 1.45; }
.whoami { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 0.875rem; }
.whoami:hover { background: var(--fill); }
.whoami__name { display: block; font-weight: 650; }
.whoami__plan { display: block; color: var(--text-3); font-size: 0.76rem; }
.workspace__main { min-width: 0; }
.mobilebar { display: none; }
.canvas { width: 100%; max-width: 1600px; margin-inline: auto; padding: clamp(20px, 2.8vw, 48px); }
.canvas--narrow { max-width: 1180px; }
/* Flash messages line up with the work area, not the marketing container. */
.workspace__main > .notices { max-width: 1600px; padding-inline: clamp(20px, 2.8vw, 48px); }
.workspace__main > .notices:has(+ .canvas--narrow) { max-width: 1180px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 28px; }
.pagehead__title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.pagehead__sub { margin: 6px 0 0; color: var(--text-3); font-size: 0.97rem; }
.pagehead__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.scrim { display: none; }
@media (max-width: 960px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 80; inset: 0 auto 0 0; width: 288px; transform: translateX(-104%); transition: transform 0.32s var(--ease); box-shadow: var(--lift-3); }
  .workspace.is-railopen .rail { transform: none; }
  .workspace.is-railopen .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .mobilebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .pagehead { align-items: stretch; flex-direction: column; }
  .pagehead__actions > .btn, .pagehead__actions > form { flex: 1; }
}

/* ── 20. Sign-in, dialog, prose ─────────────────────────────────────────── */
.signin { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 48px 16px 96px; background: var(--bg); }
.signin__card { width: 100%; max-width: 440px; padding: clamp(28px, 4vw, 40px); border-radius: var(--r-xl); background: var(--bg-elevated); box-shadow: var(--lift-2); }
.signin__mark { display: block; width: 56px; height: auto; margin-bottom: 24px; color: var(--text); }
.signin__title { margin: 0 0 6px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.045em; }
.signin__foot { margin: 22px 0 0; color: var(--text-3); font-size: 0.9rem; text-align: center; }

dialog.sheet { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--bg-elevated); color: var(--text); box-shadow: var(--lift-3); }
dialog.sheet[open] { animation: prism-rise 0.3s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.sheet__head h2 { margin: 0; font-size: 1.2rem; }
.sheet__body { padding: 24px; }

.article { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.article h1 { color: var(--text); font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; }
.article h2 { margin: 2.2em 0 0.6em; color: var(--text); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.035em; }
.article h3 { margin: 1.8em 0 0.5em; color: var(--text); font-size: 1.25rem; }
.article p, .article ul, .article ol { margin: 0 0 1.15em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.45em; }
.article li::marker { color: var(--iris); }
.article a { color: var(--iris-ink); font-weight: 600; }
.article img { border-radius: var(--r-lg); }
.article pre:not(.console) { margin: 0 0 1.4em; padding: 18px 20px; overflow-x: auto; border-radius: var(--r-md); background: #0f0f12; color: #e8e8ed; font-size: 0.84rem; line-height: 1.7; }
.article blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--iris-wash); color: var(--text); font-weight: 550; }
.article blockquote > :last-child { margin-bottom: 0; }
.article table { width: 100%; margin: 0 0 1.4em; font-size: 0.93rem; }
.article th, .article td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: left; }
.article th { color: var(--text); font-weight: 700; }
.article hr { margin: 2.6em 0; }

.postcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 22px; border-radius: var(--r-lg); background: var(--bg-elevated); box-shadow: var(--lift-1); color: var(--text); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.postcard:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.postcard__art { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 10px; overflow: hidden; border-radius: var(--r-md); background: var(--tone-wash); }
.postcard__art > * { width: 100%; height: 100%; object-fit: cover; }
.postcard__title { margin: 0 8px; font-size: 1.125rem; font-weight: 750; letter-spacing: -0.025em; }
.postcard__text { margin: 0 8px; color: var(--text-3); font-size: 0.92rem; }
.postcard__meta { margin: 4px 8px 0; color: var(--text-4); font-size: 0.8rem; font-weight: 600; }

/* ── 21. Motion preferences ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
