/* ============ SkipSeen — shared styles ============ */

:root {
  --paper:      #F4F5F7;
  --paper-2:    #ECEDF1;
  --ink:        #17161B;
  --ink-soft:   #56555F;
  --ink-faint:  #8A8992;
  --fresh:      #10B981;
  --fresh-deep: #0B8C63;
  --skipped:    #A6A6B0;
  --line:       #E1E2E7;
  --device:     #1A1A21;
  --device-2:   #23232B;
  --device-line:#33333E;
  --white:      #FFFFFF;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

/* ---------- Eyebrow / mono utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px rgba(23,22,27,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,22,27,.24); }
.btn-primary .chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--fresh); color: #04331f;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 10px 16px; font-size: 14px; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero h1 .mark {
  position: relative;
  color: var(--ink);
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: "";
  position: absolute; left: -2px; right: -2px; top: 54%; height: 3px;
  background: var(--skipped);
  transform: scaleX(1);
  transform-origin: left;
}
.hero h1 .fresh { color: var(--fresh-deep); }
.hero p.lede {
  font-size: 19px; color: var(--ink-soft); margin: 0 0 34px; max-width: 30ch;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin: 26px 0 0; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--ink-faint); letter-spacing: 0.02em;
}
.hero-trust b { color: var(--fresh-deep); font-weight: 400; }

/* ---------- The signature device: Up Next queue ---------- */
.device {
  background: var(--device);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(23,22,27,.4), 0 2px 0 rgba(255,255,255,.04) inset;
  border: 1px solid var(--device-line);
}
.device-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--device-line);
  margin-bottom: 12px;
}
.device-bar .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7B7B88;
}
.device-bar .dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fresh);
}
.device-bar .dot span { width: 7px; height: 7px; border-radius: 50%; background: var(--fresh); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5);} 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0);} 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0);} }

/* Reel: transform-only vertical loop (compositor-friendly, no reflow) */
.reel-viewport {
  height: 216px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 100%);
}
.reel {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  will-change: transform;
  animation: reel 16s linear infinite;
}
@keyframes reel {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.device:hover .reel { animation-play-state: paused; }

.qrow {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center;
  padding: 9px; border-radius: 11px;
  background: var(--device-2);
  border: 1px solid transparent;
}
.reel .qrow { margin-bottom: 8px; }   /* uniform stride → seamless at -50% */
.qrow.pinned { margin-top: 10px; }
.qthumb {
  width: 78px; height: 46px; border-radius: 7px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3a3a46, #2a2a33);
}
.qthumb .dur {
  position: absolute; right: 4px; bottom: 4px;
  font-family: var(--font-mono); font-size: 9px; color: #fff;
  background: rgba(0,0,0,.7); padding: 1px 4px; border-radius: 3px;
}
.qmeta { min-width: 0; }
.qtitle { font-size: 14px; font-weight: 600; color: #EDEDF2; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qchan { font-family: var(--font-mono); font-size: 11px; color: #7B7B88; }
.qtag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}

/* watched → skipped state */
.qrow.watched { opacity: .5; filter: grayscale(1); }
.qrow.watched .qtitle { text-decoration: line-through; text-decoration-color: var(--skipped); color: var(--skipped); }
.qrow.watched .qtag { color: var(--skipped); background: rgba(166,166,176,.14); }
.qrow.watched .qtag::before { content: "✕ "; }

/* fresh / now playing */
.qrow.fresh {
  background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(16,185,129,.05));
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 30px -6px rgba(16,185,129,.35);
}
.qrow.fresh .qthumb { background: linear-gradient(135deg, #0f6f52, #12b981); }
.qrow.fresh .qtag { color: #06301f; background: var(--fresh); font-weight: 700; }
.qrow.fresh .qtag::before { content: "▶ "; }
.qrow.fresh .qtitle { color: #fff; }

/* ---------- Section scaffold ---------- */
section { padding: 92px 0; }
.section-head { max-width: 620px; margin: 0 0 52px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* ---------- How it works ---------- */
.how { background: var(--ink); color: var(--paper); }
.how .section-head h2 { color: var(--white); }
.how .section-head p { color: #B7B7C0; }
.how .eyebrow { color: #7B7B88; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  border-top: 1px solid var(--device-line); padding-top: 22px;
}
.step .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--fresh);
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.step p { color: #A9A9B4; font-size: 15.5px; margin: 0; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(23,22,27,.28); border-color: #D2D3DA; }
.card .ic {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper-2); margin-bottom: 18px; font-size: 19px;
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 7px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Privacy strip ---------- */
.privacy-strip { background: var(--paper-2); }
.privacy-strip .wrap {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.privacy-strip h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.privacy-strip p { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 52ch; }
.privacy-badge {
  font-family: var(--font-mono); font-size: 13px; text-align: center;
  border: 1px dashed var(--fresh); color: var(--fresh-deep);
  border-radius: 14px; padding: 22px 26px; white-space: nowrap;
  background: rgba(16,185,129,.05);
}
.privacy-badge b { display: block; font-size: 30px; margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.025em; margin: 0 0 26px; line-height: 1.05; }
.cta-band .btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { font-size: 16px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); width: 100%; margin-top: 8px; }

/* ---------- Legal page ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin: 0 0 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); margin: 0 0 14px; }
.legal ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--fresh-deep); }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 46px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .privacy-strip .wrap { grid-template-columns: 1fr; }
  .privacy-badge { justify-self: start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

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