/* ==========================================================================
   onllm.dev sub-pages - shared shell
   The same ink field, cream paper and dye accent as the landing page.
   Self-contained: sub-pages do not depend on landing.css.
   ========================================================================== */

@property --dye { syntax: '<color>'; inherits: true; initial-value: #a873ff; }
@property --dye-deep { syntax: '<color>'; inherits: true; initial-value: #522aa8; }
@property --dye-light { syntax: '<color>'; inherits: true; initial-value: #e2d1ff; }

:root {
  /* semantic surface tokens (dark is the default) */
  --bg: #090c18;
  --bg-2: #0e1324;
  --bg-3: #151b31;
  --fg: #eef0f7;
  --fg-2: #a3a9c2;
  --fg-3: #7c83a0;
  --line: rgba(220, 228, 255, .10);
  --card: rgba(14, 19, 36, .62);
  --card-2: rgba(255, 255, 255, .05);
  --panel-a: rgba(21, 27, 49, .72);
  --panel-b: rgba(9, 12, 24, .86);
  --glass: rgba(9, 12, 24, .92);
  --bar-glass: rgba(9, 12, 24, .78);
  --scrim: 9, 12, 24;
  --dot: 255, 255, 255;

  /* legacy aliases used throughout */
  --ink: var(--bg);
  --ink-2: var(--bg-2);
  --ink-3: var(--bg-3);
  --ink-line: var(--line);
  --on-ink: var(--fg);
  --on-ink-2: var(--fg-2);
  --on-ink-3: var(--fg-3);
  --paper: #efece5;
  --paper-2: #e6e2d8;
  --paper-3: #f7f5f0;
  --paper-line: rgba(20, 22, 32, .12);
  --on-paper: #11131b;
  --on-paper-2: #4d5163;
  --on-paper-3: #7d8193;

  --dye: #a873ff;
  --dye-deep: #522aa8;
  --dye-light: #e2d1ff;

  --live: #3fbf6a;
  --beta: #e9a93a;
  --soon: #8b90a6;

  --f-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);

  --rail: 88px;
  --pad: clamp(20px, 4.4vw, 72px);
  --maxw: 1440px;

  transition: --dye .9s var(--e-inout), --dye-deep .9s var(--e-inout), --dye-light .9s var(--e-inout);
}

html[data-dye="cobalt"]     { --dye: #4d6bff; --dye-deep: #1f33b0; --dye-light: #b9c6ff; }
html[data-dye="periwinkle"] { --dye: #8f97ff; --dye-deep: #3f3fb0; --dye-light: #dadcff; }
html[data-dye="ember"]      { --dye: #ff6a3d; --dye-deep: #a8331a; --dye-light: #ffcdb9; }
html[data-dye="saffron"]    { --dye: #f2b134; --dye-deep: #7d5200; --dye-light: #ffe2a4; }
html[data-dye="rose"]       { --dye: #ff5a8a; --dye-deep: #9c1d4b; --dye-light: #ffc6d7; }
html[data-dye="violet"]     { --dye: #a873ff; --dye-deep: #522aa8; --dye-light: #e2d1ff; }

/* ---------- LIGHT THEME ----------
   Ink surfaces become light, paper gets warmer. Dye variants darken so
   accent text and buttons clear AA on a pale ground. */
html[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #eef0f6;
  --bg-3: #e7e9f1;
  --fg: #14161f;
  --fg-2: #4a4f60;
  --fg-3: #676c7d;
  --line: rgba(20, 22, 32, .14);
  --card: rgba(255, 255, 255, .72);
  --card-2: rgba(20, 22, 32, .045);
  --panel-a: rgba(255, 255, 255, .88);
  --panel-b: rgba(246, 245, 241, .92);
  --glass: rgba(246, 245, 241, .94);
  --bar-glass: rgba(246, 245, 241, .82);
  --scrim: 246, 245, 241;
  --dot: 20, 22, 32;
  --paper: #f1ede4;
  --paper-2: #e8e3d8;
  --paper-3: #fbf9f4;
  --paper-line: rgba(20, 22, 32, .13);
  --on-paper: #14161f;
  --on-paper-2: #4a4f60;
  --on-paper-3: #6f7486;
  --live: #1e8f4b;
  --beta: #9a6400;
  --soon: #6f7486;
  --dye: #7b3fe0;
  --dye-deep: #4b2594;
  --dye-light: #6d2fd0;
  color-scheme: light;
}
html[data-theme="light"][data-dye="cobalt"]     { --dye: #2f4fd8; --dye-deep: #1c2f9e; --dye-light: #2c46c4; }
html[data-theme="light"][data-dye="periwinkle"] { --dye: #5560e0; --dye-deep: #333a9e; --dye-light: #4854d8; }
html[data-theme="light"][data-dye="ember"]      { --dye: #d9481f; --dye-deep: #9a2f12; --dye-light: #c23a15; }
html[data-theme="light"][data-dye="saffron"]    { --dye: #a86e00; --dye-deep: #7a4f00; --dye-light: #8f5d00; }
html[data-theme="light"][data-dye="rose"]       { --dye: #cf2f62; --dye-deep: #94133f; --dye-light: #b32453; }
html[data-theme="light"][data-dye="violet"]     { --dye: #7b3fe0; --dye-deep: #4b2594; --dye-light: #6d2fd0; }

/* elements that sit on a dye-coloured surface keep light tints */
html[data-theme="light"] .p-stats b,
html[data-theme="light"] .p-stats span { color: #fff; }
html[data-theme="light"] .b-summary b,
html[data-theme="light"] .p-cta .waitlist-msg { color: var(--dye-light); }
html[data-theme="light"] .b-summary { background: #191c2a; }
html[data-theme="light"] .b-summary b { color: #d9c9ff; }
html[data-theme="light"] .b-step-icon { color: #fff; }
html[data-theme="light"] .ps-col.good h3 i { color: #fff; }
html[data-theme="light"] .faq-item.is-open .faq-q i { color: #fff; }
html[data-theme="light"] .p-stats { background: var(--dye-deep); }
html[data-theme="light"] .p-stats::before { background: radial-gradient(60% 90% at 78% 10%, color-mix(in oklab, var(--dye) 85%, transparent), transparent 70%); }
/* light surfaces that were hand-tuned for ink */
html[data-theme="light"] .err-page { background: radial-gradient(90% 80% at 70% 20%, var(--bg-2), var(--bg) 70%); }
html[data-theme="light"] .err-code { background: linear-gradient(155deg, var(--dye-deep) 4%, var(--dye) 52%, color-mix(in oklab, var(--dye) 55%, #000) 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .err-note { background: rgba(255, 255, 255, .62); }
html[data-theme="light"] .foot-mark { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--dye) 0, var(--dye-deep) 22%, #b9bcc9 48%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .cursor { mix-blend-mode: normal; }
html[data-theme="light"] .cursor-dot { background: #14161f; }
html[data-theme="light"] .cursor-ring { box-shadow: inset 0 0 0 1.5px #14161f; }
html[data-theme="light"] .cursor.is-label .cursor-ring { background: #14161f; }
html[data-theme="light"] .cursor-label { color: #fff; }
html[data-theme="light"] .menu { background: var(--bg); }
html[data-theme="light"] .news button { color: #fff; }
html[data-theme="light"] .news button:hover { background: var(--fg); color: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--dye); color: #fff; }
:focus-visible { outline: 2px solid var(--dye); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--dye); color: #fff; padding: 10px 14px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.dash { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .45; vertical-align: middle; margin: 0 10px; }
.eyebrow { margin: 0 0 22px; color: var(--dye); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
[data-tone="paper"] .eyebrow, .paper .eyebrow { color: var(--dye-deep); }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* page scroll progress */
.page-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 120; height: 2px; pointer-events: none; }
.page-progress span { display: block; height: 100%; background: var(--dye); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .12s linear; }
@media (min-width: 1024px) { .page-progress { left: var(--rail); } }

/* ---------- section titles ---------- */
.sec-title {
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.045em;
  margin: 0;
}
.sec-title em { font-size: 1.08em; color: var(--dye-light); padding-right: .04em; }
[data-tone="paper"] .sec-title em, .paper .sec-title em { color: var(--dye-deep); }
.sec-lede { max-width: 46ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--on-ink-2); margin: 24px 0 0; }
[data-tone="paper"] .sec-lede, .paper .sec-lede { color: var(--on-paper-2); }

/* split lines + reveals */
[data-split] .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .line > .li { display: inline-block; will-change: transform; }
.js [data-split] .line > .li { transform: translateY(110%) rotate(2deg); transition: transform 1.2s var(--e-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-split].is-in .line > .li { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--e-out), transform 1.1s var(--e-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-hero] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d, 0ms); }
.js [data-hero].is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  isolation: isolate; overflow: hidden;
  transition: transform .5s var(--e-out), background-color .3s, color .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; transform: translateY(101%); transition: transform .5s var(--e-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.96); }
.btn-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; transition: transform .5s var(--e-out); }
.btn:hover .btn-arrow { transform: translateX(3px) rotate(-8deg); }
.btn--dye { background: var(--dye); color: #fff; }
.btn--dye::before { background: #fff; }
.btn--dye:hover { color: var(--ink); }
.btn--dye .btn-arrow { background: rgba(255,255,255,.18); }
.btn--ghost { color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink-line); background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost::before { background: var(--on-ink); }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost .btn-arrow { box-shadow: inset 0 0 0 1px var(--ink-line); }
.btn--ink { background: var(--on-paper); color: var(--paper-3); }
.btn--ink::before { background: var(--dye); }
.btn--ink .btn-arrow { background: rgba(255,255,255,.12); }
.btn--ink:hover { color: #fff; }
.btn--paper { background: var(--dye-deep); color: #fff; }
.btn--paper::before { background: var(--on-paper); }
.btn--paper .btn-arrow { background: rgba(255,255,255,.16); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .25s; }
.link:hover { color: var(--dye-deep); }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; mix-blend-mode: difference; }
  .js body.has-cursor, .js body.has-cursor a, .js body.has-cursor button { cursor: none; }
  .js body.has-cursor input, .js body.has-cursor textarea { cursor: text; }
  .cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
  .cursor-ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); display: grid; place-items: center; transition: width .45s var(--e-out), height .45s var(--e-out), margin .45s var(--e-out), background-color .3s; }
  .cursor-label { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}

/* ---------- rail (desktop) ---------- */
.rail { display: none; }
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 60;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: 26px 0 22px; background: var(--glass); border-right: 1px solid var(--ink-line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .rail-logo img { width: 30px; height: 30px; border-radius: 8px; transition: transform .6s var(--e-spring); }
  .rail-logo:hover img { transform: rotate(-12deg) scale(1.08); }
  .rail { row-gap: 24px; }
  .rail > .vat-row { flex-shrink: 0; gap: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .rail-nav { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.5vh, 16px); }
  .rail-nav a {
    position: relative; writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 14px; letter-spacing: .02em; color: var(--on-ink-3); transition: color .3s;
  }
  .rail-nav a::after {
    content: ''; position: absolute; right: -14px; top: 0; width: 1px; height: 100%;
    background: var(--dye); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--e-out);
  }
  .rail-nav a:hover { color: var(--on-ink); }
  .rail-nav a.is-on { color: var(--on-ink); }
  .rail-nav a.is-on::after { transform: scaleY(1); }
  .rail-start {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--on-ink-2); padding: 14px 0 0; border-bottom: 1px solid var(--ink-line); transition: color .3s;
  }
  .rail-start:hover { color: var(--dye); }
  .mbar, .menu { display: none !important; }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .rail { row-gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .rail > .vat-row { gap: 24px; padding-bottom: 12px; }
  .rail .rail-nav { gap: 4px; }
  .rail .rail-nav a { font-size: 13px; }
  .rail-start { font-size: 9.5px; letter-spacing: .14em; }
}

/* Dye */
.vat { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-3); }
.vat-dot {
  position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--dye);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--dye) 22%, transparent), 0 0 24px color-mix(in oklab, var(--dye) 60%, transparent);
  transition: transform .5s var(--e-spring);
}
.vat-dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--dye) 55%, transparent); animation: spin 9s linear infinite; }
.vat:hover .vat-dot { transform: scale(1.18); }
.vat:active .vat-dot { transform: scale(.85); }
.vat.is-dipping .vat-dot { animation: dip .7s var(--e-out); }
@keyframes dip { 0% { transform: scale(1); } 35% { transform: scale(.55) translateY(4px); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.dye-wash { position: fixed; z-index: 130; width: 40px; height: 40px; border-radius: 50%; pointer-events: none; background: var(--dye); mix-blend-mode: color; opacity: .55; transform: translate(-50%, -50%) scale(0); animation: wash 1s var(--e-out) forwards; }
@keyframes wash { to { transform: translate(-50%, -50%) scale(90); opacity: 0; } }

/* theme toggle */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--on-ink-2); box-shadow: inset 0 0 0 1px var(--ink-line); transition: color .3s, background-color .3s, transform .5s var(--e-spring); flex: none; }
.theme-toggle:hover { color: var(--on-ink); background: var(--card-2); }
.theme-toggle:active { transform: scale(.9); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }
.vat-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vat--bar + .theme-toggle, .mbar-actions .theme-toggle { width: 44px; height: 44px; }
.vat--menu + .theme-toggle { width: 44px; height: 44px; }
.err-top .vat--bar, .err-top .theme-toggle { width: 40px; height: 40px; }
.menu-foot .theme-toggle { align-self: flex-start; margin-top: 2px; }

/* ---------- mobile bar + menu ---------- */
.mbar {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: 62px; padding: 0 16px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(var(--bar-glass), color-mix(in srgb, var(--bar-glass) 65%, transparent)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  transition: transform .5s var(--e-out);
}
.mbar.is-hidden { transform: translateY(-100%); }
.mbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.03em; font-size: 18px; }
.mbar-logo img { border-radius: 7px; }
.mbar-logo i { font-family: var(--f-serif); font-weight: 400; color: var(--dye); margin-left: .02em; }
.mbar-logo .mb-dot { font-family: var(--f-sans); font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--dye); margin: 0 .05em 0 .02em; }
.mbar-actions { display: flex; align-items: center; gap: 8px; }
.vat--bar { width: 44px; height: 44px; justify-content: center; }
.vat--bar .vat-dot { width: 18px; height: 18px; }
.mbar-menu { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-line); }
.mbar-menu span:not(.sr) { display: block; width: 18px; height: 1.5px; background: var(--on-ink); transition: transform .45s var(--e-out); }
.mbar-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.mbar-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ink); padding: 96px 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 38px) 31px); transition: clip-path .8s var(--e-inout);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 31px); visibility: visible; }
.menu { gap: 24px; overflow-y: auto; }
.menu > * { flex-shrink: 0; }
.menu-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.menu-controls .theme-toggle { margin-left: 0; width: auto; min-width: 44px; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.menu-controls .appearance-label { font-family: var(--f-mono); font-size: 10px; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(1.9rem, 8.6vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; padding: 5px 0; border-bottom: 1px solid var(--ink-line); opacity: 0; transform: translateY(30px); transition: opacity .6s var(--e-out), transform .7s var(--e-out), color .2s; }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu nav a:nth-child(2) { transition-delay: .05s; } .menu nav a:nth-child(3) { transition-delay: .1s; } .menu nav a:nth-child(4) { transition-delay: .15s; } .menu nav a:nth-child(5) { transition-delay: .2s; } .menu nav a:nth-child(6) { transition-delay: .25s; } .menu nav a:nth-child(7) { transition-delay: .3s; color: var(--dye); }
.menu nav a:active { color: var(--dye); }
.menu nav small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--on-ink-3); font-weight: 400; }
.menu-foot { display: flex; flex-direction: column; gap: 18px; color: var(--on-ink-2); }
.vat--menu { flex-direction: row; gap: 14px; font-size: 11px; color: var(--on-ink-2); min-height: 44px; }
.vat--menu b { color: var(--dye); font-weight: 500; }

/* ==========================================================================
   Shared page furniture
   ========================================================================== */
.paper { position: relative; background: var(--paper); color: var(--on-paper); isolation: isolate; }
.paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .85; }
.paper .sec-lede, .paper p { color: var(--on-paper-2); }
.paper .mono { color: var(--on-paper-3); }
/* paper-toned sections outside the .paper class */
.p-features .sec-lede, .p-faq .sec-lede, .ps .sec-lede { color: var(--on-paper-2); }
.p-features .eyebrow, .p-faq .eyebrow, .ps .eyebrow { color: var(--dye-deep); }

.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(84px, 12vh, 150px) var(--pad); }

.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dye); box-shadow: 0 0 0 0 var(--dye); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--dye) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--dye); animation: pulse 2.2s infinite; }
.paper .pill { box-shadow: inset 0 0 0 1px var(--paper-line); color: var(--on-paper-2); }
.paper .pill i { background: var(--dye-deep); }

/* ==========================================================================
   Editorial document layout (privacy)
   ========================================================================== */
.doc { background: var(--ink); padding: clamp(96px, 15vh, 170px) var(--pad) clamp(70px, 10vh, 130px); }
.doc-hero { max-width: 1000px; margin: 0 auto clamp(40px, 7vh, 80px); }
.doc-hero h1 { font-weight: 600; font-size: clamp(3rem, 8vw, 7rem); line-height: .92; letter-spacing: -.05em; margin: 0; }
.doc-hero h1 em { color: var(--dye-light); font-size: 1.06em; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; color: var(--on-ink-3); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.doc-meta a { color: var(--dye); border-bottom: 1px solid color-mix(in oklab, var(--dye) 45%, transparent); padding-bottom: 2px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.doc-toc { align-self: start; }
@media (min-width: 1024px) { .doc-toc { position: sticky; top: 36px; } }
.doc-toc h2 { margin: 0 0 16px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-3); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--ink-line); }
.doc-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--on-ink-3); font-size: 13.5px; line-height: 1.3; transition: color .25s, border-color .25s; }
.doc-toc a:hover { color: var(--on-ink); }
.doc-toc a.is-on { color: var(--on-ink); border-left-color: var(--dye); }
.doc-sheet { position: relative; background: var(--paper); color: var(--on-paper); border-radius: 24px; padding: clamp(24px, 4vw, 58px); box-shadow: 0 50px 120px -60px rgba(0,0,0,.9); }
.doc-sheet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 24px 24px 0 0; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .9; }
.doc-sheet h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 18px; color: var(--on-paper); font-weight: 600; }
.doc-sheet h2:not(:first-child) { margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--paper-line); }
.doc-sheet h3 { font-size: 1.05rem; letter-spacing: -.015em; margin: 30px 0 10px; color: var(--on-paper); font-weight: 600; }
.doc-sheet p { color: var(--on-paper-2); line-height: 1.75; margin: 0 0 16px; max-width: 68ch; }
.doc-sheet ul { color: var(--on-paper-2); line-height: 1.75; margin: 0 0 18px; padding-left: 0; list-style: none; }
.doc-sheet ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.doc-sheet ul li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--dye-deep); opacity: .55; }
.doc-sheet strong { color: var(--on-paper); font-weight: 600; }
.doc-sheet a { color: var(--dye-deep); border-bottom: 1px solid color-mix(in oklab, var(--dye-deep) 35%, transparent); }
.doc-sheet a:hover { border-bottom-color: var(--dye-deep); }
.doc-sheet .no-mark::before { content: 'No'; position: static; width: auto; height: auto; border-radius: 0; background: none; font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #a3374b; margin-right: 8px; opacity: 1; }
.doc-sheet ul li.no-mark { padding-left: 0; }
.doc-sheet .doc-note { position: relative; padding: 22px 24px; border-radius: 16px; background: color-mix(in oklab, var(--dye) 10%, #fff); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye-deep) 20%, transparent); margin: 26px 0; }
.doc-sheet .doc-note p { margin: 0; color: var(--on-paper); font-weight: 500; }
.doc-sheet .doc-note::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--dye-deep); }
.table-scroll { overflow-x: auto; margin: 20px 0 28px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--paper-line); -webkit-overflow-scrolling: touch; }
.doc-sheet table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 14.5px; }
.doc-sheet th, .doc-sheet td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.doc-sheet th { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-3); font-weight: 400; background: rgba(20,22,32,.035); }
.doc-sheet tr:last-child td { border-bottom: 0; }
.doc-sheet td { color: var(--on-paper-2); }
.doc-sheet td:first-child { color: var(--on-paper); font-weight: 500; }
.doc-foot { max-width: 1120px; margin: 34px auto 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--on-ink-3); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.doc-foot a { color: var(--on-ink-2); border-bottom: 1px solid var(--ink-line); padding-bottom: 2px; }
.doc-foot a:hover { color: var(--dye-light); }

