/*
 * Viewspike landing. Started from Better Playlists' landing
 * stylesheet: YouTube's own dark theme, switched to the light one by site.js
 * when the system is light.
 */
:root {
  --bg: #0f0f0f; --chrome: #0f0f0f; --raised: #212121; --menu: #282828;
  --text: #f1f1f1; --muted: #aaaaaa; --faint: #717171; --accent: #ff0033; --on-accent: #ffffff;
  --radius: 12px; --radius-s: 8px;
  --font-head: Roboto, Arial, sans-serif;
  --font-body: Roboto, Arial, sans-serif;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --tint: color-mix(in srgb, var(--accent) 16%, transparent);
  --hover: color-mix(in srgb, var(--text) 8%, transparent);
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
section { padding: 88px 0; }
.band { background: var(--chrome); transition: background-color .35s ease; }
.section-head { max-width: 680px; margin-bottom: 40px; display: grid; gap: 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 13px 24px; border-radius: 999px; font: 600 1rem var(--font-body);
  text-decoration: none; background: var(--accent); color: var(--on-accent);
  border: 0; cursor: pointer; transition: transform .15s ease, filter .15s ease, background-color .35s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--raised); color: var(--text); }
.btn-ghost:hover { background: var(--menu); }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; transform: none; }
.btn svg { flex: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--chrome) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background-color .35s ease; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--hover); }
.nav .btn { padding: 9px 18px; font-size: .9rem; margin-left: 8px; }
@media (max-width: 760px) { .nav-links a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 5fr 7fr; } }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.assurances li { display: flex; align-items: center; gap: 6px; }
.assurances svg { color: var(--accent); flex: none; }

/* Mock: Viewspike on YouTube (thumbnails with outlier badges, a watch group feed) */
.window {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  font-family: var(--font-body); font-size: 12px; line-height: 1.4; user-select: none;
}
.w-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.w-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--font-head); font-size: 13px; }
.w-logo i { width: 22px; height: 15px; border-radius: 4px; background: var(--accent); position: relative; }
.w-logo i::after { content: ''; position: absolute; left: 9px; top: 4px; border-left: 6px solid var(--on-accent); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.w-search { flex: 1; max-width: 300px; margin: 0 auto; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; padding: 0 12px; color: var(--faint); }
.w-main { padding: 14px 16px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.w-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.w-head b { font-family: var(--font-head); font-size: 17px; display: block; }
.w-head span { color: var(--muted); font-size: 11px; }
.w-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.w-tools span { padding: 4px 10px; border-radius: 8px; background: var(--raised); white-space: nowrap; }
.w-tools .on { background: var(--text); color: var(--bg); font-weight: 600; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.card { display: grid; gap: 5px; position: relative; }
.thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-s); position: relative; overflow: hidden; }
.thumb .dur { position: absolute; right: 4px; bottom: 5px; font-size: 9px; padding: 0 4px; border-radius: 3px; background: rgba(0,0,0,.75); color: #fff; }
.card.hot .thumb { box-shadow: 0 0 0 2px #ffb300; }
.card .t { font-weight: 600; line-height: 1.3; font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .m { color: var(--muted); font-size: 10px; }
/* Outlier badge, as on the thumbnails in the extension. */
.x { position: absolute; left: 5px; top: 5px; font: 700 10px/1 var(--font-body); padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-variant-numeric: tabular-nums; }
.x.x2 { background: #1e6f3f; }
.x.x5 { background: #c26a00; }
.x.x10 { background: #c4002b; }
.w-card { position: absolute; left: 34%; top: 96px; width: 210px; padding: 12px 14px; border-radius: 12px; background: var(--menu); border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(0,0,0,.55); display: grid; gap: 6px; font-size: 11px; }
.w-card b { font-size: 18px; font-family: var(--font-head); }
.w-card div { display: flex; justify-content: space-between; color: var(--muted); }
.w-card div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.w-stage { position: relative; }
@media (max-width: 620px) { .w-grid { grid-template-columns: repeat(2, 1fr); } .w-card { display: none; } }

/* Problem → answer */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pain { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; gap: 8px; }
.pain .n { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--accent); font-size: .85rem; }
.pain p { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; transition: background-color .35s ease; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.feature > p { color: var(--muted); font-size: .97rem; }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.feature li { display: flex; gap: 8px; }
.feature li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .62em; flex: none; }

/* Two columns */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* Privacy */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pillar { display: grid; gap: 8px; padding: 22px; border-left: 3px solid var(--accent); background: var(--raised); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.pillar p { color: var(--muted); font-size: .95rem; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Pricing: monthly / yearly switch */
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); margin: 0 auto 28px; }
.billing button { border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--font-body); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.billing-row { display: flex; justify-content: center; }
.save { color: var(--accent); font-weight: 600; }
.compare { max-width: 880px; margin: 40px auto 0; }

/* Pricing */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 880px; margin: 0 auto; }
.tier { background: var(--raised); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 32px; display: grid; gap: 20px; align-content: start; }
.tier.featured { border-color: var(--accent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent); }
.price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.price small { font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--accent); flex: none; margin-top: 5px; }
.tier .btn { justify-self: start; }
.fine { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 10px; }
details { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 20px; transition: background-color .35s ease; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); padding-bottom: 18px; }

.final { text-align: center; display: grid; gap: 20px; justify-items: center; }

/* Footer */
.footer { padding: 48px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
/* Sibling products. One <li> per product; the grid wraps as the list grows.
   Keep in sync with better-sidebar-landing/theme/components/family.ts. */
.family { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.family:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.family h3 { margin-bottom: 14px; }
.family h3 a { display: inline; padding: 0; margin: 0; }
.family h3 a:hover { background: none; text-decoration: underline; }
.family ul { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.family a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius-s); }
.family a:hover { background: var(--hover); text-decoration: none; }
.family a:hover b { text-decoration: underline; }
.family img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.family b { display: block; color: var(--text); font-weight: 600; }
.family small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.5; margin-top: 2px; }
.footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .82rem; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: .9rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.doc a { color: var(--accent); }
.doc code { font: .88em ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--raised); padding: 1px 6px; border-radius: 5px; }
.doc .summary { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 8px; }
.doc .summary p { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; gap: 16px; padding: 96px 24px; }

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