/* ==========================================================================
   The Orange — theorange.imutechz.in
   One stylesheet for every page. No build step.

   Direction: "warm paper, live ember". The cream paper, serif display and
   mono labels come from the ImuTechz house style; the ember orb, the glow
   and the night ground come from the Orange app. Tokens first, then
   primitives, then page sections.
   ========================================================================== */

/* ---------- tokens: paper (light, default) ---------- */
:root {
  --paper: #f4eee3;
  --surface: #fbf8f1;
  --surface-2: #ece4d5;
  --surface-3: #e2d8c6;
  --ink: #1d1712;
  --ink-rgb: 29, 23, 18;
  --muted: #564c43;
  --dim: #6f6558;
  --line: rgba(var(--ink-rgb), 0.12);
  --line-strong: rgba(var(--ink-rgb), 0.28);

  --accent: #e2551a;
  --accent-fill: #c9440f;      /* solid fills that carry white text */
  --accent-text: #ad3a09;      /* accent used as text on paper */
  --accent-ink: #ffffff;
  --accent-soft: rgba(226, 85, 26, 0.11);
  --accent-line: rgba(226, 85, 26, 0.34);
  --ok: #1c7a3f;
  --warn: #855a0b;

  --glass: rgba(251, 248, 241, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glow-a: rgba(255, 140, 70, 0.34);
  --glow-b: rgba(255, 110, 80, 0.2);
  --glow-c: rgba(255, 200, 150, 0.4);
  --shadow: 0 24px 48px -30px rgba(96, 44, 12, 0.45);

  --ember: radial-gradient(circle at 50% 46%, #6e160b 0%, #c4301a 34%, #f2661a 60%, #ffae6b 84%, #ffe3c6 100%);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Nirmala UI", serif;
  --bangla: "Tiro Bangla", "Noto Serif Bengali", "Nirmala UI", serif;

  --r: 14px;
  --r-sm: 9px;
  --r-lg: 26px;
  --gutter: clamp(16px, 4vw, 64px);
  /* page width: wide screens use the room instead of a narrow centred column */
  --wrap: 1520px;
  --section: clamp(72px, 10vw, 132px);
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.12);
  color-scheme: light;
}

/* ---------- tokens: night (dark theme, and any .night block) ---------- */
:root[data-theme="dark"],
.night {
  --paper: #0c0806;
  --surface: #17100c;
  --surface-2: #221812;
  --surface-3: #2e2019;
  --ink: #f7efe9;
  --ink-rgb: 247, 239, 233;
  --muted: #cfc3b9;
  --dim: #a3968b;
  --line: rgba(255, 236, 225, 0.12);
  --line-strong: rgba(255, 236, 225, 0.3);

  --accent: #ff7a32;
  --accent-fill: #ff7a32;
  --accent-text: #ffb489;
  --accent-ink: #1f0b02;
  --accent-soft: rgba(255, 122, 50, 0.15);
  --accent-line: rgba(255, 122, 50, 0.4);
  --ok: #3ccf7a;
  --warn: #e6b450;

  --glass: rgba(24, 17, 13, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --glow-a: rgba(242, 102, 26, 0.34);
  --glow-b: rgba(196, 48, 26, 0.28);
  --glow-c: rgba(255, 174, 107, 0.12);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
.night { background: var(--paper); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
/* faint paper grain so the flat colour never looks like plastic */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 14px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.04; text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-variation-settings: "SOFT" 60, "WONK" 0; letter-spacing: -0.028em; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.9rem); line-height: 0.96; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font: 600 1.14rem/1.3 var(--sans); letter-spacing: -0.01em; }
h1 em, h2 em, .display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-text); letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.bare::before { display: none; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.small { font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.deva { font-family: var(--deva); }
.bangla { font-family: var(--bangla); }
.link { color: var(--accent-text); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow i { display: inline-block; font-style: normal; transition: transform 0.3s var(--spring); }
.link-arrow:hover i { transform: translateX(5px); }
.link-arrow:hover { color: var(--accent-text); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }
main { display: block; padding-top: 84px; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section.night { padding-block: var(--section); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 60px); max-width: 760px; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- glass + header ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--glass-edge), var(--shadow); }
.site-head { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding-inline: clamp(10px, 2.4vw, 28px); pointer-events: none; }
.nav { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 14px; max-width: calc(var(--wrap) - var(--gutter)); margin-inline: auto; height: 58px; padding: 0 10px 0 14px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 8px 4px 0; border-radius: 999px; flex: none; }
.brand-word { font: 500 1.24rem/1 var(--display); letter-spacing: -0.03em; font-variation-settings: "SOFT" 100; white-space: nowrap; }
.brand-word em { font-style: italic; color: var(--accent-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a { position: relative; padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(var(--ink-rgb), 0.06); }
.nav-links a[aria-current] { color: var(--ink); background: rgba(var(--ink-rgb), 0.08); }
.nav-end { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-co { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.nav-co:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(var(--ink-rgb), 0.08); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
:root[data-theme="dark"] .theme-sun { display: none; }
.nav-burger { display: none; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav { margin-inline: 0; }
  .nav-burger { display: grid; }
  .nav-end { margin-left: auto; }
  .nav-co { display: none; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 16px; }
  .nav-links .nav-co-m { display: flex; justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; padding-top: 16px; }
}
@media (min-width: 1041px) { .nav-links .nav-co-m { display: none; } }

/* voice sub-navigation */
.subnav { border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav-title { flex: none; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding-right: 18px; border-right: 1px solid var(--line); }
.subnav a { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 16px 2px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); }
.subnav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.subnav a small { font: 500 9.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); padding: 4px 6px; border-radius: 5px; background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--spring), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s; }
.btn:active { transform: scale(0.97); }
.btn i { font-style: normal; display: inline-block; transition: transform 0.3s var(--spring); }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 10px 26px -12px rgba(226, 85, 26, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(226, 85, 26, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(var(--ink-rgb), 0.05); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- pills + expression tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.dev { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.pill.dev::before { background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.pill.soon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.sample { color: var(--dim); border-style: dashed; }
.pill.sample::before { display: none; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.8); } }

.tag { display: inline-block; padding: 0.12em 0.5em 0.16em; border-radius: 7px; font: 500 0.8em/1.35 var(--mono); letter-spacing: -0.01em; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); white-space: nowrap; vertical-align: 0.08em; }
.tagged { border-bottom: 1.5px dashed var(--accent-line); padding-bottom: 0.04em; }
.tagged.t-whisper { font-style: italic; opacity: 0.78; }
.tagged.t-soft { opacity: 0.86; }

/* ---------- the ember orb (her presence; same mark as the app) ---------- */
.orb { --av: 40px; --gx: 0px; --gy: 0px; position: relative; display: inline-block; flex: none; width: var(--av); height: var(--av); }
.orb-body { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; isolation: isolate; background: var(--ember);
  box-shadow: 0 0 calc(var(--av) * 0.05) rgba(242, 102, 26, 0.4), 0 0 calc(var(--av) * 0.3) calc(var(--av) * 0.06) rgba(242, 102, 26, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.orb-body::before { content: ""; position: absolute; inset: 0; background: radial-gradient(at 30% 22%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.1) 46%, transparent 68%); }
.orb-body::after { content: ""; position: absolute; inset: 0; filter: blur(calc(var(--av) * 0.1)); background: radial-gradient(circle at 64% 70%, rgba(40, 6, 0, 0.28) 0%, transparent 56%); }
.orb-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.2; mix-blend-mode: overlay; }
.orb-eyes { position: relative; z-index: 1; display: flex; gap: calc(var(--av) * 0.19); transform: translate(var(--gx), calc(var(--gy) - var(--av) * 0.02)); transition: transform 0.4s var(--ease); }
.orb-eyes i { display: block; width: calc(var(--av) * 0.12); height: calc(var(--av) * 0.21); border-radius: 999px; background: linear-gradient(135deg, #fff 0%, #ffe8d4 100%); box-shadow: 0 0 calc(var(--av) * 0.16) rgba(255, 240, 225, 0.55); transform-origin: 50% 55%; transition: transform 0.12s ease; }
.orb.blink .orb-eyes i { transform: scaleY(0.08); }
.orb.happy .orb-eyes i { transform: scaleY(0.6) translateY(8%); border-radius: 999px 999px 40% 40%; }
.orb.sleepy .orb-eyes i { transform: scaleY(0.22); }
.orb-halo { position: absolute; inset: calc(var(--av) * -0.13); border-radius: 50%; border: 1px solid rgba(242, 102, 26, 0.5); animation: halo 4.2s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 0%, 100% { transform: scale(0.97); opacity: 0.35; } 50% { transform: scale(1.05); opacity: 0.9; } }
.orb--xs { --av: 34px; }
.orb--sm { --av: 56px; }
.orb--md { --av: 112px; }
.orb--hero { --av: clamp(150px, 24vw, 268px); }

/* ---------- reveal on scroll (only hides when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy h1 { margin-top: -4px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: "✺"; color: var(--accent); font-size: 11px; }

.stage { position: relative; display: grid; place-items: center; min-height: clamp(340px, 46vw, 560px); }
.stage-glow { position: absolute; inset: -12% -18%; pointer-events: none; filter: blur(46px);
  background: radial-gradient(38% 38% at 50% 44%, var(--glow-a), transparent 70%), radial-gradient(30% 30% at 30% 66%, var(--glow-b), transparent 70%), radial-gradient(34% 34% at 72% 30%, var(--glow-c), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(2%, -3%, 0) scale(1.06) rotate(4deg); } }
.stage-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stage-rings i { position: absolute; width: calc(var(--d) * 1%); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }
.stage-rings i:nth-child(1) { --d: 62; border-style: dashed; animation: spin 80s linear infinite; }
.stage-rings i:nth-child(2) { --d: 84; }
.stage-rings i:nth-child(3) { --d: 108; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage .orb--hero { z-index: 2; cursor: pointer; border: 0; background: none; padding: 0; border-radius: 50%; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float { position: absolute; z-index: 3; padding: 8px 13px; border-radius: 999px; font: 500 12.5px/1 var(--mono); color: var(--ink); animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s); white-space: nowrap; }
.float.f1 { top: 9%; left: 4%; --d: -1s; }
.float.f2 { top: 20%; right: 0; --d: -3s; }
.float.f3 { bottom: 25%; left: 0; --d: -2s; font-family: var(--bangla); font-size: 15px; }
.float.f4 { bottom: 36%; right: -2%; --d: -4s; font-family: var(--deva); font-size: 15px; }
.caption { position: absolute; z-index: 4; left: 50%; bottom: -6px; transform: translateX(-50%); width: min(100%, 400px); padding: 14px 18px 15px; border-radius: 20px; text-align: left; }
.caption-meta { display: flex; justify-content: space-between; gap: 12px; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.caption-line { font: 400 1.16rem/1.4 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.01em; min-height: 2.8em; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.caption-line.out { opacity: 0; transform: translateY(6px); }
.caption-line[lang="hi"] { font-family: var(--deva); font-size: 1.12rem; letter-spacing: 0; }
.caption-line[lang="bn"] { font-family: var(--bangla); font-size: 1.12rem; letter-spacing: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { order: -1; min-height: 330px; margin-inline: auto; width: min(100%, 440px); }
  .float.f1 { left: 0; } .float.f4 { right: 0; }
}

/* language marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(14px, 2vw, 22px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span { font: 400 clamp(1.5rem, 3.4vw, 2.5rem)/1.3 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; padding-inline: clamp(16px, 2.4vw, 30px); white-space: nowrap; }
.marquee-set span.deva { font-family: var(--deva); letter-spacing: 0; }
.marquee-set span.bangla { font-family: var(--bangla); letter-spacing: 0; }
.marquee-set span.it { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-text); }
.marquee-set b { font-weight: 400; color: var(--accent); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* numbered ledger of what she is */
.ledger { border-top: 1px solid var(--line-strong); }
.ledger-row { display: grid; grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 44px); align-items: start; padding-block: clamp(26px, 3.6vw, 44px); border-bottom: 1px solid var(--line); transition: background-color 0.4s var(--ease); }
.ledger-row:hover { background: linear-gradient(90deg, transparent, var(--accent-soft) 30%, transparent); }
.ledger-n { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; color: var(--accent-text); padding-top: 0.7em; }
.ledger-row h3 { font: 400 clamp(1.5rem, 2.9vw, 2.2rem)/1.08 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.025em; }
.ledger-row h3 em { font-style: italic; color: var(--accent-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.ledger-row p { color: var(--muted); max-width: 52ch; }
.ledger-row .ledger-extra { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ledger-n { padding-top: 0; }
}

/* night band: the voice */
.band { position: relative; overflow: hidden; border-radius: clamp(22px, 3.4vw, 44px); padding: clamp(30px, 5.6vw, 76px); isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.band::after { content: ""; position: absolute; z-index: -1; inset: auto auto -40% -14%; width: 56%; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, var(--glow-b), transparent 66%); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-copy { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

/* script card: a line of speech with tags, over a decorative waveform */
.script { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.script-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.script-dots { display: flex; gap: 6px; }
.script-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.script-dots i:first-child { background: var(--accent); }
.script-line { font: 400 clamp(1.3rem, 2.5vw, 1.85rem)/1.42 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.015em; }
.script-line + .script-line { margin-top: 0.7em; }
.script-line[lang="hi"] { font-family: var(--deva); letter-spacing: 0; }
.script-line[lang="bn"] { font-family: var(--bangla); letter-spacing: 0; }
.wave { width: 100%; height: 84px; margin-top: 22px; }
.wave-note { margin-top: 10px; font: 400 11px/1.4 var(--mono); color: var(--dim); }

/* status board */
.board { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.8vw, 32px); }
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-row h3 { font-size: 1.08rem; }
.board-row p { grid-column: 1; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.board-row .pill { grid-row: 1; grid-column: 2; }
@media (max-width: 600px) { .board-row { grid-template-columns: minmax(0, 1fr); } .board-row .pill { grid-row: auto; grid-column: 1; justify-self: start; } }

/* notify composer (opens the visitor's own email app) */
.notify { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.notify-copy { display: grid; gap: 18px; justify-items: start; }
.notify-form { display: grid; gap: 18px; }
.notify fieldset { border: 0; padding: 0; min-width: 0; }
.notify legend { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.check span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; font-weight: 500; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.check span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.5; transition: all 0.2s; }
.check input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check input:checked + span::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.notify-honest { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.notify-honest svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); }
@media (max-width: 860px) { .notify { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-foot { margin-top: var(--section); padding-block: clamp(48px, 7vw, 88px) 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.6fr)); gap: clamp(26px, 4vw, 56px); }
.foot-word { font: 400 clamp(2.6rem, 6.4vw, 5rem)/0.9 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -0.04em; }
.foot-word em { font-style: italic; color: var(--accent-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.foot-blurb { margin-top: 18px; color: var(--muted); max-width: 36ch; font-size: 14.5px; }
.foot-col h2 { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 10px; list-style: none; padding: 0; }
.foot-col a { text-decoration: none; color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-text); }
.foot-col a small { font: 500 9.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot-co { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-weight: 500; }
.foot-co img { width: 30px; height: 30px; border-radius: 8px; }
.foot-co:hover { color: var(--ink); }
@media (max-width: 860px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   VOICE LANDING
   ========================================================================== */
.vhero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.vhero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.vhero-copy { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 900px) { .vhero-grid { grid-template-columns: minmax(0, 1fr); } }

.langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lang { position: relative; display: grid; gap: 14px; align-content: start; padding: 22px; min-height: 250px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform 0.4s var(--spring), border-color 0.3s; }
.lang:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.lang-glyph { font-size: 4.2rem; line-height: 1; color: var(--accent); font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; height: 1.1em; }
.lang-glyph.deva { font-family: var(--deva); font-style: normal; }
.lang-glyph.bangla { font-family: var(--bangla); font-style: normal; }
.lang h3 { font-size: 1.05rem; }
.lang-say { font: 400 1.08rem/1.45 var(--display); font-variation-settings: "SOFT" 80; color: var(--muted); }
.lang-say.deva { font-family: var(--deva); }
.lang-say.bangla { font-family: var(--bangla); }
.lang-code { margin-top: auto; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 980px) { .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .langs { grid-template-columns: minmax(0, 1fr); } .lang { min-height: 0; } }

.tagwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tagcell { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--paper); transition: background-color 0.3s; }
.tagcell:hover { background: var(--surface-2); }
.tagcell:hover .tag { transform: rotate(-3deg) scale(1.06); }
.tagcell .tag { justify-self: start; font-size: 14px; transition: transform 0.35s var(--spring); }
.tagcell p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tagcell small { font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.dial { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.dial:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.dial-k { font: 500 12px/1 var(--mono); color: var(--accent-text); }
.dial h3 { font: 400 1.6rem/1.1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; }
.dial p { font-size: 14.5px; color: var(--muted); }
.dial-v { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dial-v span { font: 500 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
@media (max-width: 860px) { .dials { grid-template-columns: minmax(0, 1fr); } .dial, .dial:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; } }

.prosody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pro { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pro-mark { font: 400 3.4rem/1 var(--display); color: var(--accent); height: 1.1em; font-variation-settings: "SOFT" 100; }
.pro h3 { font-size: 1rem; }
.pro p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .prosody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .prosody { grid-template-columns: minmax(0, 1fr); } }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.way { position: relative; display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform 0.4s var(--spring), border-color 0.3s, box-shadow 0.4s; }
a.way:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.way-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.way-ico svg { width: 22px; height: 22px; }
.way h3 { font: 400 1.6rem/1.1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; }
.way p { color: var(--muted); font-size: 14.5px; }
.way .link-arrow { margin-top: 4px; font-size: 14.5px; }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); } }

.character { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.adjs { display: flex; flex-wrap: wrap; gap: 0.1em 0.4em; font: 400 clamp(2.2rem, 5.6vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.035em; font-variation-settings: "SOFT" 100; }
.adjs span:nth-child(even) { font-style: italic; color: var(--accent-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.nevers { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.nevers li { display: flex; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.nevers li b { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); flex: none; }
@media (max-width: 860px) { .character { grid-template-columns: minmax(0, 1fr); } }

.endcap { text-align: center; display: grid; gap: 24px; justify-items: center; }
.endcap .lede { margin-inline: auto; }

/* ==========================================================================
   PREVIEW BANNER + APP SHELLS (playground, dashboard, docs)
   ========================================================================== */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--r); border: 1px dashed var(--accent-line); background: var(--accent-soft); font-size: 14px; color: var(--ink); }
.preview-bar strong { font: 600 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.preview-bar a { margin-left: auto; }
.page-head { padding-block: clamp(28px, 4vw, 52px) clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(18px, 2.4vw, 26px); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 16px; }
.panel-head h2 { font: 600 1rem/1.3 var(--sans); letter-spacing: -0.005em; }
.label { display: block; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.label b { float: right; font-weight: 500; color: var(--accent-text); letter-spacing: 0.04em; text-transform: none; }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s; }
.input:hover { border-color: rgba(var(--ink-rgb), 0.45); }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* segmented radio control */
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); gap: 2px; }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 6px; border-radius: 9px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.18), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg .deva, .seg .bangla { font-size: 14.5px; }

/* ---------- playground ---------- */
.pg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pg-col { display: grid; gap: 16px; min-width: 0; }
.editor { position: relative; }
.editor textarea { display: block; width: 100%; min-height: 220px; resize: vertical; padding: 18px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--paper); font: 400 1.14rem/1.6 var(--display); font-variation-settings: "SOFT" 60; transition: border-color 0.2s, box-shadow 0.2s; }
.editor textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.editor textarea[lang="hi"] { font-family: var(--deva); }
.editor textarea[lang="bn"] { font-family: var(--bangla); }
.editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 10px; font: 400 12px/1.4 var(--mono); color: var(--dim); }
.editor-foot .warn { color: var(--warn); }
.editor-actions { display: flex; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; font: 500 12.5px/1 var(--mono); color: var(--muted); transition: all 0.2s var(--ease); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); transform: translateY(-1px); }
.chip-btn:active { transform: scale(0.95); }
.chip-btn.tagbtn { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.chip-btn.tagbtn:hover { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tagbar { display: grid; gap: 12px; margin-top: 16px; }
.tagbar-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagbar-group > small { flex: 0 0 100%; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.reads { font: 400 1.2rem/1.6 var(--display); font-variation-settings: "SOFT" 80; min-height: 3.2em; white-space: pre-wrap; overflow-wrap: anywhere; }
.reads[lang="hi"] { font-family: var(--deva); }
.reads[lang="bn"] { font-family: var(--bangla); }
.reads .empty { color: var(--dim); font: 400 14.5px/1.5 var(--sans); }
.field { display: grid; gap: 0; }
.field + .field { margin-top: 22px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
.range input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; border: 0; background: var(--ember); box-shadow: 0 2px 8px rgba(196, 48, 26, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.25); transition: transform 0.2s var(--spring); }
.range input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ember); box-shadow: 0 2px 8px rgba(196, 48, 26, 0.5); }
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.range input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.range-scale { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); color: var(--dim); padding-inline: 8px; }
.emos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.out { border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 20px; border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.out::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.out-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.out-top .small { flex: 1 1 220px; }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.player-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--dim); }
.player-btn svg { width: 18px; height: 18px; }
.player-track { display: grid; gap: 6px; min-width: 0; }
.player-line { position: relative; height: 34px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.player-line i { flex: 1 1 0; min-width: 2px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.player-meta { display: flex; justify-content: space-between; gap: 10px; font: 400 11px/1.3 var(--mono); color: var(--dim); }
.soon-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; border-radius: var(--r); border: 1px dashed var(--accent-line); background: var(--accent-soft); animation: pop 0.5s var(--spring); }
.soon-note h3 { font: 400 1.5rem/1.15 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.02em; margin-bottom: 6px; }
.soon-note p { color: var(--muted); font-size: 14.5px; }
.soon-note p + p { margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (max-width: 940px) { .pg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .player { grid-template-columns: auto minmax(0, 1fr); } .player .btn { grid-column: 1 / -1; } }

/* ---------- code blocks (always on the night ground) ---------- */
.code { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.code-tabs { display: flex; gap: 2px; }
.code-tabs button { padding: 7px 10px; border-radius: 7px; border: 0; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--dim); }
.code-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.copy { padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); transition: all 0.2s; }
.copy:hover { border-color: var(--accent); color: var(--accent-text); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 13px/1.7 var(--mono); color: var(--muted); tab-size: 2; }
.code pre .k { color: var(--accent-text); }
.code pre .s { color: #f3d9a4; }
.code pre .c { color: var(--dim); font-style: italic; }
.code pre .n { color: #9fd8c4; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.side a svg { width: 17px; height: 17px; flex: none; opacity: 0.8; }
.side a:hover { background: rgba(var(--ink-rgb), 0.06); color: var(--ink); }
.side a.on { background: var(--ink); color: var(--paper); }
.side-acct { margin-top: 14px; padding: 14px 12px; border-radius: var(--r); border: 1px dashed var(--line-strong); font-size: 13px; color: var(--dim); line-height: 1.5; }
.dash-main { display: grid; gap: 16px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 6px; }
.tile dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tile dd { font: 400 2.1rem/1.1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 60; }
.tile small { font-size: 12.5px; color: var(--dim); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 400 10.5px var(--mono); fill: var(--dim); }
.chart .bar { fill: var(--accent); transition: opacity 0.15s; }
.chart .hit { fill: transparent; }
.chart .hit:hover + .bar, .chart .bar.hot { fill: var(--accent-text); }
.chart-tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: var(--ink); color: var(--paper); font: 500 12px/1.4 var(--mono); white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity 0.15s; z-index: 2; }
.chart-tip.on { opacity: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table th { text-align: left; padding: 11px 14px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.table td.mono { font-family: var(--mono); font-size: 12.5px; }
.table td strong { color: var(--ink); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.st.bad::before { background: var(--warn); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.plan h3 { font: 400 1.7rem/1.1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; margin-bottom: 8px; }
.plan p { color: var(--muted); font-size: 14.5px; max-width: 58ch; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--spring); box-shadow: var(--shadow); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .side a { flex: none; border: 1px solid var(--line); }
  .side-acct { display: none; }
}
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } .plan { grid-template-columns: minmax(0, 1fr); } }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc b { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding: 12px 12px 8px; }
.toc a { padding: 7px 12px; border-left: 2px solid var(--line); font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.prose { min-width: 0; max-width: 760px; }
.prose section { padding-block: 34px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p, .prose p + .code, .prose .code + p, .prose ul + p, .prose p + ul, .prose .table-wrap + p, .prose p + .table-wrap, .prose p + .callout, .prose .callout + p, .prose .code + .callout { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose code { font: 500 0.86em var(--mono); padding: 0.14em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--ink); overflow-wrap: anywhere; }
.prose .code code { all: unset; }
.prose strong { color: var(--ink); }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); font: 500 14px/1.3 var(--mono); margin-block: 14px; overflow-wrap: anywhere; }
.endpoint .verb { padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11.5px; letter-spacing: 0.08em; }
.endpoint .pill { margin-left: auto; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px dashed var(--accent-line); font-size: 14.5px; color: var(--ink); }
.callout svg { width: 18px; height: 18px; color: var(--accent-text); margin-top: 2px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; max-height: none; }
  .toc b { flex: 0 0 100%; padding-left: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
  .toc a.on { border-color: var(--accent); }
}

/* ---------- about + 404 ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.fact { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.fact dd { font: 400 1.34rem/1.3 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.015em; }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact, .fact:nth-child(even) { padding: 20px 0; border-left: 0; } }
.lost { min-height: calc(100vh - 84px); display: grid; place-items: center; text-align: center; padding-block: 60px; }
.lost-in { display: grid; gap: 24px; justify-items: center; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }

/* ==========================================================================
   ACCOUNT STATE, SIGN-IN / SIGN-UP, PRICING (design; wiring lives in auth.js)
   ========================================================================== */
:root[data-auth="out"] [data-when="in"], :root[data-auth="in"] [data-when="out"], :root:not([data-auth]) [data-when="in"] { display: none !important; }
.nav-auth { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--spring), background-color 0.2s; }
.nav-auth:hover { background: var(--accent-fill); color: var(--accent-ink); transform: translateY(-1px); }
@media (max-width: 420px) { .brand-word { font-size: 1.08rem; } .nav-auth { padding: 0 12px; } .nav { gap: 6px; padding-left: 10px; } }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; padding-block: clamp(24px, 4vw, 56px); }
.auth-card { padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; align-content: start; }
.auth-card h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.auth-form { display: grid; gap: 16px; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 13.5px; font-weight: 600; }
.fld .hint { font-size: 12.5px; color: var(--dim); }
.fld-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fld-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.text-btn { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.form-msg { padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--accent-line); background: var(--accent-soft); font-size: 14px; line-height: 1.5; }
.auth-or { display: flex; align-items: center; gap: 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.oauth .btn { min-height: 46px; font-size: 14.5px; padding: 0 12px; }
.oauth svg { width: 18px; height: 18px; flex: none; }
.auth-switch { font-size: 14.5px; color: var(--muted); }
.auth-side { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-content: space-between; min-height: 420px; }
.auth-side::before { content: ""; position: absolute; z-index: -1; inset: -20% -30% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.auth-side h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.auth-side li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.auth-side li b { font: 500 11px/1.7 var(--mono); color: var(--accent-text); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { min-height: 0; } }
@media (max-width: 480px) { .fld-row, .oauth { grid-template-columns: minmax(0, 1fr); } }

.price-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(22px, 3vw, 36px); padding: clamp(26px, 4vw, 48px); display: grid; gap: 22px; align-content: start; }
.price-card::before { content: ""; position: absolute; z-index: -1; inset: -34% -20% auto auto; width: 80%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.price-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price-num { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.price-num strong { font: 400 clamp(5rem, 13vw, 9rem)/0.82 var(--display); letter-spacing: -0.05em; font-variation-settings: "SOFT" 100; }
.price-num strong sup { font-size: 0.42em; vertical-align: 0.9em; color: var(--accent-text); margin-right: 0.04em; letter-spacing: 0; }
.price-num span { display: grid; gap: 4px; padding-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.price-num s { font: 400 1.5rem/1 var(--display); color: var(--dim); text-decoration-thickness: 1.5px; }
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-list li { position: relative; display: block; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.price-list li::before { content: "✺"; position: absolute; left: 0; top: 13px; color: var(--accent); }
.price-list li strong { color: inherit; font-weight: 600; }
.rate { border-radius: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; align-content: start; }
.rate-rows { display: grid; border-top: 1px solid var(--line); }
.rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rate-row dt { color: var(--muted); }
.rate-row dd { font: 500 13px/1.4 var(--mono); text-align: right; }
.rate-row dd.tba { color: var(--warn); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { counter-increment: step; padding: 26px 22px 28px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step::before { content: "0" counter(step); font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent-text); }
.step h3 { font: 400 1.5rem/1.1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; }
.step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .step, .step + .step { padding: 22px 0; border-left: 0; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; cursor: pointer; list-style: none; font: 400 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--display); font-variation-settings: "SOFT" 80; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--accent-text); transition: transform 0.3s var(--spring); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }

/* dashboard: wallet */
.wallet { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.wallet::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -70%; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); background: radial-gradient(circle, var(--glow-a), transparent 66%); }
.wallet-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.wallet-v { font: 400 clamp(3rem, 8vw, 4.6rem)/1 var(--display); letter-spacing: -0.04em; font-variation-settings: "SOFT" 100; margin-top: 12px; }
.wallet-v sup { font-size: 0.45em; vertical-align: 0.85em; color: var(--accent-text); margin-right: 0.05em; }
.wallet .small { margin-top: 8px; }
.wallet-act { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 600px) { .wallet { grid-template-columns: minmax(0, 1fr); } .wallet-act { justify-items: start; } }
.empty { padding: 22px; text-align: center; color: var(--dim); font-size: 14px; }

/* ==========================================================================
   3D ELEMENTS — drawn in the browser (CSS 3D + one small canvas routine).
   No library, no model files, nothing extra to download from the server.
   ========================================================================== */
/* rings that orbit the hero orb in depth: a back copy behind her, and a front
   copy clipped to the near half, so each ring really passes around the orb */
.orbit3d { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.orbit3d.front { z-index: 3; }
.r3 { position: absolute; width: calc(var(--d) * 1%); max-width: calc(var(--d) * 5.4px); aspect-ratio: 1; transform: rotate(var(--rz, 0deg)); }
.orbit3d.front .r3 { clip-path: inset(50% -12% -12% -12%); }
.r3-tilt { width: 100%; height: 100%; transform: perspective(900px) rotateX(var(--rx, 72deg)); }
.r3-spin { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid var(--accent-line); animation: spin var(--t, 18s) linear infinite; animation-direction: var(--dir, normal); }
.r3-spin i { position: absolute; top: 50%; left: -8px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px rgba(242, 102, 26, 0.8); }
.r3-spin i + i { left: auto; right: -5px; width: 10px; height: 10px; margin-top: -5px; opacity: 0.8; }

/* a particle shell turning around a small orb (canvas, see site.js) */
.sphere-wrap { position: relative; display: grid; place-items: center; width: min(var(--sz, 300px), 72vw); aspect-ratio: 1; flex: none; }
.sphere-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sphere-wrap .orb { z-index: 1; }

/* ---------- playground: workspace chrome, limits, sign-in gate ---------- */
.js [data-gated] { visibility: hidden; }
.js.pg-open [data-gated] { visibility: visible; }
.pg-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding-block: clamp(22px, 3vw, 36px) 18px; }
.pg-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
.pg-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-user { font: 500 12.5px/1 var(--mono); color: var(--muted); padding: 8px 12px; border-radius: 999px; background: var(--surface-2); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-user:empty { display: none; }
#pg-preview-note { margin-bottom: 14px; }
.pg-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.meter { display: grid; gap: 8px; align-content: start; padding: 16px 20px 18px; }
.meter + .meter { border-left: 1px solid var(--line); }
.meter dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.meter dd { font: 400 13px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.meter dd b { font: 400 1.7rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "SOFT" 60; }
.meter-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width 0.25s var(--ease), background-color 0.2s; }
.meter-bar i.near { background: var(--warn); }
.meter-bar i.full { background: var(--ink); }
.meter-note { font-size: 12px; color: var(--dim); }
.meter-foot { grid-column: 1 / -1; padding: 9px 20px; border-top: 1px solid var(--line); font: 400 11.5px/1.4 var(--mono); color: var(--dim); background: var(--surface-2); }
kbd { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface); color: var(--muted); }
.out-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.out-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.viz { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 210px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 100%, rgba(242, 102, 26, 0.16), transparent 70%); overflow: hidden; }
.viz canvas { width: 100%; height: 100%; min-height: 170px; }
.viz figcaption { padding: 0 14px 12px; font: 400 11px/1.45 var(--mono); color: var(--dim); }
.btn-primary[disabled] { background: var(--surface-3); color: var(--dim); }
@media (max-width: 860px) { .out-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pg-limits { grid-template-columns: minmax(0, 1fr); } .meter + .meter { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- loading screen ----------
   Shown on the first page of a visit and on a reload (the inline script in
   <head> decides and adds .intro-on). Orange wakes up, then the page opens.
   Without JavaScript it never appears; if a script fails it still clears. */
.intro { display: none; }
.js.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--paper); transition: opacity 0.6s var(--ease), visibility 0.6s; animation: introFail 0.5s 6s forwards; }
.js.intro-on .intro::before { content: ""; position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; border-radius: 50%; filter: blur(60px); background: radial-gradient(circle, var(--glow-a), transparent 68%); animation: introGlow 1.6s var(--ease) both; }
.js.intro-on .intro.done { opacity: 0; visibility: hidden; }
.intro-in { position: relative; display: grid; gap: 22px; justify-items: center; transition: transform 0.6s var(--ease); }
.intro.done .intro-in { transform: scale(1.08); }
.intro .orb { animation: introPop 0.9s var(--spring) both; }
.intro .orb-eyes i { animation: introWake 1.15s 0.2s both; }
.intro-word { font: 400 2.1rem/1 var(--display); letter-spacing: -0.03em; font-variation-settings: "SOFT" 100; animation: introUp 0.7s 0.25s var(--ease) both; }
.intro-word em { font-style: italic; color: var(--accent-text); font-variation-settings: "SOFT" 100, "WONK" 1; }
.intro-bar { width: 150px; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; animation: introUp 0.7s 0.35s var(--ease) both; }
.intro-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: introLoad 1.25s 0.2s var(--ease) both; }
@keyframes introPop { from { transform: scale(0.55); opacity: 0; } }
@keyframes introWake { 0%, 48% { transform: scaleY(0.08); } 72% { transform: scaleY(1.12); } 100% { transform: none; } }
@keyframes introUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes introLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introGlow { from { opacity: 0; transform: scale(0.6); } }
@keyframes introFail { to { opacity: 0; visibility: hidden; } }

/* playground: waiting for the sign-in check */
.pg-wait { display: none; }
.js:not(.pg-open) .pg-wait { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 62vh; text-align: center; }
.pg-wait .orb { animation: bob 2.4s ease-in-out infinite; }

/* playground: the 3D stage is the player */
.stage3d { position: relative; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(120% 100% at 50% 100%, rgba(242, 102, 26, 0.17), transparent 70%); }
.stage3d canvas { width: 100%; height: clamp(170px, 24vw, 250px); }
.stage3d-state { position: absolute; top: 14px; left: 16px; display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stage3d-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.stage3d:has(.player-btn.playing) .stage3d-state i { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.stage3d-note { position: absolute; top: 12px; right: 16px; max-width: 46%; text-align: right; font: 400 11px/1.45 var(--mono); color: var(--dim); }
.stage3d .player { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(0, 0, 0, 0.22); }
.player-btn:not([disabled]) { color: var(--accent-ink); background: var(--accent-fill); border-color: transparent; cursor: pointer; }
.player-btn .ic-pause, .player-btn.playing .ic-play { display: none; }
.player-btn.playing .ic-pause { display: block; }
.player-line i.on { background: var(--accent); height: 12px; }
@media (max-width: 560px) { .stage3d-note { position: static; max-width: none; text-align: left; padding: 0 16px 12px; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media print { .site-head, .stage-glow, .toast { display: none; } }

/* ==========================================================================
   COMPONENT SET (v2) — shared by every page: forms, tabs, dialogs, toasts,
   badges, skeletons, states. Then the console (dashboard), docs, legal,
   status and contact layouts.
   ========================================================================== */
:root { --bad: #b3261e; --bad-soft: rgba(179, 38, 30, 0.09); --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; }
:root[data-theme="dark"], .night { --bad: #ff8a80; --bad-soft: rgba(255, 138, 128, 0.12); }
::selection { background: var(--accent-fill); color: var(--accent-ink); }
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }
.stack { display: grid; gap: var(--s4); min-width: 0; }
.stack.tight { gap: var(--s2); }
.stack.loose { gap: var(--s5); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-width: 0; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.h-sm { font: 600 1rem/1.3 var(--sans); letter-spacing: -0.005em; }
.h-md { font: 400 clamp(1.5rem, 2.6vw, 1.9rem)/1.12 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; }
.h-md em { font-style: italic; color: var(--accent-text); }

/* header: links that only appear in the small-screen menu */
@media (min-width: 1041px) { .nav-links .nav-m { display: none; } }

/* footer: five columns */
.foot-top { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 0.62fr)); }
@media (max-width: 980px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--dim); text-decoration: none; }
.foot-legal a:hover { color: var(--accent-text); }

/* buttons */
.btn-danger { background: var(--bad); color: var(--paper); }
.btn-danger:hover { transform: translateY(-2px); }
.btn-ghost.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-ghost.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn-ghost.is-busy::after { border-color: var(--muted); border-right-color: transparent; }
.btn-ink.is-busy::after { border-color: var(--paper); border-right-color: transparent; }
.chip-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.text-btn:hover { color: var(--ink); }
.text-btn.danger { color: var(--bad); }

/* form fields + inline validation */
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--dim); opacity: 1; }
.input[readonly], .input[disabled] { background: var(--surface-2); color: var(--muted); cursor: default; }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.input-sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.fld-err { font-size: 13px; font-weight: 500; color: var(--bad); }
.fld-err::before { content: "! "; font-family: var(--mono); font-weight: 700; }
.form-msg.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.form-msg.err { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: var(--bad-soft); }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.tick input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-fill); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.18), 0 0 0 1px var(--line); }

/* badges (status with a dot; never colour alone: the word is always there) */
.st.wait::before { background: var(--warn); }
.st.bad::before { background: var(--bad); }
.st.off::before { background: var(--dim); }
.st.bad { color: var(--bad); }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.off { color: var(--dim); }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 300; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { position: static; transform: translateY(14px); max-width: 100%; border-radius: 16px; padding: 12px 18px; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.toast.on { transform: none; pointer-events: auto; }
.toast::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.toast.ok::before { background: #3ccf7a; }
.toast.err::before { background: #ff8a80; }

/* dialogs + drawer (native <dialog>) */
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); overflow: auto; }
.dlg::backdrop { background: rgba(12, 8, 6, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg[open] { animation: pop 0.28s var(--spring); }
.dlg-in { display: grid; gap: var(--s4); padding: clamp(20px, 4vw, 30px); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font: 400 1.6rem/1.12 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; }
.dlg p { color: var(--muted); font-size: 14.5px; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dlg.drawer { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100vh; max-height: 100vh; border-radius: var(--r-lg) 0 0 var(--r-lg); border-right: 0; }
.dlg.drawer[open] { animation: slide 0.3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.kv { display: grid; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.kv dt { font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.kv dd { overflow-wrap: anywhere; }
.secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: var(--r-sm); border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.secret code { font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }

/* skeletons */
.sk { display: block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 45%, var(--surface-2) 65%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; color: transparent; user-select: none; }
.sk.w30 { width: 30%; } .sk.w50 { width: 50%; } .sk.w70 { width: 70%; } .sk.big { height: 2.4rem; width: 60%; } .sk.box { height: 220px; border-radius: var(--r); } .sk.line { height: 44px; border-radius: 8px; }
.sk + .sk { margin-top: 10px; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* empty / error / signed-out states */
.state { display: grid; gap: 10px; justify-items: center; text-align: center; padding: clamp(26px, 5vw, 48px) 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); }
.state svg { width: 30px; height: 30px; color: var(--dim); }
.state h3 { font: 400 1.4rem/1.15 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 80; color: var(--ink); }
.state p { max-width: 46ch; font-size: 14.5px; }
.state.err { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft); }
.state.err svg { color: var(--bad); }
.state .cta-row { justify-content: center; margin-top: 6px; }
.table td.state-cell { padding: 0; border-top: 0; white-space: normal; }
.table td.state-cell .state { border: 0; border-radius: 0; }

/* ---------- console (dashboard) ---------- */
.console-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-block: clamp(22px, 3vw, 36px) 18px; }
.console-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
.console-note { margin-bottom: 18px; }
.side b { font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
.side a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.side-acct { border-style: solid; border-color: var(--line); display: grid; gap: 6px; }
.side-acct strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.view { display: grid; gap: 16px; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 40px; }
.view-head h2 { font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.view:focus { outline: 0; }
.tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { align-content: start; min-height: 108px; }
.tile dd { font-size: clamp(1.5rem, 2.6vw, 2.1rem); overflow-wrap: anywhere; }
.tile dd.tba { font: 500 13px/1.5 var(--mono); color: var(--warn); letter-spacing: 0; padding-block: 0.5rem; }
@media (max-width: 1100px) { .tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles.t4 { grid-template-columns: minmax(0, 1fr); } }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.action { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; text-align: left; transition: border-color 0.2s, transform 0.25s var(--spring); }
.action:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.action strong { font-size: 14.5px; }
.action span { font-size: 13px; color: var(--dim); }
.chart { min-height: 120px; }
.chart .bar { fill: var(--accent-fill); }
.chart .hit:hover + .bar, .chart .bar.hot { fill: var(--accent); }
:root[data-theme="dark"] .chart .hit:hover + .bar { fill: var(--accent-text); }
.chart-tip { transform: translate(-50%, -118%); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.filters .fld { gap: 5px; min-width: 132px; flex: 1 1 132px; max-width: 220px; }
.filters .fld label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--dim); }
.table tr[data-row] { cursor: pointer; }
.table tr[data-row]:hover td { background: rgba(var(--ink-rgb), 0.04); }
.table tr[data-row]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.table tr.is-off td { opacity: 0.62; }
.table .act { text-align: right; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.hbar span:nth-child(2) { font: 500 12.5px/1.6 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar-track { grid-column: 1 / -1; background: var(--surface-2); border-radius: 0 4px 4px 0; }
.hbar i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--accent-fill); min-width: 2px; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.gate { display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(36px, 7vw, 80px) 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.gate p { max-width: 46ch; color: var(--muted); }
.gate .cta-row { justify-content: center; }
@media (max-width: 900px) { .side b { display: none; } .side a { padding: 9px 13px; } }

/* ---------- playground additions ---------- */
.pg-limits.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .pg-limits.two { grid-template-columns: minmax(0, 1fr); } }
.meter dd.tba { color: var(--warn); line-height: 1.7rem; }
.hist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hist li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.hist button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; width: 100%; min-width: 0; border-radius: 6px; }
.hist button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hist button:hover strong { color: var(--accent-text); }
.hist strong { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist small { font: 400 11.5px/1.4 var(--mono); color: var(--dim); }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* ---------- docs (multi-page) ---------- */
.toc a[aria-current="page"] { color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.prose h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 16px; }
.prose > .lede { margin-bottom: 30px; }
.prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose ol + p, .prose p + ol, .prose h3 + .code, .prose ol + .code, .prose ul + .code, .prose .code + ul, .prose .code + ol, .prose .callout + .code, .prose .callout + ul, .prose ul + .callout, .prose .table-wrap + .callout, .prose .callout + .table-wrap, .prose .endpoint + p, .prose .code + .code, .prose .table-wrap + .code, .prose .code + .table-wrap, .prose .callout + .callout, .prose ol + .callout { margin-top: 14px; }
.prose p a:not(.link), .prose li a:not(.link), .prose td a:not(.link) { color: var(--accent-text); font-weight: 600; }
.prose .table td { white-space: normal; }
.prose .table td.mono, .prose .table td.nowrap { white-space: nowrap; }
.doc-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc-nav a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.doc-nav a:hover { border-color: var(--accent-line); }
.doc-nav a[rel="next"] { text-align: right; grid-column: 2; }
.doc-nav small { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.doc-nav strong { font-weight: 600; color: var(--ink); }
.draft-bar { border-style: solid; border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.draft-bar strong { color: var(--warn); }
.todo { padding: 0.1em 0.4em; border-radius: 5px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--ink); font-weight: 600; }
.changelog { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.changelog article { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .changelog article { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact / account ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.linklist { display: grid; border-top: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.linklist a span { color: var(--dim); font-size: 13.5px; font-weight: 400; text-align: right; }
.linklist a:hover { color: var(--accent-text); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #fff; font: 600 1.3rem/1 var(--sans); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 400px) { .btn { padding: 0 18px; white-space: normal; text-align: center; } .page-head h1 { overflow-wrap: anywhere; } }
@media print { .site-head, .site-foot, .subnav, .side, .toc, .toasts, .intro { display: none !important; } main { padding-top: 0; } }
a.chip-btn { text-decoration: none; }
.foot-bottom a.foot-mail { color: inherit; }
.foot-col h2 small { letter-spacing: 0.08em; color: var(--warn); margin-left: 4px; font: inherit; font-size: 9.5px; }
.lost .cta-row { justify-content: center; }
.nav-burger { align-content: center; }
@media (max-width: 900px) { .side { align-items: center; } .side .side-acct { display: none; } }
.panel-head h3 { font: 600 1rem/1.3 var(--sans); letter-spacing: -0.005em; }
.side .side-acct a { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent-text); font-size: 13px; }

/* Floating "buy me a coffee" button (download page, bottom-right corner) */
.coffee-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent-ink); font: 600 15px/1 var(--sans, inherit); text-decoration: none;
  box-shadow: 0 10px 30px rgba(201, 68, 15, 0.34), 0 2px 6px rgba(0, 0, 0, 0.16); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.coffee-fab[hidden] { display: none; }
.coffee-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(201, 68, 15, 0.42), 0 3px 8px rgba(0, 0, 0, 0.18); }
.coffee-fab:active { transform: scale(0.96); }
.coffee-fab:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
.coffee-fab svg { flex: none; animation: coffee-tilt 3.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes coffee-tilt { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 92% { transform: rotate(9deg); } }
@media (max-width: 560px) { .coffee-fab { padding: 15px; } .coffee-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (prefers-reduced-motion: reduce) { .coffee-fab svg { animation: none; } .coffee-fab { transition: none; } }
@media print { .coffee-fab { display: none; } }

/* ==========================================================================
   RESPONSIVE PASS — every page, 320px to 1920px, measured with real phone
   emulation. Each rule below answers one measured problem; the comment says
   which. Nothing here changes the design, only how it fits a small screen.
   ========================================================================== */

/* A block that is wider than the screen must be clipped, never widen the
   page: on a phone a too-wide page is zoomed out and the header runs off the
   edge. body already clips; html has to as well, or the body rule is handed
   to the viewport and stops clipping anything. */
html { overflow-x: clip; }
body { overflow-wrap: break-word; }

/* the hero glow is deliberately larger than its stage; keep it inside the band */
.hero { overflow-x: clip; }

/* one-column grids: a wide child (a row of tabs, a table, a long label) must
   shrink or scroll inside the column instead of stretching the column */
.view, .stack, .dash-main, .pg-col, .out-main, .hero-copy, .vhero-copy, .band-copy, .notify-copy, .notify-form, .auth-card, .auth-form, .price-card, .rate, .section-head, .page-head { grid-template-columns: minmax(0, 1fr); }

/* a long status pill wraps onto a second line instead of pushing the page wide */
.pill { max-width: 100%; white-space: normal; flex-shrink: 0; text-align: left; }
.pill.dev, .pill.soon, .pill.ok, .pill.off { text-wrap: balance; }

/* visually-hidden text inside a scrolling table was positioned against the
   page, not the table, and made the whole page as wide as the table */
.table-wrap, .tabs { position: relative; }
.table-wrap { -webkit-overflow-scrolling: touch; }

/* code blocks: the bar wraps when tabs and Copy do not fit side by side */
.code-bar { flex-wrap: wrap; }
.code-tabs { flex-wrap: wrap; min-width: 0; }

/* small-screen menu: never taller than the screen; it scrolls inside itself */
@media (max-width: 1040px) {
  .nav-links { max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav-links a { flex: none; }
}

/* dialogs and the drawer follow the visible screen, not the screen behind the browser bars */
.dlg { max-height: calc(100dvh - 24px); }
.dlg.drawer { height: 100dvh; max-height: 100dvh; }
.dlg-foot .btn { flex: 0 1 auto; }
/* the drawer used to slide in from 40px past the screen edge, which made a phone
   widen (and zoom out) the page for good; it now opens from its own right edge */
.dlg.drawer[open] { animation: drawer-in 0.3s var(--ease); transform-origin: 100% 50%; }
@keyframes drawer-in { from { transform: scaleX(0.94); opacity: 0; } }

/* the floating coffee button sits under the header and its menu, and leaves
   room for the last lines of the footer and for toasts */
.coffee-fab { z-index: 40; }
body:has(.coffee-fab:not([hidden])) .site-foot { padding-bottom: 92px; }
body:has(.coffee-fab:not([hidden])) .toasts { bottom: 86px; }

/* very narrow phones */
@media (max-width: 360px) {
  .nav { gap: 4px; padding: 0 6px 0 8px; }
  .nav-end { gap: 2px; }
  .brand { gap: 8px; padding-right: 4px; }
  .seg span { padding-inline: 2px; }
  .seg { letter-spacing: -0.01em; }
}

/* small labels: nothing under 11px, sentence-case notes at 12px (phones and tablets) */
@media (max-width: 860px) {
  .subnav a small, .foot-col a small, .foot-col h2 small, .tagcell small, .caption-meta, .tagbar-group > small,
  .script-bar, .lang-code, .code-bar, .tile dt, .table th, .toc b, .meter dt, .stage3d-state, .kv dt, .side b, .filters .fld label, .doc-nav small { font-size: 11px; }
  .wave-note, .range-scale, .player-meta, .viz figcaption, .stage3d-note, .meter-foot, .hist small, .dial-v span { font-size: 12px; }
  .chart .axis { font-size: 11px; }
}

/* touch screens: every control is at least 44px to the finger, and small
   inputs use 16px text so iOS does not zoom the page on focus */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .nav-auth, .brand { min-height: 44px; }
  .btn-sm, .chip-btn, .copy, .code-tabs button, .tabs button, .side a, .toc a, .foot-co { min-height: 44px; }
  .chip-btn, .copy, .code-tabs button, .toc a { display: inline-flex; align-items: center; justify-content: center; }
  .copy, .code-tabs button { min-width: 44px; }
  .input-sm { min-height: 44px; font-size: 16px; }
  .range input[type="range"] { height: 44px; }
  .seg span { padding-block: 12px; }
  .foot-col ul { gap: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .table td.act { padding-block: 4px; }
  /* text links that stand alone: a taller touch area, same look, same layout */
  .link-arrow, .text-btn, .cta-row > .link, .form-foot > .link, .preview-bar > .link, .prose .table td.mono a { padding-block: 12px; margin-block: -12px; }
  .cta-row > .link, .form-foot > .link, .preview-bar > .link { display: inline-block; background-origin: content-box; }
  .prose .table td.mono a { display: inline-block; }
}

/* ---------- four plans (pricing page) ---------- */
.plans4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan4 { position: relative; border-radius: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan4 .price-list { flex: 1; align-content: start; }
.plan4 .price-list li { font-size: 14px; padding: 10px 0 10px 28px; }
.plan4 .price-list li::before { top: 10px; }
.plan4 .price-list li.no { color: var(--dim); }
.plan4 .price-list li.no::before { content: "–"; color: var(--dim); }
.plan4 .btn { justify-content: center; width: 100%; }
.plan4-pop { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-line); }
.plan4-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan4-num strong { font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/0.9 var(--display); letter-spacing: -0.04em; font-variation-settings: "SOFT" 100; }
.plan4-num span { font-size: 14px; color: var(--muted); }
.plan4-note { color: var(--muted); }
.plan-table th[scope="row"] { font-weight: 500; text-align: left; }
@media (max-width: 1100px) { .plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans4 { grid-template-columns: minmax(0, 1fr); } }
.foot-msme { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.foot-msme span { color: var(--accent-text); font-weight: 700; }
