/* Streamr marketing site. Ported from web/src/styles (tokens, base, components, mocks, pages). Brand: STREAMR_BRAND.md. */
/* Brand tokens — STREAMR_BRAND.md §3.1, plus web-only extras. Views use these vars, never literal colors. */
:root {
  --bg-base: #07080c;
  --bg-elevated: #0b0d18;
  --bg-raised: #141729;
  --grape-start: #a23bff;
  --grape-end: #ff4fb8;
  --grape-text: #c27bff;
  --live: #ff4fb8;
  --live-text: #ff7fc8;
  --live-badge: #e00086;
  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.6);
  --text-3: rgba(255, 255, 255, 0.38);
  --stroke: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.06);
  --confetti-yellow: #ffd166;
  --confetti-mint: #3ae0c8;
  --confetti-orange: #ff9f43;
  --confetti-pink: #ff6fae;
  --grape: linear-gradient(135deg, var(--grape-start), var(--grape-end));
  --font-brand: "SF Pro Rounded", ui-rounded, system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);

  /* Grape under a 22% black scrim (BrandTokens.grapeDeep): for pills/buttons whose white label is < 17pt. */
  --grape-deep: linear-gradient(135deg, #7e2ec7, #c73e90);
  /* Grape Glow (§2.3) and Base Fade scrim */
  --grape-glow: radial-gradient(closest-side, rgba(162, 59, 255, 0.35), transparent);
  --base-fade: linear-gradient(to bottom, rgba(7, 8, 12, 0), rgba(7, 8, 12, 0.9));
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --track: rgba(255, 255, 255, 0.18);
  --buffered: rgba(255, 255, 255, 0.35);
  --scrim: rgba(7, 8, 12, 0.72);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing (4-pt grid) */
  --s-xs: 4px;
  --s-s: 8px;
  --s-m: 12px;
  --s-l: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-hero: 48px;

  /* Motion (§8) */
  --dur-spring: 350ms;
  --dur-snappy: 250ms;
  --dur-fade: 200ms;
  --ease-snappy: cubic-bezier(0.25, 1, 0.5, 1);

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --focus-scale: 1.06;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 600;
}

::selection {
  background: color-mix(in srgb, var(--grape-start) 45%, transparent);
}

/* Focus: brand ring, never the default blue (§7.2). Buttons get a gradient ring below. */
:focus-visible {
  outline: 2px solid var(--grape-text);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  color: var(--text-1);
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.page {
  padding-block: 48px 80px;
}

.muted {
  color: var(--text-2);
}

.text-1 {
  color: var(--text-1);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Type scale (§4, scaled for the web) */
.display {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.04;
}

.display-sm {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
}

.title-1 {
  font-size: 1.85rem;
  font-weight: 700;
}

.title-2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.title-3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grape-text);
  margin-bottom: 10px;
}

.grape-text {
  background: var(--grape);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* ---------- Buttons (§7.1) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-brand);
  font-size: 17px; /* ≥ 17pt semibold on Grape (§2.4) */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-spring) var(--ease-spring),
    filter var(--dur-fade) ease-out,
    background-color var(--dur-fade) ease-out,
    border-color var(--dur-fade) ease-out;
}

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

.btn:not(:disabled):hover {
  transform: scale(1.02);
  filter: brightness(1.06);
}

.btn:not(:disabled):active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
}

.btn-primary {
  background: var(--grape);
  color: var(--text-1);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--grape-start) 35%, transparent);
}

.btn-secondary {
  background: var(--glass);
  border-color: var(--stroke-strong);
  color: var(--text-1);
}

.btn-secondary:not(:disabled):hover {
  background: var(--bg-raised);
}

.btn-ghost {
  background: transparent;
  color: var(--grape-text);
}

.btn-ghost:not(:disabled):hover {
  background: var(--glass);
}

/* Destructive confirmations: no red in brand UI, so a high-contrast glass button with explicit wording. */
.btn-danger {
  background: var(--bg-raised);
  border-color: var(--stroke-strong);
  color: var(--live-text);
}

.btn-danger:not(:disabled):hover {
  background: color-mix(in srgb, var(--live-badge) 18%, var(--bg-raised));
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 15px;
}

