/* m3ueditor landing — stylesheet
   Tokens and the critical header block are duplicated inline in index.html
   so the first paint has no flash; keep the two in sync. */

:root {
  --bg: oklch(13% 0.028 205);
  --bg-soft: oklch(21% 0.034 205);
  --bg-raised: oklch(17% 0.032 205);
  --ink: oklch(96% 0.01 205);
  --ink-muted: oklch(72% 0.028 205);
  --ink-faint: oklch(54% 0.024 205);
  --line: oklch(28% 0.03 205);
  --mint: oklch(76% 0.15 168);
  --mint-dim: oklch(28% 0.055 168);
  --mint-ink: oklch(14% 0.04 168);
  --sand: oklch(84% 0.09 78);
  --sand-dim: oklch(32% 0.04 78);
  --font-ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --section: clamp(48px, 7vw, 88px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in oklch, var(--mint) 70%, white);
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --h1: clamp(2.25rem, 1.6rem + 3.2vw, 3.6rem);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

::selection {
  background: color-mix(in oklch, var(--mint) 70%, transparent);
  color: var(--mint-ink);
}

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

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0 0 0.45em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--h1);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--h3);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.05em 0.35em;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--sand);
}

[hidden] {
  display: none !important;
}

:where(a, button, summary, .btn):focus {
  outline: none;
}

:where(a, button, summary, .btn):focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: var(--text-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--mint);
  color: var(--mint-ink);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--mint) 88%, white);
}

.btn-outline {
  border-color: color-mix(in oklch, var(--ink) 28%, var(--line));
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink-muted);
  background: color-mix(in oklch, var(--ink) 6%, transparent);
}

.btn-ghost {
  color: var(--ink-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--ink) 6%, transparent);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  color: var(--mint);
}

.brand b {
  color: var(--mint);
  font-weight: 700;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-main a:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  text-decoration: none;
}

.nav-new {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mint-ink);
  background: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}

.nav-mobile.is-open {
  display: grid;
  gap: 4px;
}

.nav-mobile a:not(.btn) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}

.nav-mobile a:not(.btn):hover {
  background: var(--bg-raised);
  text-decoration: none;
}

.nav-mobile .btn-row {
  margin-top: 10px;
}

.nav-mobile .btn {
  flex: 1 1 140px;
}

@media (max-width: 900px) {
  .nav-main,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-mobile.is-open {
    display: grid;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section);
}

.section-tight {
  padding-block: calc(var(--section) * 0.6);
}

.section-alt {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head .kicker {
  margin: 0 0 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mint);
}

.section-head .lede {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink-muted);
  text-wrap: pretty;
}

.panel {
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section-alt .panel {
  background: var(--bg);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mint-ink);
  background: var(--mint);
  vertical-align: middle;
}

.tag-sand {
  color: oklch(16% 0.04 78);
  background: var(--sand);
}

.tag-soft {
  color: var(--mint);
  background: var(--mint-dim);
}

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

.hero {
  padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, color-mix(in oklch, var(--mint) 12%, transparent), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero .kicker {
  margin: 0 0 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mint);
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-beats {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-muted);
}

.hero-beats em {
  font-style: italic;
  color: var(--mint);
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 26px;
  font-size: var(--text-lg);
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-ctas {
  margin-bottom: 24px;
}

.hero-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-new a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-new a:hover {
  border-color: color-mix(in oklch, var(--mint) 45%, var(--line));
  text-decoration: none;
}

.hero-new .tag {
  font-size: 0.64rem;
  padding: 2px 7px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--bg-raised) 70%, transparent);
}

.hero-facts strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mint);
}

