/* UI Anatomy — the public home page. Colours from tokens.css; the stage, chips and layer kinds from kit.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); }
body { font: 400 15px/1.55 var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--guide); outline-offset: 2px; }
.t3 { color: var(--text-3); }
.grow { flex: 1; min-width: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; cursor: pointer; text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 13.5px var(--font-sans); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast); }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc((100% - 1200px) / 2)); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--font-display); color: var(--text); text-decoration: none; margin-right: auto; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; } .nav a:not(.btn):hover { color: var(--text); }

main { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* ---- hero: the live example is the page's one loud thing ---- */
.hero { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.lead { margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.aside { margin-top: 28px; font-size: 13.5px; color: var(--text-3); max-width: 30em; padding-left: 12px; border-left: 2px solid var(--line-2); }
.hero-demo { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.tabs button:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 2px 8px -4px rgba(0,0,0,.25); }
.tabs img { flex: none; width: 26px; height: 40px; object-fit: cover; object-position: top; border-radius: 6px; background: #000; opacity: .7; transition: opacity var(--dur-fast); }
.tabs button[aria-selected="true"] img, .tabs button:hover img { opacity: 1; }
.tabs .tx { display: flex; flex-direction: column; min-width: 0; }
.tabs b { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs small { font-size: 12px; color: var(--text-3); }
.hero .stage { min-height: 520px; }
.hero .st-unity { min-width: 240px; }
.loading { margin: auto; color: var(--text-3); font-size: 14px; }

/* ---- sections ---- */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band-head { max-width: 640px; margin-bottom: 32px; }
.band h2, .final h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
.band-head p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

.reel { display: block; width: 100%; aspect-ratio: 1920 / 1248; border-radius: 16px; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow); }

/* the four steps really are a sequence, so they are numbered */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 600 13px var(--font-sans); margin-bottom: 14px; }
.steps h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }

.roles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.roles li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); box-shadow: inset 3px 0 0 var(--k); }
.roles .kindsq { width: 34px; height: 34px; border-radius: 9px; }
.roles b { font-weight: 600; font-size: 15px; }
.roles p { margin-top: 4px; color: var(--text-2); font-size: 14px; }

.check { display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 300px); gap: 32px; align-items: center; justify-content: start; }
.check figure { display: flex; flex-direction: column; gap: 10px; }
.check img { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.check figcaption { font-size: 13.5px; color: var(--text-2); }
.score { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px; }
.score b { font-size: clamp(36px, 4vw, 52px); font-weight: 650; letter-spacing: -.03em; color: var(--ok); line-height: 1; }
.score span { color: var(--text-3); font-size: 14px; }

.more { padding-top: 56px; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; max-width: 980px; }
.facts li { color: var(--text-2); font-size: 15px; } .facts b { color: var(--text); font-weight: 600; }

.final { padding: 72px 0 88px; border-top: 1px solid var(--line); }
.final p { margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 34em; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 24px max(16px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.foot b { color: var(--text-2); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; } .foot a { color: var(--text-2); text-decoration: none; } .foot a:hover { color: var(--text); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav { gap: 14px; }
  .hero { padding: 28px 0 48px; }
  .hero .stage { min-height: 0; }
  .band { padding: 52px 0; }
  .steps, .roles, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .check { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .check .score { grid-column: 1 / -1; grid-row: 1; flex-direction: row; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .st-shot.sweep .st-ana, .st-shot.sweep .st-line { transition: none; } }
.foot .ver { margin-left: 10px; color: var(--text-3); font-weight: 400; }