/* Small primary labels sit on Grape Deep so white text passes 4.5:1. */
.btn-primary.btn-sm,
.btn-nav {
  background: var(--grape-deep);
}

.btn-nav {
  min-height: 38px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
  }
}

/* Gradient focus ring: 2px Grape, offset 3px (§7.2) */
.btn:focus-visible,
.icon-btn:focus-visible,
.tab:focus-visible,
.segment:has(input:focus-visible) {
  outline: none;
}

.btn:focus-visible::after,
.icon-btn:focus-visible::after,
.tab:focus-visible::after,
.segment:has(input:focus-visible)::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: var(--r-pill);
  padding: 2px;
  background: var(--grape);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  transition: background-color var(--dur-fade) ease-out, color var(--dur-fade) ease-out;
}

.icon-btn:hover:not(:disabled) {
  background: var(--glass);
  color: var(--text-1);
}

.link-btn {
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--grape-text);
  font-weight: 600;
  font-size: 15px;
}

.link-btn:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:disabled {
  color: var(--text-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ---------- Pills, badges, status ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-grape {
  background: var(--grape-deep);
  border-color: transparent;
  color: var(--text-1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.badge-live {
  background: var(--live-badge);
  color: var(--text-1);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-1);
  animation: live-pulse 1.2s ease-in-out infinite alternate;
}

.badge-sm {
  font-size: 9px;
  padding: 2px 6px;
}

@keyframes live-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.4;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}

.status-ok .status-dot {
  background: var(--confetti-mint);
}

.status-warn .status-dot {
  background: var(--confetti-orange);
}

/* ---------- Checklist ---------- */
.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checklist svg {
  flex: none;
  margin-top: 3px;
  color: var(--grape-text);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--r-l);
  padding: 24px;
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
}

/* ---------- Loading / empty / error (§7.5) ---------- */
.state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 56px 16px;
}

.state-icon {
  color: var(--text-3);
  margin-bottom: 4px;
}

.state-icon--warn {
  color: var(--confetti-orange);
}

.state-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.state-help {
  color: var(--text-2);
  max-width: 44ch;
}

.state .btn {
  margin-top: 8px;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 20%, var(--grape-start), var(--grape-end));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spin 0.9s linear infinite;
  vertical-align: middle;
}

.banner .spinner,
p .spinner {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: fade-pulse 1.2s ease-in-out infinite alternate !important;
    animation-iteration-count: infinite !important;
  }
}

@keyframes fade-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.35;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq-item {
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  transition: border-color var(--dur-fade) ease-out;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--stroke-strong);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-l);
}

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

.faq-chevron {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-snappy) var(--ease-snappy);
}

.faq-item[open] .faq-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-2);
  max-width: 72ch;
}
/* CSS-built product mocks. Decorative, small type, brand tokens only. */

.mock {
  container-type: inline-size;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-1);
  user-select: none;
}

.mock-window,
.mock-panel {
  position: relative;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow), 0 30px 80px color-mix(in srgb, var(--grape-start) 14%, transparent);
  overflow: hidden;
}

.mw-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
}

.mw-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mw-content {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mp-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.muted-mock {
  display: block;
  color: var(--text-2);
  font-size: 11px;
}

.chip-dark {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-base) 60%, transparent);
  border: 1px solid var(--stroke-strong);
  font-family: var(--font-brand);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-sel,
.chip-off {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 11.5px;
}

.chip-sel {
  background: var(--grape-deep);
}

.chip-off {
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text-2);
}

.lt-logo {
  flex: none;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--stroke);
}

.progress {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: var(--r-pill);
  background: var(--track);
  overflow: hidden;
}

.progress > span,
.poster-progress > span,
.st-slider > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grape);
}

/* Video surfaces: grape-tinted abstract art under a Base Fade scrim */
.video {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--r-m);
  overflow: hidden;
  padding: 10px;
  min-height: 150px;
  isolation: isolate;
}

.video::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: var(--base-fade);
  z-index: -1;
}

.video-a {
  background:
    radial-gradient(70% 90% at 75% 30%, color-mix(in srgb, var(--grape-end) 55%, transparent), transparent 70%),
    radial-gradient(60% 80% at 20% 70%, color-mix(in srgb, var(--grape-start) 70%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--grape-start) 16%, var(--bg-base)), var(--bg-raised));
}

