/* ==========================================================================
   Videoflux (videoflux-pt.com) - "App front door"
   Mirrors the product's own home screen: charcoal app chrome, the product's
   magenta accent, a featured slider, then one row of real episodes per series.
   Radius rule: buttons and chips are full pills, cards/media 12px, inputs 10px.
   ========================================================================== */

:root {
  --bg: #131316;
  --bg-deep: #0d0d10;
  --surface: #1b1b20;
  --surface-2: #24242a;
  --surface-3: #2e2e35;
  --text: #f4f4f6;
  --muted: #b4b4bd;
  --faint: #878791;
  --border: #2c2c33;
  --border-strong: #44444d;
  --accent: #d51a92;
  --accent-hover: #e83aa6;
  --accent-soft: #3a1431;
  --accent-ink: #fff5fb;
  --plum: #350725;
  --legal-text: #d8d8de;
  --error: #ff7a8a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --radius: 12px;
  --radius-input: 10px;
  --header-h: 64px;
  --font-display: 'Onest', 'Segoe UI', sans-serif;
  --font-body: 'Onest', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { margin-bottom: 2.75rem; width: min(680px, 100%); }
.section-head h2 { margin-bottom: 0.85rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--accent-ink); color: var(--plum); }
.btn-light:hover { background: var(--text); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
}
.text-link:hover { color: var(--accent-hover); }

/* ---------- Header + nav ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  direction: ltr;
  background: rgba(13, 13, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 150px; height: auto; }
.site-nav-desktop { display: flex; align-items: center; gap: 1.6rem; }
.site-nav-desktop a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav-desktop a:not(.btn):hover { color: var(--text); }
.site-nav-desktop a.active { color: var(--text); border-bottom-color: var(--accent); }
.lang-switcher { display: flex; gap: 0.35rem; }
.lang-pill { font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.lang-active { background: var(--surface-2); color: var(--text); }
.nav-burger { display: none; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.site-nav { display: none; }

@media (max-width: 860px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }
  .site-nav {
    display: flex; flex-direction: column; gap: 0.2rem;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    z-index: 800;
    padding: 1rem 16px 1.5rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn), .site-nav .lang-switcher { padding: 0.6rem 0; }
  .site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 0.9rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero slider (home) ----------
   Without JS the track is a native scroll-snap strip and the dots are anchor
   links, so every slide stays reachable. main.js adds autoplay and arrows. */
