/* CyclePack landing page: index.html only (whitepaper.html keeps style.css). No web fonts and
   no external request. Light tokens on :root, dark ones under prefers-color-scheme: dark.
   WCAG 2.x contrast, worst case over bg, surface and surface-2; re-check after any change.
   light  text 16.2 · muted 6.5 · accent 4.8 · ok 4.7 · em 5.3 · plan 6.1 · err 5.8 · line-strong 3.4 · on-accent 5.5
   dark   text 13.9 · muted 6.7 · accent 8.7 · ok 8.2 · em 9.2 · plan 7.8 · err 5.9 · line-strong 3.4 · on-accent 10.1
   console, both themes (con-bg / con-surface): text 16.0 / 14.6 · muted 6.2 / 5.6 · prompt 10.1 / 9.2 · ok 9.5
   err 7.5 · em 10.6 · syntax 5.6 or more · con-line-strong 4.1 · selected-tab mark (con-prompt) 9.2 or more
   Motion marks a change of state only, and prefers-reduced-motion: reduce removes all of it. */
:root { color-scheme: light dark; --bg: #f7f9fb; --surface: #ffffff; --surface-2: #eef2f6; --line: #d5dde6; --line-strong: #74839a; --text: #0e1621; --muted: #4a5868; --accent: #0b6fa8; --accent-soft: rgba(11, 111, 168, 0.1); --on-accent: #ffffff; --ok: #0f7b4d; --em: #8a5a00; --plan: #5a4bb0; --err: #b42318; --glow-a: rgba(11, 111, 168, 0.14); --glow-b: rgba(121, 40, 202, 0.1); --shadow: 0 1px 2px rgba(14, 22, 33, 0.06), 0 8px 24px rgba(14, 22, 33, 0.06); --con-bg: #0d1117; --con-surface: #161b22; --con-line: #30363d; --con-line-strong: #6e7681; --con-text: #e6edf3; --con-muted: #8b949e; --con-prompt: #5cc8ff; --con-ok: #3fcf8e; --con-err: #ff7b72; --con-em: #f2b84b; --syn-kw: #c9a0ff; --syn-str: #a5e3b0; --syn-num: #79c0ff; --syn-fn: #ffd479; --syn-type: #7ee7d1; --syn-com: #8b949e; --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; --t-xs: clamp(.8rem, .78rem + .1vw, .85rem); --t-sm: clamp(.875rem, .85rem + .15vw, .94rem); --t-base: clamp(1rem, .96rem + .2vw, 1.125rem); --t-lg: clamp(1.2rem, 1.1rem + .45vw, 1.4rem); --t-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); --t-h2: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem); --t-h1: clamp(2.1rem, 1.5rem + 2.2vw, 3.3rem); --t-code: clamp(.8125rem, .79rem + .12vw, .875rem); --gutter-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left)); --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right)); --section-pad: clamp(3rem, 2rem + 5vw, 7rem); --radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f14; --surface: #121820; --surface-2: #18202b; --line: #263140; --line-strong: #62748c; --text: #e6edf3; --muted: #9aa7b4; --accent: #5cc8ff; --accent-soft: rgba(92, 200, 255, 0.12); --on-accent: #04121c; --ok: #3fcf8e; --em: #f2b84b; --plan: #b4a8ff; --err: #ff6b6b; --glow-a: rgba(92, 200, 255, 0.12); --glow-b: rgba(180, 168, 255, 0.1); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--t-base); line-height: 1.6; overflow-x: clip; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd, samp { font-family: var(--mono); }
:not(pre) > code { font-size: .88em; padding: .08em .35em; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 3000; padding: .6rem 1rem; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: var(--t-sm); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 36px; padding: .4rem .8rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-arrow { font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--t-xs); line-height: 1.5; white-space: nowrap; }
.chip.mono { font-family: var(--mono); font-size: .78rem; }
.st-native, .st-emulated, .st-planned { border-color: currentColor; }
.st-native::before, .st-emulated::before, .st-planned::before { content: ""; display: inline-block; flex: none; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid currentColor; }
.st-native { color: var(--ok); }
.st-native::before { background: currentColor; }
.st-emulated { color: var(--em); }
.st-planned { color: var(--plan); border-style: dashed; }
.st-planned::before { border-style: dashed; }
.eyebrow { font-family: var(--mono); font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; display: block; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; }
.site-nav a { display: block; padding: .5rem .6rem; border-radius: 8px; color: var(--muted); font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; margin-left: auto; }
.version-badge { display: inline-block; min-inline-size: 7ch; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-family: var(--mono); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.site-nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.site-nav-toggle svg { width: 20px; height: 20px; }
.site-nav-toggle .icon-close { display: none; }
.nav-open .site-nav-toggle .icon-open { display: none; }
.nav-open .site-nav-toggle .icon-close { display: block; }
@media (max-width: 899.98px) {
  .header-inner { flex-wrap: wrap; column-gap: .6rem; }
  .header-actions { order: 1; }
  .site-nav-toggle { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: .5rem; }
  .js .site-nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; overflow: visible; padding-bottom: 1rem; }
  .js .nav-open .site-nav ul { flex-direction: column; }
  .js .nav-open .site-nav a { padding: .75rem .6rem; font-size: var(--t-base); }
}
@media (max-width: 599.98px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 380px) {
  .header-actions .version-badge { display: none; }
}
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.section-head h2 { font-size: var(--t-h2); margin-top: .5rem; }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }
.section-head p.body-copy { font-size: var(--t-base); line-height: 1.6; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, .9rem + .8vw, 1.6rem); }
.card h3 { font-size: var(--t-lg); }
.card p { color: var(--muted); margin-top: .6rem; font-size: var(--t-sm); line-height: 1.6; }
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid-cards > * { min-width: 0; }
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem); isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%); opacity: .7; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 60rem; height: 36rem; right: -20rem; top: -8rem; background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 30% 70%, var(--glow-b), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.hero-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; padding: .3rem .8rem .3rem .35rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.hero-pill .version-badge { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.hero h1 { font-size: var(--t-h1); margin-top: 1.25rem; }
.hero h1 .kicker { display: block; margin-top: .6rem; font-size: .5em; letter-spacing: -0.01em; color: var(--muted); font-weight: 600; }
.lede { margin-top: 1.25rem; font-size: var(--t-lg); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; list-style: none; }
.hero-chips li { font-family: var(--mono); font-size: .78rem; padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.console { min-width: 0; background: var(--con-bg); color: var(--con-text); border: 1px solid var(--con-line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.console :focus-visible { outline-color: var(--con-prompt); }
.console :is(.code, [role="tabpanel"], .console-tab):focus-visible { outline-offset: -3px; }
.console a { color: var(--con-prompt); }
.console :not(pre) > code { background: var(--con-surface); border-color: var(--con-line); color: var(--con-text); }
.console .btn-secondary { background: transparent; color: var(--con-text); border-color: var(--con-line-strong); }
.console .btn-secondary:hover { color: var(--con-prompt); border-color: var(--con-prompt); }
.code-copy-btn { margin-left: auto; }
html:not(.js) .code-copy-btn, html:not(.js) .console-tabs { display: none; }
.console-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--con-line); background: var(--con-surface); }
.console-dots { display: flex; gap: 6px; flex: none; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--con-line); }
.console-caption { font-family: var(--mono); font-size: .75rem; color: var(--con-muted); min-width: 0; }
.console-tabs { display: flex; gap: .25rem; padding: .5rem .75rem 0; border-bottom: 1px solid var(--con-line); overflow-x: auto; overflow-y: hidden; }
.console-tab { appearance: none; border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--con-muted); font-family: var(--mono); font-size: .82rem; padding: .5rem .9rem; border-radius: 8px 8px 0 0; cursor: pointer; min-height: 40px; }
.console-tab:hover { color: var(--con-text); }
.console-tab[aria-selected="true"] { color: var(--con-text); border-color: var(--con-line); box-shadow: inset 0 -2px 0 var(--con-prompt); }
.console-panes { display: grid; grid-template-columns: minmax(0, 1fr); }
.console-pane { padding: 1rem 1rem 1.1rem; min-width: 0; }
.js .console-panes > .console-pane { grid-area: 1 / 1; }
.js .console-panes > .console-pane:not(.active), .console-pane.is-inactive { visibility: hidden; }
.js :is(.ide-pane, .engine-pane):not(.active) { display: none; }
.console-pane-title { font-family: var(--mono); font-size: .75rem; color: var(--con-muted); margin-bottom: .5rem; }
.js .console-pane-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.console-note { margin-bottom: .75rem; font-size: .8rem; color: var(--con-muted); }
.run-exit { display: flex; justify-content: flex-end; margin: .4rem 0 0; }
.run + .run { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--con-line); }
.tx { margin: 0; font-size: var(--t-code); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--con-text); }
.tx.tx-table { white-space: pre; overflow-x: auto; overflow-wrap: normal; padding-bottom: .25rem; }
.tx .p { color: var(--con-prompt); }
.tx .cmd { color: var(--con-text); font-weight: 600; }
.tx .ok { color: var(--con-ok); }
.tx .err { color: var(--con-err); }
.tx .em { color: var(--con-em); }
.tx .dim { color: var(--con-muted); }
.exit-chip { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .1rem .55rem; border-radius: 999px; border: 1px solid currentColor; font-family: var(--mono); font-size: .72rem; white-space: nowrap; }
.exit-chip.ok { color: var(--con-ok); }
.exit-chip.fail { color: var(--con-err); }
.console-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid var(--con-line); background: var(--con-surface); font-size: .8rem; color: var(--con-muted); }
.console-foot a { color: var(--con-prompt); }
.cap-layout { display: grid; gap: 1.5rem; }
.cap-layout > * { min-width: 0; }
@media (min-width: 1100px) {
  .cap-layout { grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; }
  .cap-aside { position: sticky; top: 5.5rem; }
}
.meter { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; max-width: 36rem; }
.meter i { height: 12px; border-radius: 3px; border: 2px solid var(--em); }
.meter i.on { background: var(--ok); border-color: var(--ok); }
.meter-caption { margin-top: .6rem; font-size: var(--t-sm); color: var(--muted); }
.cap-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem 1rem; }
.cap-filter button { appearance: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-sm); cursor: pointer; }
.cap-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cap-filter button.st-native, .cap-filter button.st-emulated { color: var(--text); border-color: var(--line-strong); }
.cap-filter button.st-native::before { color: var(--ok); }
.cap-filter button.st-emulated::before { color: var(--em); }
.cap-filter button.st-native[aria-pressed="true"], .cap-filter button.st-emulated[aria-pressed="true"] { color: var(--bg); border-color: var(--text); }
html:not(.js) .cap-filter { display: none; }
.cap-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; }
.cap-tile { container-type: inline-size; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cap-tile[data-backing="native"] { border-left: 3px solid var(--ok); }
.cap-tile[data-backing="emulated"] { border-left: 3px dashed var(--em); }
.cap-tile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.cap-tile h3 { font-size: 1rem; letter-spacing: -0.01em; }
.cap-tile dl { margin: .75rem 0 0; display: grid; gap: .5rem; font-size: var(--t-xs); }
.cap-tile dt { color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.cap-tile dd { margin: .1rem 0 0; line-height: 1.5; }
@container (min-width: 22rem) {
  .cap-tile dl { grid-template-columns: 7.5rem 1fr; column-gap: .75rem; }
  .cap-tile dd { margin: 0; }
}
.snippet { margin: 0; padding: 1rem; border-radius: var(--radius); background: var(--con-bg); color: var(--con-text); font-size: var(--t-code); line-height: 1.55; overflow-x: auto; border: 1px solid var(--con-line); }
.cap-aside h3 { font-size: 1rem; margin-bottom: .5rem; }
.cap-aside p { color: var(--muted); font-size: var(--t-sm); margin-top: .75rem; }
.card .proof { margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: .78rem; color: var(--text); overflow-wrap: anywhere; }
.card .proof::before { content: "› "; color: var(--accent); }
.after-cards { margin-top: 1.5rem; color: var(--muted); font-size: var(--t-sm); max-width: 80ch; }
.ide { container-type: inline-size; }
.ide-frame { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ide-rail { min-width: 0; background: var(--con-surface); border-bottom: 1px solid var(--con-line); }
.ide-tablist { display: flex; gap: .25rem; padding: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ide-group-label { display: none; }
.ide-tab { appearance: none; flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: .5rem; min-height: 40px; padding: .45rem .75rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--con-muted); font-family: var(--mono); font-size: .8rem; text-align: left; cursor: pointer; }
.ide-tab:hover { color: var(--con-text); background: rgba(255, 255, 255, .04); }
.ide-tab[aria-selected="true"] { color: var(--con-text); background: var(--con-bg); border-color: var(--con-line); box-shadow: inset 0 -2px 0 var(--con-prompt); }
html:not(.js) .ide-rail { display: none; }
@container (min-width: 720px) {
  .ide-frame { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .ide-rail { border-bottom: 0; border-right: 1px solid var(--con-line); }
  .ide-tablist { flex-direction: column; overflow: visible; padding: .75rem .6rem; }
  .ide-group-label { display: block; margin: .6rem .5rem .25rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--con-muted); }
  .ide-group-label:first-child { margin-top: 0; }
  .ide-tablist .ide-tab[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--con-prompt); }
}
.ide-panes { min-width: 0; }
.ide-pane { min-width: 0; }
html:not(.js) .ide-pane + .ide-pane { border-top: 1px solid var(--con-line); }
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .9rem 1rem .6rem; }
.pane-head h3 { font-size: .95rem; letter-spacing: 0; font-weight: 600; color: var(--con-text); }
.pane-head .file { font-family: var(--mono); font-size: .75rem; color: var(--con-muted); }
.code { margin: 0; padding: .25rem 1rem 1rem; font-size: var(--t-code); line-height: 1.55; overflow-x: auto; tab-size: 4; color: var(--con-text); }
.code code { white-space: pre; }
:is(.code, .snippet) .k { color: var(--syn-kw); }
:is(.code, .snippet) .s { color: var(--syn-str); }
:is(.code, .snippet) .n { color: var(--syn-num); }
:is(.code, .snippet) .f { color: var(--syn-fn); }
:is(.code, .snippet) .t { color: var(--syn-type); }
:is(.code, .snippet) .c { color: var(--syn-com); font-style: italic; }
.how { padding: 0 1rem .75rem; font-size: .78rem; color: var(--con-muted); }
.how strong { color: var(--con-text); font-weight: 600; }
.output { margin: 0 1rem 1rem; border: 1px solid var(--con-line); border-radius: 8px; background: var(--con-surface); }
.output-label { display: block; padding: .35rem .75rem; border-bottom: 1px solid var(--con-line); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--con-muted); }
.output .tx { padding: .6rem .75rem; }
.flow { list-style: none; counter-reset: step; display: grid; gap: .75rem; margin-bottom: 1rem; }
.flow > li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--t-sm); }
.flow > li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.flow-branch { list-style: none; display: grid; gap: .75rem; margin-top: .75rem; }
@media (min-width: 720px) {
  .flow-branch { grid-template-columns: 1fr 1fr; }
}
.flow-branch li { padding: .75rem .9rem; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.flow-branch b { font-family: var(--mono); font-size: .8rem; }
figure.readpath { margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
figure.readpath figcaption { font-size: var(--t-sm); color: var(--muted); }
.arch-card { container-type: inline-size; display: flex; flex-direction: column; }
.arch-meta { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-bottom: .75rem; }
.arch-meta .src { font-family: var(--mono); font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; }
@container (min-width: 26rem) {
  .arch-meta { justify-content: space-between; }
}
.engine-box { container-type: inline-size; }
.engine-tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; background: var(--con-surface); border-bottom: 1px solid var(--con-line); }
@container (max-width: 30rem) {
  .engine-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; }
  .engine-tabs .ide-tab { scroll-snap-align: start; }
}
html:not(.js) .engine-tabs { display: none; }
.engine-pane .pane-head .chip { color: var(--con-text); border-color: var(--con-line-strong); font-size: .72rem; }
.eco { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.eco h3 { font-size: .95rem; }
.eco ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.eco li { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.eco .note { margin-top: .75rem; font-size: var(--t-xs); color: var(--muted); }
.platform-line { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.ev-tile { display: flex; flex-direction: column; gap: .5rem; }
.ev-fig { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--text); }
.ev-fig small { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ev-tile p { margin-top: 0; color: var(--text); font-size: var(--t-sm); }
.ev-cmd { font-family: var(--mono); font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; padding: .45rem .6rem; background: var(--surface-2); border-radius: 6px; }
.ev-meta { margin-top: auto; font-size: var(--t-xs); color: var(--muted); }
.ev-close { margin-top: 1.5rem; max-width: 80ch; color: var(--muted); font-size: var(--t-sm); }
.pricing { container-type: inline-size; }
.price-grid { display: grid; gap: 1rem; }
@container (min-width: 60rem) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price-card { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price-card h3 { font-size: var(--t-h3); }
.price-card .chip { color: var(--accent); border-color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.price .amount { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: var(--t-sm); }
.price-card .who { color: var(--muted); font-size: var(--t-sm); margin-top: 0; }
.ticks { list-style: none; display: grid; gap: .55rem; font-size: var(--t-sm); }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ticks li.lead { font-weight: 600; }
.ticks li.lead::before { border: 0; width: .5rem; height: .5rem; top: .5em; border-radius: 50%; background: var(--accent); transform: none; }
.price-card .btn { margin-top: auto; width: 100%; }
.eval-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px dashed var(--line-strong); font-size: var(--t-sm); }
.eval-line strong { font-weight: 700; }
.licence-line { margin-top: .75rem; max-width: 80ch; font-size: var(--t-sm); color: var(--muted); }
.licence-line strong { color: var(--text); font-weight: 700; }
.every-tier { margin-top: 2rem; }
.every-tier h3 { font-size: 1rem; }
.every-tier ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.every-tier li { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
details.matrix { margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.matrix > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .75rem 1.1rem; font-weight: 600; cursor: pointer; list-style: none; }
details.matrix > summary::-webkit-details-marker { display: none; }
details.matrix > summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--accent); }
details.matrix[open] > summary::after { content: "−"; }
.matrix-body { padding: 0 1.1rem 1.1rem; }
.matrix-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.matrix-cat-btn { appearance: none; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-xs); cursor: pointer; }
.matrix-cat-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
html:not(.js) .matrix-cats { display: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.feature-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--t-xs); }
.feature-table th, .feature-table td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.feature-table thead th { background: var(--surface-2); font-size: .75rem; }
.feature-table tbody th { font-weight: 600; }
.feature-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 11rem; }
.feature-table thead th:first-child { background: var(--surface-2); }
.feature-table tr.cat th { background: var(--surface-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.feature-table td[colspan="3"] { color: var(--muted); }
.faq-grid { display: grid; gap: .85rem; max-width: 52rem; margin: 2.25rem auto 0; }
details.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
details.faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
details.faq-item[open] {
  border-color: rgba(92, 200, 255, .35);
  background: var(--surface-2);
}
details.faq-item > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  padding: 1.15rem 1.4rem !important;
  cursor: pointer !important;
  list-style: none !important;
  user-select: none;
  outline: none;
}
details.faq-item > summary::-webkit-details-marker { display: none !important; }
details.faq-item > summary::marker { display: none !important; content: "" !important; }
details.faq-item > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq-q {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  transition: color .15s ease;
}
details.faq-item:hover .faq-q {
  color: var(--accent);
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), background-color .2s ease, color .2s ease, border-color .2s ease;
}
details.faq-item:hover .faq-icon {
  color: var(--text);
  border-color: var(--accent);
}
details.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #04121c;
  border-color: var(--accent);
}
.faq-body {
  padding: 0 1.4rem 1.35rem;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.faq-body p { margin-top: 0; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body code {
  font-family: var(--mono);
  font-size: .85em;
  padding: .15em .4em;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.cta-box { position: relative; overflow: hidden; padding: clamp(2rem, 1.5rem + 3vw, 4rem); border-radius: 18px; background: var(--con-bg); color: var(--con-text); border: 1px solid var(--con-line); }
.cta-box::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(92, 200, 255, .16), transparent); pointer-events: none; }
.cta-box .eyebrow { color: var(--con-prompt); position: relative; }
.cta-box h2 { font-size: var(--t-h2); max-width: 30ch; position: relative; }
.cta-box .hero-actions { position: relative; }
.cta-box .btn-primary { background: var(--con-prompt); color: #04121c; }
.cta-box .btn-secondary { background: transparent; color: var(--con-text); border-color: var(--con-line-strong); }
.cta-box .btn-secondary:hover { color: var(--con-prompt); border-color: var(--con-prompt); }
.cta-box :focus-visible { outline-color: var(--con-prompt); }
.site-footer { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid > * { min-width: 0; }
.footer-brand p { color: var(--muted); margin-top: .75rem; max-width: 42ch; }
.site-footer h2 { font-size: .8rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; display: grid; gap: .45rem; margin-top: .75rem; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-xs); }
.footer-bottom .mono { overflow-wrap: anywhere; }
.modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(5, 9, 14, .62); }
.modal-backdrop.active, .modal-backdrop:target { display: flex; }
.mjs .modal-backdrop:not(.active) { display: none; }
.modal-card { position: relative; width: 100%; max-width: 36rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.modal-close-btn { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.modal-close-link { display: none; }
html:not(.mjs) .modal-close-btn { display: none; }
html:not(.mjs) .modal-close-link { display: inline-block; position: absolute; top: 1rem; right: 1rem; }
.modal-header { padding-right: 3rem; margin-bottom: 1.25rem; }
.modal-header h2 { font-size: var(--t-h3); margin-top: .4rem; }
.modal-header p:not(.eyebrow) { margin-top: .5rem; color: var(--muted); font-size: var(--t-sm); }
.modal-form { display: grid; gap: .9rem; }
.form-row { display: grid; gap: .9rem; }
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { display: grid; gap: .3rem; min-width: 0; }
.form-label { font-size: var(--t-xs); font-weight: 600; }
.form-input, .form-select, .form-textarea { width: 100%; min-height: 44px; padding: .55rem .75rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.form-textarea { min-height: 5.5rem; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 1; }
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.modal-form .btn { width: 100%; margin-top: .25rem; }
.modal-success-state, .modal-error-state { text-align: left; }
.state-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; margin-bottom: 1rem; }
.modal-success-state .state-icon { color: var(--ok); }
.modal-error-state .state-icon { color: var(--err); }
.success-title, .error-title { font-size: var(--t-h3); }
.success-desc, .error-detail { margin-top: .5rem; color: var(--muted); font-size: var(--t-sm); }
.error-detail { color: var(--text); }
.error-contact:empty { display: none; }
.app-token-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-block: 1.25rem; padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.token-label { display: block; font-size: .72rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
#generated-token-text { font-family: var(--mono); font-size: var(--t-sm); overflow-wrap: anywhere; }
.token-copy-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-xs); cursor: pointer; }
.state-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; }
  .btn, .site-nav a, .console-tab, .ide-tab, .cap-filter button, .matrix-cat-btn, .card, .cap-tile, a { transition: color .12s ease, background-color .12s ease, border-color .12s ease; }
  .pane-fade { animation: pane-in .12s ease-out; }
  .spin { animation: spin .9s linear infinite; }
  @supports (animation-timeline: view()) {
    .cap-tile, .grid-cards > .card, .eco > .card, .price-card, .cta-box, .readpath { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 120px; }
  }
  @supports (animation-timeline: scroll()) {
    .site-header { border-bottom-color: transparent; }
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
  }
}
@keyframes pane-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rise {
  from { opacity: .4; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .meter i.on { forced-color-adjust: none; }
  .btn, .chip, .cap-filter button { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .modal-backdrop, .cap-filter, .ide-rail, .engine-tabs, .matrix-cats { display: none !important; }
  .ide-pane[hidden], .engine-pane[hidden] { display: block !important; }
  .js .console-panes > .console-pane { grid-area: auto; visibility: visible !important; }
  .ide-pane, .engine-pane { display: block !important; }
}