/* ==========================================================================
   Error pages
   ========================================================================== */
.err-page { min-height: 100svh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: radial-gradient(90% 80% at 70% 20%, var(--ink-2), var(--ink) 70%); }
.err-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.err-glow { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(50% 50% at 50% 42%, color-mix(in oklab, var(--dye) 13%, transparent), transparent 70%); }
.err-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--pad); }
.err-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -.03em; font-size: 18px; }
.err-brand img { width: 28px; height: 28px; border-radius: 7px; }
.err-brand i { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--dye); }
.err-brand .dot { color: var(--dye); margin: 0 .04em; }
.err-top nav { display: flex; align-items: center; gap: 22px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); }
.err-top nav a:hover { color: var(--on-ink); }
.err-main { position: relative; z-index: 3; flex: 1; display: grid; place-items: center; padding: 48px var(--pad) 70px; }
.err-inner { width: min(760px, 100%); text-align: center; }
.err-code {
  position: relative; margin: 0 0 8px; font-weight: 700; letter-spacing: -.07em; line-height: .82; user-select: none;
  font-size: clamp(6rem, 22vw, 15rem);
  background: linear-gradient(155deg, #fff 4%, var(--dye-light) 38%, var(--dye) 62%, var(--dye-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 22px 60px color-mix(in oklab, var(--dye-deep) 55%, transparent));
}
.err-code.is-word { font-size: clamp(3.4rem, 11vw, 7rem); letter-spacing: -.05em; }
.err-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--on-ink-2); }
.err-title { font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.02; margin: 0 0 16px; }
.err-title em { color: var(--dye-light); font-size: 1.08em; }
.err-message { max-width: 52ch; margin: 0 auto 34px; color: var(--on-ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--ink-line); }
.err-links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 13px; color: var(--on-ink-2); transition: color .25s, background-color .25s, box-shadow .25s; }
.err-links a span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--on-ink-3); text-transform: uppercase; }
.err-links a:hover { color: var(--ink); background: var(--on-ink); box-shadow: none; }
.err-links a:hover span { color: var(--on-ink-3); }
.err-note { max-width: 640px; margin: 30px auto 0; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ink-line); background: rgba(14,19,36,.55); color: var(--on-ink-3); font-size: 14px; text-align: left; }
.err-note b { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); font-weight: 400; }
.err-note ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.err-note a { color: var(--dye-light); border-bottom: 1px solid color-mix(in oklab, var(--dye) 45%, transparent); }
.err-foot { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--pad); border-top: 1px solid var(--ink-line); color: var(--on-ink-3); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.err-foot a:hover { color: var(--dye); }
.err-hint { position: absolute; right: var(--pad); bottom: 76px; z-index: 3; display: flex; align-items: center; gap: 9px; color: var(--on-ink-3); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
@media (max-width: 640px) {
  .err-top nav { gap: 14px; }
  .err-top nav a:not(:last-child) { display: none; }
  .err-hint { display: none; }
  .err-main { padding-top: 30px; }
}

/* ==========================================================================
   FOOTER (same as the landing page)
   ========================================================================== */
.foot { position: relative; background: var(--ink); padding: clamp(70px, 12vh, 140px) var(--pad) 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; }
.foot-news h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.045em; font-weight: 600; }
.foot-news > p { color: var(--on-ink-2); max-width: 36ch; }
.news { display: flex; gap: 8px; margin-top: 22px; max-width: 460px; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); }
.news input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 16px; font-size: 16px; }
.news button { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--dye); color: #fff; font-weight: 500; white-space: nowrap; transition: transform .4s var(--e-spring), background .3s; }
.news button:hover { background: #fff; color: var(--ink); }
.news-msg { min-height: 1.4em; color: var(--dye-light); font-size: 14px; }
.news-msg.is-bad { color: #ff8b8b; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols h4 { margin: 0 0 8px; color: var(--on-ink-3); font-weight: 400; }
.foot-cols a { color: var(--on-ink-2); width: fit-content; transition: color .25s, transform .4s var(--e-out); }
.foot-cols a:hover { color: var(--on-ink); transform: translateX(4px); }
.foot-mark {
  position: relative; margin: 12vh 0 4vh; font-weight: 700; letter-spacing: -.07em; line-height: .8; white-space: nowrap;
  font-size: clamp(5rem, 21vw, 24rem); color: transparent;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--dye-light) 0, var(--dye) 18%, #20263f 42%);
  -webkit-background-clip: text; background-clip: text; user-select: none;
}
.foot-mark i { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.03em; margin-left: .03em; }
.foot-mark .fm-dot { font-family: var(--f-sans); font-style: normal; font-weight: 700; letter-spacing: 0; color: var(--dye); margin: 0 .08em 0 .02em; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--on-ink-3); padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 10.5px; }
.foot-bottom p { margin: 0; }
.foot-bottom a:hover { color: var(--dye); }

/* ==========================================================================
   RESPONSIVE / MOTION
   ========================================================================== */
@media (max-width: 1023px) {
  .foot-top { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-mark { font-size: 25vw; }
  .doc-sheet { border-radius: 18px; }
  .news { max-width: 100%; }
  .news button { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-split] .line > .li, .js [data-reveal], .js [data-hero] { transform: none !important; opacity: 1 !important; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto !important; }
}