.video-b {
  background:
    radial-gradient(60% 80% at 30% 35%, color-mix(in srgb, var(--grape-start) 60%, transparent), transparent 70%),
    radial-gradient(50% 70% at 80% 75%, color-mix(in srgb, var(--grape-end) 45%, transparent), transparent 70%),
    linear-gradient(200deg, color-mix(in srgb, var(--grape-start) 14%, var(--bg-base)), var(--bg-base));
}

.video-glow {
  position: absolute;
  inset: 20% 30%;
  background: var(--grape-glow);
  z-index: -1;
  animation: glow-drift 9s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  to {
    transform: translate(18%, -10%) scale(1.25);
  }
}

.video-top {
  display: flex;
  gap: 6px;
}

.video-bottom {
  display: grid;
  gap: 2px;
}

.video-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 700;
}

.video-sub {
  font-size: 11px;
  color: var(--text-2);
}

.btn-mock {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--stroke-strong);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.btn-mock-primary {
  background: var(--grape-deep);
  border-color: transparent;
}

/* Posters: dark, grape-family tints only */
.poster,
.fy-tile {
  position: relative;
  display: block;
  border-radius: var(--r-s);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.poster {
  aspect-ratio: 2 / 3;
}

.poster-1 {
  background: linear-gradient(160deg, color-mix(in srgb, var(--grape-start) 55%, var(--bg-raised)), var(--bg-elevated));
}
.poster-2 {
  background: linear-gradient(200deg, color-mix(in srgb, var(--grape-end) 45%, var(--bg-raised)), var(--bg-base));
}
.poster-3 {
  background:
    radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--grape-text) 45%, transparent), transparent),
    var(--bg-raised);
}
.poster-4 {
  background: linear-gradient(135deg, var(--bg-raised), color-mix(in srgb, var(--grape-start) 40%, var(--bg-base)));
}
.poster-5 {
  background:
    radial-gradient(70% 60% at 30% 80%, color-mix(in srgb, var(--live-badge) 40%, transparent), transparent),
    var(--bg-raised);
}
.poster-6 {
  background: linear-gradient(180deg, color-mix(in srgb, var(--grape-text) 25%, var(--bg-raised)), var(--bg-base));
}

.poster-progress {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--track);
  overflow: hidden;
}

.toggle {
  position: relative;
  flex: none;
  width: 32px;
  height: 19px;
  border-radius: var(--r-pill);
  background: var(--track);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle.is-on {
  background: var(--grape);
}

.toggle.is-on::after {
  left: 15px;
}

.ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 12.5px;
}

.ft-row .muted-mock {
  display: inline;
  margin-left: 4px;
}

/* ---------- Shared sidebar bits ---------- */
.lt-side,
.fy-side,
.st-side,
.ls-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lt-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 10px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.lt-cat,
.st-item {
  padding: 7px 10px;
  border-radius: var(--r-s);
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-cat.is-sel,
.st-item.is-sel {
  background: var(--grape-deep);
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- Live TV ---------- */
.mock-livetv .mw-content {
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.25fr);
  min-height: 330px;
}

.lt-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lt-ch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--r-m);
  border: 1px solid transparent;
}

.lt-ch.is-sel {
  background: var(--bg-raised);
  border-color: color-mix(in srgb, var(--grape-start) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--grape-end) 30%, transparent), 0 6px 24px color-mix(in srgb, var(--grape-start) 25%, transparent);
}

.lt-num {
  width: 22px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.lt-meta {
  flex: 1;
  min-width: 0;
  display: grid;
}

.lt-name {
  font-weight: 600;
  font-size: 12.5px;
}

.lt-now {
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.lt-preview .video {
  aspect-ratio: 16 / 9;
}

.lt-sched {
  display: grid;
  gap: 2px;
  align-content: start;
}

.sched-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--r-s);
  color: var(--text-2);
}

.sched-row .mono {
  font-size: 11px;
  width: 36px;
}

.sched-row.is-now {
  background: color-mix(in srgb, var(--grape-start) 16%, transparent);
  color: var(--text-1);
  font-weight: 600;
}

