/* elizaos.bot: two inks, like the mark. Electric blue and white paper, manga panels, screentone and speed lines. */
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/InterTight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/JetBrainsMono.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --blue: #0b35f1;
  --blue-hi: #3157f6;
  --blue-deep: #0622a6;
  --blue-soft: #e8edff;
  --ink: #06103f;
  --paper: #ffffff;
  --paper-2: #f4f6ff;
  --line: rgba(11, 53, 241, 0.18);
  --muted: #4b5785;
  --ok: #0b35f1;
  --warn: #c2410c;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --text: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 14px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 850; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--blue); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 750 15px/1 var(--display); font-stretch: 108%; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-paper { background: var(--paper); color: var(--blue); box-shadow: 4px 4px 0 var(--blue-deep); }
.btn-paper:hover { box-shadow: 6px 6px 0 var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-blue { background: var(--blue); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.btn-line { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; box-shadow: none; }

/* ------------------------------------------------------------ header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 12px var(--pad); color: var(--paper); transition: background 0.25s, box-shadow 0.25s; }
.top.solid { background: rgba(11, 53, 241, 0.94); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); font-stretch: 115%; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.brand b { font-weight: 500; opacity: 0.85; }
.nav { display: flex; gap: 22px; margin-left: 18px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.75); background: var(--blue); cursor: pointer; font: 600 13px/1 var(--mono); color: var(--paper); }
.ca-tick { font-weight: 700; }
.ca-val { opacity: 0.85; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: max(640px, 100svh); background: var(--blue); color: var(--paper); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.hero-stage { position: absolute; inset: 0; }
.hero-poster, .hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.hero-canvas.on { opacity: 1; }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 1200px; width: 100%; margin: 0 auto; padding: 120px var(--pad) 40px; }
.hero-copy > * { max-width: 620px; }
.hero-copy h1 { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4); font: 600 13px/1 var(--mono); letter-spacing: 0.02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 5.8vw, 82px); font-weight: 900; font-stretch: 118%; line-height: 0.95; text-shadow: 0 2px 0 var(--blue-deep); }
.hero h1 em { font-style: normal; display: inline; background: var(--paper); color: var(--blue); padding: 0 0.14em 0.02em; line-height: 1.12; text-shadow: none; box-shadow: 6px 6px 0 var(--blue-deep); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 520px; text-shadow: 0 1px 12px rgba(6, 34, 166, 0.6); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.prelim-note { margin-top: 22px; font: 500 13px/1.5 var(--mono); max-width: 470px; opacity: 0.92; }
.prelim-note b { display: inline-block; background: var(--paper); color: var(--blue); padding: 1px 6px; margin-right: 6px; border-radius: 3px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.ticker { position: relative; z-index: 2; border-top: 2px solid rgba(255, 255, 255, 0.85); background: var(--paper); color: var(--blue); overflow: hidden; }
.ticker-track { display: flex; gap: 36px; padding: 12px 0; width: max-content; animation: slide 40s linear infinite; font: 600 14px/1 var(--mono); white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk b { font-weight: 800; margin-right: 6px; }
.tk i { font-style: normal; opacity: 0.7; }
.tk .up { color: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ paper pages */
.page { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.page:nth-of-type(odd) { background: var(--paper-2); }
.kicker { display: inline-block; font: 700 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; padding: 6px 10px; border: 1.5px solid var(--blue); border-radius: 4px; }
.kicker-paper { color: var(--paper); border-color: var(--paper); }
.page h2 { color: var(--ink); }
.sub { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 18px; }
.sub code { font-size: 15px; color: var(--blue); }

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.panel { position: relative; background: var(--paper); border: 3px solid var(--frame, var(--ink)); padding: 26px 22px 22px; box-shadow: 7px 7px 0 var(--blue); display: flex; flex-direction: column; gap: 12px; }
.panel:nth-child(2) { transform: translateY(18px) rotate(0.6deg); }
.panel:nth-child(3) { transform: rotate(-0.5deg); }
.panel .num { font: 900 48px/1 var(--display); font-stretch: 125%; color: var(--blue); -webkit-text-stroke: 0; }
.panel p { color: var(--muted); font-size: 16px; }
.panel-art { margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--line); display: grid; gap: 6px; }
.art-plan { display: flex; height: 38px; gap: 3px; border-top: 0; padding-top: 0; }
.art-plan span { flex: 0 0 var(--w); background: var(--blue); color: var(--paper); font: 700 10px/38px var(--mono); text-align: center; overflow: hidden; white-space: nowrap; }
.art-plan span:nth-child(2n) { background: var(--blue-soft); color: var(--blue); }
.panel-art code { font-size: 13px; color: var(--ink); }
.panel-art code i { font-style: normal; color: var(--muted); }
.panel-art code b { color: var(--blue); }
.panel-art code.hi { background: var(--blue); color: var(--paper); padding: 4px 8px; border-radius: 4px; width: max-content; max-width: 100%; }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 3px solid var(--frame, var(--ink)); background: var(--paper); }
.rule { padding: 26px 22px; border-right: 2px solid var(--frame, var(--ink)); border-bottom: 2px solid var(--frame, var(--ink)); display: flex; flex-direction: column; gap: 10px; position: relative; }
.rule:nth-child(3n) { border-right: 0; }
.rule:nth-last-child(-n + 3) { border-bottom: 0; }
.rule p { color: var(--muted); font-size: 15.5px; }
.rule code { margin-top: auto; font-size: 12px; color: var(--blue); }
.rule:nth-child(2), .rule:nth-child(4), .rule:nth-child(6) { background: var(--paper-2); }

/* ------------------------------------------------------------ try a plan */
.try-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.preset { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--blue); background: var(--paper); color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; }
.preset[aria-checked='true'] { background: var(--blue); color: var(--paper); }
.weights { margin-top: 22px; display: grid; gap: 10px; }
.wrow { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 12px; font: 600 14px/1 var(--mono); }
.wrow input[type='range'] { width: 100%; accent-color: var(--blue); height: 28px; }
.wrow output { text-align: right; }
.wsum { font: 600 13px/1.4 var(--mono); color: var(--muted); }
.wsum.bad { color: var(--warn); }
.move { margin-top: 26px; display: grid; grid-template-columns: auto auto 1fr 56px; gap: 12px; align-items: center; padding: 14px 16px; border: 2.5px solid var(--frame, var(--ink)); background: var(--paper); box-shadow: 5px 5px 0 var(--blue); font: 700 14px/1 var(--mono); }
.move select { font: 700 14px/1 var(--mono); padding: 8px 10px; border: 2px solid var(--blue); border-radius: 8px; color: var(--blue); background: var(--paper); min-height: 40px; }
.move input { accent-color: var(--blue); width: 100%; }
.move output { text-align: right; color: var(--blue); }
.try-right { position: sticky; top: 96px; display: grid; gap: 20px; }
.donut-box { position: relative; width: min(340px, 100%); margin: 0 auto; }
.donut text { font: 700 9px var(--mono); fill: var(--ink); }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-mid b { font: 900 30px/1 var(--display); font-stretch: 115%; color: var(--ink); }
.donut-mid span { font: 600 12px/1.6 var(--mono); color: var(--muted); }
.plan-out { border: 3px solid var(--frame, var(--ink)); background: var(--paper); box-shadow: 7px 7px 0 var(--blue); }
.plan-say { display: flex; gap: 12px; padding: 16px; border-bottom: 2px solid var(--frame, var(--ink)); background: var(--blue); color: var(--paper); }
.plan-say img { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--paper); flex: none; }
.plan-say p { font-weight: 600; font-size: 16px; line-height: 1.4; }
.plan-checks { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 8px; font: 500 13px/1.4 var(--mono); }
.plan-checks li { display: flex; justify-content: space-between; gap: 12px; }
.plan-checks b { color: var(--blue); white-space: nowrap; }
.plan-checks b.no { color: var(--warn); }
.drift-table { width: 100%; border-collapse: collapse; font: 500 13px/1 var(--mono); }
.drift-table th, .drift-table td { padding: 8px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.drift-table th:first-child, .drift-table td:first-child { text-align: left; }
.drift-table th { font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.drift-table .over { color: var(--warn); font-weight: 700; }
.drift-table .under { color: var(--blue); font-weight: 700; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--frame, var(--ink)); }

/* ------------------------------------------------------------ blue section: flywheel */
.blue { background: var(--blue); color: var(--paper); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.blue::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 78% 50%, rgba(255, 255, 255, 0.045) 0deg 0.8deg, transparent 0.8deg 7deg); pointer-events: none; }
.blue h2 { color: var(--paper); }
.blue .sub { color: rgba(255, 255, 255, 0.88); }
.fly-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.fly-steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.fly-steps li { counter-increment: s; position: relative; padding-left: 54px; min-height: 28px; font-size: 16.5px; line-height: 1.5; }
.fly-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; width: 40px; font: 800 14px/1 var(--mono); background: var(--paper); color: var(--blue); padding: 6px 0; text-align: center; border-radius: 4px; }
.fly-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border: 2px solid var(--paper); }
.fly-stats div { padding: 16px; border-right: 2px solid var(--paper); display: grid; gap: 6px; }
.fly-stats div:last-child { border-right: 0; }
.fly-stats span { font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.fly-stats b { font: 900 24px/1 var(--display); font-stretch: 112%; }
.wheel-art { width: min(440px, 100%); margin: 0 auto; }
.w-ring { fill: none; stroke: var(--paper); stroke-width: 2.5; }
.w-ring2 { stroke-dasharray: 3 7; stroke-width: 2; opacity: 0.7; }
.w-text { font: 700 13.4px var(--mono); fill: var(--paper); letter-spacing: 0.08em; }
.w-spin { transform-origin: 200px 200px; animation: spin 18s linear infinite; }
.w-dot { fill: var(--paper); }
.w-face { fill: none; stroke: var(--paper); stroke-width: 4; }
.wheel-svg > text { transform-origin: 200px 200px; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ token */
.token-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.token-card { background: var(--paper); border: 3px solid var(--frame, var(--ink)); box-shadow: 9px 9px 0 var(--blue); padding: 28px; display: grid; gap: 22px; }
.token-head { display: flex; gap: 16px; align-items: center; }
.token-head img { border-radius: 12px; border: 2.5px solid var(--frame, var(--ink)); }
.token-head h2 { font-size: 44px; }
.token-head p { color: var(--muted); font-size: 15px; }
.token-facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--frame, var(--ink)); }
.token-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.token-facts dt { color: var(--muted); }
.token-facts dd { margin: 0; font: 600 14px/1.4 var(--mono); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.copy { border: 0; background: var(--blue-soft); color: var(--blue); padding: 6px 10px; border-radius: 6px; cursor: pointer; font: 600 13px/1.2 var(--mono); }
.token-uses h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.uses li { padding: 16px 18px; border-left: 5px solid var(--blue); background: var(--paper); font-size: 16px; color: var(--muted); }
.uses b { color: var(--ink); }
.fine { margin-top: 16px; font: 500 13px/1.5 var(--mono); color: var(--muted); }

/* ------------------------------------------------------------ agent */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.agent h2 { font-size: clamp(30px, 3.6vw, 46px); }
.agent .btn { margin-top: 26px; }
.code { margin: 0; background: var(--ink); color: #dfe6ff; border-radius: var(--r); padding: 26px; font-size: 14px; line-height: 1.65; overflow-x: auto; box-shadow: 9px 9px 0 var(--blue); border: 3px solid var(--frame, var(--ink)); }
.code .c { color: #8ea3ff; }
.code s { text-decoration: none; color: #fff; }

/* ------------------------------------------------------------ risks */
.faq { margin-top: 36px; display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 2.5px solid var(--frame, var(--ink)); background: var(--paper); }
.faq summary { cursor: pointer; padding: 16px 20px; font: 800 18px/1.2 var(--display); font-stretch: 108%; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 24px; line-height: 0.8; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ------------------------------------------------------------ footer */
.foot { background: var(--ink); color: #c9d2ff; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-brand b { display: block; color: #fff; font: 800 18px/1.1 var(--display); font-stretch: 112%; }
.foot-brand span { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.legal { grid-column: 1 / -1; font: 500 12.5px/1.6 var(--mono); color: #8f9ad0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }

/* ------------------------------------------------------------ chat */
.chat { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); border: 3px solid var(--frame, var(--ink)); box-shadow: 8px 8px 0 var(--blue); border-radius: 18px; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--blue); color: var(--paper); }
.chat-head img { border-radius: 8px; border: 2px solid var(--paper); }
.chat-head b { display: block; font: 800 16px/1.1 var(--display); }
.chat-head span { font: 500 12px/1.2 var(--mono); opacity: 0.9; }
.chat-x { margin-left: auto; width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, 0.15); color: var(--paper); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.chat-log { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--blue); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.her { align-self: flex-start; background: var(--paper); border: 2px solid var(--frame, var(--ink)); border-bottom-left-radius: 4px; }
.msg.note { align-self: center; font: 500 12px/1.4 var(--mono); color: var(--muted); background: transparent; text-align: center; }
.msg .draft { display: block; margin-top: 10px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 2px solid var(--frame, var(--ink)); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--line); border-radius: 999px; padding: 0 14px; font: 500 15px var(--text); color: var(--ink); }
.chat-form input:focus { border-color: var(--blue); outline: none; }

/* ------------------------------------------------------------ prelim / live switch */
[data-when='live'] { display: none; }
body.live [data-when='live'] { display: revert; }
body.live [data-when='prelim'] { display: none; }

/* ------------------------------------------------------------ phones and tablets */
@media (min-width: 761px) and (max-width: 1240px) {
  .hero-copy > *, .hero-copy h1 { max-width: 54vw; }
  .hero-copy .prelim-note { max-width: 48vw; }
  .hero h1 { font-size: clamp(36px, 5.1vw, 66px); }
  .lede { font-size: 17px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .panels, .rule-grid { grid-template-columns: 1fr 1fr; }
  .panel:nth-child(2), .panel:nth-child(3) { transform: none; }
  .rule:nth-child(3n) { border-right: 2px solid var(--frame, var(--ink)); }
  .rule:nth-child(2n) { border-right: 0; }
  .rule:nth-last-child(-n + 3) { border-bottom: 2px solid var(--frame, var(--ink)); }
  .rule:nth-last-child(-n + 2) { border-bottom: 0; }
  .try-grid, .fly-grid, .token-grid, .agent-grid { grid-template-columns: 1fr; }
  .try-right { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 10px 16px; gap: 8px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .ca-chip { display: none; }
  .hero { min-height: auto; grid-template-rows: auto auto auto; }
  .top { background: rgba(11, 53, 241, 0.94); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18); }
  .hero-stage { position: relative; height: 62svh; min-height: 380px; max-height: 560px; }
  .hero-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--blue)); z-index: 2; pointer-events: none; }
  .hero-poster img { object-position: 50% 20%; }
  .hero-copy { padding: 0 16px 36px; margin-top: -18px; }
  .eyebrow { background: var(--blue); }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .cta .btn { flex: 1 1 100%; }
  .panels, .rule-grid { grid-template-columns: 1fr; }
  .rule { border-right: 0 !important; border-bottom: 2px solid var(--frame, var(--ink)) !important; }
  .rule:last-child { border-bottom: 0 !important; }
  .move { grid-template-columns: auto 1fr 52px; }
  .move label { display: none; }
  .move select { grid-column: 1; }
  .fly-stats { grid-template-columns: 1fr; }
  .fly-stats div { border-right: 0; border-bottom: 2px solid var(--paper); }
  .fly-stats div:last-child { border-bottom: 0; }
  .token-card { padding: 20px; }
  .token-facts div { flex-direction: column; gap: 4px; }
  .token-facts dd { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(78svh, 600px); }
  .code { font-size: 12.5px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ moving background (blue sections, app) */
/* Sliding diagonal bands and racing slash streaks, transforms only (composited, light on phones). */
.motion { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.motion i { position: absolute; left: -60%; width: 220%; top: var(--y); height: var(--h); transform: rotate(-30deg) translate3d(var(--from, -25%), 0, 0); animation: slide-band var(--d) linear infinite; animation-delay: var(--dl, 0s); will-change: transform; }
.motion i.band { background: linear-gradient(90deg, transparent 0%, rgba(120, 160, 255, 0.16) 30%, rgba(120, 160, 255, 0.16) 70%, transparent 100%); }
.motion i.dark { background: linear-gradient(90deg, transparent, rgba(3, 18, 110, 0.28) 40%, rgba(3, 18, 110, 0.28) 60%, transparent); }
.motion i.streak { height: 3px; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(220, 238, 255, 0.85)); border-radius: 3px; --from: -140%; animation-name: race; }
.motion b { position: absolute; left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border: 2px solid rgba(210, 230, 255, 0.55); transform: rotate(45deg); animation: rise var(--d) linear infinite; animation-delay: var(--dl, 0s); will-change: transform; }
.motion b.fill { background: rgba(210, 230, 255, 0.35); border-color: transparent; }
@keyframes slide-band { to { transform: rotate(-30deg) translate3d(25%, 0, 0); } }
@keyframes race { from { transform: rotate(-30deg) translate3d(-140%, 0, 0); } to { transform: rotate(-30deg) translate3d(420%, 0, 0); } }
@keyframes rise { from { transform: translate3d(0, 0, 0) rotate(45deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translate3d(0, -110vh, 0) rotate(405deg); opacity: 0; } }
.blue > .wrap, .blue .fly-grid { position: relative; z-index: 1; }
body.app-page { background: var(--blue); }

/* ============================================================ creative pass (2026-11-16) */
/* token chips */
.tok { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff var(--lg) center / var(--fit, 70%) no-repeat; box-shadow: 0 0 0 1.5px var(--ink); vertical-align: -0.38em; margin-right: 0.45em; flex: none; overflow: hidden; }
.tok-usd { font: 800 0.95em/1.5em var(--mono); text-align: center; color: var(--blue); font-style: normal; }
.tk .tok { width: 1.6em; height: 1.6em; box-shadow: 0 0 0 1.5px var(--blue); }

/* header X link */
.x-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.75); background: var(--blue); color: var(--paper); }
.x-link:hover { background: var(--paper); color: var(--blue); }

/* hero: side label, the live sketch inside her bubble */
.side-label { position: absolute; z-index: 2; right: 14px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; font: 600 11px/1 var(--mono); letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.75); white-space: nowrap; pointer-events: none; }

/* how it works: a manga page */

/* rules: the stamp, numbered rules */
.rules .wrap { position: relative; }
.stamp { position: absolute; right: var(--pad); top: -30px; width: 150px; height: 150px; transform: rotate(-12deg); animation: spin 40s linear infinite; }
.stamp circle { fill: none; stroke: var(--blue); stroke-width: 3; }
.stamp circle + circle { stroke-width: 2; stroke-dasharray: 3 5; }
.stamp text { font: 700 13.5px var(--mono); fill: var(--blue); letter-spacing: 0.07em; }
.stamp path:last-child { fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: square; }
.rule-grid { counter-reset: r; }
.rule { counter-increment: r; }
.rule h3::before { content: 'R-0' counter(r); display: block; font: 700 12px/1 var(--mono); color: var(--blue); letter-spacing: 0.1em; margin-bottom: 10px; }
.rule { transition: transform 0.2s, box-shadow 0.2s; }
.rule:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--blue); z-index: 1; background-color: var(--paper); }

/* marquee strips */
.strips { position: relative; height: 170px; overflow: hidden; background: var(--paper); }
.strips-foot { height: 110px; background: var(--paper); }
.strip { position: absolute; left: -5%; width: 110%; padding: 12px 0; white-space: nowrap; overflow: hidden; font: 900 34px/1 var(--display); font-stretch: 125%; letter-spacing: 0.01em; border-block: 3.5px solid var(--frame, var(--ink)); }
.strip > div { display: inline-block; animation: slide 36s linear infinite; will-change: transform; }
.strip-a { top: 26px; transform: rotate(-2.4deg); background: var(--blue); color: var(--paper); z-index: 1; }
.strip-b { top: 78px; transform: rotate(1.8deg); background: var(--paper); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.strip-b > div { animation-direction: reverse; animation-duration: 44s; }
.strips-foot .strip-a { top: 22px; transform: rotate(-1.4deg); background: var(--ink); }

/* try a plan: command-menu presets, Eliza reacts */
.preset { border-radius: 4px; transform: skewX(-11deg); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); color: var(--ink); }
.preset > span { display: inline-block; transform: skewX(11deg); }
.preset:hover { transform: skewX(-11deg) translateX(4px); }
.preset[aria-checked='true'] { background: var(--blue); color: var(--paper); transform: skewX(-11deg) translateX(8px); box-shadow: 6px 6px 0 var(--ink); }
.plan-say img { width: 76px; height: 76px; object-fit: cover; object-position: 50% 6%; border-radius: 0; border: 2.5px solid var(--paper); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); }
.plan-say { align-items: center; }
.wrow span { display: flex; align-items: center; }
.drift-table .tok, .md-row .tok { width: 1.45em; height: 1.45em; }

