/* rosterradar.tv homepage (Linear ROS-15). Static, no build step: served from web/public/home and
   shown at https://rosterradar.tv/ by the root middleware. Colors and type follow
   docs/DESIGN-SYSTEM.md (Broadcast Operations): flat, dark, square panels, cyan for action. */

:root {
  --black: #030914;
  --navy: #061326;
  --panel: #0b1b2d;
  --panel-strong: #071523;
  --line: #294056;
  --line-strong: #365068;
  --text: #f4f7fa;
  --muted: #91a2b5;
  --cyan: #18c2d2;
  --user: #52e8f4;
  --orange: #ff8a1f;
  --focus: #2c94ff;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Archivo Expanded', 'Arial Black', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--user);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 18px; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--cyan);
  color: var(--black);
  font-weight: 700;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

/* Buttons: the only rounded corners, as the design system allows for tap targets. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--cyan);
  color: var(--black);
}

.button-primary:hover { background: var(--user); }

.button-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-quiet:hover { border-color: var(--cyan); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 20, 0.94);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand img { width: 168px; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 420px) {
  .brand img { width: 132px; }
  .header-cta { padding: 0 14px; font-size: 13px; }
}

@media (max-width: 360px) {
  .brand img { width: 112px; }
  .header-cta { padding: 0 10px; font-size: 12px; }
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

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

.hero-copy h1 { margin-bottom: 20px; }

.lead {
  max-width: 34em;
  margin-bottom: 30px;
  color: #c9d4df;
  font-size: clamp(18px, 1.6vw, 20px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

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

/* A TV: the screenshot in a thin bezel, square like every panel in the product. */
.tv,
.rail-shot,
.phone {
  margin: 0;
}

.tv {
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.tv img { width: 100%; aspect-ratio: 16 / 9; }

.hero-tv { position: relative; }

.hero-tv::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -18px;
  height: 8px;
  background: var(--line-strong);
}

.rail-shot {
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: #000;
}

.phone {
  justify-self: center;
  width: min(320px, 78vw);
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #000;
}

.phone img { border-radius: 18px; }

/* Bands */
.band {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.band h2 { margin-bottom: 36px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.step {
  padding: 28px 26px 30px;
  background: var(--panel);
}

.step + .step { border-left: 1px solid var(--line); }

.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
}

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

.step p { color: var(--muted); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
}

/* Features */
.features { padding: clamp(32px, 6vw, 64px) 0; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.feature + .feature { border-top: 1px solid var(--line); }

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

.feature-copy h2 { margin-bottom: 18px; }

.feature-copy > p:not(.eyebrow) {
  margin-bottom: 18px;
  color: #c9d4df;
}

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

.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

/* A short cyan bar, the product's "on" mark, instead of a generic check. */
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 3px;
  background: var(--cyan);
}

/* Wide features: the copy in two columns over full-width strips of the TV overlay, so the overlay's
   type stays readable instead of shrinking with a whole TV frame. */
.feature-wide {
  grid-template-columns: 1fr;
  align-items: start;
}

.feature-wide .feature-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px clamp(28px, 5vw, 64px);
  align-items: end;
}

.feature-wide .feature-copy > div > p:not(.eyebrow) { color: #c9d4df; }

.feature-wide .feature-copy h2 { margin-bottom: 18px; }

.strips {
  display: grid;
  gap: 22px;
}

.strip,
.panel-shot {
  margin: 0;
}

.strip img,
.panel-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #000;
}

.strip-narrow { max-width: 864px; }

.strip figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .feature-wide .feature-copy { grid-template-columns: 1fr; }
}

/* On a phone the full-width strips would shrink the overlay's type too far; let them scroll
   sideways inside their frame at a readable size instead. */
@media (max-width: 640px) {
  .strip,
  .panel-shot {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .strip img { width: 900px; max-width: none; }
  .strip-narrow img { width: 640px; }
  .panel-shot img { width: 720px; max-width: none; }
}

/* Works with */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid var(--line);
}

.matrix-cell {
  padding: 24px 26px;
  background: var(--panel);
}

.matrix-cell + .matrix-cell { border-left: 1px solid var(--line); }

.matrix-cell h3 {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrix-cell ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matrix-cell strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
}

.matrix-cell span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix-cell + .matrix-cell { border-left: 0; border-top: 1px solid var(--line); }
}

/* FAQ */
.faq {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.faq h2 { margin-bottom: 28px; }

.faq details {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 24px;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
  max-width: 44em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* Closing band */
.closing {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 3px solid var(--cyan);
  background: var(--panel-strong);
}

.closing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: start;
}

.footer-grid img { width: 140px; margin-bottom: 10px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--text);
  font-size: 15px;
}

.legal {
  grid-column: 1 / -1;
  max-width: 60em;
  font-size: 13px;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