.sched-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--live-text);
}

.sched-catchup {
  color: var(--grape-text);
}

@container (max-width: 640px) {
  .mock-livetv .mw-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  .mock-livetv .lt-side {
    display: none;
  }
}

@container (max-width: 440px) {
  .mock-livetv .mw-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mock-livetv .lt-preview {
    order: -1;
  }
  .mock-livetv .lt-sched,
  .mock-livetv .lt-ch:nth-child(n + 5) {
    display: none;
  }
}

/* ---------- For You (hero) ---------- */
.mock-foryou .mw-content {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.fy-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.fy-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  padding: 20px;
}

.mv-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 80% at 78% 35%, color-mix(in srgb, var(--grape-end) 55%, transparent), transparent 70%),
    radial-gradient(60% 90% at 45% 10%, color-mix(in srgb, var(--grape-start) 70%, transparent), transparent 70%),
    linear-gradient(120deg, var(--bg-raised), color-mix(in srgb, var(--grape-start) 28%, var(--bg-base)));
}

.mv-backdrop::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: var(--base-fade);
}

.fy-backdrop {
  animation: ken-burns 14s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  to {
    transform: scale(1.12) translate(-3%, 2%);
  }
}

.fy-hero-info {
  display: grid;
  gap: 6px;
  justify-items: start;
  max-width: 340px;
}

.fy-title,
.mv-title {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.mv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.fy-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 5px;
}

.fy-dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.35);
}

.fy-dots .is-sel {
  width: 18px;
  background: var(--text-1);
}

.mv-row-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

.fy-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fy-tile {
  aspect-ratio: 16 / 9;
}

.fy-live {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px;
}

.fy-tile-title {
  font-size: 11px;
  font-weight: 600;
  margin-top: auto;
}

@container (max-width: 640px) {
  .mock-foryou .mw-content {
    grid-template-columns: 1fr;
  }
  .mock-foryou .fy-side {
    display: none;
  }
}

@container (max-width: 440px) {
  .fy-hero {
    min-height: 190px;
    padding: 14px;
  }
  .fy-title {
    font-size: 22px;
  }
  .fy-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fy-row > :nth-child(n + 3) {
    display: none;
  }
}

/* ---------- Onboarding ---------- */
.mock-onboarding .mp-content {
  gap: 14px;
}

.ob-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ob-opt {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-weight: 600;
  text-align: center;
}

.ob-opt.is-sel {
  background: color-mix(in srgb, var(--grape-start) 16%, var(--bg-raised));
  border-color: color-mix(in srgb, var(--grape-start) 70%, transparent);
}

.ob-ico {
  font-size: 18px;
  color: var(--grape-text);
}

.field-mock {
  display: grid;
  gap: 5px;
}

.field-label {
  font-weight: 600;
  font-size: 11.5px;
}

.field-input {
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--bg-raised);
  border: 1px solid var(--grape-text);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-autofill {
  font-size: 11px;
  color: var(--grape-text);
  font-weight: 600;
}

.ob-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-m);
  background: var(--bg-raised);
}

.ob-summary strong {
  display: block;
  font-size: 13px;
}

.ob-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--confetti-mint) 18%, transparent);
  color: var(--confetti-mint);
  font-weight: 800;
}

.ob-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Guide ---------- */
.mock-guide .mw-content {
  gap: 6px;
}

.gd-times,
.gd-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px;
}

.gd-times {
  grid-template-columns: 112px repeat(4, minmax(0, 1fr));
  color: var(--text-2);
  font-size: 10.5px;
  padding-bottom: 2px;
}

.gd-grid {
  position: relative;
  display: grid;
  gap: 5px;
}

.gd-ch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-ch .lt-logo {
  width: 22px;
  height: 16px;
}

