/* ==========================================================================
   neferlopez.com — video-first YouTuber site
   Black / signal red / white + neon yellow & electric blue accents.
   Headings: Archivo Black. Body: Space Grotesk (variable 300–700).
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-black-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg: #050505;
  --bg-raise: #0d0d10;
  --bg-card: #101014;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --text-dim: #a6a6b0;
  --text-faint: #6f6f7a;

  --red: #ff3131;
  --yellow: #eaff00;
  --blue: #2e9bff;
  --accent: var(--red);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --header-h: 66px;
  --radius: 14px;
  --radius-sm: 9px;
  --shell: 1200px;
  --shell-narrow: 800px;
}
html[data-accent="yellow"] { --accent: var(--yellow); }
html[data-accent="blue"] { --accent: var(--blue); }
html[data-accent="black"] { --accent: var(--red); }

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #050505; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 3000;
  background: var(--accent); color: #050505; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---- Film grain overlay -------------------------------------------------- */
.grain {
  position: fixed; inset: -100%; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(4%, 4%); }
}

/* ---- Layout shells ------------------------------------------------------ */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.shell-narrow { max-width: var(--shell-narrow); margin-inline: auto; padding-inline: clamp(18px, 4vw, 24px); }
.section { padding-block: clamp(64px, 9vw, 110px); }

/* Accent-color transition at section breaks */
.brand-mark, .kicker, .chip.is-active, .btn-primary, .section-more, .review-card-more,
.rec-card-link, .kicker-dot, .review-card-kicker, .price-slider-fill, .price-range,
.newsletter-input:focus, .callout, .guide-amount, .review-card-flag, .social-link, .site-nav > a:hover {
  transition: color 0.45s ease, background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, .brand-name { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
.section-title, .page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-title-sm { font-size: clamp(1.3rem, 2.6vw, 1.8rem); text-transform: uppercase; margin-bottom: 24px; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.kicker {
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  margin-bottom: 14px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-more {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.section-more:hover { color: var(--text); border-color: var(--text); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 0.85rem; padding: 14px 24px; border-radius: 10px;
  border: 1px solid transparent; line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #050505; }
.btn-primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-yellow { background: var(--yellow); color: #050505; }
.btn-yellow:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--yellow) 40%, transparent); }
.btn-sm { padding: 10px 16px; font-size: 0.76rem; border-radius: 8px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); border-radius: 8px; }
.brand-name { font-size: 0.95rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand-name-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.site-nav > a {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700;
  color: var(--text-dim); padding-block: 6px; position: relative;
}
.site-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); transition: right 0.25s ease;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--text); }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { right: 0; }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle-box { display: flex; flex-direction: column; gap: 6px; width: 24px; }
.nav-toggle-box span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 84px)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-title { font-size: clamp(1.9rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 1; margin-bottom: 18px; }
.hero-title a:hover { color: var(--accent); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.hero-meta-chip {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 12px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 700;
}
.hero-blurb { color: var(--text-dim); max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { min-width: 0; }
.hero-hint { margin-top: 12px; color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- Video frames -------------------------------------------------------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #000;
}
.video-frame-hero { border-color: var(--line-strong); box-shadow: 0 24px 80px color-mix(in srgb, var(--accent) 22%, transparent); }
.video-frame-link { display: block; width: 100%; height: 100%; }
.video-frame-thumb, .video-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease;
}
.video-frame:hover .video-frame-thumb, .video-card:hover .video-card-media img { transform: scale(1.04); filter: brightness(1.08); }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(5, 5, 5, 0.62); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.play-badge svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-frame:hover .play-badge, .video-card:hover .play-badge {
  background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.08);
}
.video-frame:hover .play-badge svg, .video-card:hover .play-badge svg { fill: #050505; }
.play-badge-lg { width: 84px; height: 84px; }
.play-badge-lg svg { width: 34px; height: 34px; }

/* Muted hover preview iframe injected by app.js */
.video-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }

/* Click-to-play frames (reviews, inline shortcodes) */
.video-frame-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px;
  background: var(--red); color: #050505; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  padding: 14px 22px 14px 18px; border-radius: 999px;
  box-shadow: 0 14px 44px rgba(255, 49, 49, 0.45);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.video-frame-play svg { width: 18px; height: 18px; fill: currentColor; }
.video-frame-play:hover { transform: translate(-50%, -50%) scale(1.05); background: #ff4747; }
.video-frame.is-playing .video-frame-thumb,
.video-frame.is-playing .video-frame-play { display: none; }
.video-frame-live iframe, .video-frame-inline iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.mini-close {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(5, 5, 5, 0.8); color: #fff; font-size: 16px; line-height: 1;
  border: 1px solid var(--line-strong);
}
.mini-close[hidden] { display: none; }

/* ---- Video library ------------------------------------------------------- */
.library { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--yellow) 3%, transparent), transparent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.chip:hover { color: var(--text); border-color: var(--text-faint); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #050505; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.video-card {
  display: block; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-card); overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.video-card.is-hidden { display: none; }
.video-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-card-category {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(5, 5, 5, 0.78); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 11px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; font-weight: 700;
  backdrop-filter: blur(4px);
}
.video-card .play-badge { width: 52px; height: 52px; opacity: 0; }
.video-card:hover .play-badge { opacity: 1; }
.video-card-body { padding: 16px 18px 18px; }
.video-card-title { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1.4; margin-bottom: 8px; }
.video-card-meta { color: var(--text-faint); font-size: 0.8rem; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Review cards -------------------------------------------------------- */
.reviews-strip { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--blue) 4%, transparent), transparent); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.review-card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-card); overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.review-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.review-card-flag {
  position: absolute; top: 12px; right: 12px;
  background: var(--yellow); color: #050505;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; font-weight: 700;
  padding: 4px 11px; border-radius: 6px;
}
.review-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.review-card-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; font-weight: 700; }
.review-card-title { font-size: 1.12rem; line-height: 1.35; font-family: var(--font-body); font-weight: 700; }
.review-card-summary { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.review-card-meta { color: var(--text-faint); font-size: 0.8rem; display: flex; gap: 8px; }
.review-card-more { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 700; }

/* ---- Guides / recommendations -------------------------------------------- */
.recs-strip { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--red) 4%, transparent), transparent); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.guide-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-top: 3px solid var(--guide, var(--accent)); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s ease, border-color 0.3s ease;
}
a.guide-card:hover { transform: translateY(-4px); border-color: var(--guide); }
.guide-zero { --guide: var(--yellow); }
.guide-fifty { --guide: var(--blue); }
.guide-twohundred { --guide: var(--red); }
.guide-amount {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1; color: var(--guide); margin-bottom: 14px;
}
.guide-amount sup { font-size: 0.45em; vertical-align: super; }
.guide-amount sub { font-size: 0.28em; color: var(--text-dim); }
.guide-title { font-size: 1.15rem; margin-bottom: 10px; }
.guide-blurb { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; }
.guide-picks { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.8; }