.hero { position: relative; padding-top: var(--header-h); background: var(--bg-deep); }
.slider { position: relative; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  min-height: clamp(460px, 68vh, 620px);
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide-intro .slide-bg { object-position: 70% center; }
.slide-bg-blur { filter: blur(28px) saturate(1.2); transform: scale(1.15); opacity: 0.55; }
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 16, 0.94) 0%, rgba(13, 13, 16, 0.72) 42%, rgba(13, 13, 16, 0.15) 75%),
    linear-gradient(0deg, var(--bg-deep) 0%, transparent 30%);
}
.slide-episode::after { background: linear-gradient(90deg, rgba(13, 13, 16, 0.92) 0%, rgba(13, 13, 16, 0.6) 100%), linear-gradient(0deg, var(--bg-deep) 0%, transparent 30%); }
.slide-copy { padding-block: 3rem 4.5rem; }
.slide-intro .slide-copy > * { width: min(560px, 100%); }
.hero h1 { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-brand {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--accent-hover);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.hero-brand::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero-line { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04; }
.hero-lede { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-actions .icon { width: 1.1em; height: 1.1em; }

.slide-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.slide-split .slide-copy { padding-block: 3rem; }
.slide-cat { color: var(--accent-hover); font-weight: 600; font-size: 0.95rem; }
.slide-title { margin-top: 0.6rem; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.05; }
.slide-frame {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.slide-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.slide-frame:hover img { transform: scale(1.03); }

.play-badge {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(13, 13, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-size: 1.6rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.slide-frame:hover .play-badge, .ep-card:hover .play-badge { background: var(--accent); border-color: var(--accent); }

.slider-controls {
  position: absolute; left: 0; right: 0; bottom: 1.4rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.slider-dot.is-active { width: 28px; background: var(--accent); }
.slider-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text); font-size: 1.1rem;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.slider-prev .icon { transform: scaleX(-1); }
.slider-arrow[hidden] { display: none; }

/* ---------- Showcase: one row per series ---------- */
.section-showcase { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-showcase .section-head { margin-bottom: 1.5rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-chip {
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cat-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.row { position: relative; scroll-margin-top: calc(var(--header-h) + 1rem); }
.row + .row { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.1rem; }
.row-head h3 {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700;
}
.row-head h3::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--accent); }
.row-head p { color: var(--muted); font-size: 0.97rem; margin-top: 0.3rem; }
.row-tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.row-all {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem;
  color: var(--text); font-weight: 600; font-size: 0.93rem; text-decoration: none;
  transition: color 0.2s ease, gap 0.3s var(--ease);
}
.row-all:hover { color: var(--accent-hover); gap: 0.6rem; }
.row-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--ease);
}
.row-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.row-arrow:active:not(:disabled) { transform: scale(0.92); }
.row-arrow:disabled { opacity: 0.35; cursor: default; }
.row-arrow[hidden] { display: none; }
.row-prev .icon { transform: scaleX(-1); }

/* The track bleeds to the screen edge; soft fades show there is more to scroll. */
.row-viewport { position: relative; }
.row-viewport::before, .row-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 3rem; z-index: 2; width: max(16px, calc((100% - 1200px) / 2));
  pointer-events: none; transition: opacity 0.3s ease;
}
.row-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent); opacity: 0; }
.row-viewport::after { right: 0; background: linear-gradient(270deg, var(--bg) 20%, transparent); }
.row.is-scrolled .row-viewport::before { opacity: 1; }
.row.is-end .row-viewport::after { opacity: 0; }
.row-track {
  list-style: none; display: flex; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.6rem max(16px, calc((100% - 1200px) / 2)) 1.2rem;
  scroll-padding-inline: max(16px, calc((100% - 1200px) / 2));
}
.row-track::-webkit-scrollbar { display: none; }
.row-item { flex: 0 0 clamp(240px, 23vw, 290px); scroll-snap-align: start; }

.ep-card { display: block; color: var(--text); text-decoration: none; outline: none; }
.ep-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ep-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.45) 0%, transparent 35%, transparent 60%, rgba(213, 26, 146, 0.25) 100%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ep-num {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(13, 13, 16, 0.7); color: var(--text);
  font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.ep-thumb .play-badge { z-index: 1; width: 50px; height: 50px; font-size: 1.2rem; opacity: 0; scale: 0.7; transition: opacity 0.3s ease, scale 0.4s var(--ease), background-color 0.3s ease; }
.ep-card:hover .ep-thumb, .ep-card:focus-visible .ep-thumb {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--accent), 0 22px 40px -18px rgba(213, 26, 146, 0.55);
}
.ep-card:hover .ep-thumb::after, .ep-card:focus-visible .ep-thumb::after { opacity: 1; }
.ep-card:hover .ep-thumb img, .ep-card:focus-visible .ep-thumb img { transform: scale(1.06); }
.ep-card:hover .ep-num, .ep-card:focus-visible .ep-num { opacity: 1; transform: none; }
.ep-card:hover .play-badge, .ep-card:focus-visible .play-badge { opacity: 1; scale: 1; }
.ep-title {
  display: block; margin-top: 0.75rem;
  font-size: 0.95rem; font-weight: 500; line-height: 1.35; color: var(--muted);
  transition: color 0.3s ease;
}
.ep-card:hover .ep-title, .ep-card:focus-visible .ep-title { color: var(--text); }