.hero-facts span {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.hero-frame {
  min-width: 0;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-facts {
    gap: 8px;
  }

  .hero-facts li {
    padding: 12px;
  }

  .hero-facts strong {
    font-size: 1.15rem;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}

/* ---------- product mock (hero) ---------- */

.mock-stack {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding-top: 8px;
}

.mock-panel {
  position: absolute;
  right: 0;
  width: min(100%, 520px);
  padding: 12px 14px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 56px -32px color-mix(in oklch, black 55%, transparent);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.mock-panel--epg {
  top: 0;
  left: 0;
  width: min(88%, 380px);
  z-index: 3;
}

.mock-panel--playlists {
  top: 72px;
  right: 0;
  width: min(96%, 500px);
  z-index: 2;
}

.mock-panel--exports {
  bottom: 0;
  left: 8%;
  width: min(82%, 420px);
  z-index: 4;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.mock-dots i:nth-child(1) {
  background: oklch(62% 0.14 25);
}

.mock-dots i:nth-child(2) {
  background: oklch(72% 0.12 85);
}

.mock-dots i:nth-child(3) {
  background: oklch(68% 0.1 145);
}

.mock-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.mock-actions {
  display: flex;
  gap: 6px;
}

.mock-btn {
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 6px;
}

.mock-btn-ghost {
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.mock-tabs span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-faint);
}

.mock-tabs span.is-on {
  color: var(--ink);
  background: color-mix(in oklch, var(--mint-dim) 80%, var(--bg-soft));
  border: 1px solid color-mix(in oklch, var(--mint) 35%, var(--line));
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  margin-bottom: 4px;
}

.mock-row .sk {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}

.mock-row .sk.w60 {
  width: 60%;
}

.mock-row .sk.w40 {
  width: 40%;
}

.mock-pill {
  padding: 2px 7px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
  background: var(--mint-dim);
  border-radius: 999px;
}

.mock-epg-layout {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.mock-side {
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mock-side strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.62rem;
  color: var(--ink);
}

.mock-side .mock-btn {
  display: inline-block;
  margin-bottom: 6px;
}

.mock-note {
  display: block;
  font-size: 0.58rem;
  color: var(--ink-faint);
}

.mock-url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: var(--bg-soft);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.mock-url .dots {
  flex: 1;
  letter-spacing: 2px;
  color: var(--ink-faint);
  overflow: hidden;
}

.mock-stat {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 980px) {
  .mock-stack {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .mock-panel {
    font-size: 0.74rem;
  }

  .mock-panel,
  .mock-panel--epg,
  .mock-panel--playlists,
  .mock-panel--exports {
    position: relative;
    inset: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* One real screen is enough on a phone; the other two repeat the point. */
  .mock-panel--epg,
  .mock-panel--exports {
    display: none;
  }
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin-bottom: 12px;
  color: var(--ink-muted);
}

.step ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.step li {
  position: relative;
  padding-left: 14px;
}

.step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

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

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--mint);
  background: var(--mint-dim);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
}

.feature p + p {
  margin-top: 8px;
}

.feature-link {
  margin-top: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.feature--wide {
  grid-column: 1 / -1;
}

.feature--wide .feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.prompt-list {
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  display: grid;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prompt-list li {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.prompt-list li::before {
  content: "›";
  margin-right: 8px;
  color: var(--mint);
}

.prompt-list .small {
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--ink-faint);
}

.prompt-list .small::before {
  content: none;
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature--wide .feature-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- detail bands ---------- */

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.band--flip .band-copy {
  order: 2;
}

.band-copy .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mint);
}

.band-copy h2 {
  margin-bottom: 14px;
}

.band-copy > p {
  color: var(--ink-muted);
  text-wrap: pretty;
}

.band-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.band-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-muted);
}

.band-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380e8bf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.band-points strong {
  color: var(--ink);
}

.band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.band-visual,
.band-copy,
.contact-grid > *,
.hero-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .band-grid {
    grid-template-columns: 1fr;
  }

  .band--flip .band-copy {
    order: 0;
  }
}

/* ---------- AI fragment ---------- */

.ai-logo {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mint-dim);
}

.ai-logo svg {
  overflow: visible;
}

.ai-spark {
  fill: var(--mint);
  transform-box: fill-box;
  transform-origin: center;
}

.ai-spark--main {
  animation: ai-twinkle 2.6s var(--ease-out) infinite;
}

.ai-spark--sm {
  fill: oklch(98% 0.01 205);
  animation: ai-twinkle 2.6s var(--ease-out) infinite 0.7s;
}

@keyframes ai-twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(0.62) rotate(18deg);
    opacity: 0.55;
  }
}

.ai-demo {
  margin: 0;
  padding: 14px;
  background: oklch(14% 0.018 205);
  border: 1px solid color-mix(in oklch, var(--mint) 22%, var(--line));
  border-radius: var(--radius-lg);
}

.ai-demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ai-demo-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.ai-demo-quota {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mint);
  background: var(--mint-dim);
  border-radius: 999px;
}

.ai-demo-thread {
  display: grid;
  gap: 12px;
}

.ai-demo-user {
  justify-self: end;
  max-width: 92%;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 12px;
  border-bottom-right-radius: 4px;
}

.ai-demo-card {
  padding: 12px 13px;
  background: oklch(97% 0.004 205);
  color: oklch(18% 0.02 205);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ai-demo-card h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: oklch(16% 0.02 205);
}

.ai-demo-meta {
  margin: 4px 0 10px;
  font-size: 0.72rem;
  color: oklch(48% 0.02 205);
}

.ai-demo-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ai-demo-step {
  display: grid;
  gap: 3px;
}

