/* The app's Old School palette (Vidiprinter/Views/Teletext.swift), dark. */
:root {
  --bg: #000;
  --text: #fff;
  --yellow: #ffeb33;
  --cyan: #4de6ff;
  --green: #59f266;
  --red: #ff4d4d;
  --magenta: #ff66ff;
  --quiet: #9e9e9e;
  --sep: #2e2e2e;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Roboto Mono", monospace;
  --code-w: 3.6em;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(14px, 1.2vw + 10px, 17px);
  line-height: 1.45;
  overflow-x: hidden;
}
/* Faint scanlines, like the old set. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  z-index: 50;
}
a { color: var(--cyan); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Header line: the name and the button */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--sep);
}
.bar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
  font-size: .82em;
}
.bar .name { color: var(--yellow); font-weight: 700; }
.bar .get {
  background: var(--cyan); color: #000; text-decoration: none;
  font-weight: 700; padding: 6px 10px; white-space: nowrap;
}
.bar .get:hover, .bar .get:focus-visible { background: var(--yellow); }

/* Title */
.hero { padding: clamp(28px, 6vw, 64px) 0 18px; }
h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--yellow);
  font-weight: 800;
}
h1 .plus { color: var(--cyan); }
.tag {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.6vw + 11px, 22px);
  max-width: 34em;
}

/* Subpage strip, like the app's view chips */
.strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 26px 0 12px;
}
.chip {
  font: inherit; font-size: .82em; font-weight: 700;
  color: var(--quiet); background: transparent;
  border: 1px solid var(--sep);
  padding: 7px 12px; cursor: pointer;
  text-transform: uppercase;
}
.chip .n { color: var(--green); margin-right: .5em; }
.chip[aria-selected="true"] { color: #000; background: var(--text); border-color: var(--text); }
.chip[aria-selected="true"] .n { color: #000; }
.chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip.nudge { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { border-color: var(--yellow); color: var(--yellow); } }

/* The screen */
.screen { border-top: 1px solid var(--sep); }
.page { padding-top: 10px; }
.feed {
  position: relative;
  height: clamp(380px, 58svh, 560px);
  overflow: hidden;
}
.feed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.note { color: var(--quiet); font-size: .78em; margin: 10px 0 0; }

/* A vidiprinter row (FeedRow) */
.row {
  display: grid;
  grid-template-columns: var(--code-w) 1fr;
  column-gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sep);
}
.row.fresh { background: rgba(77,230,255,.10); }
.code { color: var(--green); font-weight: 700; font-size: .8em; padding-top: .15em; white-space: nowrap; }
.head { display: flex; flex-wrap: wrap; column-gap: .7em; align-items: baseline; }
.lab { font-weight: 700; }
.c-yellow { color: var(--yellow); }
.c-cyan { color: var(--cyan); }
.c-green { color: var(--green); }
.c-red { color: var(--red); }
.c-magenta { color: var(--magenta); }
.c-grey { color: var(--quiet); }
.player { font-size: .98em; margin-top: 2px; }
.assist { color: var(--quiet); font-size: .88em; }
.ins { display: flex; gap: .5em; color: var(--quiet); font-size: .88em; margin: 3px 0 0 1.1em; }
.ins .chev { color: var(--cyan); }
.wait { display: none !important; }
.cursor {
  display: inline-block; width: .6em; height: 1.05em;
  background: var(--text); vertical-align: -.15em; margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.row.out { opacity: 0; transform: translateX(-6px); transition: opacity .12s, transform .12s; }

/* Features page */
.features .row { padding: 14px 0; }
.features .head { font-size: 1.12em; }
.features .score { font-weight: 700; }
.features .ins { font-size: .92em; color: #c9c9c9; }
.strike { text-decoration: line-through; color: var(--quiet); }

.cta { padding: 28px 0 10px; transition: opacity .4s; }
.cta.wait { display: block !important; opacity: 0; visibility: hidden; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--yellow); color: #000; text-decoration: none;
  font-weight: 800; font-size: 1.05em;
  padding: 14px 20px;
}
.store:hover, .store:focus-visible { background: var(--cyan); }
.store.soon, .store.soon:hover { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); cursor: default; }
.store svg { width: 22px; height: 22px; flex: none; }
.price { color: var(--quiet); font-size: .85em; margin: 12px 0 0; }

footer { border-top: 1px solid var(--sep); margin-top: 48px; padding: 18px 0 40px; color: var(--quiet); font-size: .78em; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Without script, or with reduced motion: both pages, one after the other. */
html:not(.js) .strip, html.still .strip { display: none; }
html:not(.js) .page[hidden], html.still .page[hidden] { display: block; }
html.still .feed, html:not(.js) .feed { height: auto; }
html.still .feed::after, html:not(.js) .feed::after { display: none; }
html:not(.js) .features, html.still .features { margin-top: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The privacy policy, in the same look */
a.name { text-decoration: none; }
.policy { padding: clamp(28px, 6vw, 56px) 0 0; max-width: 46em; line-height: 1.6; }
.policy .eyebrow { color: var(--green); font-weight: 700; font-size: .82em; margin: 0 0 8px; text-transform: uppercase; }
.policy h1 { font-size: clamp(30px, 6vw, 48px); text-transform: uppercase; }
.policy .dates { color: var(--quiet); font-size: .85em; margin: 12px 0 28px; }
.policy .summary { border: 1px solid var(--cyan); padding: 16px 18px; margin-bottom: 36px; }
.policy .summary h2 { color: var(--cyan); font-size: .85em; text-transform: uppercase; margin: 0 0 10px; }
.policy section { margin-bottom: 34px; }
.policy .section-title { color: var(--yellow); font-size: 1.1em; margin: 0 0 12px; display: flex; gap: .7em; align-items: baseline; }
.policy .section-num { color: var(--green); font-size: .8em; }
.policy p { margin: 0 0 12px; color: #d6d6d6; }
.policy ul { margin: 0 0 12px; padding-left: 1.4em; color: #d6d6d6; }
.policy li { margin-bottom: 6px; }
.policy li::marker { color: var(--cyan); }
.policy strong { color: var(--text); }
.policy .table-wrap { overflow-x: auto; margin: 14px 0 18px; }
.policy table { width: 100%; border-collapse: collapse; font-size: .88em; }
.policy th, .policy td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--sep); vertical-align: top; }
.policy th { color: var(--green); font-size: .85em; text-transform: uppercase; }
.policy td { color: #d6d6d6; }
.policy td:first-child { color: var(--text); min-width: 9em; }
.policy .policy-note { color: var(--quiet); font-size: .85em; border-top: 1px solid var(--sep); padding-top: 18px; margin-top: 40px; }
