/* TabVCR — tabvcr.com */

:root {
  --blue: #00aff0;
  --blue-dark: #0089c7;
  --blue-soft: #e6f7fe;
  --ink: #0b1620;
  --body: #3d4c59;
  --muted: #74858f;
  --bg: #ffffff;
  --bg-soft: #f4fafd;
  --line: #e2edf3;
  --osd-green: #9df09d;
  --rec-red: #ff4d4d;
  --radius: 18px;
  --pill: 999px;
  --wordmark: "Audiowide", "Trebuchet MS", sans-serif;
  --osd: "VT323", "Courier New", monospace;
  --sans: "Geo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; }

p + p { margin-top: 0.9em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.wordmark {
  font-family: var(--wordmark);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none !important;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .vcr { color: var(--blue); }
.wordmark svg { width: 26px; height: 26px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a.active { color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block;
  border-radius: var(--pill);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn-soon {
  background: var(--blue-soft);
  color: var(--blue-dark);
  cursor: default;
  border-color: transparent;
}
.btn-soon:hover { background: var(--blue-soft); }

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

.hero { padding: 72px 0 56px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-family: var(--osd);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.hero p.lede {
  margin-top: 18px;
  font-size: 1.13rem;
  max-width: 34em;
}

.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-note { margin-top: 14px; font-size: 0.87rem; color: var(--muted); }

/* ---------- OSD / VCR panel ---------- */

.osd-panel {
  background: #07090c;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(11, 22, 32, 0.45);
  font-family: var(--osd);
  color: var(--osd-green);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}

.osd-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.osd-row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
}
.osd-row.top { top: 0; }
.osd-row.bottom { bottom: 0; }

.osd-rec { color: var(--rec-red); display: flex; align-items: center; gap: 10px; }
.osd-rec .dot {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--rec-red);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.osd-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.osd-center .play { font-size: 2.4em; line-height: 1; }
.osd-center .label { letter-spacing: 0.18em; opacity: 0.85; }

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

section.band { padding: 64px 0; }
section.band.soft { background: var(--bg-soft); }

.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { margin-top: 10px; }

.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }

.card .glyph {
  font-family: var(--osd);
  color: var(--blue);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* numbered steps */
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--wordmark);
  color: var(--blue);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

/* privacy trio */
.privacy-band .card { background: var(--bg); text-align: left; }
.privacy-band .card h3 { display: flex; align-items: center; gap: 8px; }

/* limits */
.limits-list { list-style: none; margin-top: 8px; }
.limits-list li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.97rem;
}
.limits-list li:last-child { border-bottom: none; }
.limits-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--blue);
}

/* authorized-use note */
.authorized {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- docs & prose pages ---------- */

.page-head { padding: 56px 0 8px; }
.page-head p.lede { margin-top: 12px; font-size: 1.08rem; max-width: 40em; }

.prose { padding: 32px 0 72px; max-width: 760px; }
.prose h2 { margin: 44px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 12px 0 12px 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }
.prose code {
  font-family: var(--osd);
  font-size: 1.05em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--ink);
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; margin: 16px 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 480px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--ink); background: var(--bg-soft); }

.badge {
  font-family: var(--osd);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
  padding: 2px 10px;
  display: inline-block;
}
.badge.rec { background: #ffe5e5; color: #c22525; }
.badge.ok { background: #e2f7e6; color: #1c7a34; }
.badge.part { background: #fff3d9; color: #9a6b00; }
.badge.stop { background: #e9ecf2; color: #3d4c59; }
.badge.err { background: #ffe5e5; color: #c22525; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 28px 0 8px;
  font-size: 0.95rem;
}
.toc strong { color: var(--ink); display: block; margin-bottom: 8px; }
.toc a { margin-right: 18px; display: inline-block; }

/* FAQ */
details.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
  background: #fff;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--osd);
  font-size: 1.4rem;
  color: var(--blue);
}
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 20px 18px; font-size: 0.97rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 36px;
  margin-top: 24px;
  font-size: 0.92rem;
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--body); }
.site-footer .legal { margin-top: 22px; color: var(--muted); }
.site-footer .tape-line {
  font-family: var(--osd);
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a.nav-link { display: none; }
  .hero { padding: 48px 0 40px; }
}
