/* ── Rewatch TV+ Design System ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e4e4e7;
  background: #0a0a0a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #818cf8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a1a1aa;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: #fafafa; }
.nav-cta {
  padding: 8px 20px !important;
  background: #818cf8 !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #6366f1 !important; }
@media(max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Page Hero ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(../images/videos/hero-bg.png) center/cover no-repeat;
  opacity: 0.08;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fafafa;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
@media(min-width: 640px) { .page-hero h1 { font-size: 2.5rem; } }
.page-hero p {
  font-size: 1rem;
  color: #a1a1aa;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section ── */
.section { padding: 64px 24px; }
.section.alt { background: #111; }
.section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 8px;
}
@media(min-width: 640px) { .section-header h2 { font-size: 2rem; } }
.section-header p {
  font-size: 0.95rem;
  color: #71717a;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width: 800px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #333; }
.card-icon {
  width: 40px; height: 40px;
  background: #1a1a1a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon img { width: 20px; height: 20px; }
.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fafafa;
  margin-bottom: 6px;
}
.card p {
  font-size: 0.82rem;
  color: #71717a;
  line-height: 1.5;
}

/* ── Stat cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media(max-width: 700px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #818cf8;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: #71717a;
}

/* ── Proof bar ── */
.proof-bar {
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 20px 24px;
}
.proof-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-stat { text-align: center; }
.proof-stat .num { font-size: 1.5rem; font-weight: 700; color: #fafafa; }
.proof-stat .lbl {
  font-size: 0.75rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Content grid ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media(max-width: 900px) { .content-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 600px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
.content-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #141414;
  transition: transform 0.2s;
}
.content-card:hover { transform: scale(1.03); }
.content-card img { width: 100%; height: 100%; object-fit: cover; }

/* ── Testimonials ── */
.test-card {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 24px;
}
.test-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 12px; }
.test-quote { font-size: 0.88rem; color: #a1a1aa; line-height: 1.5; margin-bottom: 16px; }
.test-author { display: flex; align-items: center; gap: 10px; }
.test-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.test-name { font-size: 0.82rem; font-weight: 600; color: #e4e4e7; }
.test-detail { font-size: 0.72rem; color: #52525b; }

/* ── FAQ ── */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #1f1f1f; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e4e4e7;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q:hover { color: #fafafa; }
.faq-q .arrow { font-size: 1.2rem; color: #555; transition: transform 0.2s; }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner {
  padding: 0 0 18px;
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.6;
}
.faq-a-inner a { color: #818cf8; }

/* ── Forms ── */
.form-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.field input.error, .field textarea.error { border-color: #ef4444; }
.field .field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: #818cf8;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #6366f1; }

.success-msg {
  display: none;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  color: #4ade80;
  text-align: center;
  margin-top: 12px;
}
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  text-align: center;
  margin-top: 8px;
}

/* ── Legal pages ── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fafafa;
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e4e4e7;
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-content li {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content a { color: #818cf8; }
.legal-content strong { color: #e4e4e7; }

/* ── Buttons ── */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #818cf8;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-hero:hover { background: #6366f1; transform: translateY(-1px); text-decoration: none; }
.btn-hero svg { width: 18px; height: 18px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand img { height: 28px; margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.75rem;
  color: #3f3f46;
  max-width: 280px;
  line-height: 1.5;
}
.footer-brand a { color: #52525b; }
.footer-links-group { display: flex; gap: 48px; }
@media(max-width: 600px) { .footer-links-group { gap: 24px; flex-direction: column; } }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #52525b;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 0.82rem; color: #71717a; transition: color 0.2s; text-decoration: none; }
.footer-col a:hover { color: #a1a1aa; }
.footer-bottom {
  max-width: 1000px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.72rem; color: #3f3f46; }
.footer-bottom a { color: #52525b; font-size: 0.72rem; text-decoration: none; }

/* ── Region Domain Badge ── */
.region-domain {
  display: block;
  font-size: 0.75rem;
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  color: #818cf8;
  margin-top: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

/* ── Active Region Highlight (set by js/region.js) ── */
.card.active-region {
  border-color: #818cf8;
  background: linear-gradient(160deg, rgba(129,140,248,0.06) 0%, #141414 60%);
}
.card.active-region .region-domain::after {
  content: ' \2014  You are here';
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 500;
}
