/* Vistrova website: the app's Vault palette (documentation/design-vault.md) and fonts */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("/fonts/inter-tight-800.woff2") format("woff2"); }

:root {
  --ground: #07080B;
  --surface: #12141A;
  --surface-2: #1A1D25;
  --glass: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .12);
  --text: #F4F5F7;
  --muted: #A9AFBC;
  --hint: #8C93A3;
  --gold: #F5C451;
  --on-gold: #15110A;
  --live: #D92D20;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --radius: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(245, 196, 81, .55); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

/* The TV focus ring: gold, everywhere */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 10;
  background: var(--gold); color: var(--on-gold); padding: .6em 1.1em; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.375rem/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a, .langs a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9375rem;
  padding: .45em .9em; border-radius: 999px;
}
.top nav a:hover, .langs a:hover { color: var(--text); background: var(--glass); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.langs a { font-size: .8125rem; padding: .35em .7em; letter-spacing: .02em; }
.langs a[aria-current="page"] { background: var(--text); color: var(--ground); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .8em 1.5em;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #FFD574; }
.btn-soon { border: 1px solid var(--line); color: var(--muted); background: var(--glass); cursor: default; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--glass); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding-top: clamp(24px, 5vw, 56px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 64px); align-items: end; }
.hero h1 {
  font: 800 clamp(3rem, 6.4vw, 6.25rem)/.92 var(--display);
  letter-spacing: -.045em;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--muted); }