.gd-progs {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.gd-prog {
  flex-basis: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 8px;
  border-radius: var(--r-s);
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-prog.is-past {
  color: var(--text-2);
}

.gd-prog.is-now {
  background: color-mix(in srgb, var(--grape-start) 16%, transparent);
  border-color: color-mix(in srgb, var(--grape-start) 40%, transparent);
  font-weight: 600;
}

.gd-catch {
  color: var(--grape-text);
  font-weight: 700;
}

.gd-nowline {
  position: absolute;
  top: -8px;
  bottom: 0;
  left: calc(112px + 6px + (100% - 118px) * 0.62);
  width: 2px;
  border-radius: 2px;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
}

.gd-nowline::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

@container (max-width: 440px) {
  .gd-times,
  .gd-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .gd-times {
    grid-template-columns: 30px repeat(4, minmax(0, 1fr));
  }
  .gd-ch {
    font-size: 0;
  }
  .gd-nowline {
    left: calc(36px + (100% - 36px) * 0.62);
  }
}

/* ---------- Sports ---------- */
.sp-section {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

.sp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sp-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--r-m);
  background: var(--bg-raised);
  border: 1px solid var(--stroke);
}

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sp-team {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--text-2);
  font-weight: 500;
}

.sp-team b {
  font-size: 14px;
}

.sp-team.is-win {
  color: var(--text-1);
  font-weight: 600;
}

.sp-up {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: 1px solid var(--stroke);
}

.sp-up .muted-mock {
  margin-left: auto;
}

.sp-time {
  color: var(--grape-text);
  font-weight: 700;
}

@container (max-width: 380px) {
  .sp-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Movies ---------- */
.mv-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
}

.mv-info {
  display: grid;
  gap: 5px;
  max-width: 360px;
}

.mv-plot {
  color: var(--text-2);
  font-size: 12px;
}

.mv-posters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.mv-posters-sm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@container (max-width: 480px) {
  .mv-posters:not(.mv-posters-sm) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mv-posters:not(.mv-posters-sm) > :nth-child(n + 5) {
    display: none;
  }
  .mv-title {
    font-size: 22px;
  }
}

/* ---------- My Lists ---------- */
.mock-lists .mp-content {
  position: relative;
}

.ls-head {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  padding: 0 4px 6px;
}

.ls-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-m);
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid transparent;
}

.ls-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-family: var(--font-mono);
}

.ls-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bg-raised);
  color: var(--grape-text);
  font-size: 12px;
}

.ls-item.is-drop {
  color: var(--text-1);
  background: color-mix(in srgb, var(--grape-start) 16%, transparent);
  border-color: color-mix(in srgb, var(--grape-start) 70%, transparent);
  border-style: dashed;
}

.ls-new {
  padding: 9px 10px;
  border-radius: var(--r-m);
  border: 1px dashed var(--stroke-strong);
  color: var(--text-2);
  font-weight: 600;
  margin-top: 4px;
}

.ls-drag {
  position: absolute;
  right: 18px;
  top: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-m);
  background: var(--bg-raised);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  animation: drag-float 3.2s ease-in-out infinite alternate;
}

.ls-drag strong {
  display: block;
  font-size: 12px;
}

@keyframes drag-float {
  to {
    transform: rotate(-1deg) translate(-14px, 10px);
  }
}

.ls-favs {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.ls-favs .mv-posters {
  max-width: 280px;
}

@container (max-width: 420px) {
  .ls-drag {
    top: 40px;
    right: 10px;
  }
}

/* ---------- Filters ---------- */
.ft-head {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
}

.ft-divider {
  height: 6px;
}

/* ---------- Player ---------- */
.pl-video {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  padding: 14px;
  justify-content: flex-end;
}

.pl-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 2px;
  width: 168px;
  padding: 10px;
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stroke-strong);
}

.pl-menu-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 6px 6px 2px;
}

.pl-opt {
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 11.5px;
}

.pl-opt.is-sel {
  background: var(--glass);
  font-weight: 600;
}

.pl-chrome {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--stroke);
}

.pl-scrub {
  position: relative;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--track);
}

.pl-buffered,
.pl-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}

.pl-buffered {
  width: 72%;
  background: var(--buffered);
}

.pl-played {
  width: 57%;
  background: var(--grape);
}

.pl-knob {
  position: absolute;
  left: 57%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-1);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.pl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pl-row .muted-mock {
  display: inline;
}

.pl-play {
  font-size: 13px;
}

.pl-spacer {
  flex: 1;
}

.pl-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  width: fit-content;
  max-width: 100%;
}

