/* Apex web: Basalt surfaces, precise borders and the launcher's warm ivory accent. */
@font-face { font-family: "Inter"; src: url("/_shared/inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08080A; --panel: #0E0E11; --card: #141418; --hover: #22221F;
  --border: #292925; --emph: #514F48;
  --text: #EEECE6; --dim: #BDBBB4; --muted: #8F8E88;
  --accent: #E8E4D8; --on-accent: #141418; --accent-hover: #F3F0E7; --accent-press: #C9C4B7;
  --success: #8DCF9B; --warning: #E6C36A; --error: #EF8A78;
  --r-inner: 2px; --r-control: 4px; --r-surface: 6px; --r-overlay: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss03"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-inner); }
::selection { background: rgba(232, 228, 216, .25); color: var(--text); }
img { max-width: 100%; height: auto; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: var(--s2) var(--s4); border-radius: var(--r-control); font-weight: 600; }
.skip:focus { left: 8px; text-decoration: none; }

.ambient { display: none; }

.wrap { width: min(1180px, 100% - 2 * var(--s5)); margin-inline: auto; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar .wrap { display: flex; align-items: center; gap: var(--s5); height: 60px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: var(--s3); color: var(--text); font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: var(--s3); }
.nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--dim); padding: var(--s2) var(--s3); border-radius: var(--r-control); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.button.menu-button { display: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 45px; padding: 0 var(--s5);
  border-radius: var(--r-control); border: 1px solid var(--border); background: var(--card); color: var(--text);
  font: 600 14px/1 "Inter", sans-serif; cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease); }
.button:hover { background: var(--hover); border-color: var(--emph); text-decoration: none; color: var(--text); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.button.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.button.primary:active { background: var(--accent-press); }
.button.small { min-height: 45px; padding: 0 var(--s4); font-size: 13px; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s3); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .7; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); color: var(--dim); }
.lead { font-size: 1.15rem; color: var(--dim); max-width: 60ch; }

/* Sections and surfaces */
section { padding-block: var(--s8); }
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: var(--s7); }
.hero h1 { margin: var(--s4) 0 var(--s5); }
.hero .lead { margin-bottom: var(--s6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.release-line { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5); color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--success); }
.dot.warn { background: var(--warning); }
.dot.bad { background: var(--error); }
.surface { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-surface); }
.shot { margin: var(--s7) 0 0; padding: var(--s2); }
.shot img { display: block; width: 100%; border-radius: calc(var(--r-surface) - 4px); }
.shot figcaption { padding: var(--s3) var(--s3) var(--s1); color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--s6); }
.card { padding: var(--s5); }
.card h3 { margin-bottom: var(--s2); }
.card p { margin: 0; font-size: 15px; }
.card .no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; margin-bottom: var(--s3); display: block; }
.section-head { max-width: 62ch; }
.section-head h2 { margin: var(--s3) 0 var(--s3); }
.steps { counter-reset: step; display: grid; gap: var(--s4); margin-top: var(--s6); }
.steps li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); padding: var(--s4) var(--s5); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--emph); color: var(--accent); font-weight: 600; font-size: 14px; }
.steps { padding: 0; margin-inline: 0; }
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--border); padding: var(--s4) 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: var(--s3) 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--text); font-size: 14px; word-break: break-all; }
.note { border-left: 2px solid var(--accent); padding: var(--s3) var(--s4); background: var(--panel); border-radius: 0 var(--r-control) var(--r-control) 0; margin: var(--s5) 0; }
.note p:last-child { margin: 0; }
.note.warn { border-left-color: var(--warning); }
.pill { display: inline-block; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--dim); font-size: 12px; font-weight: 500; line-height: 1.6; }
.pill.ok { color: var(--success); border-color: rgba(141, 207, 155, .4); }
.pill.warn { color: var(--warning); border-color: rgba(230, 195, 106, .4); }

/* Forms */
label { display: block; margin-bottom: var(--s2); color: var(--dim); font-size: 14px; font-weight: 500; }
input[type="text"], input[type="search"], input[type="password"] {
  width: 100%; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-control); border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font: 400 15px/1 "Inter", sans-serif; }
input::placeholder { color: var(--muted); }
input:hover { border-color: var(--emph); }