/* flywheel: a soft light under the pointer */
.blue::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle 300px at var(--mx, 72%) var(--my, 38%), rgba(150, 185, 255, 0.28), transparent 70%); pointer-events: none; }

/* reveals (only when the script is running) */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js h2.reveal { transform: translateX(-34px) skewX(-9deg); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.6s cubic-bezier(.2, 1.2, .4, 1); }
.js h2.reveal.in { transform: none; transition: opacity 0.35s, transform 0.55s cubic-bezier(.2, 1.3, .4, 1); }

.legal b { color: #c9d2ff; }

@media (max-width: 1080px) {
  .stamp { width: 110px; height: 110px; top: -50px; }
}
@media (max-width: 760px) {
  .x-link { display: none; }
  .side-label { display: none; }
  .art-plan span { font-size: 8.5px; letter-spacing: -0.02em; }
  .stamp { display: none; }
  .strips { height: 130px; }
  .strip { font-size: 24px; padding: 9px 0; }
  .strip-b { top: 66px; }
  .strips-foot { height: 84px; }
  .plan-say img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js h2.reveal { opacity: 1; transform: none; }
}

/* ============================================================ refinement pass (2026-11-16, later) */
/* Fewer devices: no screentone, no offset shadows, no dashed rules, no stickers. Depth comes from layout and type. */
.btn-paper, .btn-blue, .btn-paper:hover { box-shadow: none; }
.btn-paper:hover { background: var(--blue-soft); }
.btn-blue:hover { background: var(--blue-deep); }
.hero h1 { text-shadow: none; }
.hero h1 em { box-shadow: none; }
.eyebrow { border: 0; background: transparent; padding: 0; letter-spacing: 0.06em; }
.ca-chip, .x-link { border-width: 1px; }
.ticker { border-top-width: 1px; }

/* section labels: a short rule and plain small caps, not a chip */
.kicker { display: flex; align-items: center; gap: 12px; border: 0; padding: 0; border-radius: 0; font-size: 12px; letter-spacing: 0.16em; }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; flex: none; }
.page:nth-of-type(odd) { background: var(--paper); }
.page + .page { border-top: 1px solid var(--line); }