.hero .lead { max-width: 30em; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.5; color: var(--muted); }
.hero .lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* The demo guide (the app's Live TV screen) */
.guide {
  --ppm: 7px;           /* pixels per minute */
  --rail: 232px;        /* channel column */
  --row: 60px;
  margin: clamp(40px, 5vw, 72px) auto 0;
  max-width: calc(var(--max) + 2 * var(--pad));
  padding-inline: var(--pad);
}
.guide-frame {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0D0F14 0%, var(--ground) 100%);
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 10px #000;
}
.guide-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: clamp(20px, 4vw, 56px); align-items: start; min-height: 230px; }
.now-channel { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.now-channel b { color: var(--text); font-weight: 600; }
.badge-live { background: var(--live); color: #fff; font-size: .75rem; font-weight: 600; padding: .15em .55em; border-radius: 6px; }
.now-title { margin-top: 14px; font: 800 clamp(1.75rem, 3.6vw, 3rem)/1.02 var(--display); letter-spacing: -.03em; }
.now-desc { margin-top: 12px; color: var(--muted); max-width: 36em; }
.now-time { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.now-bar { flex: 1; max-width: 300px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.now-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.chip { display: inline-flex; align-items: center; gap: .45em; margin-top: 16px; padding: .35em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: .8125rem; font-weight: 600; }
.chip[hidden] { display: none; }
.now-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.now-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.now-preview img.leaving { opacity: 0; }

.tile {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  font: 800 .8125rem/1 var(--display); letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.guide-grid { position: relative; margin-top: clamp(24px, 3vw, 36px); outline: none; }
.guide-ruler { display: flex; align-items: center; height: 40px; }
.guide-ruler .group { width: var(--rail); flex: none; font-weight: 600; font-size: .9375rem; }
.guide-ruler .group span { color: var(--hint); font-weight: 400; }
.guide-track { position: relative; flex: 1; overflow: hidden; height: 100%; }
.guide-track .tick { position: absolute; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.now-pill {
  position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: .8125rem;
  padding: .25em .7em; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.guide-rows { position: relative; }
.guide-row { display: flex; height: var(--row); align-items: stretch; }
.guide-row + .guide-row { margin-top: 6px; }
.guide-row .ch { width: var(--rail); flex: none; display: flex; align-items: center; gap: 12px; padding-right: 16px; font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.guide-row .ch .num { width: 2.2em; color: var(--hint); font-weight: 400; font-variant-numeric: tabular-nums; }
.guide-row .lane { position: relative; flex: 1; overflow: hidden; }
.track-inner { position: absolute; inset: 0; }
.prog {
  position: absolute; top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 0 14px; border: 0; border-radius: 12px; margin: 0;
  background: var(--glass); color: var(--text); text-align: left;
  font: inherit; cursor: pointer; overflow: hidden; white-space: nowrap;
}
.prog b { font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; }
.prog small { font-size: .75rem; color: var(--hint); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.prog.past { background: rgba(255, 255, 255, .04); }
.prog.past b { color: var(--muted); }
.prog:hover { background: rgba(255, 255, 255, .13); }
.prog[aria-pressed="true"] { background: var(--text); color: var(--ground); box-shadow: 0 0 0 3px var(--gold); }
.prog[aria-pressed="true"] small { color: #3A3F4B; }
.prog:focus-visible { outline: none; }
.guide-grid:focus-within .prog[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px rgba(245, 196, 81, .25); }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); z-index: 3; pointer-events: none; }
.guide-hint { margin-top: 18px; font-size: .875rem; color: var(--hint); }
.guide noscript img { border-radius: var(--radius); }
.no-js .guide-live { display: none; }

/* Sections */
.section { padding-top: clamp(96px, 14vw, 180px); }
.section h2 { font: 800 clamp(2.25rem, 5.2vw, 4.25rem)/1 var(--display); letter-spacing: -.035em; max-width: 16ch; }
.section .lead { margin-top: 22px; max-width: 38em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); }

/* Bring your own: the app's segmented choice on Add a playlist */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); overflow: hidden; }
.ways li { padding: clamp(22px, 3vw, 34px); }
.ways li + li { border-left: 1px solid var(--line); }
.ways h3 { font-size: 1.125rem; font-weight: 600; }
.ways p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.note { margin-top: 22px; color: var(--hint); font-size: .9375rem; max-width: 46em; }

/* Screens */
.screens-tv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.screens-tv figure:first-child { grid-column: 1 / -1; }
.tv { border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 0 0 9px #000, 0 0 0 10px rgba(255, 255, 255, .1), 0 50px 100px -50px rgba(0, 0, 0, .9); }
figcaption { margin-top: 22px; color: var(--muted); font-size: .9375rem; max-width: 34em; }
.screens-phone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); margin-top: clamp(64px, 8vw, 104px); }
.phone { border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #000, 0 0 0 8px rgba(255, 255, 255, .12); }
.screens-land { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.screens-land figure { grid-column: 2; }
.phone-land { border-radius: 30px; }
.screens-land .side { grid-column: 1; grid-row: 1; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.features section { border-top: 1px solid var(--line); padding-top: 22px; }
.features h3 { font-size: 1.125rem; font-weight: 600; }
.features li { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.privacy ul { border-top: 1px solid var(--line); }
.privacy li { padding-block: 20px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.privacy .more { display: inline-block; margin-top: 28px; font-weight: 600; }

/* Questions */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 54em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat,
              linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 44em; }

.contact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); padding: clamp(24px, 4vw, 44px); }
.contact h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); max-width: none; }
.contact p { color: var(--muted); margin-top: 8px; }
.contact a { font: 800 clamp(1.375rem, 3vw, 2.25rem)/1.1 var(--display); letter-spacing: -.02em; }

/* Footer */
.foot { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--hint); font-size: .875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 46em; padding-top: clamp(24px, 6vw, 64px); }
.legal h1 { font: 800 clamp(2.5rem, 6vw, 4.5rem)/1 var(--display); letter-spacing: -.04em; }
.legal-date { margin-top: 14px; color: var(--hint); }
.legal h2 { font: 800 1.625rem/1.15 var(--display); letter-spacing: -.02em; margin-top: 56px; scroll-margin-top: 24px; }
.legal h3 { font-size: 1.125rem; font-weight: 600; margin-top: 32px; }
.legal p, .legal ul, .legal .table-wrap { margin-top: 16px; }
.legal p, .legal li { color: #D5D8DF; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal ol { margin-top: 16px; padding-left: 1.4em; }
.legal ol li + li { margin-top: 10px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--gold); }
.legal code { font-size: .9em; background: var(--glass); padding: .1em .35em; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; }
.legal-note { margin-top: 24px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font-size: .9375rem; }

.notfound { padding-top: clamp(64px, 12vw, 160px); }
.notfound h1 { font: 800 clamp(2.5rem, 7vw, 5.5rem)/1 var(--display); letter-spacing: -.04em; max-width: 12ch; }
.notfound p { margin-top: 20px; color: var(--muted); max-width: 32em; }
.notfound .btn { margin-top: 32px; }

/* Smaller screens */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 860px) {
  .guide { --ppm: 5px; --rail: 64px; --row: 56px; }
  .guide-row .ch .name, .guide-row .ch .num, .guide-ruler .group { display: none; }
  .guide-ruler::before { content: ""; width: var(--rail); flex: none; }
  .guide-now { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { grid-template-columns: 1fr; }
  .now-preview { display: none; }
  .ways { grid-template-columns: 1fr; }
  .ways li + li { border-left: 0; border-top: 1px solid var(--line); }
  .screens-tv { grid-template-columns: 1fr; }
  .screens-phone { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 10px 18px; margin-inline: -10px; scrollbar-width: none; }
  .screens-phone figure { scroll-snap-align: start; }
  .screens-land { grid-template-columns: 1fr; }
  .screens-land figure, .screens-land .side { grid-column: auto; grid-row: auto; }
  .privacy { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .guide { --ppm: 4px; --rail: 48px; --row: 52px; padding-inline: 12px; }
  .guide-frame { padding: 16px 12px; border-radius: 22px; }
  .tile { width: 32px; height: 32px; font-size: .75rem; }
  .features { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