.ai-demo-step-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.ai-demo-step-head span:last-child {
  color: oklch(48% 0.02 205);
  font-weight: 500;
}

.ai-demo-samples {
  margin: 0;
  font-size: 0.72rem;
  color: oklch(52% 0.02 205);
}

.ai-demo-applied {
  margin-top: 12px;
  padding: 10px 11px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46;
  font-size: 0.74rem;
}

.ai-demo-applied strong {
  display: block;
  margin-bottom: 4px;
}

.ai-demo-applied ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ai-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-demo-apply {
  flex: 1 1 8rem;
  padding: 9px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 10px;
}

.ai-demo-decline {
  padding: 9px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: oklch(48% 0.02 205);
  background: oklch(94% 0.004 205);
  border: 1px solid oklch(86% 0.01 205);
  border-radius: 10px;
}

.ai-demo-caption {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- EPG fragment ---------- */

.epg-live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.epg-live-stats li {
  padding: 14px 12px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.epg-live-stats strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--mint);
}

.epg-live-stats span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.epg-live-note {
  margin: 0 0 18px;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.epg-live-preview {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid color-mix(in oklch, var(--sand) 22%, var(--line));
}

.section-alt .epg-live-preview {
  background: var(--bg);
}

.epg-live-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.epg-live-preview__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand);
}

.epg-live-preview__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--sand) 25%, transparent);
  animation: epg-pulse 1.8s ease-in-out infinite;
}

@keyframes epg-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.epg-live-preview__shuffle {
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.epg-live-preview__shuffle:hover:not(:disabled) {
  border-color: color-mix(in oklch, var(--sand) 45%, var(--line));
  background: var(--bg-soft);
}

.epg-live-preview__shuffle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.epg-live-preview__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.epg-live-preview__channel img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.epg-live-preview__channel strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.epg-live-preview__channel span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.epg-live-preview__time {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.epg-live-preview__progress {
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--line) 80%, transparent);
  overflow: hidden;
}

.epg-live-preview__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sand);
  transition: width 0.6s var(--ease-out);
}

.epg-live-preview__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: start;
}

.epg-live-preview__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.epg-live-preview__subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.epg-live-preview__desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg-live-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.epg-live-preview__meta span {
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand);
  background: color-mix(in oklch, var(--sand-dim) 55%, var(--bg-soft));
  border-radius: 999px;
}

.epg-live-preview__actors {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg-live-preview__poster {
  width: 108px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid color-mix(in oklch, var(--sand) 25%, var(--line));
}

.epg-live-preview__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.epg-live-preview__skeleton {
  display: grid;
  gap: 10px;
}

.epg-live-preview__skeleton span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: color-mix(in oklch, var(--line) 60%, transparent);
  animation: epg-pulse 1.4s ease-in-out infinite;
}

.epg-live-preview__skeleton span:nth-child(1) {
  width: 55%;
}

.epg-live-preview__skeleton span:nth-child(2) {
  width: 90%;
}

.epg-live-preview__skeleton span:nth-child(3) {
  width: 75%;
}

@media (max-width: 480px) {
  .epg-live-stats {
    grid-template-columns: 1fr;
  }

  .epg-live-preview__layout {
    grid-template-columns: 1fr;
  }

  .epg-live-preview__poster {
    width: 120px;
  }
}

/* ---------- Watch now fragment ---------- */

.watch-demo {
  margin: 0;
  padding: 12px;
  background: oklch(14% 0.02 205);
  border: 1px solid color-mix(in oklch, var(--mint) 26%, var(--line));
  border-radius: var(--radius-lg);
}

.watch-shell {
  overflow: hidden;
  background: oklch(11% 0.02 205);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.watch-shell__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: oklch(16% 0.025 205);
  border-bottom: 1px solid var(--line);
}

.watch-shell__live {
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: #dc2626;
  border-radius: 4px;
  animation: epg-pulse 1.8s ease-in-out infinite;
}

.watch-shell__name {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.watch-shell__chip {
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.watch-shell__chip.is-mint {
  color: var(--mint-ink);
  background: var(--mint);
  border-color: var(--mint);
}

.watch-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.4fr);
  min-height: 292px;
}

.watch-shell__groups,
.watch-shell__channels {
  min-width: 0;
  padding: 8px;
  border-right: 1px solid var(--line);
}

.watch-shell__label {
  margin: 0 0 6px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.watch-shell__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  padding: 7px 8px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border-radius: 6px;
}

.watch-shell__row.is-on {
  color: var(--mint);
  background: color-mix(in oklch, var(--mint) 16%, var(--bg-soft));
}