/* Code */
pre { margin: var(--s4) 0; padding: var(--s4) var(--s5); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-surface); overflow-x: auto; line-height: 1.55; tab-size: 4; }
pre code { background: none; padding: 0; color: var(--text); font-size: 13.5px; }
:not(pre) > code { background: rgba(255, 255, 255, .06); border-radius: var(--r-inner); padding: .1em .38em; color: var(--text); }
table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: 14.5px; }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--dim); }
.table-scroll { overflow-x: auto; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding-block: var(--s6); margin-top: var(--s7); color: var(--muted); font-size: 13.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot a { color: var(--dim); }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
summary { min-height: 44px; display: flex; align-items: center; }
select { min-height: 44px; }

/* Docs */
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: var(--s6); align-items: start; padding-block: var(--s6) var(--s7); }
.side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding-right: var(--s3); font-size: 14px; }
.side h4 { margin: var(--s5) 0 var(--s2); color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.side h4:first-child { margin-top: 0; }
.side a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: var(--s2); padding: 5px var(--s3); border-radius: var(--r-control); color: var(--dim); }
.side a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.side a[aria-current="page"] { background: var(--card); color: var(--text); }
.side .count { color: var(--muted); font-size: 12px; }
.article { min-width: 0; }
.article > h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: var(--s3) 0 var(--s4); }
.article h2 { margin: var(--s7) 0 var(--s4); font-size: 1.5rem; }
.article h3 { margin: var(--s5) 0 var(--s2); }
.article li { color: var(--dim); margin-bottom: var(--s2); }
.toc { position: sticky; top: 76px; font-size: 13.5px; color: var(--muted); }
.toc h4 { margin: 0 0 var(--s3); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.toc a { display: flex; min-height: 44px; align-items: center; padding: 3px 0; color: var(--dim); }
.fn { padding: var(--s5); margin: var(--s4) 0; scroll-margin-top: 80px; }
.fn header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.fn h3 { margin: 0; font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0; }
.fn .aliases { color: var(--muted); font-size: 13px; margin-bottom: var(--s3); }
.fn .aliases code { margin-right: 4px; }
.fn .sig { margin: var(--s3) 0; }
.fn p { color: var(--dim); }
.fn .behaviour { color: var(--dim); font-size: 14.5px; border-top: 1px dashed var(--border); padding-top: var(--s3); margin-top: var(--s3); }
.search { position: relative; margin-bottom: var(--s5); }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--emph); border-radius: var(--r-surface); }
.results a { display: flex; min-height: 44px; align-items: center; padding: var(--s3) var(--s4); color: var(--text); border-bottom: 1px solid var(--border); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a[aria-selected="true"] { background: var(--hover); text-decoration: none; }
.results small { display: block; color: var(--muted); }
.results .none { padding: var(--s4); color: var(--muted); }

@media (max-width: 1080px) { .docs { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s3) var(--s5) var(--s4); margin: 0; }
  .nav.open { display: flex; }
  .button.menu-button { display: inline-flex; margin-left: auto; }
  .bar .right { margin-left: 0; }
  .docs { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  section { padding-block: var(--s7); }
  .steps li { grid-template-columns: 1fr; }
}
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

a.card.link { display: block; color: inherit; transition: border-color .12s var(--ease), background-color .12s var(--ease); }
a.card.link:hover { border-color: var(--accent); background: var(--card); text-decoration: none; color: inherit; }
.cta { margin-top: var(--s5); }

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin: var(--s7) 0 var(--s3); font-size: 1.4rem; }
.legal li { color: var(--dim); margin-bottom: var(--s2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s5) 0 0; font-size: 14px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Motion stays on opacity and small transforms; content remains visible without JS. */
@keyframes enter { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
.motion-ready .hero .eyebrow::before { transform-origin: left; animation: draw .42s var(--ease) both; }
.motion-ready .hero h1, .motion-ready .hero .lead, .motion-ready .hero .actions, .motion-ready .hero .release-line, .motion-ready .show { animation: enter .42s var(--ease) both; }
.motion-ready .hero h1 { animation-delay: .06s; }
.motion-ready .hero .lead { animation-delay: .11s; }
.motion-ready .hero .actions { animation-delay: .16s; }
.motion-ready .hero .release-line { animation-delay: .2s; }
.motion-ready .hero .show { animation-delay: .24s; }
.motion-ready .reveal { opacity: 0; transform: translate3d(0, 12px, 0); }
.motion-ready .reveal.in { opacity: 1; transform: none; transition: opacity .36s var(--ease), transform .36s var(--ease); transition-delay: var(--d, 0s); }
.card, .steps li, .fn { transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .16s var(--ease); }
.card:hover, .steps li:hover { border-color: var(--accent); transform: translateY(-2px); }
.fn:target { border-color: var(--accent); }
.button { transition: background-color .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), transform .14s var(--ease); }
.button:hover { transform: translateY(-1px); } .button:active { transform: translateY(1px) scale(.985); }
.nav a, .side a, .toc a { transition: background-color .12s var(--ease), color .12s var(--ease); }
.toc a:hover { color: var(--accent); text-decoration: none; }
.steps li::before { transition: background-color .2s var(--ease), color .2s var(--ease); }
.steps li:hover::before { background: var(--accent); color: var(--on-accent); }
.faq summary::after { transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.results { animation: enter .15s var(--ease) both; }
.shot { overflow: hidden; }
.shot img { transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.01); }

/* Output panel: the launcher's output box, typed line by line. */
.output { margin-top: var(--s5); padding: 0; overflow: hidden; }
.output .tabs { display: flex; gap: var(--s2); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
.output .tabs span { padding: 4px var(--s3); border: 1px solid var(--border); border-radius: var(--r-inner); font-size: 12.5px; color: var(--dim); }
.output .tabs span.on { background: var(--card); color: var(--text); border-color: var(--emph); }
.output .lines { padding: var(--s4); min-height: 148px; font: 700 13px/1.75 var(--mono); color: var(--text); }
.output .lines div { white-space: pre-wrap; }
.output .lines .t { color: var(--accent); } .output .lines .w { color: var(--warning); } .output .lines .g { color: var(--success); }
.output .caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero *, .motion-ready .reveal { animation: none !important; opacity: 1; transform: none; }
}

/* Feature slideshow */
.show { margin-top: var(--s7); }
.show-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.show-tabs button { position: relative; overflow: hidden; min-height: 45px; padding: 0 var(--s5); border: 1px solid var(--border); border-radius: var(--r-control);
  background: var(--panel); color: var(--dim); font: 600 14px/1 "Inter", sans-serif; cursor: pointer; transition: background-color .12s var(--ease), color .12s var(--ease), border-color .12s var(--ease); }
.show-tabs button:hover { background: var(--hover); color: var(--text); }
.show-tabs button.on { background: var(--card); color: var(--text); border-color: var(--emph); }
.show-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.show-tabs button.on i { animation: fill var(--ms, 6000ms) linear forwards; }
.show:hover .show-tabs button.on i, .show:focus-within .show-tabs button.on i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.show-stage { display: grid; padding: var(--s2); overflow: hidden; box-shadow: 8px 8px 0 #050607; }
.slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slide.out { transform: translateX(-18px); }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 1904 / 1064; border-radius: var(--r-inner); border: 1px solid var(--border); }
.slide figcaption { padding: var(--s3) var(--s2) 0; color: var(--dim); font-size: 14px; }
.dc { aspect-ratio: 1904 / 1064; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.dc-pane { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.dc-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.dc-body { flex: 1; padding: var(--s3) var(--s4); font: 700 clamp(10px, 1.45vw, 14px)/1.8 var(--mono); overflow: hidden; white-space: pre; }
.dc-body div { opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.dc-body div.in { opacity: 1; transform: none; }
[data-bc] div { color: var(--muted); }
[data-bc] div.scan { color: var(--accent); background: rgba(232, 228, 216, .12); }
[data-bc] div.done { color: var(--border); }
[data-src] .k { color: var(--accent); } [data-src] .s { color: var(--success); } [data-src] .n { color: var(--warning); } [data-src] .c { color: var(--muted); }
[data-src] .caret { display: inline-block; width: 7px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@media (max-width: 700px) { .dc { grid-template-columns: 1fr; } .dc { aspect-ratio: auto; height: 520px; } .show-tabs button { padding: 0 var(--s3); } .show-stage { box-shadow: 4px 4px 0 #050607; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .show-tabs button.on i { animation: none; transform: scaleX(1); } }

.buy { min-width: 0; width: 100%; padding: var(--s5); margin: var(--s5) 0; display: grid; gap: var(--s3); max-width: 560px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--s3); }
.plan { display: grid; gap: 2px; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); cursor: pointer; margin: 0; transition: border-color .12s var(--ease), background-color .12s var(--ease); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { border-color: var(--emph); }
.plan:has(input:checked) { border-color: var(--accent); background: var(--card); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.plan-top, .field-label { display: inline-flex; align-items: center; gap: var(--s2); }
.plan-icon { display: inline-flex; color: var(--muted); }
.plan-icon svg { width: 16px; height: 16px; }
.plan-name { color: var(--text); font-weight: 600; } .plan-price { color: var(--accent); font-size: 1.6rem; font-weight: 650; } .plan-note { color: var(--muted); font-size: 13px; }
.renew summary { cursor: pointer; color: var(--dim); font-size: 14px; } .renew p { font-size: 13px; margin: var(--s2) 0 0; }
.fine { color: var(--muted); font-size: 13px; margin: 0; } .error { color: var(--error); margin: 0; }
code.big { display: block; padding: var(--s3) var(--s4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-control); font-size: 15px; word-break: break-all; user-select: all; }

/* Shared inline icon and the account portal layout. */
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.portal-wrap { width: min(900px, 100% - 2 * var(--s5)); }
.portal-intro { max-width: 66ch; }
.portal-intro h1 { max-width: 16ch; }
.portal-intro .lead { margin-bottom: var(--s5); }
.portal-status-line { min-height: 1.5em; margin: 0 0 var(--s4); color: var(--muted); font-size: 14px; }
.portal-card { padding: clamp(20px, 4vw, 32px); margin: var(--s5) 0; box-shadow: 8px 8px 0 #050607; }
.motion-ready .portal-card { animation: enter .34s var(--ease) .14s both; }
.portal-login { max-width: 560px; }
.portal-form { display: grid; gap: var(--s3); }
.portal-form input { width: 100%; min-height: 46px; padding: 0 var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--bg); color: var(--text); font: 400 15px/1 "Inter", sans-serif; }
.portal-form input:hover { border-color: var(--emph); }
.portal-order-form select { width: 100%; min-height: 46px; padding: 0 var(--s4); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--bg); color: var(--text); font: 400 15px/1 "Inter", sans-serif; }
.portal-order-form select:hover { border-color: var(--emph); }
.portal-form label { margin: 0; }
.portal-form .button { justify-self: start; margin-top: var(--s2); }
.portal-privacy { margin: var(--s4) 0 0; color: var(--muted); font-size: 13px; }
.portal-account { max-width: 760px; }
.portal-account-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s4); justify-content: space-between; padding-bottom: var(--s5); border-bottom: 1px solid var(--border); }
.portal-account-head h2 { margin: 0 0 var(--s2); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.account-identity { min-width: 0; }
.account-identity p { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill[data-status="active"] { color: var(--success); border-color: rgba(141, 207, 155, .4); }
.status-pill[data-status="expired"], .status-pill[data-status="suspended"] { color: var(--warning); }
.account-time { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s5); align-items: center; padding-block: var(--s5); }
.account-time-label { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: 14px; }
.account-time-value { grid-column: 1 / -1; color: var(--text); font: 600 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.account-expires { margin: 0; color: var(--muted); font-size: 13px; }
.portal-renewal { border-left-color: var(--emph); margin-bottom: 0; }
.upgrade-offer { border-left-color: var(--accent); }
.portal-purchase { border-top: 1px solid var(--border); margin-top: var(--s5); padding-top: var(--s5); }
.portal-purchase h3 { margin-bottom: var(--s2); }
.portal-purchase > p { margin-bottom: var(--s4); }
.portal-order-form { display: grid; gap: var(--s3); max-width: 480px; }
.portal-order-form label { margin: 0; }
.portal-order-form button { justify-self: start; margin-top: var(--s2); }
.portal-renewal h3 { margin: 0 0 var(--s2); }
.portal-renewal p:last-child { margin-bottom: 0; }
.portal-account-error { margin-top: var(--s4); }
.portal-account[hidden], .portal-login[hidden], #order-payment[hidden] { display: none; }
@media (max-width: 820px) { .portal-wrap { width: min(100% - 32px, 900px); } }
@media (max-width: 520px) { .portal-card { box-shadow: 4px 4px 0 #050607; } .portal-account-head .button { flex: 1 0 auto; } .account-time { grid-template-columns: 1fr; } }

/* Clear state changes on the checkout without moving important controls. */
.plan { transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .16s var(--ease); }
.plan:hover { transform: translateY(-1px); }
.plan:has(input:checked) { box-shadow: inset 3px 0 0 var(--accent); }
input, select, button, summary, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 520px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .bar .wrap { gap: 10px; }
  .brand { gap: 8px; letter-spacing: .1em; }
  .bar .right { gap: 6px; }
  .bar .right .button { padding-inline: 10px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .hero .lead { font-size: 1.05rem; }
  .actions .button { flex: 1 1 150px; }
  .buy { padding: var(--s4); grid-template-columns: minmax(0, 1fr); }
  .buy > *, .plans { min-width: 0; }
  .plans { gap: var(--s2); }
  .plan { padding: var(--s3); }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: var(--s2); }
  input[type="text"], input[type="search"], input[type="password"], select, .portal-form input, .portal-order-form select { font-size: 16px; }
  label:has(input[type="checkbox"]) { min-height: 44px; display: flex; align-items: center; gap: var(--s2); }
  .bar .right a[aria-label^="Join Apex on Discord"] { font-size: 0; width: 44px; padding: 0; }
  .bar .right a[aria-label^="Join Apex on Discord"] .icon { width: 18px; height: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); }
}
@media (max-width: 360px) {
  .bar .wrap { height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 0; padding-block: var(--s2); }
  .brand { margin-right: auto; }
  .button.menu-button { order: 2; margin-left: auto; }
  .bar .right { order: 3; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); }
  .nav { top: 100%; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { min-width: 0; }
}

/* Home: text and primary actions. */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(52px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 760px; }
.hero-copy h1 { max-width: 15ch; font-size: clamp(3rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.065em; margin: 22px 0 20px; }
.hero-copy .lead { max-width: 43ch; margin-bottom: 28px; font-size: clamp(1rem, 1.45vw, 1.12rem); line-height: 1.65; }
.hero-copy .eyebrow { color: var(--dim); letter-spacing: .12em; }
.hero-copy .eyebrow::before { width: 20px; height: 2px; opacity: 1; }
.hero-copy .actions { gap: 10px; }
.hero-copy .release-line { margin-top: 22px; font-size: 12px; }
.hero-demo { min-width: 0; }
.preview-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.preview-label span:first-child { color: var(--dim); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.show { margin: 0; min-width: 0; }
.show-tabs { gap: 5px; margin-bottom: 8px; }
.show-tabs button { min-height: 40px; padding-inline: clamp(10px, 1.2vw, 18px); border-radius: 2px; border-color: transparent; background: transparent; font-size: 12px; }
.show-tabs button.on { color: var(--text); background: var(--panel); border-color: var(--border); }
.show-tabs button.on i { height: 1px; background: var(--accent); }
.show-stage { position: relative; padding: 0; overflow: hidden; border-radius: 3px; box-shadow: 10px 10px 0 #030304; }
.slide { padding: 0; }
.slide figcaption { padding: 10px 14px 11px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.app-preview { aspect-ratio: 1.58; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #08080A; color: #EEECE6; font: 12px/1.4 "Inter", system-ui, sans-serif; user-select: none; }
.app-titlebar { height: 31px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 11px; background: #0E0E11; border-bottom: 1px solid #292925; color: #8F8E88; font-size: 10px; }
.app-mark { width: 16px; height: 16px; display: grid; place-items: center; background: #E8E4D8; color: #141418; font-weight: 800; font-size: 9px; border-radius: 2px; }
.app-name { color: #EEECE6; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.app-window-title { margin-left: 10px; padding-left: 14px; border-left: 1px solid #292925; }
.app-window-state { margin-left: auto; padding: 2px 5px; border: 1px solid #292925; color: #8F8E88; letter-spacing: .12em; font: 9px/1.2 var(--mono); }
.app-window-controls { margin-left: 7px; font-size: 10px; }
.app-layout { min-height: 0; flex: 1; display: flex; }
.app-rail { flex: 0 0 114px; display: flex; flex-direction: column; gap: 3px; padding: 13px 8px; background: #0E0E11; border-right: 1px solid #292925; }
.rail-item { height: 27px; display: flex; align-items: center; gap: 8px; padding: 0 8px; color: #8F8E88; font-size: 10px; white-space: nowrap; }
.rail-item b { width: 12px; text-align: center; color: #8F8E88; font-size: 12px; font-weight: 500; }
.rail-item.active { color: #EEECE6; background: #22221F; box-shadow: inset 2px 0 var(--accent); }
.rail-item.active b { color: var(--accent); }
.rail-spacer { flex: 1; }
.app-workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: clamp(14px, 2.2vw, 28px); }
.app-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.app-kicker { display: block; margin-bottom: 6px; color: #8F8E88; font: 9px/1.3 var(--mono); letter-spacing: .12em; }
.app-heading h3 { color: #EEECE6; font-size: clamp(14px, 1.5vw, 19px); font-weight: 600; letter-spacing: -.025em; }
.app-action { min-height: 28px; padding: 0 9px; border: 1px solid #393933; border-radius: 2px; background: #141418; color: #BDBBB4; font: 10px/1 "Inter", sans-serif; white-space: nowrap; }
.app-action.primary { border-color: #E8E4D8; background: #E8E4D8; color: #141418; font-weight: 650; }
.app-toolbar { display: flex; align-items: center; gap: 12px; min-height: 31px; color: #8F8E88; font-size: 9px; border-top: 1px solid #292925; border-bottom: 1px solid #292925; }
.app-toolbar-rule { width: 1px; height: 13px; background: #292925; }
.app-search { margin-left: auto; min-width: 100px; padding: 5px 8px; border: 1px solid #292925; color: #73726D; }
.account-row { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #22221F; }
.account-avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid #514F48; color: #E8E4D8; font: 9px/1 var(--mono); }
.account-avatar.muted { border-color: #393933; color: #8F8E88; }
.account-info { min-width: 65px; display: flex; flex-direction: column; gap: 2px; }
.account-info strong { color: #EEECE6; font-size: 10px; font-weight: 550; }
.account-info small { color: #8F8E88; font-size: 9px; }
.app-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #8F8E88; font-size: 9px; white-space: nowrap; }
.app-status i { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.app-status.ready { color: #AFC69B; }
.app-status.ready i { border-color: currentColor; background: currentColor; }
.app-more { width: 24px; height: 27px; border: 0; background: transparent; color: #8F8E88; letter-spacing: 2px; }
.app-footnote { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; color: #73726D; font-size: 9px; }
.app-led { width: 5px; height: 5px; border-radius: 50%; background: #AFC69B; }
.editor-workspace { padding-bottom: 0; }
.editor-heading { margin-bottom: 10px; }
.editor-body { min-height: 0; flex: 1; display: flex; overflow: hidden; border: 1px solid #292925; }
.file-list { flex: 0 0 110px; padding: 10px 0; border-right: 1px solid #292925; color: #8F8E88; font-size: 9px; }
.file-list-head { display: flex; justify-content: space-between; padding: 0 10px 8px; color: #8F8E88; font: 8px/1.4 var(--mono); letter-spacing: .1em; }
.file { padding: 6px 8px; white-space: nowrap; color: #8F8E88; }
.file.active { background: #22221F; color: #EEECE6; }
.code-area { min-width: 0; flex: 1; overflow: hidden; }
.editor-tabs { height: 28px; display: flex; gap: 14px; align-items: center; padding-inline: 12px; border-bottom: 1px solid #292925; color: #8F8E88; font-size: 9px; }
.editor-tab.active { align-self: stretch; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--accent); color: #EEECE6; }
.editor-tab b { color: #8F8E88; font-weight: 400; }
.code-lines { display: flex; gap: 14px; padding: 13px 14px; color: #BDBBB4; font: clamp(8px, .85vw, 10px)/2 var(--mono); white-space: nowrap; }
.line-no { color: #62615C; text-align: right; }
.code-key { color: #E8E4D8; }.code-string { color: #AFC69B; }.code-comment { color: #77766F; }
.output-strip { min-height: 33px; display: flex; align-items: center; gap: 15px; margin-inline: calc(clamp(14px, 2.2vw, 28px) * -1); padding-inline: clamp(14px, 2.2vw, 28px); border-top: 1px solid #292925; color: #8F8E88; font-size: 8px; }
.output-tab.active { align-self: stretch; display: flex; align-items: center; border-bottom: 1px solid var(--accent); color: #EEECE6; }
.output-state { margin-left: auto; color: #73726D; text-transform: none; }
.overview-workspace { padding-bottom: 15px; }
.instance-summary { display: grid; grid-template-columns: 1fr 1fr 1.3fr; margin: 2px 0 16px; border: 1px solid #292925; }
.instance-summary div { min-width: 0; display: grid; gap: 5px; padding: 10px 12px; border-right: 1px solid #292925; }
.instance-summary div:last-child { border: 0; }
.instance-summary span { color: #8F8E88; font: 8px/1.3 var(--mono); letter-spacing: .1em; }
.instance-summary strong { overflow: hidden; color: #EEECE6; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.instance-summary .status-running { color: #AFC69B; }
.console-preview { min-height: 0; flex: 1; border: 1px solid #292925; background: #0B0B0D; font: 9px/1.5 var(--mono); }
.console-head { display: flex; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid #292925; color: #8F8E88; font-size: 8px; letter-spacing: .1em; }
.console-line { display: flex; gap: 12px; padding: 8px 11px 0; color: #8F8E88; }
.console-line code { color: #BDBBB4; font-size: 9px; }
.console-caret { padding: 6px 11px; color: var(--accent); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero-copy { max-width: 660px; } .hero-copy h1 { max-width: 11ch; font-size: clamp(3rem, 9vw, 5rem); } .app-preview { aspect-ratio: 1.65; } }
@media (max-width: 560px) { .hero { padding-top: 48px; } .hero-grid { gap: 32px; } .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4rem); } .hero-copy .lead { font-size: 1rem; } .actions .button { flex: 1 1 130px; } .preview-label { align-items: flex-start; flex-direction: column; gap: 2px; } .show-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; } .show-tabs button { min-width: 0; padding-inline: 4px; font-size: 10px; } .show-stage { box-shadow: 4px 4px 0 #030304; } .app-preview { aspect-ratio: auto; height: clamp(245px, 72vw, 340px); } .app-rail { flex-basis: 40px; padding: 10px 5px; } .rail-item { width: 29px; justify-content: center; padding: 0; font-size: 0; } .rail-item b { font-size: 12px; } .app-workspace { padding: 12px; } .app-heading { margin-bottom: 12px; } .app-toolbar { gap: 7px; font-size: 8px; } .app-search { min-width: 75px; padding-inline: 5px; } .account-row { gap: 6px; } .account-info { min-width: 50px; } .app-status { font-size: 8px; } .app-action { min-height: 32px; padding-inline: 6px; font-size: 9px; } .app-more { display: none; } .editor-heading { margin-bottom: 8px; } .file-list { flex-basis: 86px; } .code-lines { gap: 8px; padding: 10px 8px; font-size: 8px; } .output-strip { gap: 8px; margin-inline: -12px; padding-inline: 12px; font-size: 7px; } .instance-summary { grid-template-columns: 1fr; } .instance-summary div { grid-template-columns: 66px 1fr; align-items: center; padding: 7px 9px; border-right: 0; border-bottom: 1px solid #292925; } .instance-summary div:last-child { border-bottom: 0; } .app-window-controls { display: none; } }
.show-tabs button { min-height: 44px; }
.rail-item b { display: inline-grid; place-items: center; flex: none; }
.rail-item svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.rail-item.active svg { color: var(--accent); }
@media (max-width: 560px) { .bar .wrap { gap: 6px; } .brand { flex: none; white-space: nowrap; } .bar .right .button, .button.menu-button { flex: 0 0 auto; white-space: nowrap; } .button.menu-button { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .slide { transform: none; } }
