/* ==========================================================================
   Xoolit - "Broadcast night"
   Single stylesheet shared by every page. Mobile-first.
   ========================================================================== */

:root {
  /* colour */
  --bg: #1A1A22;
  --surface: #22222C;
  --raised: #2A2A36;
  --line: #3A3A4A;
  --line-soft: #2E2E3A;
  --text: #F4F4F8;
  --muted: #A3A3B5;
  --coral: #F46262;
  --coral-press: #EF5A5A;
  --peach: #FFB3A7;
  --peach-dim: rgba(255, 179, 167, 0.14);
  --green: #3DDC84;
  --on-coral: #1A1A22;

  /* type */
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(1.6rem, 1.05rem + 2.4vw, 2.75rem);
  --fs-h1: clamp(1.95rem, 1rem + 4.6vw, 4.25rem);

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;
  --section-y: clamp(3.5rem, 2.2rem + 6vw, 7rem);

  /* radii */
  --r-sm: 8px;
  --r-panel: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); }
h1, h2, h3 { overflow-wrap: break-word; }
dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--text);
  text-decoration-color: var(--coral);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}
a:hover { color: var(--peach); }

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--coral); color: var(--on-coral); }

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- utilities ---------- */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.4rem + 3vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--on-coral); }

.section { padding-block: var(--section-y); }
.section--band { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head h2 { margin-top: var(--s-3); }
.section-lede {
  margin: var(--s-4) 0 0;
  color: var(--muted);
  font-size: var(--fs-lg);
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
}
.eyebrow--live { color: var(--coral); }
.eyebrow--live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: var(--on-coral); }
.btn-primary:hover { background: #F77E7E; color: var(--on-coral); }
.btn-primary:active { background: var(--coral-press); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--peach); color: var(--peach); }

.btn-block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-logo { display: block; width: auto; height: 30px; }
.site-footer .brand-logo { height: 38px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--peach); }
.nav-toggle-bars { position: relative; width: 1.1rem; height: 2px; background: currentColor; transition: background-color 0.15s; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.js .nav-toggle { display: inline-flex; }

.primary-nav { flex-basis: 100%; padding-bottom: var(--s-3); }
.nav-list { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: var(--peach); }
.nav-list .btn { color: var(--on-coral); min-height: 2.75rem; }
.nav-list .btn:hover { color: var(--on-coral); }

/* with JS on small screens the nav is a full-screen sheet */
.js .primary-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  padding: var(--s-4) clamp(1rem, 0.4rem + 3vw, 2rem) var(--s-7);
  background: var(--bg);
  overflow-y: auto;
}
.js .primary-nav.is-open { display: block; }
.js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.js .nav-list li { border-bottom: 1px solid var(--line-soft); }
.js .nav-list a { width: 100%; min-height: 3.5rem; font-size: 1.125rem; }
.js .nav-list li:last-child { border-bottom: 0; padding-top: var(--s-5); }
.js .nav-list li:last-child a { justify-content: center; min-height: 3.25rem; }

@media (min-width: 62em) {
  .nav-bar { flex-wrap: nowrap; }
  .primary-nav,
  .js .primary-nav,
  .js .primary-nav.is-open {
    display: block;
    position: static;
    flex-basis: auto;
    padding: 0;
    overflow: visible;
    background: none;
  }
  .js .nav-toggle { display: none; }
  .nav-list,
  .js .nav-list { flex-direction: row; align-items: center; gap: var(--s-1) var(--s-5); }
  .js .nav-list li { border: 0; }
  .js .nav-list li:last-child { padding-top: 0; }
  .js .nav-list a { width: auto; min-height: 2.75rem; font-size: var(--fs-sm); }
  .js .nav-list li:last-child a { min-height: 2.75rem; }
  body.nav-open { overflow: visible; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem) var(--section-y); }

.hero-grid { display: grid; gap: var(--s-7); align-items: center; }

.hero-copy .eyebrow { margin-bottom: var(--s-4); }
.hero-copy h1 { max-width: 14ch; }
.lede {
  margin: var(--s-5) 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--fs-lg);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-cta .btn { flex: 1 1 11rem; }
.hero-note { margin: var(--s-4) 0 0; font-size: var(--fs-sm); color: var(--muted); }

