/* TernaryCode — landing page. The app's own tokens (assets/app.css) render the product;
   these rules lay out the page around it. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url(fonts/jbm-400.woff2) format("woff2"); }
@font-face { font-family: "JBM"; font-weight: 500; font-display: swap; src: url(fonts/jbm-500.woff2) format("woff2"); }
@font-face { font-family: "JBM"; font-weight: 600; font-display: swap; src: url(fonts/jbm-600.woff2) format("woff2"); }
@font-face { font-family: "Phosphor"; font-display: block; src: url(fonts/phosphor.woff2) format("woff2"); }
@font-face { font-family: "PhosphorFill"; font-display: block; src: url(fonts/phosphor-fill.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #101010;
  --card: #141414;
  --card-2: #191919;
  --fg: #ededed;
  --fg-2: #a6a6a6;
  --fg-3: #737373;
  --fg-4: #4d4d4d;
  --hair: rgba(255,255,255,.07);
  --hair-2: rgba(255,255,255,.11);
  --hair-3: rgba(255,255,255,.18);
  --cream: #fff6ea;
  --blue: #2b66cc;
  --blue-t: #86acf0;
  --wait: #e8a23c;
  --run: #7aa7f2;
  --done: #55b882;
  --fail: #ec625b;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(70,130,235,.38); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-t); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { font-family: "Phosphor"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; }
.icf { font-family: "PhosphorFill"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }

/* keys, as the app draws them */
kbd, .key {
  display: inline-flex; align-items: center; justify-content: center; gap: .15em;
  min-width: 1.7em; height: 1.55em; padding: 0 .4em; border-radius: .38em; vertical-align: .08em;
  font-family: var(--mono); font-size: .8em; font-weight: 500; line-height: 1; color: var(--fg);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 -1px 0 rgba(255,255,255,.04), 0 1px 0 rgba(0,0,0,.4);
  white-space: nowrap;
}

/* ============================================================== nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(10,10,10,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--hair); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--fg-2); }
.nav-gh:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav-gh .ic { font-size: 16px; }
.nav .pb-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-gh span { display: none; } .nav-in { gap: 12px; } }

/* ============================================================== buttons */
.pb { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: transform .15s ease, background .2s, box-shadow .2s, color .2s; }
.pb .ic { font-size: 18px; }
.pb:active { transform: translateY(1px); }
.pb-pri { background: var(--cream); color: #121212; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 30px -8px rgba(255,246,234,.25); }
.pb-pri:hover { background: #fff; }
.pb-sec { color: var(--fg); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pb-sec:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-3); }
.pb-blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.4); }
.pb-blue:hover { background: #3673db; }

/* ============================================================== hero */
.hero { position: relative; padding: 76px 0 0; isolation: isolate; }
.field { position: absolute; inset: -64px 0 auto 0; height: 940px; z-index: -1; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.085) 1.1px, transparent 1.6px);
  background-size: 24px 24px; background-position: center 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, transparent 0 30%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, transparent 0 30%, #000 72%, transparent 100%); }
