/* RiderMusic for Plex — showcase site
   Palette and type match the app's own UI (Sora display / Inter body). */

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora-Bold.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #224248;
  --bg-deep: #1a3338;
  --panel: #325e6a;
  --panel-alt: #2b4f56;
  --accent: #44a1a4;
  --cta: #ff9a00;
  --cta-hover: #ffab2e;
  --text: #eef6f6;
  --muted: #9fc2c4;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--cta); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, .eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

.hl { color: var(--cta); }
.hl-accent { color: var(--accent); }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

p { color: var(--text); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 42ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: #1a2626; }
.btn-cta:hover { background: var(--cta-hover); color: #1a2626; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Header / Nav (fallback if shared include unavailable) ---------- */
.vp-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.vp-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.vp-brand { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.vp-brand span { color: var(--cta); }
.vp-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.vp-nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.vp-nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(68,161,164,0.18), transparent 60%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-meta { font-size: 0.85rem; color: var(--muted); }

/* QR pixel motif, echoes the physical QR code in the car */
.qr-motif {
  position: absolute; top: 2.5rem; left: 2.5rem;
  width: 90px; height: 90px;
  display: grid; grid-template-columns: repeat(9, 1fr);
  gap: 2px; opacity: 0.35;
}
.qr-motif i { background: var(--accent); border-radius: 1px; }
.qr-motif i.off { background: transparent; }

.phone-frame {
  position: relative;
  width: min(280px, 80vw);
  margin: 0 auto;
  border-radius: 34px;
  border: 6px solid var(--panel-alt);
  background: var(--panel-alt);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
  overflow: hidden;
  transform: rotate(-2deg);
}
.phone-frame img { display: block; width: 100%; height: auto; }
.phone-wrap { position: relative; }
.phone-wrap::after {
  content: "";
  position: absolute;
  inset: -20px -20px auto -20px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(68,161,164,0.25), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* ---------- Section shell ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.alt-bg { background: var(--bg-deep); }

/* ---------- Signal relay (signature element) ---------- */
.relay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
  margin-top: 1rem;
}
.relay-node {
  position: relative;
  text-align: center;
  padding: 0 0.75rem;
}
.relay-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.relay-node h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.relay-node p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.relay-node .step-num {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.75rem;
  color: var(--cta); letter-spacing: 0.08em; display: block; margin-bottom: 0.5rem;
}
.relay-line {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  z-index: 0;
}
.relay-node:last-child .relay-line { display: none; }
.pulse-dot {
  position: absolute;
  top: 30px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 12px 2px rgba(255,154,0,0.6);
  animation: pulseTravel 4s linear infinite;
  z-index: 1;
}
@keyframes pulseTravel {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateX(calc(400% - 5px)); opacity: 0; }
}

@media (max-width: 860px) {
  .relay { grid-template-columns: 1fr; gap: 2.5rem; }
  .relay-line, .pulse-dot { display: none; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feature-card h3 { margin-bottom: 0.6rem; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.icon-svg { width: 26px; height: 26px; color: var(--accent); display: block; margin-bottom: 0.9rem; }
.relay-icon .icon-svg { width: 28px; height: 28px; margin-bottom: 0; color: var(--cta); }

/* ---------- Split rows (how it works detail) ---------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.split-row:last-child { margin-bottom: 0; }
.split-row.reverse .split-copy { order: 2; }
.split-row.reverse .split-media { order: 1; }
.split-copy .eyebrow { margin-bottom: 0.6rem; }
.split-copy h2 { margin-bottom: 1rem; }
.split-copy p { color: var(--muted); }
.split-media { display: flex; justify-content: center; }

@media (max-width: 780px) {
  .split-row, .split-row.reverse { grid-template-columns: 1fr; }
  .split-row.reverse .split-copy, .split-row.reverse .split-media { order: unset; }
}

/* ---------- Honesty callouts ---------- */
.callout {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 1.25rem 0;
}
.callout h3 { margin-bottom: 0.5rem; }
.callout p { color: var(--muted); margin: 0.4em 0 0; }
.callout.limit { border-left-color: var(--cta); }

.limits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.limits-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.limits-list li::before {
  content: "—";
  position: absolute; left: 0; color: var(--cta);
}
.limits-list strong { color: var(--text); }

/* ---------- Code block / setup ---------- */
.setup-panel {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 640px;
}
pre.code {
  background: #142a2e;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85rem;
  color: #b7e3d8;
  line-height: 1.6;
  margin: 1rem 0 0;
}
pre.code .cmt { color: var(--muted); }

.cta-band {
  text-align: center;
  padding: 4rem 0 5rem;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lede { margin: 0 auto 2rem; }

/* ---------- Footer (fallback) ---------- */
.vp-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}
.vp-footer a { color: var(--muted); text-decoration: none; }
.vp-footer a:hover { color: var(--accent); }

/* ---------- Ad slot ---------- */
.ojos-slot { margin: 3rem 0; text-align: center; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .phone-wrap { margin-top: 2rem; }
}