/* Full board page */
.recs-board { padding-top: 0; }
.price-slider {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 30px;
}
.price-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.price-slider-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--text-dim); }
.price-slider-output { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); }
.price-slider-track-wrap { position: relative; height: 28px; }
.price-slider-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12); border-radius: 4px;
}
.price-slider-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; }
.price-range {
  position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none;
  background: transparent; pointer-events: none; height: 28px;
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); cursor: grab;
}
.price-range::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); cursor: grab;
}
.price-slider-note { margin-top: 10px; color: var(--text-faint); font-size: 0.82rem; }

.recs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rec-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.rec-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.rec-card.is-hidden { display: none; }
.video-card.is-entering, .rec-card.is-entering { animation: cardIn 0.3s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rec-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rec-card-category {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.64rem; font-weight: 700;
  color: var(--text-dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px;
}
.rec-card-price { font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; white-space: nowrap; }
.rec-card-name { font-size: 1.1rem; }
.rec-card-blurb { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.rec-card-link {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 700;
}
.rec-card-link:hover { color: var(--text); }
.recs-disclaimer { margin-top: 26px; color: var(--text-faint); font-size: 0.82rem; }

/* ---- Newsletter / support ------------------------------------------------- */
.signup { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--yellow) 3%, transparent), transparent); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.signup-lede { color: var(--text-dim); max-width: 50ch; margin-bottom: 28px; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-input {
  flex: 1 1 240px; background: var(--bg-raise); border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); padding: 14px 18px; font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-input::placeholder { color: var(--text-faint); }
.newsletter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.newsletter-fine { margin-top: 12px; color: var(--text-faint); font-size: 0.8rem; }

.signup-support { display: flex; flex-direction: column; gap: 20px; }
.support-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.support-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; font-weight: 700; margin-bottom: 12px; }
.support-title { font-size: 1.2rem; margin-bottom: 10px; }
.support-card p:not(.support-kicker) { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 20px; }
.social-list { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text-dim); transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- Review single / read-along ------------------------------------------- */
.review-head { padding-bottom: clamp(24px, 4vw, 40px); }
.review-head-meta { color: var(--text-dim); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.readalong {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 52px); align-items: start; padding-bottom: clamp(48px, 7vw, 80px);
}
.readalong-video { position: sticky; top: calc(var(--header-h) + 22px); }
.readalong-hint { margin-top: 12px; color: var(--text-faint); font-size: 0.8rem; }
.readalong-hint a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.readalong-hint a:hover { color: var(--accent); }
.readalong-body { min-width: 0; }

.tldr {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-raise); padding: 16px 20px; margin-bottom: 30px;
}
.tldr summary {
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.74rem; font-weight: 700; color: var(--accent);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.tldr summary::before { content: "+"; font-family: var(--font-display); transition: transform 0.2s ease; }
.tldr[open] summary::before { transform: rotate(45deg); }
.tldr summary::-webkit-details-marker { display: none; }
.tldr p { margin: 12px 0 0; color: var(--text-dim); font-size: 0.95rem; }

.review-foot { margin-top: 44px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.review-next { padding-block: 0 clamp(64px, 9vw, 110px); }

.review-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-next-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.review-next-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.review-next-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin-top: 8px; }

/* ---- Prose (article bodies) ------------------------------------------------ */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.4rem; line-height: 1.15; margin-top: 2.2em; letter-spacing: 0.01em;
}
.prose h3 { font-weight: 700; font-size: 1.08rem; margin-top: 1.8em; }
.prose p, .prose li { color: #d6d6dc; font-size: 1.02rem; line-height: 1.75; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: "▸"; position: absolute; left: -1.3em; color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose code {
  background: #17171c; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.12em 0.45em; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em; color: var(--yellow);
}
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text-dim);
}
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.callout p + p { margin-top: 0.6em; }
.callout-label {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem;
  font-weight: 700; color: var(--accent); margin-bottom: 6px;
}
.callout-note { --accent-soft: color-mix(in srgb, var(--blue) 8%, transparent); border-left-color: var(--blue); }
.callout-note .callout-label { color: var(--blue); }
.callout-warn { --accent-soft: color-mix(in srgb, var(--yellow) 7%, transparent); border-left-color: var(--yellow); }
.callout-warn .callout-label { color: var(--yellow); }
.callout p { font-size: 0.96rem; }