.pl-prof {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-weight: 600;
  font-size: 11.5px;
}

.pl-prof.is-sel {
  background: var(--grape-deep);
  color: var(--text-1);
}

@container (max-width: 460px) {
  .pl-menu {
    display: none;
  }
  .pl-video {
    min-height: 0;
  }
}

/* ---------- Settings ---------- */
.mock-settings .mw-content {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
}

.st-main {
  display: grid;
  gap: 4px;
  align-content: start;
}

.st-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.st-preview {
  display: grid;
  place-items: end center;
  min-height: 110px;
  padding: 14px;
  border-radius: var(--r-m);
  margin-bottom: 6px;
  background:
    radial-gradient(60% 80% at 30% 30%, color-mix(in srgb, var(--grape-start) 45%, transparent), transparent 70%),
    linear-gradient(160deg, var(--bg-raised), var(--bg-base));
}

.st-sub {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 600;
}

.st-slider {
  display: block;
  width: 110px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--track);
  overflow: hidden;
}

@container (max-width: 480px) {
  .mock-settings .mw-content {
    grid-template-columns: 1fr;
  }
  .mock-settings .st-side {
    flex-direction: row;
    overflow: hidden;
    gap: 4px;
  }
  .mock-settings .st-item {
    flex: none;
  }
}

/* ---------- Keyboard mini grid ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}

.mini-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--dur-spring) var(--ease-spring), border-color var(--dur-fade) ease-out;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
}

.mini-kbd {
  display: inline-flex;
  align-items: center;
  min-width: 34px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: var(--r-s);
  background: var(--bg-raised);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grape-text);
}

@media (prefers-reduced-motion: reduce) {
  .video-glow,
  .fy-backdrop,
  .ls-drag,
  .badge-live::before,
  .hero-icon {
    animation: none !important;
  }
}
/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--scrim);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  padding: 4px;
  margin-left: -4px;
}

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

.wordmark {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--dur-fade) ease-out, background-color var(--dur-fade) ease-out;
}

.site-nav a:not(.btn):hover {
  color: var(--text-1);
  background: var(--glass);
  text-decoration: none;
}

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--text-1);
  background: var(--glass);
}

.nav-toggle {
  display: none;
}

@media (max-width: 799px) {
  .nav-toggle {
    display: inline-grid;
    color: var(--text-1);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a:not(.btn) {
    min-height: 48px;
    font-size: 17px;
  }

  .btn-nav {
    min-height: 48px;
    font-size: 17px;
    background: var(--grape);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--stroke);
  background: var(--bg-elevated);
  padding-block: 40px 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-fine {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 45% at 50% 22%, color-mix(in srgb, var(--grape-start) 32%, transparent), transparent 70%),
    radial-gradient(30% 35% at 68% 40%, color-mix(in srgb, var(--grape-end) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-icon {
  width: 136px;
  height: 136px;
  margin-bottom: 20px;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--grape-start) 45%, transparent));
  animation: icon-in 700ms var(--ease-spring) both;
}

@keyframes icon-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}

.hero-lead {
  max-width: 60ch;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}

.hero-shot {
  position: relative;
  margin-top: 56px;
  max-width: 1080px;
}

@media (max-width: 480px) {
  .hero {
    padding-top: 40px;
  }
  .hero-icon {
    width: 104px;
    height: 104px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* ---------- Intro stats ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 72px 24px;
}

@media (min-width: 800px) {
  .intro-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.intro-item {
  display: grid;
  gap: 2px;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.intro-stat {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 64px;
  border-bottom: 1px solid var(--stroke);
}

.feature:last-child {
  border-bottom: 0;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    padding-block: 88px;
  }
  .feature--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .feature--flip .feature-copy {
    order: 2;
  }
}

.feature-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.feature-copy .eyebrow {
  margin-bottom: -6px;
}

.feature-title,
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title--sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature-lead {
  font-size: 1.1rem;
  color: var(--text-2);
}

.feature .checklist {
  margin-top: 6px;
}

.feature-mock {
  min-width: 0;
}

/* ---------- Pricing ---------- */
.section-band {
  padding-block: 96px;
  background:
    radial-gradient(60% 60% at 80% 40%, color-mix(in srgb, var(--grape-start) 14%, transparent), transparent 70%),
    var(--bg-elevated);
  border-block: 1px solid var(--stroke);
}