.hero-facts {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero-facts strong { color: var(--text); font-weight: 700; }

.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 0 -6% 0;
  background: radial-gradient(closest-side, rgba(244, 98, 98, 0.16), transparent 72%);
  pointer-events: none;
}

@media (min-width: 64em) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s-8); }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- studio mock (signature) ---------- */

.studio {
  position: relative;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}

.studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-1) var(--s-1) var(--s-3);
}

.live-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.6rem;
  background: var(--coral);
  color: var(--on-coral);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.live-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--on-coral);
  animation: tally 1.4s ease-in-out infinite;
}
@keyframes tally {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.studio-stat { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.studio-stat b { color: var(--text); font-weight: 700; }
.studio-bar .studio-stat:last-child { margin-left: auto; }

.studio-main { display: grid; gap: var(--s-3); }

.studio-left { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.studio-right { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }

.stage {
  position: relative;
  width: 100%;
  max-width: 12.5rem;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.1rem 0.5rem;
  background: var(--bg);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.pin {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--peach);
  border-radius: var(--r-sm);
  line-height: 1.25;
}
.pin-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
}
.pin-name { display: block; font-size: var(--fs-xs); font-weight: 700; }
.pin-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.15rem; font-size: var(--fs-xs); }
.pin-price { font-weight: 800; }
.pin-timer { font-family: var(--font-mono); font-size: 0.75rem; color: var(--coral); font-weight: 700; }

.dests { display: grid; gap: 0.15rem; padding: var(--s-2) var(--s-3); background: var(--bg); border-radius: var(--r-sm); }
.dest {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.9rem;
  font-size: var(--fs-xs);
}
.dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}
.dest-name { font-weight: 600; }
.dest-rate { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.panel {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  padding: var(--s-3);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.panel-title { margin: 0; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.chip-btn {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip-btn:hover { border-color: var(--peach); color: var(--peach); }
.js .chip-btn { display: inline-flex; }

.feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.25rem; height: 13.5rem; overflow: hidden; }
.msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  min-width: 0;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  line-height: 1;
  animation: msg-in 0.25s var(--ease);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.src {
  flex: none;
  min-width: 1.6rem;
  padding: 0.18rem 0.3rem;
  background: var(--raised);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}
.user { flex: none; max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--muted); }
.txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw {
  padding: 0.2rem 0.4rem;
  background: var(--peach);
  color: var(--bg);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.msg-order { background: var(--peach-dim); box-shadow: inset 3px 0 0 var(--peach); }
.msg-order .user { color: var(--text); }

.queue-list { display: grid; gap: 0.25rem; min-height: 9.5rem; align-content: start; }
.q-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  animation: msg-in 0.25s var(--ease);
}
.q-sku { font-family: var(--font-mono); font-weight: 700; color: var(--peach); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-name { min-width: 0; line-height: 1.25; }
.q-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-name .q-sub { font-size: 0.6875rem; color: var(--muted); }
.q-qty { font-family: var(--font-mono); font-weight: 700; }
.q-amt { min-width: 2.4rem; text-align: right; font-weight: 700; }
.queue-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.queue-total strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--peach); letter-spacing: -0.02em; }

@media (min-width: 37.5em) {
  .studio { padding: var(--s-4); }
  .studio-main { grid-template-columns: 11.5rem minmax(0, 1fr); gap: var(--s-4); }
  .stage { max-width: none; margin: 0; }
}

.mock-caption { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- problem ---------- */

.pains { display: grid; gap: var(--s-5); }
.pain { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--line); }
.pain-n { position: absolute; top: var(--s-5); right: 0; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.pain .icon { width: 2rem; height: 2rem; margin-bottom: var(--s-4); }
.pain h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.pain p { margin: 0; color: var(--muted); }

.icon { fill: none; stroke: var(--peach); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 48em) {
  .pains { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}

/* ---------- features ---------- */

.feature {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-7);
  border-top: 1px solid var(--line-soft);
}
.feature-copy, .feature-mock { min-width: 0; }
.feature-copy .eyebrow { margin-bottom: var(--s-3); }
.feature-copy h3 { margin-bottom: var(--s-4); }
.feature-copy p { color: var(--muted); max-width: 34rem; }

.ticks { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--peach);
  border-bottom: 2.5px solid var(--peach);
  transform: rotate(-45deg);
}
.ticks--sm { font-size: var(--fs-sm); margin-bottom: var(--s-5); }

.mock {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.dim { color: var(--muted); }

@media (min-width: 56em) {
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); padding-block: var(--s-8); }
  .feature--flip .feature-copy { order: 2; }
}