.glyph { position: absolute; width: 51px; height: 51px; }
.glyph b { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--c); opacity: .14; }
.glyph b:nth-child(1) { left: 0; top: 0; } .glyph b:nth-child(2) { left: 24px; top: 0; } .glyph b:nth-child(3) { left: 48px; top: 0; }
.glyph b:nth-child(4) { left: 0; top: 24px; } .glyph b:nth-child(5) { left: 24px; top: 24px; } .glyph b:nth-child(6) { left: 48px; top: 24px; }
.glyph b:nth-child(7) { left: 0; top: 48px; } .glyph b:nth-child(8) { left: 24px; top: 48px; } .glyph b:nth-child(9) { left: 48px; top: 48px; }
.glyph.run b:nth-child(2), .glyph.run b:nth-child(4), .glyph.run b:nth-child(8), .glyph.run b:nth-child(3), .glyph.run b:nth-child(5) { animation: glyph 2.4s linear infinite; }
.glyph.run b:nth-child(4) { animation-delay: .3s; } .glyph.run b:nth-child(8) { animation-delay: .6s; }
.glyph.run b:nth-child(3) { animation-delay: 1.2s; } .glyph.run b:nth-child(5) { animation-delay: 1.5s; }
.glyph.wait b:nth-child(2), .glyph.wait b:nth-child(4), .glyph.wait b:nth-child(8), .glyph.wait b:nth-child(3), .glyph.wait b:nth-child(5) { opacity: .9; animation: glyphw 2.2s ease-in-out infinite; }
.glyph.done b:nth-child(2), .glyph.done b:nth-child(4), .glyph.done b:nth-child(8), .glyph.done b:nth-child(3), .glyph.done b:nth-child(5) { opacity: .75; }
.glyph b { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c) 0%, transparent); }
@keyframes glyph { 0% { opacity: 1; box-shadow: 0 0 12px 2px color-mix(in srgb, var(--c) 70%, transparent); } 40% { opacity: .14; box-shadow: none; } 100% { opacity: .14; } }
@keyframes glyphw { 0%, 100% { opacity: .95; box-shadow: 0 0 12px 2px color-mix(in srgb, var(--c) 60%, transparent); } 50% { opacity: .35; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .glyph b { animation: none !important; } }

.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.announce { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13px; color: var(--fg-2);
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow .2s, color .2s; }
.announce:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-3); }
.announce b { font-weight: 500; color: var(--fg); }
.announce .sep { width: 1px; height: 14px; background: var(--hair-2); }
.announce .ic { font-size: 12px; }
.announce .lat { --c: var(--run); }

h1 { margin: 28px 0 0; font-size: clamp(46px, 8.6vw, 104px); line-height: .96; font-weight: 600; letter-spacing: -.048em; text-wrap: balance; }
h1 .q { color: var(--fg-3); }
.lede { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.lede kbd { font-size: .78em; }
.lede b { color: var(--fg); font-weight: 500; }
.cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.cta-note { margin: 16px 0 0; font-size: 13px; color: var(--fg-3); }
.cta-note a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--hair-3); text-underline-offset: 3px; }
.cta-note a:hover { color: var(--fg); }

/* the live window */
.demo { position: relative; margin: 72px auto 0; max-width: 1312px; padding: 0 var(--gut); }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 6px; font-size: 13px; color: var(--fg-3); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 500; }
.live b { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px rgba(85,184,130,.18); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(85,184,130,.06); } }
.demo-bar .sp { flex: 1; }
.demo-bar button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; color: var(--fg-2); font-size: 13px; }
.demo-bar button:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.demo-frame { position: relative; border-radius: 14px; overflow: hidden; margin-top: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px -20px rgba(0,0,0,.9), 0 30px 80px -40px rgba(43,102,204,.25); background: #0e0e0e; }
.demo-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.scaler { position: relative; overflow: hidden; }
.scaler > .scaled { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scaler .win { border-radius: 0 !important; box-shadow: none !important; }
#demo-win .pr, #demo-win .qi { cursor: pointer; }
#demo-win .pr:hover:not(.on) { background: var(--hover); }
#demo-win .qi:hover:not(.next):not(.here) { background: var(--hover); }
.enter { animation: enter .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(-6px); } }
.flash { animation: flash 1.2s ease-out both; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--wait) 22%, transparent); } }

.coach { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 18px; min-height: 52px; pointer-events: none; }
.coach-in { pointer-events: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; max-width: calc(100% - 16px); padding: 8px 8px 8px 18px; border-radius: 16px;
  background: rgba(26,26,26,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.06), 0 18px 50px -10px rgba(0,0,0,.8); font-size: 14.5px; color: var(--fg); }
