/* ============================================================
   Developer site — design system.
   Implements the token contract from the "Developer Site Template"
   design canvas (artboard 01).

   One accent value drives buttons, icon tiles, figures, chart lines
   and emphasis. Everything else is fixed across all apps and pages.

   Contrast rules baked in:
     --brand      #FF5500  fills, figures >= 40px, graphics ONLY
     --brand-text #C93F00  every accent that is TYPE (5.0:1 on cream)
     --ink-3      #A89E97  2.4:1 — decorative only, NEVER type
   ============================================================ */

:root {
  /* Brand — overridden per app from data/site.js */
  --brand: #FF5500;          /* fills / gradients / figures */
  --brand-hi: #FF6A1A;       /* gradient top end */
  --brand-text: #C93F00;     /* accent TYPE on cream / glass — 4.7:1 */
  --brand-ink: #B83A00;      /* accent TYPE on a brand-tinted surface — 4.8:1 on --brand-12 */
  --brand-fill: #C93F00;     /* fill that carries WHITE text — 5.0:1 */
  --brand-fill-2: #A83200;   /* darker end of that ramp — 6.6:1 */
  --brand-12: rgba(255, 106, 26, 0.12);
  --brand-22: rgba(255, 106, 26, 0.22);
  --brand-gradient: linear-gradient(135deg, var(--brand-hi) 0%, var(--brand) 100%);   /* graphics + figures only */
  --brand-gradient-text: linear-gradient(135deg, var(--brand-fill) 0%, var(--brand-fill-2) 100%); /* anything with white text on it */

  /* Page — fixed across all apps */
  --bg-top: #FFF7F1;
  --bg-bottom: #FFE9DC;
  --surface: #FFFFFF;
  --divider: #F0E7E0;
  --border: #EFE6DF;

  /* Ink */
  --ink: #1C1410;            /* 13.9:1 */
  --ink-2: #6E635C;          /* 5.1:1 — body text */
  --ink-3: #A89E97;          /* 2.4:1 — rules, icons, never type */

  /* Feature-tile rotation (from the canvas: brand / green / blue / purple) */
  --tone-green: #2E8B4F;
  --tone-blue: #4C6FFF;
  --tone-purple: #7B4BD1;

  --r-tile: 14px;
  --r-card: 22px;
  --r-band: 30px;
  --maxw: 1120px;
  --maxw-doc: 760px;

  --glass-shadow: 0 10px 30px -18px rgba(40, 20, 10, 0.35);
  --glass-shadow-hover: 0 24px 50px -14px rgba(40, 20, 10, 0.35);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "SF Pro Display", BlinkMacSystemFont,
    "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--brand-12), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.wrap-doc { width: 100%; max-width: var(--maxw-doc); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap, .wrap-doc { padding: 0 20px; } }

/* ---------- type scale (artboard 01 · 02) ---------- */
.t-xl { font-size: clamp(40px, 6vw, 68px); letter-spacing: -1.5px; line-height: 1.03; font-weight: 700; }
.t-l  { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -1.5px; line-height: 1.06; font-weight: 700; }
.t-m  { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.2px; line-height: 1.12; font-weight: 700; }
.t-heading { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
.t-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.t-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.t-eyebrow {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; line-height: 1.4;
}
.t-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}

/* accent type is always --brand-text, never --brand */
.italic-accent { color: var(--brand-text); font-style: italic; }
.accent { color: var(--brand-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.2px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  min-height: 44px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn-primary {
  color: #fff; background: var(--brand-gradient-text);
  box-shadow: 0 14px 30px -12px rgba(40, 20, 10, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(40, 20, 10, 0.5); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; line-height: 1.2;
  background: rgba(28, 20, 16, 0.05); color: var(--ink-2); border: 1px solid var(--border);
}
.pill.live { background: rgba(46, 139, 79, 0.12); color: #226B3B; border-color: rgba(46, 139, 79, 0.22); }
.pill.beta { background: rgba(76, 111, 255, 0.12); color: #2F4FD0; border-color: rgba(76, 111, 255, 0.22); }
.pill.soon { background: rgba(123, 75, 209, 0.12); color: #6236AE; border-color: rgba(123, 75, 209, 0.22); }
.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; line-height: 1.2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-12);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 24px;
}

/* ---------- the one surface ---------- */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-card);
  box-shadow: var(--glass-shadow);
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 247, 241, 0.78);
  border-bottom: 1px solid rgba(240, 231, 224, 0.8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.logo .glyph {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg-top); font-size: 13px; font-weight: 700; flex: none;
}
.nav-sep { width: 1px; height: 22px; background: var(--divider); flex: none; }
.nav-app { font-weight: 600; font-size: 17px; letter-spacing: -0.2px; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
/* the link rule above outranks .btn-primary on specificity — restore the button's own ink */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; font-weight: 700; font-size: 14px; }
.nav-links a.btn-ghost { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .nav-links .link { display: none; } .nav-sep, .nav-app { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero .lead { margin-top: 22px; max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-note {
  margin-top: 22px; display: flex; align-items: center; gap: 9px;
  color: var(--ink-2); font-size: 14px; line-height: 1.5;
}
.trust-note svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 1.8; flex: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 24px; }
}

/* ---------- phone (frame r56 outer / r44 inner · notch 104x26) ---------- */
.phone {
  width: 320px; margin: 0 auto; aspect-ratio: 320 / 660;
  border-radius: 56px; padding: 11px;
  background: linear-gradient(160deg, #2E2521, #100C0A);
  box-shadow: 0 44px 90px -34px rgba(40, 20, 10, 0.6);
  position: relative;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 44px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 55% at 85% 0%, var(--brand-22), transparent 62%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 26px; background: #100C0A; border-radius: 14px; z-index: 3;
}
.phone .shot { width: 100%; height: 100%; object-fit: cover; }
.scr-status {
  padding: 16px 22px 0; font-size: 12px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.scr-pad { padding: 26px 22px 16px; }
.scr-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.scr-item .nm { font-size: 13px; font-weight: 600; color: var(--ink); }
.scr-item .pr { font-size: 13px; color: var(--ink); }
.scr-figure { margin-top: 20px; font-size: 76px; line-height: 0.92; font-weight: 700;
  color: var(--brand-fill); letter-spacing: -3px; }
.scr-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-top: 8px; }
.scr-caption { margin-top: 12px; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.scr-stats { margin-top: auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-stat {
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-tile); padding: 10px 11px;
}
.scr-stat .k { font-size: 10px; color: var(--ink-2); letter-spacing: 0.04em; }
.scr-stat .v { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.scr-tabs {
  margin-top: 14px; height: 62px; background: #FFFFFF;
  border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  padding-bottom: 8px;
}
.scr-tab { display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: var(--ink-2); }
.scr-tab i { width: 18px; height: 18px; border-radius: 6px; background: rgba(28, 20, 16, 0.14); display: block; }
.scr-tab.on { color: var(--brand-ink); font-weight: 700; }
.scr-tab.on i { background: var(--brand); }
.scr-fab {
  position: absolute; bottom: 78px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-gradient);
  display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 300; line-height: 1;
  box-shadow: 0 12px 22px -8px rgba(40, 20, 10, 0.55); z-index: 3;
}
.phone-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-2); }

/* ---------- concept band ---------- */
.concept { padding-block: 76px; text-align: center; }
.concept p { margin-top: 18px; max-width: 620px; margin-inline: auto; }

/* ---------- sections ---------- */
.section { padding-block: 60px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-head .sh-text { max-width: 680px; }
.section-head .tag { color: var(--brand-text); font-weight: 600; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; }
.section-head .sh-meta { color: var(--ink-2); font-size: 14px; text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .sh-meta { text-align: left; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: var(--r-tile); display: grid; place-items: center;
  background: var(--brand-12); margin-bottom: 18px; font-size: 21px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature .icon.green { background: rgba(46, 139, 79, 0.13); }
.feature .icon.green svg { stroke: var(--tone-green); }
.feature .icon.blue { background: rgba(76, 111, 255, 0.13); }
.feature .icon.blue svg { stroke: var(--tone-blue); }
.feature .icon.purple { background: rgba(123, 75, 209, 0.13); }
.feature .icon.purple svg { stroke: var(--tone-purple); }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.feature p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gradient-text); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- deep-dive splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.split.reverse .col-visual { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .col-visual { order: 0; }
}
.split p { margin-top: 16px; }
.split ul { margin-top: 22px; list-style: none; display: grid; gap: 12px; }
.split li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.split li .check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-12);
  color: var(--brand-ink); display: grid; place-items: center; font-size: 11px; margin-top: 2px;
}

/* data card */
.visual { padding: 28px; }
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viz-title { font-size: 13px; color: var(--ink-2); }
.viz-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-12); padding: 5px 10px; border-radius: 999px;
}
.viz-figure { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.viz-figure .fig { font-size: 40px; font-weight: 700; color: var(--brand); letter-spacing: -1.2px; line-height: 1; }
.viz-figure .sub { font-size: 14px; color: var(--ink-2); }
.bar { height: 8px; border-radius: 999px; background: rgba(28, 20, 16, 0.08); overflow: hidden; margin-top: 16px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-gradient); }
.chart { width: 100%; height: 132px; margin-top: 16px; display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.viz-rows { margin-top: 6px; }
.viz-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.viz-row:last-child { border-bottom: none; }
.viz-row .vic {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-12);
  display: grid; place-items: center; flex: none; font-size: 16px;
}
.viz-row .grow { flex: 1; min-width: 0; }
.viz-row .name { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.35; }
.viz-row .meta { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.viz-row .val { color: var(--brand-text); font-weight: 700; font-size: 15px; white-space: nowrap; }
.viz-row .val.plain { color: var(--ink); font-weight: 600; }

/* ---------- store badges ---------- */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-store {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px;
  background: #14100E; color: #fff; border-radius: var(--r-tile); padding: 10px 20px;
  transition: transform .18s var(--ease);
}
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.badge-store .bs-small { font-size: 10px; opacity: .8; letter-spacing: .04em; display: block; line-height: 1.3; }
.badge-store .bs-big { font-size: 15px; font-weight: 700; display: block; line-height: 1.25; }
.badge-store.disabled { background: rgba(28, 20, 16, 0.10); color: var(--ink-2); pointer-events: none; }

/* ---------- cta band ---------- */
.cta-band { margin: 48px 0 80px; padding: 60px 32px; text-align: center; border-radius: var(--r-band); }
.cta-band p { margin-top: 16px; }
.cta-band .store-badges { justify-content: center; margin-top: 30px; }
.cta-band .cta-foot { margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.cta-band .cta-foot a { color: var(--brand-text); font-weight: 600; }

/* ---------- developer home ---------- */
.dev-hero { padding-block: 96px 34px; max-width: 820px; }
.dev-hero p { margin-top: 22px; }
.dev-links { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.dev-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.65); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.dev-link:hover { background: #fff; transform: translateY(-2px); }
.dev-link svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 1.8; }

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-hover); }
.app-card .ac-top { display: flex; align-items: center; gap: 15px; }
.app-card .ac-glyph {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--ac-hi, var(--brand-hi)), var(--ac-brand, var(--brand)));
  box-shadow: 0 10px 20px -10px rgba(40, 20, 10, 0.5);
}
.app-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; }
.app-card .ac-tag { color: var(--ink-2); font-size: 14px; margin-top: 3px; line-height: 1.45; }
.app-card .ac-body { color: var(--ink-2); font-size: 15px; line-height: 1.7; flex: 1; }
.app-card .ac-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card .ac-more { color: var(--ac-text, var(--brand-text)); font-weight: 700; font-size: 15px; margin-left: auto; }