/* relay */
.relay-src {
  display: grid;
  gap: 0.15rem;
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  background: var(--raised);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.relay-src-name { font-weight: 700; }
.relay-src .mono { font-size: var(--fs-xs); }
.relay-list { display: grid; gap: var(--s-1); }
.relay-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: 0.6rem var(--s-3);
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.relay-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relay-state { font-size: var(--fs-xs); font-weight: 700; color: var(--green); }
.relay-rate { min-width: 4.5rem; text-align: right; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.relay-row--warn .relay-state { color: #FFB454; }
.dot--warn { background: #FFB454; }

/* keyword table */
.syntax, .matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.syntax th, .syntax td, .matrix th, .matrix td { padding: 0.7rem var(--s-2); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.syntax thead th, .matrix thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.syntax tbody th { font-weight: 400; }
.syntax .kw { display: inline-block; white-space: nowrap; font-size: 0.8125rem; }
.syntax tr:last-child th, .syntax tr:last-child td, .matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.is-held td { color: #FFB454; }
.syntax-pattern { margin: var(--s-3) 0 0; padding: var(--s-3); background: var(--bg); border-radius: var(--r-sm); text-align: center; color: var(--peach); }
.syntax-pattern .mono { font-weight: 700; }

@media (max-width: 30em) {
  .syntax th, .syntax td { display: block; padding: 0.25rem 0; border: 0; }
  .syntax tr { display: block; padding: var(--s-2) 0; border-bottom: 1px solid var(--line-soft); }
  .syntax thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* deal */
.deal-top { display: flex; align-items: center; gap: var(--s-4); }
.ring { width: 4.5rem; height: 4.5rem; flex: none; }
.deal-label { margin: 0; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.deal-time { margin: 0; font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.deal-name { margin: var(--s-4) 0 0; font-weight: 700; font-size: var(--fs-lg); }
.deal-price { margin: var(--s-1) 0 var(--s-4); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); }
.deal-now { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.deal-was { color: var(--muted); }
.meter { height: 0.6rem; background: var(--bg); border-radius: var(--r-pill); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--peach); border-radius: var(--r-pill); }
.deal-left { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.deal-left b { color: var(--text); }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.tile { display: grid; gap: 0.2rem; padding: var(--s-3); background: var(--bg); border-radius: var(--r-sm); }
.tile-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile-v { font-family: var(--font-display); font-size: clamp(0.8rem, 0.6rem + 0.9vw, 1.1rem); overflow-wrap: anywhere; font-weight: 700; letter-spacing: -0.03em; }
.bars { width: 100%; height: 6.5rem; margin-top: var(--s-4); }
.chart-cap { margin: var(--s-2) 0 var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.skus { display: grid; gap: var(--s-2); }
.skus li { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) 2rem; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.skus b { text-align: right; }
.sku-bar { height: 0.55rem; background: var(--bg); border-radius: var(--r-pill); overflow: hidden; }
.sku-bar span { display: block; height: 100%; background: var(--peach); border-radius: var(--r-pill); }

/* matrix */
.matrix th[scope="row"] { font-weight: 600; }
.matrix td { color: var(--muted); }
.matrix td.yes { color: var(--peach); font-weight: 700; }
.matrix thead th:not(:first-child), .matrix td { text-align: center; }

/* clips */
.timeline { width: 100%; height: 7rem; background: var(--bg); border-radius: var(--r-sm); }
.timeline-scale { display: flex; justify-content: space-between; margin: var(--s-2) 0 var(--s-4); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.clip-list { display: grid; gap: var(--s-2); }
.clip-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 0.6rem var(--s-3); background: var(--bg); border-left: 3px solid var(--peach); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.clip-t, .clip-d { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- session steps ---------- */

.steps { display: grid; gap: var(--s-6); position: relative; padding-left: var(--s-6); }
.steps::before { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--line); }
.step { position: relative; }
.step-dot { position: absolute; left: calc(-1 * var(--s-6)); top: 0.3rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--peach); }
.step-dot--live { border-color: var(--coral); background: var(--coral); }
.step-n { margin: 0 0 var(--s-1); font-size: var(--fs-xs); color: var(--muted); }
.step h3 { margin-bottom: var(--s-2); font-size: 1.35rem; }
.step p:last-child { margin: 0; color: var(--muted); }

@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); padding: var(--s-6) 0 0; }
  .steps::before { left: 0; right: 0; top: 0.5rem; bottom: auto; width: auto; height: 2px; }
  .step-dot { left: 0; top: calc(-1 * var(--s-6) + 0.1rem); }
}

/* ---------- built for ---------- */

.uses { margin: 0; border-top: 1px solid var(--line); }
.use { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.use dt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.use dd { margin: 0; color: var(--muted); }
@media (min-width: 48em) {
  .use { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s-6); align-items: baseline; padding: var(--s-5) 0; }
}

/* ---------- pricing ---------- */

.plans { display: grid; gap: var(--s-4); align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.plan--featured { background: var(--raised); border-color: var(--coral); border-width: 2px; }
.plan-flag { position: absolute; top: -0.85rem; left: var(--s-5); margin: 0; padding: 0.15rem 0.8rem; background: var(--coral); color: var(--on-coral); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; }
.plan h3 { font-size: 1.35rem; }
.plan-for { margin: var(--s-2) 0 var(--s-4); color: var(--muted); font-size: var(--fs-sm); }
.plan-price { margin: 0 0 var(--s-4); color: var(--muted); font-size: var(--fs-sm); }
.plan-price span { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.plan .ticks { margin-top: 0; flex: 1; }
.plan .btn { margin-top: auto; }

@media (min-width: 56em) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

.pricing-notes { display: grid; gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.pricing-notes h3 { margin-bottom: var(--s-2); font-size: 1.1rem; }
.pricing-notes p { margin: 0; color: var(--muted); max-width: 36rem; }
@media (min-width: 48em) { .pricing-notes { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; gap: var(--s-6); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.5rem;
  padding: var(--s-3) 0;
  font-weight: 700;
  font-size: var(--fs-lg);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--peach); }
.faq details p { margin: 0 0 var(--s-5); max-width: 42rem; color: var(--muted); }

@media (min-width: 64em) {
  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
  .faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- early access form ---------- */

.ea-grid { display: grid; gap: var(--s-6); align-items: start; }
.ea-copy .ticks { margin-top: var(--s-5); }

.ea-form { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); }
.field { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 700; padding: 0; }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  transition: border-color 0.15s var(--ease);
}
.field input:hover, .field select:hover { border-color: #4A4A60; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; border-color: var(--peach); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field-error { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #FF9C9C; }

.checks { gap: var(--s-1); grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.checks legend { grid-column: 1 / -1; margin-bottom: var(--s-2); }
.checks .field-error { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; padding: 0 var(--s-3); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-pill); font-weight: 500; cursor: pointer; transition: border-color 0.15s var(--ease); }
.check:hover { border-color: #4A4A60; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--coral); flex: none; }
.check:has(input:checked) { border-color: var(--peach); }
.check:has(input:focus-visible) { outline: 3px solid var(--peach); outline-offset: 2px; }

.form-fine { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.form-status { font-size: var(--fs-sm); }
.form-status:not(:empty) { padding: var(--s-3) var(--s-4); background: var(--peach-dim); border-left: 3px solid var(--peach); border-radius: var(--r-sm); }

@media (min-width: 56em) {
  .ea-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); }
  .ea-form { padding: var(--s-6); }
}

/* ---------- footer ---------- */

.site-footer { padding-top: var(--s-7); border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; gap: var(--s-5); }
.footer-note { max-width: 30rem; margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; font-size: var(--fs-sm); }
.footer-bottom { padding-block: var(--s-6) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- legal + 404 ---------- */

.legal { padding-block: var(--s-7) var(--section-y); }
.legal-inner { max-width: 70ch; }
.legal h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); margin-bottom: var(--s-3); }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-7); }
.legal h2 { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { color: #D5D5E2; }
.legal ul { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); padding-left: 1.25rem; list-style: disc; }
.legal ul li::marker { color: var(--coral); }

.notfound { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: var(--s-4); padding-block: var(--section-y); }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 14vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 0; }
.notfound .code span { color: var(--coral); }
.notfound p { margin: 0; color: var(--muted); max-width: 30rem; }

/* ---------- reveal ---------- */

html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
html.js [data-reveal] { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