.coach-in.swap { animation: coach .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes coach { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.coach-in .icf, .coach-in .ic { font-size: 17px; flex: none; }
.coach-in .t { color: var(--fg-2); }
.coach-in .t b { color: var(--fg); font-weight: 500; }
.coach-in .t code { font-family: var(--mono); font-size: .9em; color: var(--fg); }
.coach-act { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--cream); color: #121212; transition: background .15s; }
.coach-act:hover { background: #fff; }
.coach-act kbd { color: #121212; background: rgba(0,0,0,.07); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.08); font-size: 12px; transition: transform .1s, box-shadow .1s; }
.coach-act.press kbd { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); background: rgba(0,0,0,.14); }
.coach-act.ghost { background: transparent; color: var(--fg-2); font-weight: 500; }
.coach-act.ghost:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.coach-act.ghost kbd { color: var(--fg); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-2); }
.coach-lat { --c: var(--run); }
.c-wait { color: var(--wait); } .c-done { color: var(--done); } .c-run { color: var(--run); } .c-fail { color: var(--fail); }
@media (max-width: 640px) {
  .coach { margin-top: 12px; }
  .coach-in { flex-wrap: wrap; justify-content: center; text-align: center; padding: 12px 14px; gap: 10px; font-size: 14px; }
  .demo-bar .hint { display: none; }
}

/* ============================================================== sections */
section { position: relative; }
.sec { padding: 150px 0 0; }
@media (max-width: 760px) { .sec { padding-top: 96px; } }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-3); font-weight: 500; }
.eyebrow kbd { font-size: 12.5px; height: 24px; padding: 0 7px; color: var(--fg-2); }
h2 { margin: 18px 0 0; font-size: clamp(34px, 4.7vw, 58px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h2 .q { color: var(--fg-3); }
.sub { margin: 20px 0 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.sub b { color: var(--fg); font-weight: 500; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* agents strip */
.agents { padding: 88px 0 0; }
.agents-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.agents-t { font-size: 14px; color: var(--fg-3); }
.agent-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ag-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--fg);
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--hair); }
.ag-pill .lg { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #1d1d1d; box-shadow: inset 0 0 0 1px var(--hair-2); color: #eaeaea; }
.ag-pill .lg img { width: 16px; height: 16px; }
.ag-pill .lg svg { display: block; }
.ag-pill.any { color: var(--fg-2); font-weight: 400; }
.ag-pill.any .lg { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }

/* native: the numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hair); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.stat { padding: 34px 30px 32px; position: relative; }
.stat + .stat { box-shadow: -1px 0 0 var(--hair); }
.stat .n { font-family: var(--mono); font-size: clamp(40px, 4.6vw, 58px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .42em; letter-spacing: -.01em; color: var(--fg-3); margin-left: .18em; font-weight: 400; }
.stat .l { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 220px; }
.stat .bar { height: 3px; margin-top: 22px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: var(--w); background: var(--c, var(--fg-3)); border-radius: inherit; transform-origin: 0 0; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.in .stat .bar i { transform: scaleX(1); }
.foot { margin-top: 16px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { box-shadow: 0 -1px 0 var(--hair); } .stat:nth-child(4) { box-shadow: -1px 0 0 var(--hair), 0 -1px 0 var(--hair); } }
@media (max-width: 520px) { .stat { padding: 26px 20px 24px; } .stat .l { font-size: 14px; } }

/* chapters */
.ch-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: end; }
.ch-head h2 { margin-top: 18px; }
.ch-body p { margin: 0; font-size: 17.5px; line-height: 1.62; color: var(--fg-2); text-wrap: pretty; }
.ch-body p b { color: var(--fg); font-weight: 500; }
.ch-body p + p { margin-top: 14px; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 11px; height: 11px; border-radius: 3px;
  background: radial-gradient(circle, var(--fg-3) 1.2px, transparent 1.5px) 0 0 / 5.5px 5.5px; opacity: .9; }
.facts li b { color: var(--fg); font-weight: 500; }
.shot { position: relative; margin-top: 56px; border-radius: 14px; overflow: hidden; background: #0e0e0e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 50px 120px -40px rgba(0,0,0,.95); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 8px;
  font-size: 12px; color: var(--fg-2); background: rgba(14,14,14,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px var(--hair-2); }
.shot figcaption b { width: 6px; height: 6px; border-radius: 50%; background: var(--done); }
@media (max-width: 900px) { .ch-head { grid-template-columns: 1fr; gap: 0; } .ch-body { margin-top: 22px; } .shot { margin-top: 40px; border-radius: 10px; } }

/* callouts on a shot */
.pin { position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.pin i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: #111; font: 600 11.5px/22px var(--sans); font-style: normal; text-align: center;
  box-shadow: 0 0 0 4px rgba(255,246,234,.16), 0 6px 16px rgba(0,0,0,.5); cursor: default; }
.pin i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,246,234,.35); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin i::after { animation: none; } }
.pin span { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 240px; padding: 8px 11px; border-radius: 9px;
  font-size: 13px; line-height: 1.4; color: var(--fg); background: #232323; box-shadow: 0 0 0 1px var(--hair-2), 0 12px 30px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.pin:hover span, .pin:focus-within span { opacity: 1; transform: translateX(-50%); }
.pins-legend { display: none; }
@media (max-width: 760px) {
  .pin { display: none; }
  .pins-legend { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fg-2); }
}