.pricing-wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .pricing-wrap {
    grid-template-columns: 1fr minmax(360px, 440px);
    gap: 72px;
  }
}

.pricing-copy {
  display: grid;
  gap: 18px;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--bg-base);
  border: 1px solid color-mix(in srgb, var(--grape-start) 35%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 22px;
  }
}

.pricing-glow {
  position: absolute;
  inset: -40% -30% auto auto;
  width: 360px;
  height: 360px;
  background: var(--grape-glow);
  pointer-events: none;
}

.pricing-card > :not(.pricing-glow) {
  position: relative;
}

.pricing-card .pill {
  justify-self: start;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-amount {
  font-family: var(--font-brand);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 1.15rem;
  color: var(--text-2);
}

.pricing-card .checklist {
  margin-block: 8px;
}

.pricing-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.pricing-trial {
  font-size: 14px;
  margin-top: 6px;
}

.pricing-solo {
  max-width: 460px;
  margin: 40px auto 0;
}

.page-head {
  display: grid;
  gap: 14px;
}

.page-head--center {
  justify-items: center;
  text-align: center;
}

.page-head .feature-lead {
  max-width: 56ch;
}

.steps {
  margin-top: 88px;
}

.steps-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 800px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grape);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------- FAQ section / final CTA ---------- */
.faq-section {
  padding-block: 96px 40px;
  max-width: 880px;
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding-block: 64px 48px;
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding-block: 96px;
}

.nf-glyph {
  color: var(--text-3);
  margin-bottom: 8px;
}

@media (max-width: 400px) {
  .tab {
    padding: 0 13px;
  }
}

/* =========================================================================
   PHP marketing site additions (not in the React app)
   ========================================================================= */

/* Mock widths/flex without inline styles (strict CSP) */
.pct-12 { width: 12%; } .pct-20 { width: 20%; } .pct-23 { width: 23%; } .pct-38 { width: 38%; }
.pct-45 { width: 45%; } .pct-55 { width: 55%; } .pct-58 { width: 58%; } .pct-64 { width: 64%; }
.pct-70 { width: 70%; } .pct-81 { width: 81%; } .pct-88 { width: 88%; }
.fg-1 { flex-grow: 1; } .fg-2 { flex-grow: 2; } .fg-3 { flex-grow: 3; }

/* Nav toggle icons */
.nav-icon-open,
.nav-icon-close {
  display: inline-grid;
}
.nav-icon-close,
.nav-toggle[aria-expanded="true"] .nav-icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-icon-close {
  display: inline-grid;
}

/* Hero: kicker lives inside the h1 so the heading names the product */
.hero-kicker {
  display: block;
  margin-bottom: 14px;
  line-height: 1.4;
}

.answer {
  max-width: 64ch;
  font-size: 1.15rem;
  color: var(--text-2);
}

.page-head--center .answer {
  margin-inline: auto;
}

.page--narrow {
  max-width: 880px;
}

.page--tight {
  padding-top: 32px;
}

.section-gap {
  margin-top: 56px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-top: 20px;
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-inline: 10px;
  color: var(--text-3);
}

.breadcrumbs a {
  color: var(--text-2);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--text-1);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-1);
  font-weight: 600;
}

.breadcrumbs + .page {
  padding-top: 32px;
}

/* Q&A blocks (question-shaped headings, direct answers) */
.qa {
  display: grid;
  gap: 12px;
  align-content: start;
  margin-top: 40px;
}