.row-progress { height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.row-progress span {
  display: block; height: 100%; width: var(--w, 30%); border-radius: inherit; background: var(--accent);
  transform: translateX(var(--x, 0)); transition: transform 0.15s linear, width 0.3s ease;
}

/* Rows deal their cards in, one after the other (only with JS, never for reduced motion). */
html.js .row:not(.in) .row-item { opacity: 0; transform: translateX(40px); }
html.js .row .row-item { transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: calc(min(var(--i), 6) * 70ms); }
html.js .row:not(.in) .row-head { opacity: 0; transform: translateY(14px); }
html.js .row .row-head { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ---------- Why us ---------- */
.section-why { background: var(--bg-deep); border-block: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.why-head h2 { margin-bottom: 0.9rem; }
.why-head p { color: var(--muted); font-size: 1.05rem; }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.why-item { display: flex; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--border); }
.why-icon { color: var(--accent-hover); font-size: 1.5rem; line-height: 1; padding-top: 0.1rem; }
.why-item h3 { margin-bottom: 0.4rem; }
.why-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 1rem; }
.bento-cell {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.bento-cell p { color: var(--muted); }
.bento-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; margin-bottom: auto;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 1.5rem;
}
.bento-1 { grid-column: span 3; grid-row: span 2; padding-top: 0; }
.bento-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 -1.6rem auto; }
.bento-mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bento-1 .bento-icon { margin: 1.4rem 0 0.4rem; }
.bento-1 h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; }
.bento-1 p { font-size: 1.04rem; }
.bento-2, .bento-3 { grid-column: span 3; }
.bento-4, .bento-5, .bento-6 { grid-column: span 2; }
.bento-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; z-index: 0; }
.bento-4::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 25%, rgba(27, 27, 32, 0.4) 100%); z-index: 0; }
.bento-4 > :not(.bento-bg) { position: relative; z-index: 1; }
.bento-4 .bento-icon { margin-bottom: auto; }
.bento-6 { grid-column: span 2; }
.bento-4 {
  background-color: var(--surface-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 14px, transparent 14px 28px);
  background-size: 100% 10px, 100% 10px;
  background-position: 0 14px, 0 calc(100% - 14px);
  background-repeat: no-repeat;
}
.bento-6 { background: linear-gradient(180deg, var(--surface) 0%, #2a1224 100%); }

/* ---------- CTA band ---------- */
.section-cta { padding-top: 0; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, var(--accent) 0%, #8e1466 60%, var(--plum) 100%);
}
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 0.5rem; }
.cta-band p { color: #fbe4f2; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s var(--ease); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--accent-hover), var(--accent-hover)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent-hover), var(--accent-hover)) center / 2px 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.35rem 1.3rem; color: var(--muted); }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(50% 90% at 90% 0%, rgba(213, 26, 146, 0.14), transparent 70%),
    linear-gradient(180deg, #1a1a1f 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.04; }
.page-hero p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- About ---------- */
.screen {
  margin: 0; position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: var(--surface);
}
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.values-grid { display: flex; flex-direction: column; }
.value-card {
  display: grid; grid-template-columns: 64px 4fr 7fr; gap: 1.5rem; align-items: start;
  padding: 2rem 0; border-top: 1px solid var(--border);
}
.value-card:last-child { border-bottom: 1px solid var(--border); }
.value-card .bento-icon { margin: 0; }
.value-card h3 { font-size: 1.45rem; font-weight: 700; padding-top: 0.45rem; }
.value-card p { color: var(--muted); font-size: 1.03rem; padding-top: 0.4rem; }

.section-vision { background: var(--bg-deep); border-block: 1px solid var(--border); }
.vision-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vision-copy h2 { margin-bottom: 1.2rem; }
.vision-copy p { color: var(--muted); font-size: 1.05rem; }
.vision-copy p + p { margin-top: 1rem; }

.promise { padding: clamp(2rem, 5vw, 3rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.promise h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.4rem; }
.promise .btn { margin-top: 1.8rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list .icon { color: var(--accent-hover); margin-top: 0.2rem; }

/* ---------- Pricing ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: flow; }
.flow-step {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  counter-increment: flow;
}
.flow-step h3 { margin: 1rem 0 0.45rem; }
.flow-step p { color: var(--muted); font-size: 0.97rem; }
.flow-step .bento-icon { margin: 0; }
.flow:not(.flow-subscribe) .flow-step::before {
  content: counter(flow);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
  font: 800 1.1rem/1 var(--font-display);
}
.flow-subscribe .flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.35rem; right: -1rem; width: 1rem; height: 2px;
  background: var(--border-strong);
}

.section-plans { background: var(--bg-deep); border-block: 1px solid var(--border); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 400px)); gap: 1.25rem; }
.pricing-card {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #2a1426 0%, var(--surface) 60%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.plan-op { font-weight: 600; color: var(--accent-hover); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.price-val { font: 800 clamp(2.8rem, 6vw, 3.6rem)/1 var(--font-display); }
.price-freq { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.price-meta { margin-top: 0.8rem; color: var(--muted); font-size: 0.92rem; }
.plan-features { padding-top: 1.4rem; border-top: 1px solid var(--border); }
.plan-cta { width: 100%; margin-top: auto; }

/* ---------- Opt-out ---------- */
.optout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.optout {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.optout[data-optout="sms"] { border-color: #6b1f55; background: linear-gradient(160deg, #2a1226 0%, var(--surface) 70%); }
.optout-op { font-weight: 600; color: var(--accent-hover); margin-bottom: 0.9rem; }
.optout-line { font-size: 1.15rem; line-height: 2; }
.optout-kw, .optout-dest {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-deep); border: 1px solid var(--border-strong);
  color: var(--text); text-decoration: none;
  word-break: break-all;
}
.optout-kw { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
a.optout-dest:hover { border-color: var(--accent); }
.optout-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.optout-notes li { display: flex; gap: 0.5rem; align-items: center; }
.optout-notes .icon { color: var(--accent-hover); }

/* ---------- Refund ---------- */
.section-refund { background: var(--bg-deep); border-block: 1px solid var(--border); }
.refund-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.refund-head h2 { margin-bottom: 0.9rem; }
.refund-head > p { color: var(--muted); font-size: 1.05rem; }
.refund-window { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.refund-days { font: 800 4rem/1 var(--font-display); color: var(--accent-hover); }
.refund-window span:last-child { color: var(--muted); }
.refund-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; counter-reset: refund; }
.refund-list li {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.1rem;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.97rem;
  counter-increment: refund;
}
.refund-list li::before {
  content: counter(refund);
  position: absolute; left: 1.1rem; top: 1rem;
  font: 800 1.2rem/1.2 var(--font-display); color: var(--accent-hover);
}

/* ---------- Forms (contact + sign-in) ---------- */
.contact-form, .form-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }
.form-group          { margin-bottom: 1.1rem; }
.contact-form h3,
.form-card h3        { margin-bottom: 1.5rem; font-size: 1.35rem; }
.form-row            { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button,
.form-card button    { margin-top: 0.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group label { display: block; margin-bottom: 0.45rem; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--faint); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(213, 26, 146, 0.28); }

.error-msg       { display: none; color: var(--error); font-size: 0.82rem; margin-top: 0.3rem; }
.form-success    { display: none; color: var(--accent-hover); font-weight: 600; margin-top: 1rem; }
.form-disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }
.errorMsg        { display: none; color: var(--error); font-size: 0.85rem; margin-top: 0.45rem; }
.successMsg      { color: var(--accent-hover); font-weight: 600; margin-top: 1rem; }
.successMsg a    { color: var(--text); }

.page-contact main > section:not(.page-hero),
.page-signin main > section:not(.page-hero) { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-contact .section-head { margin-bottom: 2rem; }
.page-contact .section-head p { margin-top: 0.6rem; }
.page-contact .section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* ---------- Legal pages (required block, pages/legal.md) ---------- */
.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.legals-wrap .legals { padding-top: 0; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1>; always hide it */
.legals h6 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-hover); margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: var(--legal-text); }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--legal-text); }
.legals a { color: var(--accent-hover); }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.legals th, .legals td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.big-num { font: 800 clamp(6rem, 18vw, 11rem)/0.9 var(--font-display); color: var(--accent); }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 1rem 0; }
.not-found p:not(.big-num) { color: var(--muted); margin-bottom: 2rem; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 2.5rem; }
.footer-brand p { color: var(--muted); margin: 1rem 0 1.4rem; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--text); }
.footer-care p { color: var(--muted); font-size: 0.93rem; }
.footer-col a.footer-mail { display: block; margin-top: 0.3rem; color: var(--accent-hover); font-weight: 600; word-break: break-all; }
.footer-entity { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; }
.footer-bottom { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--faint); font-size: 0.85rem; }

/* ---------- Reveal (content visible without JS: hidden only under html.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .slider-track { scroll-behavior: auto; }
  .row-track { scroll-behavior: auto; }
  html.js .row:not(.in) .row-item, html.js .row:not(.in) .row-head { opacity: 1; transform: none; }
  .ep-thumb, .ep-thumb img, .row-item, .row-head { transition: none; }
  .ep-thumb img, .slide-frame img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento-4, .bento-5 { grid-column: span 3; }
  .bento-6 { grid-column: span 6; }
}

@media (max-width: 860px) {
  .why-grid, .faq-layout, .vision-grid, .refund-layout { grid-template-columns: 1fr; }
  .why-head, .faq-layout .section-head { position: static; }
  .slide-split { grid-template-columns: 1fr; }
  .slide-split .slide-copy { padding-block: 1.5rem 0; order: 2; }
  .slide-frame { order: 1; margin-top: 1.5rem; }
  .slide-episode { align-items: flex-start; padding-bottom: 4.5rem; }
  .flow { grid-template-columns: 1fr; }
  .flow-subscribe .flow-step:not(:last-child)::after { display: none; }
  .value-card { grid-template-columns: 56px 1fr; }
  .value-card p { grid-column: 2; padding-top: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .why-list, .refund-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-cell, .bento-1, .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: auto; grid-row: auto; min-height: 190px; }
  .bento-1 { min-height: 280px; }
  .slide { min-height: 520px; }
  .slide-intro { align-items: flex-end; }
  .slide::after { background: linear-gradient(0deg, rgba(13, 13, 16, 0.97) 30%, rgba(13, 13, 16, 0.35) 100%); }
  .row-item { flex-basis: 74vw; }
  .row-head { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .row-arrow { display: none; }
  .row-all { margin-left: 0; }
  .bento-mosaic { margin-inline: -1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Inner-page heroes line up with the 1200px content grid below them (legal,
   contact and sign-in pages keep their centred narrow column). */
.page-about .page-hero .container-narrow,
.page-pricing .page-hero .container-narrow,
.page-unsubscribe-refund .page-hero .container-narrow { width: min(1200px, 100% - 32px); padding-right: min(35%, 420px); }
@media (max-width: 767px) {
  .page-about .page-hero .container-narrow,
  .page-pricing .page-hero .container-narrow,
  .page-unsubscribe-refund .page-hero .container-narrow { padding-right: 0; }
}
