/* assets/css/base.css — PocketBinge design system shared by every page.
   Tokens, reset, background, header, buttons, chips, forms, footer, utilities.
   Page-specific layout lives in home.css / series.css / player.css; overlays in sheets.css. */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap");

:root {
  --red: #ed1b24;
  --red-deep: #b30d15;
  --red-soft: #ff5a61;
  --navy: #012136;
  --ink: #010f1c;
  --plate: #06243a;
  --plate-2: #0a2e47;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f5f2;
  --chalk: #ffffff;
  --mist: #b9c8d3;
  --steel: #7f95a6;
  --ok: #3dd68c;
  --err: #ff6b81;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-card: 12px;
  --r-lg: 18px;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 60px;
  --glow-red: 0 14px 40px rgba(237, 27, 36, 0.38);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
p {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Cinematic backdrop: mountain loop under a navy scrim so content stays readable. */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(1, 33, 54, 0.85) 12%, rgba(1, 33, 54, 0.55) 40%, rgba(1, 33, 54, 0.9) 85%, var(--navy) 100%),
    radial-gradient(800px 400px at 85% 0%, rgba(237, 27, 36, 0.16), transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}
main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(1, 15, 28, 0.85), rgba(1, 15, 28, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
/* Frosted glass once the page scrolls (Mochi / ReelShort). */
.site-header.is-scrolled {
  background: rgba(1, 15, 28, 0.66);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hairline);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.logo-icon {
  width: 34px;
  height: 34px;
}
.logo-word {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-word .pocket {
  font-weight: 400;
  color: var(--red);
}
.logo-word .binge {
  font-weight: 900;
  color: var(--chalk);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--mist);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--chalk);
}
.nav-link {
  display: none;
}
@media (min-width: 720px) {
  .nav-link {
    display: inline;
  }
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  .logo-word {
    font-size: 1.3rem;
  }
}

/* ----------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--red);
  color: var(--chalk);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.btn-primary {
  background: linear-gradient(180deg, #ff2e37, var(--red) 60%, #d3141c);
  box-shadow: var(--glow-red);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--hairline-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8rem;
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 46px;
  padding: 0;
}
.btn-icon svg {
  width: 18px;
  height: 18px;
}
.nav-cta {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta .nav-cta-long {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta .nav-cta-long {
    display: inline;
  }
  .nav-cta .nav-cta-short {
    display: none;
  }
}

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(1, 15, 28, 0.6);
  color: var(--mist);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.chip-free {
  border-color: rgba(61, 214, 140, 0.5);
  color: #8ff0bd;
}
.chip-red {
  border-color: rgba(237, 27, 36, 0.6);
  color: #ff9aa0;
}

/* ------------------------------------------------------------------- forms */
input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--ink);
  color: var(--text);
  font: inherit;
}
input[type="email"]:focus {
  outline: 2px solid rgba(237, 27, 36, 0.5);
  border-color: var(--red);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 520px) {
  .form-row {
    flex-direction: row;
  }
}
.status {
  min-height: 1.2rem;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--mist);
}
.status.ok {
  color: var(--ok);
}
.status.err {
  color: var(--err);
}
.stats {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--steel);
}

/* ------------------------------------------------------------ section heads */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk);
}
.section-head .section-sub {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
@media (min-width: 900px) {
  .section-head h2 {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--steel);
  font-size: 0.82rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-brand img {
  width: 24px;
  height: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-links a,
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--steel);
  cursor: pointer;
}
.footer-links a:hover,
.footer-links button:hover {
  color: var(--chalk);
}

/* ----------------------------------------------------------- scroll-to-top */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--red);
  color: var(--chalk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.scroll-top svg {
  width: 20px;
  height: 20px;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.has-sticky-bar .scroll-top {
  bottom: calc(84px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) {
  .has-sticky-bar .scroll-top {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------- utilities */
.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;
}
[hidden] {
  display: none !important;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page {
  padding: 32px 0 24px;
  max-width: 46rem;
}
.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}
.page h2 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}
.page p {
  color: var(--mist);
  font-size: 1rem;
  margin-bottom: 10px;
}
.page a {
  color: var(--red-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