/* status board in chapter 1 */
.status-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.sb-shot { border-radius: 14px; overflow: hidden; background: #0e0e0e; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 40px 100px -40px rgba(0,0,0,.9); }
.states { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--hair); box-shadow: 0 0 0 1px var(--hair); }
.state { background: var(--bg); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.state .pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.state .pill .icf { font-size: 14px; }
.state .pill.wait { color: var(--wait); background: rgba(232,162,60,.13); }
.state .pill.run { color: var(--run); background: rgba(122,167,242,.12); }
.state .pill.done { color: var(--done); background: rgba(85,184,130,.13); }
.state .pill.fail { color: var(--fail); background: rgba(236,98,91,.13); }
.state p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.state p b { color: var(--fg); font-weight: 500; }
.state .src { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.pill .lat { --c: var(--run); }
@media (max-width: 900px) { .status-grid { grid-template-columns: 1fr; } .sb-shot { max-width: 320px; } }
@media (max-width: 520px) { .states { grid-template-columns: 1fr; } }

/* details bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 60px; }
.tile-c { position: relative; display: flex; flex-direction: column; min-height: 268px; padding: 26px; border-radius: 16px; background: linear-gradient(180deg, #121212, #0e0e0e); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.tile-c h3 { margin: auto 0 0; padding-top: 26px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.tile-c p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.tile-c p kbd { font-size: .78em; }
.vis { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 72px; }
.vis .app { font-size: 13px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile-c { min-height: 0; } }

/* little pieces of the app inside tiles */
.mini { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--fg); background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); white-space: nowrap; }
.mini .mono { font-size: 12px; }
.mini .t3 { color: var(--fg-3); }
.mini .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px rgba(85,184,130,.18); }
.mini .icf, .mini .ic { font-size: 15px; }
.term-mini { width: 100%; padding: 12px 14px; border-radius: 10px; background: #191919; box-shadow: inset 0 0 0 1px var(--hair); font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #d4d4d4; white-space: pre; overflow: hidden; }
.term-mini .d { color: #7d7d7d; } .term-mini .g { color: #8fcf8f; } .term-mini .m { color: #c99ae8; } .term-mini .u { color: #7fb0f5; } .term-mini .y { color: #e6c07b; } .term-mini .r { color: #ee7b74; }
.term-mini .cur { background: #d4d4d4; color: #191919; }
.term-mini .lnk { color: #7fb0f5; text-decoration: underline; text-underline-offset: 2px; }
.pal { width: 100%; border-radius: 12px; background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-2), 0 14px 30px -10px rgba(0,0,0,.7); overflow: hidden; font-size: 13px; }
.pal-q { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--hair); color: var(--fg); }
.pal-q .ic { color: var(--fg-3); font-size: 15px; }
.pal-q .caret { width: 1.5px; height: 15px; background: var(--blue-t); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pal-r { display: flex; align-items: center; gap: 9px; height: 32px; margin: 4px; padding: 0 9px; border-radius: 7px; color: var(--fg-2); }
.pal-r.on { background: var(--blue); color: #fff; }
.pal-r .k { margin-left: auto; font-family: var(--mono); font-size: 11px; opacity: .75; }
.pal-r .ic { font-size: 15px; }

/* keyboard */
.keys-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.seg-os { display: inline-flex; padding: 3px; gap: 3px; border-radius: 11px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); }
.seg-os button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--fg-3); }
.seg-os button[aria-pressed="true"] { background: #232323; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); }
.keygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 44px; }
.krow { display: flex; align-items: center; gap: 16px; min-height: 58px; border-top: 1px solid var(--hair); font-size: 15.5px; color: var(--fg-2); }
.krow .kk { margin-left: auto; display: flex; gap: 6px; flex: none; }
.krow kbd { font-size: 13px; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 7px; }
.krow b { color: var(--fg); font-weight: 500; }
.keygrid .krow:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
.keys-note { margin-top: 20px; font-size: 14px; color: var(--fg-3); }
@media (max-width: 820px) { .keygrid { grid-template-columns: 1fr; } .keygrid .krow:nth-last-child(2) { border-bottom: 0; } }

/* open + private */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--hair); }
.trio > div { padding: 30px 32px 0 0; }
.trio > div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.trio h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.trio h3 .ic { font-size: 20px; color: var(--fg-3); }
.trio p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.trio p code { font-family: var(--mono); font-size: .88em; color: var(--fg); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; border-top: 0; } .trio > div, .trio > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--hair); } }

