/* Layout: one column, lots of room, one accent. The video, the panel and the price do the talking. */
:root {
  --void: #09080d;
  --plate: #111017;
  --plate-hi: #1a1823;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f2f8;
  --mute: #9a96a7;
  --astral: #a98bff;
  --f: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --head-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; background: var(--void); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--astral); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -0.035em; }
p { margin: 0; }
.lead { color: var(--mute); font-size: 18px; line-height: 1.55; max-width: 48ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--f); text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-buy { background: var(--astral); color: #110c1f; }
.btn-buy { transition: background .2s ease, box-shadow .25s ease, transform .15s ease; }
.btn-buy:hover { background: #bba3ff; box-shadow: 0 10px 34px -14px rgba(169, 139, 255, .9); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--plate-hi); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--void); }
.head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: rgba(9, 8, 13, 0);
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.head.scrolled { background: rgba(9, 8, 13, 0.8); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head .wrap { height: var(--head-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.wm { /* the app's own wordmark */
  display: block; width: 82px; height: 19px; margin-top: -2px;
  background: linear-gradient(105deg, #ffffff 20%, #ddd2ff 60%, #a98bff 100%);
  -webkit-mask: url("assets/wordmark.png") left center / contain no-repeat;
          mask: url("assets/wordmark.png") left center / contain no-repeat;
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--mute); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a { transition: color .2s ease; }
.nav a:hover, .nav a.on { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 820px) {
  .nav { display: none; }
  .head-cta .btn-ghost span { display: none; }
  .head-cta .btn-ghost { width: 38px; padding: 0; }
}

/* hero */
.hero { padding-block: 96px 40px; }
.hero h1 { font-size: clamp(50px, 8.4vw, 100px); line-height: .95; letter-spacing: -0.05em; max-width: 11ch; }
.hero .lead { margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
@media (max-width: 700px) { .hero { padding-block: 56px 28px; } .hero .lead { font-size: 17px; } }

/* showcase */
.show { margin-top: 64px; padding: 8px; background: var(--plate); border: 1px solid var(--line); border-radius: 20px; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.stage video.on { opacity: 1; }
.stage-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  background: linear-gradient(transparent, rgba(6, 5, 9, .8)); pointer-events: none;
}
.stage-cap .t { display: grid; gap: 4px; }
.stage-cap .t.swap { animation: cap-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } }
.stage-cap strong { font: 600 clamp(22px, 3vw, 30px)/1.1 var(--f); letter-spacing: -0.02em; }
.stage-cap span { font-size: 14px; color: #cbc6d8; }
.stage-ctl { display: flex; gap: 8px; pointer-events: auto; }
.stage-ctl button {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: rgba(17, 16, 23, .7); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage-ctl button:hover { background: rgba(36, 33, 48, .85); }
.stage-ctl svg { width: 18px; height: 18px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 6px 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--void); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 8px; font: 500 14px/1 var(--f); color: var(--mute); }
.seg button[aria-selected="true"] { background: var(--plate-hi); color: var(--ink); }
.rail-count { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rail { display: flex; gap: 6px; }
.tab { transition: background .2s ease, border-color .2s ease; }
.tab { flex: 1 1 0; text-align: left; cursor: pointer; padding: 12px 12px 14px; border-radius: 12px; background: transparent; border: 1px solid transparent; display: grid; gap: 2px; min-width: 0; }
.tab[hidden] { display: none; }
.tab:hover { background: var(--plate-hi); }
.tab[aria-selected="true"] { background: var(--plate-hi); border-color: var(--line); }
.tab b { font: 600 15px/1.3 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab i { font-style: normal; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .bar { height: 2px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.tab .bar > span { display: block; height: 100%; width: 0%; background: var(--astral); }
@media (max-width: 860px) {
  .show { margin-top: 44px; padding: 6px; border-radius: 18px; }
  .stage { border-radius: 12px; }
  .stage-cap { padding: 44px 14px 12px; }
  .stage-ctl button { width: 36px; height: 36px; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 140px; scroll-snap-align: start; }
}
@media (max-width: 480px) { .stage-cap span { display: none; } }

/* sections */
.section { padding-block: 120px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }
@media (max-width: 700px) { .section { padding-block: 80px; } .section-head { margin-bottom: 36px; } }

/* features: a plain spec list */
.feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; margin: 0; }
.feats div { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.feats dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feats dd { margin: 6px 0 0; color: var(--mute); font-size: 16px; max-width: 46ch; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* try it: the live panel */
.app-plate { padding: 10px; display: flex; justify-content: center; background: var(--plate); border: 1px solid var(--line); border-radius: 22px; }
.app-hint { margin-top: 16px; color: var(--mute); font-size: 14px; text-align: center; }

/* pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.plan { transition: border-color .25s ease, transform .25s ease; }
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan-best:hover { border-color: rgba(169, 139, 255, .7); }
.plan { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 22px; }
.plan h3 { font-size: 17px; font-weight: 600; }
.price { font: 600 68px/1 var(--f); letter-spacing: -0.05em; margin-top: 14px; }
.price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 10px; }
.plan-note { color: var(--mute); font-size: 15px; margin-top: 6px; }
.plan .btn { margin-top: auto; width: 100%; height: 52px; font-size: 16px; }
.plan-note + .btn { margin-top: 34px; }
.plan-best { background: var(--plate); border-color: rgba(169, 139, 255, .45); }
.tag { position: absolute; top: 28px; right: 28px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #110c1f; background: var(--astral); }
.plan-incl { padding: 30px 0 30px 18px; display: grid; gap: 18px; align-content: start; }
.plan-incl h3 { font-size: 17px; font-weight: 600; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.incl li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--astral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.secure { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mute); font-size: 14px; text-align: center; }
.secure svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } .plan-incl { grid-column: 1 / -1; padding: 16px 0 0; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan-best { order: -1; } .price { font-size: 60px; } }

/* after a purchase */
.paid {
  position: fixed; z-index: 20; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px;
  background: rgba(17, 16, 23, .94); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.paid { opacity: 0; translate: 0 14px; transition: opacity .25s ease, translate .3s cubic-bezier(.2,.7,.2,1); }
.paid.in { opacity: 1; translate: 0 0; }
.paid[hidden] { display: none; }
.paid-ic { width: 38px; height: 38px; flex: none; }
.paid div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.paid strong { font-size: 16px; font-weight: 600; }
.paid span { color: var(--mute); font-size: 14px; line-height: 1.35; }
.paid .btn { flex: none; }
.paid-x { flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.paid-x:hover { color: var(--ink); background: var(--plate-hi); }

/* faq */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { display: grid; gap: 14px; justify-items: start; }
.faq-side .btn { margin-top: 10px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--mute), var(--mute)) center / 14px 1.5px no-repeat, linear-gradient(var(--mute), var(--mute)) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.closing summary::after { transform: none; }
.faq details p { overflow: hidden; }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--mute); padding: 0 0 22px; max-width: 62ch; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 52px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-r { display: flex; align-items: center; gap: 24px; }
.foot-r a, .foot small { color: var(--mute); text-decoration: none; font-size: 14px; }
.foot-r a:hover { color: var(--ink); }

/* =====================================================================
   the astral panel, rebuilt from the app's own layout (176 + 632 x 500, Montserrat, 9pt rows, 25px rows)
   colours come from the app's palette maths, set as --vars by the script for the chosen theme
   ===================================================================== */
@property --wp { syntax: "<percentage>"; inherits: false; initial-value: 110%; }
.ax {
  --bg: #0b0a10; --side: #0c0b11; --text: #f5f2fb; --muted: #a29fb6; --soft: #c3a9fa; --acc: #8b5cf6;
  position: relative; width: 808px; height: 500px; flex: none;
  display: grid; grid-template-columns: 176px 632px;
  background: var(--bg); color: var(--text); border-radius: 12px; overflow: hidden;
  font: 500 12px/1.2 "Montserrat", "Segoe UI", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; text-align: left; letter-spacing: 0;
}
.ax * { box-sizing: border-box; }
:where(.ax) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.ax) button:disabled { cursor: default; }
.ax :focus-visible { outline: 1.5px solid var(--soft); outline-offset: 1px; border-radius: 7px; }
.ax-i { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar */
.ax-side { position: relative; background: var(--side); border-right: 1px solid var(--sideline); }
.ax-brand { position: absolute; left: 14px; top: 13px; display: flex; gap: 8px; align-items: flex-start; }
.ax-logo { width: 30px; height: 30px; display: block; }
.ax-word {
  display: block; width: 73px; height: 17px; margin-top: 0;
  background: linear-gradient(105deg, #ffffff 12%, var(--soft) 52%, var(--acc) 100%);
  -webkit-mask: url("assets/wordmark.png") left top / contain no-repeat;
          mask: url("assets/wordmark.png") left top / contain no-repeat;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--acc) 45%, transparent));
}
.ax-ver { display: block; margin-top: 4px; margin-left: 1px; font-size: 9.33px; color: var(--muted); }
.ax-sec { position: absolute; left: 16px; margin: 0; font: 600 9.33px/1 "Montserrat", sans-serif; letter-spacing: .05em; color: var(--dim); }
.ax-navsel {
  position: absolute; left: 10px; width: 156px; height: 28px; border-radius: 8px; background: var(--navsel);
  transition: top .24s cubic-bezier(.2, .8, .2, 1);
}
.ax-navsel::before { content: ""; position: absolute; left: 1px; top: 7px; width: 3px; height: 14px; border-radius: 1.5px; background: var(--soft); }
.ax-nb {
  position: absolute; left: 10px; width: 156px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; gap: 8.5px; padding-left: 10.5px; color: var(--navtext);
}
.ax-nb .ax-i { width: 13px; height: 13px; }
.ax-nb:hover:not(.on) { background: var(--navhov); color: color-mix(in srgb, var(--muted) 40%, var(--text)); }
.ax-nb.on { color: var(--text); font-weight: 600; }
.ax-nb.on .ax-i { color: var(--soft); }
.ax-live { position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ok); animation: ax-pulse 2.1s ease-in-out infinite; }
.ax.is-paused .ax-live { background: var(--muted); animation: none; }
@keyframes ax-pulse { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); filter: brightness(1.25); } }
.ax-stc {
  position: absolute; left: 10px; right: 10px; top: 348px; height: 112px;
  border-radius: 10px; background: var(--stcard); border: 1px solid var(--stcardb);
}
.ax-stt { position: absolute; left: 9px; top: 10px; margin: 0; display: flex; align-items: center; gap: 6px; font: 600 10.67px/1 "Montserrat", sans-serif; letter-spacing: .03em; }
.ax-sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ax-sdot.ok { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ax-glow 2.1s ease-in-out infinite; }
.ax-sdot.warn { background: var(--warn); }
@keyframes ax-glow { 50% { box-shadow: 0 0 6px 2px color-mix(in srgb, var(--ok) 55%, transparent); } }
.ax-sts { position: absolute; left: 8px; right: 8px; top: 31px; margin: 0; font-size: 9.33px; line-height: 1.35; color: var(--muted); white-space: pre-wrap; }
.ax-stc .ax-pill { position: absolute; left: 7px; right: 7px; bottom: 9px; height: 22px; border-radius: 8px; }
.ax-foot { position: absolute; left: 16px; right: 12px; bottom: 13px; height: 14px; display: flex; align-items: center; gap: 9px; }
.ax-bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.ax-bars i { width: 3px; background: var(--ok); }
.ax-bars i:nth-child(1) { height: 4px; } .ax-bars i:nth-child(2) { height: 7px; } .ax-bars i:nth-child(3) { height: 10px; }
.ax-foot b { font: 600 10.67px/1 "Montserrat", sans-serif; color: var(--ok); }
.ax-foot small { margin-left: auto; font-size: 9.33px; color: var(--dim); }

/* main: tab strip + two columns of panels */
.ax-main { position: relative; min-width: 0; }
.ax-top {
  position: absolute; left: 12px; right: 12px; top: 0; height: 46px;
  display: flex; align-items: center; gap: 4px; padding-top: 2px;
  border-bottom: 1px solid var(--topline);
}
.ax-tab {
  position: relative; flex: none; height: 26px; padding: 0 12px; border-radius: 8px;
  font-weight: 600 !important; color: var(--muted) !important; border: 1px solid transparent !important;
}
.ax-tab:hover:not(.on) { background: var(--tabhov) !important; color: color-mix(in srgb, var(--muted) 45%, var(--text)) !important; }
.ax-tab.on { background: var(--tabsel) !important; border-color: var(--tabselb) !important; color: var(--text) !important; }
.ax-tab .ax-live { right: auto; left: calc(100% - 9px); top: 2px; margin-top: 0; }
.ax-info { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--dim) !important; border-radius: 6px; }
.ax-info:hover { color: var(--soft) !important; }
.ax-info .ax-i { width: 14px; height: 14px; }
.ax-page {
  position: absolute; left: 12px; right: 12px; top: 56px; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start;
}
.ax-page.wipe {
  -webkit-mask-image: linear-gradient(#000 var(--wp), transparent calc(var(--wp) + 18%));
          mask-image: linear-gradient(#000 var(--wp), transparent calc(var(--wp) + 18%));
  animation: ax-wipe .32s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ax-wipe { from { --wp: -18%; } to { --wp: 110%; } }
.ax-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.ax-p { position: relative; background: var(--card); border: 1px solid var(--pb); border-radius: 10px; padding-bottom: 8px; }
.ax-ph { position: relative; height: 30px; display: flex; align-items: center; gap: 7px; padding-left: 11px; padding-right: 12px; }
.ax-ph > .ax-i { color: var(--soft); }
.ax-ph h4 { margin: 0; font: 600 10.67px/1 "Montserrat", sans-serif; letter-spacing: .03em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-dh { margin-left: auto; display: flex; gap: 6px; }
.ax-dh b { width: 78px; text-align: center; font: 500 9.33px/1 "Montserrat", sans-serif; letter-spacing: .03em; color: var(--dim); }
.ax-ph .ax-chk { margin-left: auto; margin-right: -1px; }
.ax-r { position: relative; height: 25px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; }
.ax-r::before { content: ""; position: absolute; inset: 1px 4px; border-radius: 6px; background: var(--rowhi); opacity: 0; transition: opacity .12s; pointer-events: none; }
.ax-r:hover::before { opacity: 1; }
.ax-r > * { position: relative; }
.ax-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-l.ax-mut { color: var(--muted); }
.ax-r[data-chkrow] { cursor: pointer; }
.ax-dot { position: absolute !important; left: 5.5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--soft) !important; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ax-dot.on { opacity: 1; pointer-events: auto; }
.ax-dot::after { content: ""; position: absolute; inset: -6px; }

/* number stepper  -  525  + */
.ax-st { flex: none; display: flex; align-items: center; height: 22px; border-radius: 7px; background: var(--field); border: 1px solid var(--stepb); }
.ax-st:hover { border-color: var(--stepbh); }
.ax-st:focus-within { border-color: var(--soft); box-shadow: 0 0 0 .4px var(--soft); }
.ax-sb { width: 22px; height: 20px; display: grid; place-items: center; color: var(--soft) !important; border-radius: 50%; touch-action: manipulation; }
.ax-sb .ax-i { width: 10px; height: 10px; }
.ax-sb:hover { color: var(--text) !important; background: radial-gradient(circle, var(--hi) 0 8.5px, transparent 9px) !important; }
.ax-sv {
  flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); text-align: center; font: 600 12px/1 "Montserrat", sans-serif; -webkit-user-select: text; user-select: text;
}
.ax-st:has(.ax-sv:focus) { outline: none; }

/* checkbox */
.ax-chk { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 4.5px; background: var(--field) !important; border: 1px solid var(--chkoffb) !important; color: transparent !important; }
.ax-chk .ax-i { width: 11px; height: 11px; stroke-width: 2.6; }
.ax-chk.on { background: var(--acc) !important; border-color: var(--chkonb) !important; color: #fff !important; }
.ax-r:hover .ax-chk:not(.on), .ax-chk:hover:not(.on) { border-color: color-mix(in srgb, var(--border) 40%, var(--acc)) !important; }

/* pills */
.ax-pill {
  height: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px;
  border-radius: 7px; background: var(--pillf) !important; border: 1px solid var(--border) !important; color: var(--pilltext) !important;
  font: 600 10.67px/1 "Montserrat", sans-serif !important; white-space: nowrap; transition: background .15s, border-color .15s;
}
.ax-pill:hover { background: var(--hi) !important; border-color: var(--pillbh) !important; }
.ax-pill.ax-fill { background: var(--fill) !important; border-color: var(--fillb) !important; color: var(--onfill) !important; }
.ax-pill.ax-fill:hover { background: var(--fillh) !important; }
.ax-r-2 { gap: 8px; padding: 0 12px; } .ax-r-2 .ax-pill { flex: 1; }
.ax-r-1 { padding: 0 12px; margin-top: 4px; } .ax-r-1 .ax-pill { flex: 1; }
.ax-r-hb { padding: 0 12px; gap: 10px; }

/* dropdowns + menus */
.ax-dd { position: relative; flex: none; }
.ax-r-hb .ax-dd { flex: 1; min-width: 0; }
.ax-ddb {
  width: 100%; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; border-radius: 7px;
  background: var(--field) !important; border: 1px solid var(--stepb) !important; font-size: 10.67px !important;
}
.ax-ddb:hover, .ax-dd.open .ax-ddb { border-color: var(--stepbh) !important; }
.ax-ddb > .ax-i:first-child { color: var(--soft); }
.ax-ddb span { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ddb > .ax-i:last-child { width: 10px; height: 10px; color: var(--muted); transition: transform .15s; }
.ax-dd.open .ax-ddb > .ax-i:last-child { transform: rotate(180deg); }
.ax-chip { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ax-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 100%; padding: 4px;
  background: var(--pop); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  display: grid; gap: 1px;
}
.ax-menu[hidden] { display: none; }
.ax-mi { height: 24px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; color: var(--muted) !important; font-size: 10.67px !important; white-space: nowrap; text-align: left; }
.ax-mi:hover { background: var(--hi) !important; color: var(--text) !important; }
.ax-mi.on { color: var(--text) !important; }
.ax-mi span { flex: 1; }
.ax-mi em { font-style: normal; color: var(--ok); font-size: 9.33px; }
.ax-mi > .ax-i { width: 11px; height: 11px; color: var(--soft); }
.ax-mi small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.33px; }
.ax-menu.ax-modes .ax-mi { height: auto; padding: 6px 8px; align-items: flex-start; }

/* keybinds, mode chips, hotbar states */
.ax-key {
  width: 84px; height: 22px; flex: none; border-radius: 7px; padding: 0 6px;
  background: var(--pillf) !important; border: 1px solid var(--border) !important; color: var(--pilltext) !important;
  font: 600 10.67px/1 "Montserrat", sans-serif !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ax-key:hover { background: var(--hi) !important; border-color: var(--pillbh) !important; }
.ax-key.on { border-color: var(--soft) !important; color: var(--text) !important; animation: ax-blink 1s steps(2) infinite; }
@keyframes ax-blink { 50% { background: var(--hi); } }
.ax-modew { position: relative; flex: none; }
.ax-mode { height: 20px; padding: 0 9px; border-radius: 10px; background: var(--field) !important; border: 1px solid var(--stepb) !important; color: var(--muted) !important; font-size: 10.67px !important; }
.ax-mode:not(:disabled):hover { border-color: var(--stepbh) !important; color: var(--text) !important; }
.ax-state { flex: none; font-size: 10.67px; }
.ax-state.ok { color: var(--ok); } .ax-state.warn { color: var(--warn); }
.ax-ping { flex: none; font-size: 10.67px; color: var(--muted); }

/* help bubble + toast */
.ax-tip {
  position: absolute; z-index: 40; width: 250px; padding: 9px 11px 10px; border-radius: 9px; pointer-events: none;
  background: var(--pop); border: 1px solid var(--border); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(3px); transition: opacity .14s, transform .14s;
}
.ax-tip.show { opacity: 1; transform: none; }
.ax-tip b { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.ax-tip p { margin: 0; font-size: 10.67px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
.ax-toast {
  position: absolute; right: 14px; bottom: 14px; z-index: 35; max-width: 470px; min-height: 32px; display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 9px; background: var(--pop); border: 1px solid color-mix(in srgb, var(--border) 60%, var(--c, var(--ok)));
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.ax-toast.show { opacity: 1; transform: none; }
.ax-toast i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--pop) 80%, var(--c)); }
.ax-toast i .ax-i { width: 11px; height: 11px; }

/* hidden with the show/hide key */
.ax-side, .ax-main { transition: opacity .17s ease, transform .17s ease; }
.ax.is-hidden .ax-side, .ax.is-hidden .ax-main { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ax-unhide { position: absolute; inset: 0; z-index: 50; display: none; place-items: center; color: var(--muted) !important; font-size: 12px !important; }
.ax.is-hidden .ax-unhide { display: grid; }
.ax-unhide span { padding: 10px 16px; border: 1px dashed var(--border); border-radius: 10px; }

/* phones: the sidebar folds into a header, panels stack */
.ax.ax-m { display: block; height: auto; min-height: 460px; grid-template-columns: none; }
.ax-m .ax-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--sideline); }
.ax-m .ax-brand, .ax-m .ax-stc, .ax-m .ax-nb { position: static; }
.ax-m .ax-sec, .ax-m .ax-navsel, .ax-m .ax-foot, .ax-m .ax-sts { display: none; }
.ax-m .ax-stc { margin-left: auto; height: auto; display: flex; align-items: center; gap: 10px; background: none; border: 0; }
.ax-m .ax-stt { position: static; }
.ax-m .ax-stc .ax-pill { position: static; padding: 0 10px; }
.ax-m .ax-navwrap { order: 3; flex: 1 1 100%; display: flex; gap: 4px; }
.ax-m .ax-nb { position: relative; top: auto !important; flex: 1; width: auto; justify-content: center; padding: 0 8px; }
.ax-m .ax-nb.on { background: var(--navsel); }
.ax-m .ax-nb .ax-live { display: none; }
.ax-m .ax-main { padding-bottom: 60px; }
.ax-m .ax-top { position: relative; left: auto; right: auto; margin: 0 12px; overflow-x: auto; scrollbar-width: none; }
.ax-m .ax-top::-webkit-scrollbar { display: none; }
.ax-m .ax-page { position: relative; inset: auto; padding: 10px 12px 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ax-m .ax-top:empty { display: none; }
.ax-m .ax-col { display: contents; }
.ax-m .ax-tip { width: 230px; }

/* ---------- motion ---------- */
/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* the header tucks away while you scroll down and comes back when you scroll up */
.head { transition: background .3s ease, border-color .3s ease, translate .45s cubic-bezier(.16, 1, .3, 1); }
.head.away { translate: 0 -100%; }

/* things rise into place as they come into view; headings slide up out of a mask */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; translate: 0 30px; transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; translate: 0 0; }
  .js .hero h1.rv { opacity: 1; translate: 0 0; }
  .js .ln > span { translate: 0 108%; transition: translate 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
  .js .ln + .ln > span { transition-delay: calc(var(--d, 0ms) + 110ms); }
  .js .in .ln > span { translate: 0 0; }

  /* a thin lavender line draws across the top of each feature as it appears */
  .feats div { position: relative; }
  .feats div::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(169, 139, 255, .85), rgba(169, 139, 255, 0) 75%);
    transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 150ms);
  }
  .feats div.in::before { transform: scaleX(1); }

  /* each clip settles in with a slow push */
  .stage video.on { animation: push 7s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes push { from { scale: 1.06; } to { scale: 1; } }

  /* the showcase and the panel grow into place with the scroll (the script sets their scale) */
  .show, .app-plate { transform-origin: 50% 0; will-change: scale; }
  .hero-copy { will-change: translate, opacity; }
}

/* with reduced motion turned on, things still fade in, they just don't move */
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 0; transition: opacity .6s ease; transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stage video { transition: none; }
  .ax *, .ax-page.wipe { animation: none !important; transition: none !important; }
  .head { transition: none; }
}
