/* Arculus: "Night workshop". Navy graphite, cool text, blue accent. No external fonts or images. */
:root {
  --bg: #090d16;
  --bg-2: #0e1422;
  --surface: #131a2b;
  --surface-2: #1a2338;
  --line: #26324d;
  --text: #e8edf7;
  --muted: #a0aec6;
  --accent: #7ae5f5;
  --accent-ink: #060c1e;
  --ok: #5fd6b8;
  --warn: #a9eefa;
  --bad: #ff8a73;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 14px;
  --wrap: 1160px;
  --grid: rgba(255, 255, 255, 0.035);
  --spot: rgba(122,229,245, 0.2);
  --mask: #000000;
  --shadow-lg: rgba(0, 0, 0, 0.45);
  --shine: rgba(255, 255, 255, 0.35);
  --glow: rgba(122,229,245, 0.14);
  --bar-bg: rgba(9, 13, 22, 0.86);
  --print-bg: #ffffff;
  --print-text: #000000;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); }
svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--sans); line-height: 1.08; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.tag { display: inline-block; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }
.small { font-size: .9rem; color: var(--muted); }
.mono { font-family: var(--mono); }

/* Header */
.notice { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.4; }
.notice[hidden] { display: none; }
.notice-in { display: flex; align-items: center; gap: 0.75rem 1rem; min-height: 2.25rem; padding-block: 0.4rem; }
.notice p { margin: 0; flex: 1; color: var(--muted); }
.notice-link { color: var(--accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.notice-link:hover { text-decoration: underline; }
.notice-x { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.notice-x:hover { color: var(--text); background: var(--line); }
@media (max-width: 640px) { .notice-in { flex-wrap: wrap; } .notice p { flex-basis: calc(100% - 2.5rem); } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bar-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { text-decoration: none; color: var(--text); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.4rem/1 var(--sans); letter-spacing: -.04em; color: var(--text); }
.brand-mark { display: block; width: 24px; height: 48px; object-fit: contain; flex: none; }
.footer-brand { display: inline-block; margin-bottom: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-block; padding: .55rem .75rem; color: var(--muted); text-decoration: none; font-size: .95rem; border-radius: 8px; }
.nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.lang-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .5rem .9rem; font: inherit; cursor: pointer; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; }
  .js .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; }
  .nav-cta { justify-content: space-between; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.4rem; border-radius: 10px; font: 600 1rem/1.1 var(--sans); text-decoration: none; border: 1.5px solid var(--text); cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; min-height: 40px; }
.btn.is-off { opacity: .6; cursor: not-allowed; border-style: dashed; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }

/* Hero and pages */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 2.5rem; background: radial-gradient(60rem 28rem at 78% 0%, var(--glow), transparent 60%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 56px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 100%; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.card-art { width: 100%; max-width: 470px; margin-inline: auto; display: block; }
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 56px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; margin-top: 2.5rem; }
.facts > div { padding: 1.1rem 1.3rem; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font: 600 1.35rem var(--mono); color: var(--accent); }
.facts span { color: var(--muted); font-size: .92rem; }

.section { padding: clamp(2.75rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.split { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--accent); }
.card .no { font: 500 .8rem var(--mono); color: var(--accent); display: block; margin-bottom: .75rem; }
.price { font: 700 2.2rem var(--sans); letter-spacing: -.03em; color: var(--text); margin: 0 0 .25rem; }
.price small { font: 400 .95rem var(--sans); color: var(--muted); letter-spacing: 0; }

.panel { padding: 1.6rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.panel h3 { font-size: 1.3rem; }
.panel-ok { border-top: 3px solid var(--ok); }
.panel-no { border-top: 3px solid var(--bad); }
.tick, .cross { padding: 0; list-style: none; margin: 0; }
.tick li, .cross li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: var(--muted); }
.tick li::before { content: "+"; position: absolute; left: 0; color: var(--ok); font: 700 1.1rem var(--mono); }
.cross li::before { content: "×"; position: absolute; left: .05rem; color: var(--bad); font: 700 1.2rem var(--mono); line-height: 1.4; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.steps li::before { content: "0" counter(s); display: block; font: 500 .85rem var(--mono); color: var(--accent); margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.25rem; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .5rem 1rem; }
.chips b { font: 600 .85rem var(--mono); color: var(--accent); margin-right: .4rem; }
.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.limits li { padding: 1.3rem; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r); background: var(--surface); }
.limits h3 { margin-bottom: .3rem; }
.limits p { margin: 0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody th { font-weight: 600; }
td { color: var(--muted); }
tr:last-child > * { border-bottom: 0; }
.spec th[scope=row] { width: 28%; }
.tk { font: 500 .78rem var(--mono); color: var(--accent); margin-left: .35rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font: 600 .82rem var(--mono); white-space: nowrap; }
.pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); }
.pill-part { color: var(--warn); }
.pill-no { color: var(--bad); }

/* Callout, FAQ, glossary, text */
.callout { padding: 1.1rem 1.3rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-top: 1.5rem; }
.callout-warn { border-left: 3px solid var(--warn); }
.callout strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; }
.callout p { color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 600 1.1rem var(--sans); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 400 1.5rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 1rem; max-width: 70ch; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose p, .prose li { color: var(--muted); }
.glossary { display: grid; gap: 1rem; max-width: 72ch; margin: 0; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: .1rem 0 0; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.toc a:hover { color: var(--text); border-color: var(--accent); }
.crumbs { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Forms and filters */
.filters { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; margin-bottom: 1rem; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; min-height: 44px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
#biz-status { margin-left: .75rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-warn { font: 600 1.25rem var(--sans); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.footer-warn strong { color: var(--accent); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 1.5rem 0; }
.foot-h { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .linklike { color: var(--text); }

/* Cookie */
.cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; width: min(960px, calc(100% - 2rem)); background: var(--surface-2); border: 1px solid var(--muted); border-radius: var(--r); padding: .75rem 1.1rem; z-index: 90; display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1rem; margin: 0; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.cookie .actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.cookie .btn { padding: .45rem .9rem; font-size: .9rem; }
@media print { .site-header, .cookie, .notice { display: none; } body { background: var(--print-bg); color: var(--print-text); } }

/* ---------- 3D scenes ---------- */
.art3d { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 440 / 340; }
.art3d > svg { width: 100%; height: 100%; display: block; max-width: none; transition: opacity 0.9s ease; }
.art3d .scene-canvas { position: absolute; inset: -14%; width: 128%; height: 128%; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; }
.art3d.is-3d .scene-canvas { opacity: 1; }
.art3d.is-3d > svg { opacity: 0; }

/* ---------- Motion ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--text)); pointer-events: none; }
.js .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotateX(-40deg); filter: blur(10px); transform-origin: 50% 100%; }
.js .is-ready .w { animation: wordIn 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.js .seq { opacity: 0; transform: translateY(18px); animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.js .rv { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .rv.in.done { transition: transform 0.25s ease-out, border-color 0.2s ease; transition-delay: 0ms; }
.card, .panel, .steps li, .limits li { position: relative; }
.card::after, .panel::after, .steps li::after, .limits li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 70%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card:hover::after, .panel:hover::after, .steps li:hover::after, .limits li:hover::after { opacity: 1; }
.card:hover, .steps li:hover { border-color: var(--accent); }
.hero { position: relative; animation: gridmove 40s linear infinite; }
@keyframes gridmove { to { background-position: 0 0, 0 56px, 56px 0; } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), var(--spot), transparent 70%); opacity: 0.8; }
.hero > .wrap { position: relative; z-index: 1; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, var(--shine), transparent); transform: skewX(-20deg); transition: left 0.7s ease; }
.btn-primary:hover::after { left: 130%; }
.chips.marquee { flex-wrap: nowrap; overflow: hidden; padding: 0; -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 8%, var(--mask) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 8%, var(--mask) 92%, transparent); }
.chips .track { display: flex; gap: 0.6rem; width: max-content; animation: marq 42s linear infinite; }
.chips.marquee:hover .track { animation-play-state: paused; }
.chips .track li { white-space: nowrap; }
@keyframes marq { to { transform: translateX(calc(-50% - 0.3rem)); } }
.facts b { background: linear-gradient(90deg, var(--accent), var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .js .w, .js .seq, .js .rv { opacity: 1; transform: none; filter: none; }
  .hero { animation: none; }
  .chips .track { animation: none; }
}

.hero-grid > div:first-child { position: relative; z-index: 2; }
.hero, .section { overflow-x: clip; }
html, body { overflow-x: clip; }

.art3d > .art-img { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; object-fit: contain; display: block; transition: opacity 0.9s ease; pointer-events: none; }
.art3d.is-3d > .art-img { opacity: 0; }
.art3d > .art-img, .art3d .scene-canvas { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, var(--mask) 52%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, var(--mask) 52%, transparent 100%); }

/* ---------- Token icons ---------- */
.tk-ico { width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; margin-right: 0.55rem; background: var(--surface-2); }
.chips li .tk-ico { margin-right: 0.5rem; }

/* ---------- Platform preview (a screenshot-like app UI) ---------- */
.sim { display: grid; gap: 1.1rem; }
.sim-win { position: relative; width: 100%; max-width: 1000px; margin-inline: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; box-shadow: 0 50px 100px var(--shadow-lg); }
.sim-win [data-root] { position: relative; height: 640px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.sim-win b { font-weight: 600; }
.sim-win em { font-style: normal; }
.sm-top { display: flex; align-items: center; gap: 1rem; height: 46px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); flex: none; }
.sm-dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--line); margin-right: 7px; }
.sm-name { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; font: 600 13px var(--sans); color: var(--muted); }
.sm-r { display: inline-flex; align-items: center; gap: 10px; }
.sm-net { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--mono); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: color 0.3s, border-color 0.3s; white-space: nowrap; }
.sm-net svg { width: 14px; height: 14px; color: var(--bad); }
.sm-net[data-state="on"] { color: var(--accent); border-color: var(--accent); }
.sm-net[data-state="on"] svg { color: var(--accent); animation: smPulse 1s ease-in-out infinite; }
@keyframes smPulse { 50% { opacity: 0.35; } }
.sm-lockbtn { color: var(--muted); display: inline-flex; }
.sm-body { flex: 1; display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.sm-side { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.sm-acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface); }
.sm-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sm-acct b { display: block; font-size: 13px; }
.sm-acct em { color: var(--muted); font-size: 11px; }
.sm-side nav { display: flex; flex-direction: column; gap: 3px; }
.sm-nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); transition: background 0.2s, color 0.2s, transform 0.15s; }
.sm-nav.on { background: var(--surface-2); color: var(--text); }
.sm-nav.hit { transform: scale(0.97); }
.sm-sec { margin-top: auto; display: flex; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ok); }
.sm-sec b { display: block; color: var(--text); font-size: 12.5px; }
.sm-sec em { color: var(--muted); font-size: 11px; }
.sm-content { position: relative; overflow: hidden; background: var(--bg-2); }
.sm-screen { position: absolute; inset: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.sm-screen.on { opacity: 1; transform: none; }
.sm-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sm-cap { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sm-big { display: flex; align-items: baseline; gap: 10px; }
.sm-big b { font: 700 28px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.up { color: var(--ok); }
.dn { color: var(--bad); }
.sm-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.sm-seg span { padding: 4px 11px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.sm-seg .on { background: var(--surface-2); color: var(--text); }
.sm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.sm-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.sm-chart { position: relative; height: 150px; }
.sm-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sm-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s ease; }
.sm-line.draw { stroke-dashoffset: 0; }
.sm-area { opacity: 0; transition: opacity 1.1s ease; }
.sm-area.in { opacity: 1; }
.sm-line.instant, .sm-area.instant, .sm-row.instant { transition: none; }
.sm-xh { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--muted); opacity: 0; }
.sm-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); opacity: 0; }
.sm-tip { position: absolute; left: 0; top: 0; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: 600 12px var(--mono); white-space: nowrap; opacity: 0; }
.sm-chart.hover .sm-xh, .sm-chart.hover .sm-dot, .sm-chart.hover .sm-tip { opacity: 1; }
.sm-donutc { display: flex; align-items: center; gap: 14px; }
.sm-donut { width: 112px; height: 112px; flex: none; }
.sm-seg-c { transition: stroke-dasharray 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sm-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; flex: 1; }
.sm-leg li { display: flex; align-items: center; gap: 7px; }
.sm-leg i { width: 9px; height: 9px; border-radius: 3px; }
.sm-leg em { margin-left: auto; color: var(--muted); }
.sm-assets { padding: 6px 10px; flex: 1; min-height: 0; overflow: hidden; }
.sm-ah, .sm-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 90px; align-items: center; gap: 10px; padding: 6px 8px; }
.sm-ah { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sm-row { border-radius: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s, background 0.2s; }
.sm-row.in { opacity: 1; transform: none; }
.sm-row.hl { background: var(--surface-2); }
.sm-asset { display: flex; align-items: center; gap: 10px; }
.sm-asset b { display: block; }
.sm-asset em, .sm-val em { color: var(--muted); font-size: 12px; }
.sm-val b { display: block; font-variant-numeric: tabular-nums; }
.sm-val em.up { color: var(--ok); }
.sm-val em.dn { color: var(--bad); }
.sm-hold { color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-spark { width: 80px; height: 26px; }
.sm-ti { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.sm-ti.sm-s { width: 26px; height: 26px; }
.sm-ti.sm-xs { width: 18px; height: 18px; vertical-align: -4px; }
.sm-recv { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.sm-qrc { display: grid; gap: 10px; justify-items: center; }
.sm-qr { width: 100%; aspect-ratio: 1; padding: 12px; border-radius: 12px; background: var(--text); }
.sm-qrsvg { width: 100%; height: 100%; display: block; }
.sm-qrsvg rect { fill: var(--bg); }
.sm-qrrow { opacity: 0; transition: opacity 0.3s ease; transition-delay: var(--d, 0ms); }
.sm-qrrow.in { opacity: 1; }
.sm-qrrow.instant { transition: none; }
.sm-badge { font: 500 11px var(--mono); color: var(--muted); }
.sm-addr { display: grid; gap: 10px; }
.sm-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); width: max-content; }
.sm-chip em { color: var(--muted); }
.sm-addrbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.sm-addrbox code { flex: 1; font: 500 13px var(--mono); overflow-wrap: anywhere; }
.sm-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--accent); transition: transform 0.15s; }
.sm-copy.hit { transform: scale(0.94); }
.sm-note, .sm-verify { display: flex; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 13px; }
.sm-note svg { flex: none; margin-top: 2px; }
.sm-verify { border: 1px solid var(--line); color: var(--ok); transition: background 0.3s; }
.sm-verify span { color: var(--text); }
.sm-verify.hl { background: var(--surface-2); }
.sm-slip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.sm-swapgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.sm-swapc { display: grid; gap: 4px; }
.sm-field { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color 0.25s, transform 0.15s; display: grid; gap: 6px; }
.sm-field.focus { border-color: var(--accent); }
.sm-field.hit { transform: scale(0.99); }
.sm-fl { display: flex; justify-content: space-between; align-items: center; }
.sm-bal, .sm-fiat { font-size: 12px; color: var(--muted); }
.sm-fr { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sm-tok { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: transform 0.15s, border-color 0.2s; }
.sm-tok.hit { transform: scale(0.96); border-color: var(--accent); }
.sm-tok em { color: var(--muted); display: inline-flex; }
.sm-amt { font: 600 28px var(--mono); text-align: right; min-height: 38px; font-variant-numeric: tabular-nums; }
.sm-field.focus .sm-amt::after { content: ""; display: inline-block; width: 2px; height: 26px; margin-left: 3px; background: var(--accent); vertical-align: -4px; animation: smBlink 0.9s steps(1) infinite; }
@keyframes smBlink { 50% { opacity: 0; } }
.quoting [data-out] { animation: smShimmer 0.9s ease-in-out infinite; }
@keyframes smShimmer { 50% { opacity: 0.3; } }
.sm-flip { justify-self: center; width: 36px; height: 36px; margin: -16px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--accent); position: relative; z-index: 1; }
.sm-cta { margin-top: 10px; text-align: center; padding: 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 700; transition: background 0.3s, color 0.3s, transform 0.15s; }
.sm-cta.ready { background: var(--accent); color: var(--accent-ink); }
.sm-cta.hit { transform: scale(0.98); }
.sm-details { display: grid; gap: 9px; opacity: 0.5; transition: opacity 0.4s; }
.quoted .sm-details { opacity: 1; }
.sm-dl { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sm-dl:last-child { border-bottom: 0; }
.sm-dl span { color: var(--muted); }
.sm-dl b { text-align: right; }
.sm-mono { font-family: var(--mono); }
.quoting .sm-details b { animation: smShimmer 0.9s ease-in-out infinite; }
.sm-picker { position: absolute; top: 64px; right: 20px; bottom: 20px; width: 330px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(14px) scale(0.98); pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 3; box-shadow: 0 24px 60px var(--shadow-lg); }
.sm-picker.open { opacity: 1; transform: none; }
.sm-ph { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.sm-search { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; background: var(--bg-2); }
.sm-picker ul { list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; scroll-behavior: smooth; }
.sm-prow { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; transition: background 0.15s, transform 0.15s; }
.sm-prow b { display: block; }
.sm-prow em { color: var(--muted); font-size: 12px; }
.sm-prow i { margin-left: auto; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-prow.hl { background: var(--surface-2); }
.sm-prow.hit { transform: scale(0.98); }
.sm-act { padding: 6px 10px; flex: 1; overflow: hidden; }
.sm-actrow { display: grid; grid-template-columns: 40px 1.5fr 1fr 1.1fr 130px; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--line); transition: background 0.2s, transform 0.4s, opacity 0.4s; }
.sm-actrow.new { animation: smIn 0.5s ease; }
@keyframes smIn { from { opacity: 0; transform: translateY(-10px); } }
.sm-actrow.sel, .sm-actrow.hit { background: var(--surface-2); }
.sm-aic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.sm-aic.recv { color: var(--ok); }
.sm-adesc b { display: block; }
.sm-adesc em, .sm-adate { color: var(--muted); font-size: 12.5px; }
.sm-aamt { font-variant-numeric: tabular-nums; font-weight: 600; }
.sm-aamt.up { color: var(--ok); }
.sm-st { justify-self: end; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.sm-st.ok { color: var(--ok); border-color: var(--ok); }
.sm-st.pend { color: var(--warn); border-color: var(--warn); }
.sm-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 310px; background: var(--bg); border-left: 1px solid var(--line); padding: 18px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); z-index: 3; }
.sm-drawer.open { transform: none; }
.sm-dh { display: flex; justify-content: space-between; margin-bottom: 14px; }
.sm-dtop { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sm-dtop .sm-st { margin-left: auto; }
.sm-lock, .sm-modal { position: absolute; left: 0; right: 0; bottom: 0; top: 46px; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.sm-lock { z-index: 9; background: var(--bg); }
.sm-modal { z-index: 7; background: var(--bar-bg); }
.sm-lock.on, .sm-modal.on { opacity: 1; }
.sm-passm { z-index: 8; }
.sm-donem { z-index: 8; }
.sm-lockc { width: min(340px, 90%); text-align: center; display: grid; gap: 12px; justify-items: center; }
.sm-lockc .sm-h4 { margin: 0; font-size: 24px; }
.sm-lockc p, .sm-lockc small, .sm-pc small { margin: 0; color: var(--muted); }
.sm-brand-mark { width: 14px; height: 28px; object-fit: contain; }
.sm-lockic .sm-brand-mark { width: 22px; height: 44px; }
.sm-lockic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.sm-field2 { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-2); transition: border-color 0.25s, transform 0.15s; }
.sm-field2.focus { border-color: var(--accent); }
.sm-field2.hit { transform: scale(0.99); }
.sm-pwd, .sm-pw { display: flex; justify-content: center; gap: 9px; }
.sm-pwd i, .sm-pw i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); transition: background 0.12s, border-color 0.12s, transform 0.12s; }
.sm-pwd i.on, .sm-pw i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.sm-cta2 { width: 100%; padding: 13px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: transform 0.15s; }
.sm-cta2.hit { transform: scale(0.98); }
.sm-mc { width: min(430px, 92%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; transform: translateY(12px); transition: transform 0.35s ease; box-shadow: 0 30px 70px var(--shadow-lg); }
.on > .sm-mc { transform: none; }
.sm-mh { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.sm-rv { display: grid; gap: 4px; }
.sm-rvl { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l i" "b i" "e i"; align-items: center; column-gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.sm-rvl span { grid-area: l; color: var(--muted); font-size: 12px; }
.sm-rvl b { grid-area: b; font: 700 20px var(--mono); }
.sm-rvl em { grid-area: e; color: var(--muted); font-size: 12px; }
.sm-rvl img { grid-area: i; width: 38px; height: 38px; border-radius: 50%; }
.sm-rvarrow { justify-self: center; color: var(--muted); margin: -2px 0; }
.sm-ck { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; transition: background 0.2s, transform 0.15s; }
.sm-ck.hit { transform: scale(0.99); }
.sm-ck i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); flex: none; position: relative; transition: background 0.2s, border-color 0.2s; }
.sm-ck.on i { background: var(--accent); border-color: var(--accent); }
.sm-ck.on i::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sm-pc { text-align: center; justify-items: center; }
.sm-pc p { margin: 0; font-weight: 600; }
.sm-dc { text-align: center; justify-items: center; }
.sm-dc .sm-h4 { margin: 0; font-size: 20px; }
.sm-dc p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.sm-okc svg { width: 64px; height: 64px; }
.sm-okc circle, .sm-okc path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sm-donem.on .sm-okc circle { animation: smDraw 0.7s ease forwards; }
.sm-donem.on .sm-okc path { animation: smDraw 0.5s 0.5s ease forwards; }
@keyframes smDraw { to { stroke-dashoffset: 0; } }
.sm-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.sm-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color 0.3s; }
.sm-steps li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: background 0.3s, border-color 0.3s; }
.sm-steps li.on { color: var(--text); }
.sm-steps li.on i { background: var(--ok); border-color: var(--ok); }
.sm-steps em { color: var(--muted); margin-left: 4px; font-family: var(--mono); font-size: 12px; }
.sm-hash { font: 500 12px var(--mono); color: var(--muted); }
.sm-toast { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 9px; align-items: center; padding: 10px 14px; border: 1px solid var(--ok); border-radius: 12px; background: var(--bg); color: var(--ok); opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s; z-index: 10; }
.sm-toast span { color: var(--text); }
.sm-toast.show { opacity: 1; transform: none; }
.sm-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 12; pointer-events: none; transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 4px 6px var(--shadow-lg)); color: var(--text); }
.sm-cursor svg { display: block; transition: transform 0.15s; }
.sm-cursor.press svg { transform: scale(0.78); }
.sim-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; }
.sim-pair { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 0.92rem var(--sans); cursor: pointer; min-height: 44px; }
.sim-pair:hover { border-color: var(--muted); }
.sim-pair[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 820px) {
  .sim-win [data-root] { height: 700px; }
  .sm-body { grid-template-columns: 1fr; }
  .sm-side { display: none; }
  .sm-grid { grid-template-columns: 1fr; }
  .sm-donutc { display: none; }
  .sm-ah, .sm-row { grid-template-columns: 1.5fr 1fr 80px; }
  .sm-ah span:nth-child(2), .sm-hold, .sm-spark { display: none; }
  .sm-recv, .sm-swapgrid { grid-template-columns: 1fr; }
  .sm-qrc { max-width: 230px; margin-inline: auto; }
  .sm-details { display: none; }
  .sm-picker { left: 14px; right: 14px; width: auto; top: 60px; }
  .sm-actrow { grid-template-columns: 36px 1fr 100px; }
  .sm-actrow .sm-adate, .sm-actrow .sm-st { display: none; }
  .sm-name { display: none; }
  .sm-drawer { width: 100%; }
}
[hidden] { display: none !important; }
.tk-none { display: inline-grid; place-items: center; font: 700 0.7rem var(--mono); color: var(--muted); border: 1px solid var(--line); }
.tk-none::after { content: attr(data-l); }