/* install */
.inst { margin-top: 52px; border-radius: 18px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--hair), 0 40px 100px -50px rgba(0,0,0,.9); overflow: hidden; }
.tabs-os { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.tabs-os button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }
.tabs-os button .ic { font-size: 18px; }
.tabs-os button:hover { color: var(--fg); }
.tabs-os button[aria-selected="true"] { color: var(--fg); background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255,255,255,.05); }
.tabs-os .ver { margin-left: auto; align-self: center; padding-right: 10px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.pane-os { padding: 34px 34px 36px; }
.pane-os[hidden] { display: none; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; }
.step + .step { margin-top: 30px; }
.step .no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair-2); margin-top: 1px; }
.step h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.5; }
.step h3 span { font-weight: 400; color: var(--fg-3); font-size: 14px; margin-left: 6px; }
.step p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 720px; }
.step p b { color: var(--fg); font-weight: 500; }
.cmd { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 860px; height: 54px; padding: 0 8px 0 18px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); font-family: var(--mono); font-size: 14px; color: var(--fg); }
.cmd .ps { color: var(--fg-4); user-select: none; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .dim { color: var(--fg-3); }
.copy { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 9px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--fg-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); flex: none; }
.copy:hover { color: var(--fg); background: rgba(255,255,255,.07); }
.copy .ic { font-size: 15px; }
.copy.ok { color: var(--done); }
.dls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dl-b { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); transition: background .15s, box-shadow .15s; }
.dl-b:hover { background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--hair-3); }
.dl-b .ic { font-size: 20px; color: var(--fg-2); }
.dl-b .t { display: flex; flex-direction: column; line-height: 1.25; }
.dl-b .t b { font-size: 14.5px; font-weight: 600; }
.dl-b .t span { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.dl-b.hi { background: var(--cream); color: #121212; box-shadow: none; }
.dl-b.hi:hover { background: #fff; }
.dl-b.hi .ic, .dl-b.hi .t span { color: rgba(0,0,0,.55); }
.note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; max-width: 860px; font-size: 14px; line-height: 1.55; color: var(--fg-2); background: rgba(232,162,60,.06); box-shadow: inset 0 0 0 1px rgba(232,162,60,.16); }
.note .icf { font-size: 16px; color: var(--wait); margin-top: 2px; flex: none; }
.note b { color: var(--fg); font-weight: 500; }
.linux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; max-width: 860px; }
.lx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #161616; box-shadow: inset 0 0 0 1px var(--hair-2); }
.lx .w { min-width: 0; flex: 1; }
.lx .w b { display: block; font-size: 14.5px; font-weight: 600; }
.lx .w span { display: block; font-size: 13px; color: var(--fg-3); }
.lx .arch { display: flex; gap: 6px; flex: none; }
.lx .arch a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.lx .arch a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.inst-f { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 16px 34px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--fg-3); }
.inst-f a { color: var(--fg-2); }
.inst-f a:hover { color: var(--fg); }
.inst-f .sp { flex: 1; }
@media (max-width: 700px) { .pane-os { padding: 26px 18px 28px; } .step { grid-template-columns: 1fr; } .step .no { margin-bottom: 10px; } .linux { grid-template-columns: 1fr; } .inst-f { padding: 16px 18px; } .cmd { font-size: 12.5px; padding-left: 14px; } }