/* legal index table */
.legal-table { padding: 8px 30px 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th {
  text-align: left; padding: 16px 14px 12px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--divider);
}
.legal-table td { padding: 16px 14px; border-bottom: 1px solid var(--divider); color: var(--ink-2); vertical-align: middle; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table .lt-app { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; }
.legal-table .lt-glyph {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--ac-hi, var(--brand-hi)), var(--ac-brand, var(--brand))); flex: none;
}
.legal-table a { color: var(--brand-text); font-weight: 600; }
.legal-table .muted { color: var(--ink-2); }

/* ---------- documents ---------- */
.doc-head { padding: 60px 0 10px; }
.breadcrumb { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb .sep { color: var(--ink-2); }
.doc-head h1 { margin-top: 16px; }
.doc-meta { margin-top: 16px; color: var(--ink-2); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.doc-meta .sep { color: var(--ink-2); }
.doc-lede { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }

.toc { margin: 36px 0 6px; padding: 26px 30px; }
.toc h2 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.toc ol { margin-top: 16px; list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 11px 30px; grid-auto-flow: column; grid-template-rows: repeat(var(--toc-rows, 4), auto); }
@media (max-width: 700px) { .toc ol { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } }
.toc a { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.toc a:hover { color: var(--brand-text); }
.toc .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink-2); }

.doc { padding: 12px 0 80px; }
.doc section { padding-top: 42px; scroll-margin-top: 90px; }
.doc .sec-head { display: flex; gap: 14px; align-items: baseline; }
.doc .sec-n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: rgba(28, 20, 16, 0.06); border-radius: 7px;
  padding: 4px 8px; flex: none; line-height: 1.4;
}
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
.doc h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.doc p { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 10px;
  color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc li strong { color: var(--ink); }
.doc a { color: var(--brand-text); font-weight: 600; }
.doc .callout {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--r-tile);
  background: var(--brand-12); border: 1px solid var(--brand-22);
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--ink); font-size: 15px; line-height: 1.65;
}
.doc .callout svg { width: 20px; height: 20px; stroke: var(--brand-ink); fill: none; stroke-width: 1.8; flex: none; margin-top: 2px; }
.doc table { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; line-height: 1.6; }
.doc th { color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.doc td { color: var(--ink-2); }
.doc td:first-child { color: var(--ink); font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }

/* bug-report list (label — description) */
.bug-list { margin-top: 18px; display: grid; gap: 12px; list-style: none; padding: 0; }
.bug-list li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.bug-list b { color: var(--ink); }

/* faq */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details {
  padding: 12px 24px; border-radius: var(--r-tile);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 44px; /* token sheet: min hit 44px */
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-text); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 4px; padding-bottom: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* contact */
.contact-band {
  margin-top: 30px; padding: 30px; display: flex; justify-content: space-between;
  align-items: center; gap: 26px; flex-wrap: wrap;
}
.contact-band h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.contact-band p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.contact-band .cb-mail { font-size: 19px; font-weight: 700; color: var(--brand-text); }
.contact-legal { margin-top: 22px; padding: 26px 28px; display: grid; gap: 6px; }
.contact-legal .cl-name { font-weight: 700; color: var(--ink); font-size: 16px; }
.contact-legal .cl-line { color: var(--ink-2); font-size: 15px; }
.contact-legal .cl-mail { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--brand-text); }

/* sibling document links */
.siblings { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--divider); padding-top: 28px; }
@media (max-width: 700px) { .siblings { grid-template-columns: 1fr; gap: 20px; } }
.sib-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.sib-link { display: block; margin-top: 7px; font-size: 17px; font-weight: 600; color: var(--brand-text); }

/* ---------- footer ---------- */
footer { padding: 44px 0 64px; border-top: 1px solid var(--divider); color: var(--ink-2); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* ---------- motion (artboard 01 · 08) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .42s ease-out, transform .42s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: 130px; text-align: center; }
.notfound h1 { font-size: clamp(56px, 9vw, 96px); letter-spacing: -2px; color: var(--brand); }
.notfound p { margin-top: 16px; color: var(--ink-2); font-size: 19px; }