/* how it works: plain frames, straight on the grid */
.panel-art { border-top: 1px solid var(--line); }
.art-plan { border-top: 0; }

/* rules: an editorial list, not a grid of boxes */
.stamp { display: none; }
.rule-grid { display: block; border: 0; border-top: 2px solid var(--frame, var(--ink)); background: transparent; margin-top: 40px; }
.rule { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 8px 36px; align-items: baseline; padding: 22px 0; border: 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; transition: none; }
.rule:hover { transform: none; box-shadow: none; }
.rule h3 { display: flex; gap: 16px; align-items: baseline; font-size: 22px; }
.rule h3::before { content: counter(r, decimal-leading-zero); display: inline; margin: 0; font: 700 13px/1 var(--mono); color: var(--blue); letter-spacing: 0.06em; }
.rule p { font-size: 16px; }
.rule code { margin: 0; text-align: right; color: var(--muted); white-space: nowrap; }

/* try a plan, token, code, faq: flat surfaces and hairlines */
.plan-out, .move, .token-card, .code { box-shadow: none; border-width: 2px; }
.code { border: 0; border-radius: 10px; }
.plan-say { border-bottom-width: 2px; }
.plan-say img { box-shadow: none; transform: none; border-width: 2px; }
.preset, .preset[aria-checked='true'], .preset:hover { box-shadow: none; border-width: 1.5px; }
.uses li { border-left-width: 3px; background: transparent; padding: 4px 0 4px 18px; }
.faq { gap: 0; border-top: 2px solid var(--frame, var(--ink)); max-width: 900px; }
.faq details { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq summary { padding: 18px 0; }
.faq details p { padding: 0 0 18px; max-width: 72ch; }

/* one marquee band; motion without confetti */
.strip-b, .strips-foot { display: none; }
.strips { height: 104px; }
.strip { border-block-width: 2px; font-size: 26px; padding: 10px 0; }
.strip-a { top: 24px; transform: rotate(-1.2deg); }
.motion b { display: none; }
.fly-stats, .fly-stats div { border-width: 1px; }
.chat { border-width: 2px; border-radius: 14px; box-shadow: 0 18px 50px rgba(6, 16, 63, 0.28); }

@media (max-width: 1080px) {
  .rule { grid-template-columns: 240px minmax(0, 1fr); }
  .rule code { grid-column: 2; text-align: left; }
}
@media (max-width: 760px) {
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .rule code { grid-column: auto; }
  .rule code { text-align: left; }
  .strips { height: 84px; }
  .strip { font-size: 20px; }
  .strip-a { top: 20px; }
}

/* ============================================================ components, final (one definition each) */
/* hero: what Eliza is saying, with a live sketch of the basket */
.bubble { position: absolute; z-index: 3; right: 5%; top: 56%; width: 296px; background: var(--paper); color: var(--ink); border: 2px solid var(--frame, var(--ink)); border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 14px 40px rgba(3, 18, 110, 0.35); font: 600 15px/1.35 var(--text); transform-origin: 14% 0; animation: pop 0.3s cubic-bezier(.2, 1.2, .4, 1); }
.bubble[hidden] { display: none; }
.bubble::before { content: ''; position: absolute; left: 30px; top: -8px; width: 13px; height: 13px; background: var(--paper); border-left: 2px solid var(--frame, var(--ink)); border-top: 2px solid var(--frame, var(--ink)); transform: rotate(45deg); border-top-left-radius: 2px; }
.bubble-tag { display: block; font: 600 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.bubble p { min-height: 2.7em; }
.kbars { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.kbar { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font: 600 10.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--ink); }
.kbar .track { position: relative; height: 8px; background: var(--blue-soft); border-radius: 2px; }
.kbar .fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--blue); border-radius: 2px; transition: width 0.7s cubic-bezier(.3, 1.2, .5, 1), background-color 0.3s; }
.kbar .tick { position: absolute; top: -3px; bottom: -3px; left: calc(var(--t) - 1px); width: 2px; background: var(--ink); border-radius: 1px; }
.kbar.is-off .fill { background: var(--warn); }
.kbar.is-rest { opacity: 0.4; }