/* ---- Generic single pages -------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(28px, 4vw, 48px); }
.page-lede { color: var(--text-dim); font-size: 1.08rem; max-width: 60ch; margin-top: 16px; }
.page-single { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); }
.page-single-head { margin-bottom: 36px; }
.page-single-form { margin-top: 40px; max-width: 560px; }
.error-page { text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--accent); }
.error-page .hero-cta { justify-content: center; margin-top: 28px; }

/* ---- Mini player (mobile read-along) ---------------------------------------- */
@media (max-width: 979px) {
  .readalong-video { position: static; }
  .js-miniplayer.is-mini {
    position: fixed; right: 14px; bottom: 14px; z-index: 1500;
    width: min(320px, 72vw); aspect-ratio: 16 / 9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); border-color: var(--line-strong);
  }
  .js-miniplayer.is-mini .video-frame-play { display: none; }
  .js-miniplayer.is-mini .video-frame-thumb { display: none; }
  .js-miniplayer.is-mini iframe { position: absolute; }
}

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px) 32px; background: #030303; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr; gap: clamp(32px, 5vw, 72px); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--text-dim); font-size: 0.94rem; max-width: 34ch; margin-bottom: 22px; }
.footer-head { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--text-faint); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); padding-top: 26px;
  color: var(--text-faint); font-size: 0.82rem;
}
.footer-fine a { color: var(--text-dim); }
.footer-fine a:hover { color: var(--text); }

/* ---- Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .signup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 10px clamp(18px, 4vw, 40px) 22px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  body.nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav > a { padding: 15px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .site-nav > a::after { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
  .video-grid, .review-grid, .guide-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .newsletter-row .btn { flex: 1 1 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .readalong { grid-template-columns: 1fr; }
  .price-slider { padding: 18px; }
}

/* ---- Reduced motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