/* faq */
.faq-l { margin-top: 48px; border-top: 1px solid var(--hair); }
.faq-l details { border-bottom: 1px solid var(--hair); }
.faq-l summary { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 500; letter-spacing: -.01em; }
.faq-l summary::-webkit-details-marker { display: none; }
.faq-l summary .ic { margin-left: auto; font-size: 16px; color: var(--fg-3); transition: transform .2s; flex: none; }
.faq-l details[open] summary .ic { transform: rotate(45deg); }
.faq-l .a { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 820px; }
.faq-l .a p { margin: 0; }
.faq-l .a p + p { margin-top: 10px; }
.faq-l .a b { color: var(--fg); font-weight: 500; }
.faq-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-cols .faq-l { margin-top: 0; }
@media (max-width: 900px) { .faq-cols { grid-template-columns: 1fr; gap: 36px; } .faq-l .a { padding-right: 0; } }

/* final */
.final { padding: 170px 0 150px; text-align: center; overflow: hidden; }
.final .field { inset: 0; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 0, transparent 80%); mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 0, transparent 80%); }
.final-icon { width: 76px; height: 76px; margin: 0 auto 30px; filter: drop-shadow(0 18px 40px rgba(31,95,191,.45)); }
.final h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.045em; }
.final .cta { margin-top: 38px; }

/* footer */
.foot-site { border-top: 1px solid var(--hair); padding: 40px 0 56px; font-size: 14px; color: var(--fg-3); }
.foot-g { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-site h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.foot-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-site a:hover { color: var(--fg); }
.foot-site .brand { color: var(--fg); margin-bottom: 12px; }
.foot-site p { margin: 0; max-width: 360px; line-height: 1.6; }
.foot-site .fam span { color: var(--fg-4); }
@media (max-width: 720px) { .foot-g { grid-template-columns: 1fr 1fr; } .foot-g > div:first-child { grid-column: 1 / -1; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.hero-in > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-in > :nth-child(2) { animation-delay: .06s; } .hero-in > :nth-child(3) { animation-delay: .12s; } .hero-in > :nth-child(4) { animation-delay: .18s; } .hero-in > :nth-child(5) { animation-delay: .22s; }
.demo { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .hero-in > *, .demo { animation: none; } }
[data-k] { display: inline-flex; align-items: center; gap: 3px; }
.sbx { display: flex; flex-direction: column; background: var(--base); overflow: hidden; }
.sbx > .sb { height: 100%; }
.coach-in .ph, .coach-in .phf { font-size: 17px; flex: none; }
.coach-in .lat { flex: none; margin: 0 2px; }
.spec { margin-top: auto; padding-top: 20px; zoom: 1.1; }
.spec .tile-f { margin: 0; }
.spec .pr { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair); }
.state .spec ~ .src { margin-top: 14px; }
/* shots: caption under the frame, not over the app's status bar */
.shot { overflow: visible; margin-bottom: 30px; }
.shot::after { display: none; }
.shot img, .shot > .scaler { border-radius: 14px; }
.shot > .scaler { overflow: hidden; }
.shot figcaption { left: 2px; top: calc(100% + 14px); bottom: auto; height: auto; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; color: var(--fg-3); font-size: 13px; }
.pin.r span { left: auto; right: -10px; transform: translateY(4px); }
.pin.r:hover span, .pin.r:focus-within span { transform: none; }
@media (max-width: 900px) { .shot img, .shot > .scaler { border-radius: 10px; } }
/* grids never grow past the viewport because of a long unbreakable line */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .status-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .trio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .keygrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .states { grid-template-columns: minmax(0, 1fr); } }
.cmd code { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