/* ---- Downloads page ---- */
.dl-head { position: relative; overflow: hidden; }
.dl-head::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.dl-pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.dl-pills li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; color: var(--muted); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0 1rem; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.dl-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.dl-card.is-rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.dl-top { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.dl-top h3 { margin: 0; font-size: 1.25rem; }
.dl-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); color: var(--accent); }
.dl-chip { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.dl-rec { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: .15rem .6rem; }
.dl-meta { display: grid; grid-template-columns: repeat(3, auto); gap: .5rem 1rem; margin: 0; padding: .8rem 0; border-block: 1px solid var(--line); }
.dl-meta dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl-meta dd { margin: .15rem 0 0; font-weight: 600; font-size: .95rem; }
.dl-sha { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; }
.dl-sha-l { font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.dl-sha code, .dl-cmd code { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); border-radius: 8px; padding: .4rem .55rem; }
.dl-btn { justify-content: center; margin-top: auto; }
.dl-file { margin: 0; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.dl-cmds { display: grid; gap: .6rem; margin: 1.5rem 0 1rem; }
.dl-cmd { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.dl-cmd span { font-weight: 600; font-size: .9rem; }
.dl-cmd code { white-space: normal; word-break: break-all; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } .dl-cmd { grid-template-columns: 1fr; } }

/* ---- Get started overlay ---- */
.start { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: var(--bar-bg); backdrop-filter: blur(8px); padding: 1rem; }
.start[hidden] { display: none; }
.start-open { overflow: hidden; }
.start-box { width: min(440px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.5rem; box-shadow: var(--shadow-lg); }
.start-box h2 { font-size: 1.4rem; margin: .8rem 0 .4rem; }
.start-ring svg { display: block; margin: 0 auto; }
.start-ring circle { fill: none; stroke-width: 3; }
.start-ring .r0 { stroke: var(--line); }
.start-ring .r1 { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 60 154; transform-origin: 40px 40px; animation: start-spin 1.1s linear infinite; }
.start-ring .lk { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2.4; }
.start-ring path.lk { fill: none; }
.start-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; min-height: 1.6rem; position: relative; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.start-steps li { display: none; }
.start-steps li.on { display: block; animation: start-in .35s both; }
.start-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.start-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.is-run .start-bar span { animation: start-fill 2.9s cubic-bezier(.4, 0, .2, 1) forwards; }
.start-code { margin: 0; font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.start-fail { animation: start-in .4s both; }
.start-fail .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
@keyframes start-spin { to { transform: rotate(360deg); } }
@keyframes start-fill { to { width: 100%; } }
@keyframes start-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .start-ring .r1 { animation: none; } .is-run .start-bar span { animation-duration: .8s; } }

.start-box { position: relative; padding-top: 2.4rem; }
.start-x { position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.start-x:hover { color: var(--text); background: var(--surface-2); }
.start-icon svg { display: block; margin: 0 auto .6rem; }
.start-icon rect, .start-icon path, .start-icon .al { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.start-icon .d { fill: var(--muted); stroke: none; }
.start-icon .al { stroke: var(--accent); }
.start-icon circle.d.al { fill: var(--accent); }
.start-fail h2 { font-size: 1.55rem; line-height: 1.2; margin: .6rem 0 .7rem; }
.start-fail > p { color: var(--muted); margin: 0 0 1.4rem; }
.start-retry { gap: .55rem; padding-inline: 1.6rem; }
.start-retry svg { transition: transform .5s; }
.start-retry:hover svg { transform: rotate(180deg); }
.start-alt { margin: 1.4rem 0 0 !important; font-size: .9rem; }
.start-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Mobile adaptation ---- */
@media (max-width: 640px) {
  /* Tables with a header row become stacked cards (labels come from data-label, set in site.js) */
  .table-wrap table:not(.spec), .table-wrap table:not(.spec) tbody, .table-wrap table:not(.spec) tr, .table-wrap table:not(.spec) td, .table-wrap table:not(.spec) th[scope=row] { display: block; width: auto; }
  .table-wrap table:not(.spec) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table:not(.spec) tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .table-wrap table:not(.spec) tr:last-child { border-bottom: 0; }
  .table-wrap table:not(.spec) th[scope=row] { padding: 0 0 .5rem; border: 0; font-size: 1.02rem; }
  .table-wrap table:not(.spec) td { padding: .35rem 0; border: 0; }
  .table-wrap table:not(.spec) td[data-label]::before { content: attr(data-label); display: block; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
  /* Calls to action fill the width */
  .actions .btn, .hero .btn, .card .btn { width: 100%; justify-content: center; }
  .site-footer li { padding-block: .3rem; }
  .site-footer a, .site-footer .linklike { display: inline-block; padding-block: .25rem; }
  .cookie { bottom: .5rem; width: calc(100% - 1rem); padding: .75rem .9rem; }
  .cookie .actions { width: 100%; }
  .cookie .btn { flex: 1; width: auto; justify-content: center; }
  .dl-rec { margin-left: 0; flex-basis: 100%; text-align: center; }
  .dl-head::after { display: none; }
  .dl-meta { grid-template-columns: repeat(3, 1fr); }
  .dl-notice { margin-top: 1rem; }
  /* App simulation */
  .sm-h { flex-wrap: wrap; gap: 10px; }
  .sm-seg { display: none; }
  .sm-ah, .sm-row { grid-template-columns: 1fr auto; }
  .sm-ah span:nth-child(n+3) { display: none; }
  .sm-val { text-align: right; }
  .sm-asset { min-width: 0; }
  .sm-asset b { white-space: nowrap; }
}
@media (max-width: 380px) { .btn { padding-inline: 1.1rem; } }
.dl-notice { display: none; }
.dl-notice.is-on { display: block; }

/* ---- Legal documents ---- */
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 1.1rem 1.4rem; margin: 1rem 0 2rem; max-width: 70ch; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; padding: .15rem 0; }
.toc a { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-doc section { scroll-margin-top: 5rem; }
.legal-doc h3 { margin: 1.4rem 0 .3rem; font-size: 1.1rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3rem; }
.legal-doc li { margin: .35rem 0; }
.legal-doc .table-wrap { margin: 1rem 0; max-width: 100%; }
.legal-doc .table-wrap table { font-size: .92rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