.watch-shell__player {
  display: grid;
  grid-template-rows: minmax(148px, 1.15fr) auto;
  min-width: 0;
  min-height: 0;
}

.watch-shell__video {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 148px;
  background:
    radial-gradient(ellipse at 38% 28%, color-mix(in oklch, var(--mint) 24%, transparent), transparent 58%),
    linear-gradient(180deg, oklch(18% 0.03 205), oklch(9% 0.02 205));
}

.watch-shell__play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 999px;
}

.watch-shell__now {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  font-size: 0.7rem;
  color: var(--ink);
  background: oklch(12% 0.02 205 / 0.78);
  border-radius: 6px;
}

.watch-shell__epg {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
}

.watch-shell__epg p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.watch-demo-mode {
  margin: 10px 2px 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.watch-demo-mode__narrow {
  display: none;
}

@media (max-width: 720px) {
  .watch-shell__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "player player"
      "groups channels";
    min-height: 0;
  }

  .watch-shell__player {
    grid-area: player;
    grid-template-rows: auto auto;
  }

  .watch-shell__groups {
    grid-area: groups;
  }

  .watch-shell__channels {
    grid-area: channels;
  }

  .watch-shell__video {
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 168px;
  }

  .watch-demo-mode__wide {
    display: none;
  }

  .watch-demo-mode__narrow {
    display: inline;
  }
}

/* ---------- schedule fragment ---------- */

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

.pricing-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid color-mix(in oklch, var(--mint) 30%, var(--line));
  border-radius: var(--radius-lg);
}

.pricing-card h2 {
  margin-bottom: 12px;
}

.pricing-card .lede {
  max-width: 56ch;
  margin: 0 auto 22px;
  font-size: var(--text-lg);
  color: var(--ink-muted);
}

.pricing-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pricing-points li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.pricing-card .btn-row {
  justify-content: center;
}

.pricing-note {
  margin: 18px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.faq-grid > * {
  min-width: 0;
}

.faq-side {
  position: sticky;
  top: 96px;
}

.faq-side .lede {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.faq-side nav {
  display: grid;
  gap: 4px;
}

.faq-side nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.faq-side nav a:hover {
  color: var(--ink);
  background: var(--bg-raised);
  text-decoration: none;
}

.faq-group + .faq-group {
  margin-top: 32px;
}

.faq-group h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--mint);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease-out);
}

.faq-list summary:hover {
  color: var(--mint);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.25s var(--ease-out);
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--mint);
}

.faq-list details p {
  margin: 0;
  padding: 0 4px 18px;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-side {
    position: static;
  }

  .faq-side nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contact-copy .lede {
  color: var(--ink-muted);
}

.contact-aside {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.contact-aside p {
  margin: 0;
}

.contact-aside p + p {
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-form.is-sent {
  display: none;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: color-mix(in oklch, var(--mint) 45%, var(--line));
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-success {
  display: none;
  padding: 20px;
  background: color-mix(in oklch, var(--mint) 10%, var(--bg-raised));
  border: 1px solid color-mix(in oklch, var(--mint) 30%, var(--line));
  border-radius: var(--radius-lg);
}

.contact-success.is-visible {
  display: block;
}

.contact-success h3 {
  margin: 0 0 8px;
}

.contact-success p {
  margin: 0;
  color: var(--ink-muted);
}

.contact-error {
  display: none;
  margin: 0;
  padding: 12px 14px;
  color: oklch(88% 0.08 25);
  background: color-mix(in oklch, oklch(55% 0.18 25) 14%, var(--bg-raised));
  border: 1px solid color-mix(in oklch, oklch(55% 0.18 25) 40%, var(--line));
  border-radius: var(--radius);
  line-height: 1.5;
}

.contact-error.is-visible {
  display: block;
}

@media (max-width: 900px) {
  .contact-grid,
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

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

.footer-cta {
  padding-block: var(--section);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, color-mix(in oklch, var(--mint) 14%, transparent), transparent 70%),
    var(--bg);
}

.footer-cta h2 {
  margin-bottom: 20px;
}

.footer-cta .btn-row {
  justify-content: center;
}

.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 32ch;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--ink-muted);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-meta {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}

.js .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.js .reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 70ms;
}

.js .reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 140ms;
}

.js .reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 210ms;
}

.js .reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}

.js .reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 350ms;
}

.js .reveal-stagger.is-visible > *:nth-child(n + 7) {
  transition-delay: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .faq-list summary::after,
  .menu-toggle span {
    transition: none;
  }

  .ai-spark--main,
  .ai-spark--sm,
  .epg-live-preview__badge::before,
  .epg-live-preview__skeleton span,
  .watch-shell__live {
    animation: none;
  }
}