.qa-title {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qa-title--sm {
  font-size: 1.2rem;
}

.qa > p {
  color: var(--text-2);
  max-width: 70ch;
}

.qa .checklist {
  margin-top: 4px;
}

.qa-stack {
  display: grid;
  align-content: start;
}

.qa-stack > .qa:first-child {
  margin-top: 0;
}

.prose-grid {
  display: grid;
  gap: 0 56px;
  margin-top: 16px;
}

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

/* Key facts */
.facts-split {
  display: grid;
  gap: 40px;
  margin-block: 56px 16px;
  align-items: start;
}

.facts-split--page {
  margin-top: 80px;
}

@media (min-width: 900px) {
  .facts-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.key-facts {
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.key-facts .section-title {
  margin-bottom: 8px;
}

.kf-list {
  display: grid;
  margin: 0;
}

.kf-row {
  display: grid;
  gap: 2px 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--stroke);
}

.kf-row:last-child {
  border-bottom: 0;
}

@media (min-width: 520px) {
  .kf-row {
    grid-template-columns: 150px 1fr;
  }
}

.kf-row dt {
  font-size: 14px;
  color: var(--text-2);
}

.kf-row dd {
  margin: 0;
  font-weight: 600;
}

.qa .kf-list {
  padding: 4px 20px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

/* Feature rows on home */
.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 4px;
}

/* Feature pages */
.feature-head {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .feature-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}

.page-mock {
  margin-block: 40px;
}

.page-mock--sm {
  max-width: 560px;
}

.page > .note,
.page-mock + .note {
  margin-block: 48px 0;
}

.note a {
  font-weight: 600;
}

/* Related / link cards */
.related {
  margin-top: 80px;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.link-card {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  color: var(--text-1);
  transition: border-color var(--dur-fade) ease-out, background-color var(--dur-fade) ease-out;
}

.link-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--grape-start) 45%, transparent);
  background: var(--bg-raised);
}

.link-card:focus-visible {
  border-radius: var(--r-l);
}

.link-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.link-card-title svg {
  color: var(--grape-text);
}

.link-card .muted {
  font-size: 15px;
}

/* FAQ additions */
.faq-q {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.faq-more {
  margin-top: 20px;
}

.faq-section--flush {
  padding-block: 80px 0;
  max-width: none;
}

.toc {
  margin-top: 32px;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--stroke-strong);
  color: var(--text-1);
  font-weight: 600;
  font-size: 15px;
}

.toc a:hover {
  background: var(--bg-raised);
  text-decoration: none;
}

.faq-group {
  margin-top: 56px;
}

.faq-group .faq {
  margin-top: 16px;
}

/* How-to steps */
.howto {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.howto-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  scroll-margin-top: 88px;
}

.howto-step .step-num {
  margin: 0;
}

.howto-step p {
  margin-top: 6px;
  color: var(--text-2);
}

.howto-step strong {
  color: var(--text-1);
}

/* Inline code and keys */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--text-1);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: var(--r-s);
  background: var(--bg-raised);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grape-text);
}

.kbd-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.kbd-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.kbd-list dt {
  flex: none;
  min-width: 70px;
}

.kbd-list dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Download */
.download-card,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--grape-start) 16%, transparent), transparent 60%),
    var(--bg-elevated);
  border: 1px solid color-mix(in srgb, var(--grape-start) 35%, transparent);
}

.download-card img {
  flex: none;
}

.download-main {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 12px;
}

.contact-card {
  align-items: flex-start;
}

.contact-card > svg {
  flex: none;
  color: var(--grape-text);
  margin-top: 4px;
}

.contact-card > div {
  flex: 1 1 260px;
  display: grid;
  gap: 6px;
}

.fix-list .qa {
  margin-top: 28px;
}

/* Release notes */
.releases {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.release {
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.release-meta {
  flex-basis: 100%;
  font-size: 14px;
}

.release-notes {
  margin-top: 8px;
}

.hero-ctas--start {
  justify-content: flex-start;
  margin-top: 40px;
}

/* Long-form text (legal, release notes) */
.prose {
  color: var(--text-2);
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
}

.prose h3 {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
  max-width: 72ch;
}

.prose ul {
  list-style: disc;
  padding-left: 1.3em;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text-1);
}

.legal {
  margin-top: 16px;
}

/* Footer columns */
.footer-nav {
  display: grid;
  gap: 28px 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 800px) {
  .footer-nav {
    grid-template-columns: repeat(4, minmax(130px, auto));
  }
}

.footer-heading {
  margin-bottom: 6px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
}

.footer-col .footer-links {
  display: grid;
  gap: 0;
}

.footer-brand .muted a {
  color: var(--text-2);
}

.footer-brand .muted a:hover {
  color: var(--text-1);
}

/* 404 */
.nf-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
}