/* how it works: three frames on one grid */
.manga { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; margin-top: 48px; }
.mp { position: relative; background: var(--paper); border: 2.5px solid var(--frame, var(--ink)); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mp .num { font: 900 52px/1 var(--display); font-stretch: 125%; color: var(--blue); }
.mp p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.mp .panel-art { margin-top: 8px; }
.mp-1 { grid-row: 1 / span 2; padding-bottom: 0; }
.mp-2, .mp-3 { display: grid; grid-template-columns: minmax(0, 1fr) 148px; column-gap: 24px; row-gap: 12px; align-content: start; }
.mp-2 > *, .mp-3 > * { grid-column: 1; }
.mp-2 > .panel-art, .mp-3 > .panel-art { grid-column: 1 / -1; }
.cut { margin: 0; overflow: hidden; background: var(--blue); border: 2.5px solid var(--frame, var(--ink)); }
.cut img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.mp-2 > .cut, .mp-3 > .cut { grid-column: 2; grid-row: 1 / span 3; width: 148px; height: 148px; align-self: start; }
.cut-big { position: relative; flex: 1 1 320px; min-height: 320px; margin: 16px -28px 0; border-width: 2.5px 0 0; }
.cut-big img { position: absolute; inset: 0; object-position: 50% 10%; }
.balloon { position: absolute; left: 22px; top: 22px; max-width: 200px; background: var(--paper); border: 2.5px solid var(--frame, var(--ink)); border-radius: 16px; padding: 12px 16px; font: 700 15px/1.3 var(--text); color: var(--ink); }
.balloon::after { content: ''; position: absolute; right: 26px; bottom: -8.5px; width: 13px; height: 13px; background: var(--paper); border-right: 2.5px solid var(--frame, var(--ink)); border-bottom: 2.5px solid var(--frame, var(--ink)); transform: rotate(45deg); }
.js .mp-2.reveal.in { transition-delay: 0.1s; }
.js .mp-3.reveal.in { transition-delay: 0.2s; }

@media (min-width: 761px) and (max-width: 1240px) {
  .bubble { right: 3%; top: 60%; width: 252px; font-size: 14px; }
}
@media (max-width: 1080px) {
  .manga { grid-template-columns: 1fr; }
  .mp-1 { grid-row: auto; }
}
@media (max-width: 760px) {
  .bubble { right: 12px; top: auto; bottom: 92px; width: min(270px, 70%); font-size: 13.5px; padding: 12px 13px 13px; }
  .bubble p { min-height: 4.05em; }
  .manga { gap: 18px; margin-top: 32px; }
  .mp { padding: 20px; }
  .mp .num { font-size: 42px; }
  .mp-2, .mp-3 { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 16px; }
  .mp-2 > .cut, .mp-3 > .cut { width: 96px; height: 96px; grid-row: 1 / span 2; }
  .cut-big { margin: 12px -20px 0; flex-basis: 260px; min-height: 260px; }
  .balloon { left: 14px; top: 14px; max-width: 168px; font-size: 13.5px; padding: 10px 13px; }
}

/* details */
.drift-table td:first-child { border-left: 4px solid var(--sw, transparent); padding-left: 12px; }
.drift-table th:first-child { padding-left: 16px; }
.sw { display: none; }
.motion i.streak { display: none; }
.token-facts div { align-items: center; min-height: 50px; padding: 0; }
.token-facts dd a { text-underline-offset: 3px; }
@media (max-width: 1080px) { .rule code { white-space: normal; } }
@media (max-width: 760px) { .token-facts div { align-items: flex-start; padding: 12px 0; min-height: 0; } }
.preset:hover, .preset[aria-checked='true'] { transform: skewX(-11deg); }
.bubble p { display: flex; align-items: center; }
@media (max-width: 760px) {
  .mp-2 > p, .mp-3 > p { grid-column: 1 / -1; }
  .presets { gap: 10px; }
}

/* ============================================================ launch by reply (one definition each) */
.launch-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.order { margin-top: 30px; border-top: 2px solid var(--frame, var(--ink)); max-width: 560px; }
.order-line { margin: 0; padding: 18px 0; font: 600 clamp(15px, 1.5vw, 19px)/1.3 var(--mono); color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.order-line span { color: var(--blue); }
.order-more { margin: 0; }
.order-more div { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 6px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.order-more dt { font: 600 13.5px/1.4 var(--mono); color: var(--ink); }
.order-more dt i { font-style: normal; color: var(--muted); }
.order-more dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.launch-state { margin-top: 20px; display: flex; gap: 10px; align-items: baseline; font: 600 13px/1.5 var(--mono); color: var(--muted); max-width: 560px; }
.launch-state::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); transform: translateY(-1px); }
.launch-state.is-live { color: var(--blue); }
.launch-state.is-live::before { background: var(--blue); border-color: var(--blue); }
.clip { margin: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--blue); border-radius: 10px; }
.clip figcaption { margin-top: 12px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.launch-rules { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--frame, var(--ink)); }
.launch-rules li { padding: 20px 0 0; }
.launch-rules h3 { font-size: 19px; }
.launch-rules p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.launch-note { margin-top: 28px; max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.board { margin-top: 56px; }
.board[hidden] { display: none; }
.board h3 { font-size: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--frame, var(--ink)); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) 176px 150px auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.board .b-coin { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.board .b-coin b { font: 800 17px/1.2 var(--display); font-stretch: 108%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .b-coin span { flex: none; font: 700 12px/1 var(--mono); color: var(--blue); border: 1px solid var(--blue); border-radius: 4px; padding: 4px 6px; }
.board .b-by, .board time { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board time { font: 500 13px/1.3 var(--mono); }
.board button { justify-self: start; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font: 600 12.5px/1 var(--mono); color: var(--ink); cursor: pointer; }
.board button:hover { border-color: var(--blue); color: var(--blue); }
.board .b-links { display: flex; gap: 16px; justify-content: flex-end; font: 600 13px/1 var(--mono); white-space: nowrap; }
.board .b-links a { color: var(--blue); text-underline-offset: 4px; }
@media (max-width: 1080px) {
  .launch-grid { grid-template-columns: 1fr; gap: 40px; }
  .launch-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-rules li:nth-child(n + 3) { margin-top: 20px; border-top: 1px solid var(--line); }
  .board li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .board .b-coin { grid-column: 1 / -1; flex-wrap: wrap; row-gap: 6px; }
  .board .b-coin b { white-space: normal; overflow: visible; }
  .board .b-by { grid-column: 1; }
  .board time { grid-column: 2; justify-self: end; }
  .board button { grid-column: 1; }
  .board .b-links { grid-column: 2; align-self: center; }
}
@media (max-width: 760px) {
  .order-more div { grid-template-columns: 1fr; gap: 4px; }
  .launch-rules { grid-template-columns: 1fr; margin-top: 40px; }
  .launch-rules li:nth-child(n + 2) { margin-top: 18px; border-top: 1px solid var(--line); }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav { gap: 15px; margin-left: 12px; }
  .nav a { font-size: 14px; }
}

/* ============================================================ theme switch and dark theme */
/* Two inks stay two inks: the blue fields (header, hero, flywheel, the app's backdrop) are the same in both themes.
   What changes is the paper: in the dark theme every paper surface becomes deep navy and its ink becomes light.
   The surfaces are re-inked by giving them their own values of the same variables, so each component keeps its one
   definition above. Solid blue pieces inside a dark surface (her speech bar, the chosen preset) keep the brand blue. */
:root { --tone-0: #c7d2ff; --tone-1: #06103f; --tone-2: #0b35f1; --tone-3: #8ea3ff; --tone-4: #0622a6; --tone-5: #4f6ef7; }
.theme-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.75); background: var(--blue); color: var(--paper); cursor: pointer; }
.theme-btn:hover { background: var(--paper); color: var(--blue); }
.theme-btn .i-sun { display: none; }
:root[data-theme='dark'] .theme-btn .i-sun { display: block; }
:root[data-theme='dark'] .theme-btn .i-moon { display: none; }

:root[data-theme='dark'] { color-scheme: dark; }
:root[data-theme='dark'] body:not(.app-page) { background: #080d27; }
:root[data-theme='dark'] :is(.page, .strips, .ticker, .chat, .card, .banner, .dlg, .bubble) {
  --paper: #080d27; --paper-2: #0c1332; --ink: #eef1ff; --muted: #a6b0d9; --line: rgba(151, 170, 255, 0.2);
  --blue: #8da2ff; --blue-soft: #18235a; --warn: #ff9a6b;
  --tone-1: #5a69ad; --tone-2: #3f63ff; --tone-4: #2a44c9;
  --frame: rgba(214, 222, 255, 0.46); /* frames and rules: the ink, drawn lighter than the words */
}
/* text that sets no colour of its own takes the surface's ink (not the page's, which stays the light theme's) */
:root[data-theme='dark'] :is(.page, .strips, .chat, .card, .banner) { color: var(--ink); }
:root[data-theme='dark'] :is(.plan-say, .chat-head, .msg.me, .preset[aria-checked='true'], .btn-blue, .art-plan span:nth-child(odd), .panel-art code.hi, .strip-a, .dlg-form header, .banner b) { --blue: #0b35f1; --paper: #ffffff; }
:root[data-theme='dark'] .banner.warn b { color: #2a0f05; }
:root[data-theme='dark'] .code { background: #0c1436; box-shadow: none; outline: 1px solid var(--line); }
:root[data-theme='dark'] .cut, :root[data-theme='dark'] .clip video { background: #0b35f1; }
:root[data-theme='dark'] .dlg { background: var(--paper); }
:root[data-theme='dark'] .chat-form input { background: var(--paper-2); }
:root[data-theme='dark'] .chat { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
:root[data-theme='dark'] .bubble { box-shadow: 0 14px 40px rgba(2, 8, 60, 0.5); }
:root[data-theme='dark'] .md-meta span.off { background: #3b1d12; }
:root[data-theme='dark'] .ticker { border-top-color: rgba(151, 170, 255, 0.35); }
:root[data-theme='dark'] .foot { border-top: 1px solid rgba(151, 170, 255, 0.16); }
