/* ==========================================================================
   Flixy TV Stick - High-Contrast Cyber-Cinema Streamlining Interface
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Design Fingerprint Tokens */
  --primary-dark: #08090c;
  --secondary-dark: #12151e;
  --accent-red: #e50914;
  --accent-glow: #ff3b30;
  --card-surface: #181c28;
  --card-border: #262c3e;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --badge-bg: rgba(229, 9, 20, 0.15);
  
  /* Layout & Spacing */
  --container-max-width: 1160px;
  --radius-card: 10px;
  --radius-btn: 6px;
  --radius-pill: 20px;
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--primary-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#vis_setup_sequence {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.brand-logo svg {
  color: var(--accent-red);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  background: var(--badge-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-light);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  background-color: #f6121d;
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.6);
  transform: translateY(-2px);
  outline: none;
}

.btn-nav {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  width: 100%;
}

.btn-secondary {
  background-color: var(--card-surface);
  border: 1px solid var(--card-border);
  color: var(--text-light);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background-color: #202636;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Section Styling */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(38, 44, 62, 0.4);
  position: relative;
}

.section-alt {
  background-color: var(--secondary-dark);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section Architecture */
.hero-section {
  padding: 4rem 0 4.5rem 0;
  background: radial-gradient(circle at 70% 30%, rgba(229, 9, 20, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(38, 44, 62, 0.3) 0%, transparent 50%),
              var(--primary-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.scan-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.scan-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-light);
}

.scan-points svg {
  color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.offer-value-summary {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-red);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-cta-wrapper {
  margin-bottom: 1.25rem;
}

.proof-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual-wrapper {
  position: relative;
}

.hero-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Card Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Standard Slate Cards */
.slate-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.slate-card:hover {
  border-color: rgba(229, 9, 20, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slate-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.slate-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slate-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
}

.slate-card-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Specs Table Layout */
.specs-table-container {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}

.specs-table th {
  background: rgba(8, 9, 12, 0.4);
  color: var(--text-muted);
  font-weight: 600;
  width: 38%;
}

.specs-table td {
  color: var(--text-light);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Setup Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  position: relative;
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 1.5rem;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem 0;
  color: var(--text-light);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Offer / Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pack-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.25rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.pack-card.best-seller {
  border: 2px solid var(--accent-red);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.25);
  background: linear-gradient(180deg, rgba(24, 28, 40, 1) 0%, rgba(30, 36, 52, 1) 100%);
}

.best-seller-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.pack-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pack-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.pack-discount-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-glow);
  background: rgba(255, 59, 48, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.pack-price-block {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--card-border);
  border-bottom: 1px dashed var(--card-border);
}

.per-unit-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.per-unit-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pack-totals {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.regular-total {
  text-decoration: line-through;
  color: var(--text-dim);
  margin-right: 0.4rem;
}

.payable-total {
  font-weight: 700;
  color: var(--text-light);
}

.pack-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pack-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pack-features svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

.shipping-cost-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(229, 9, 20, 0.3);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-button:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: -2px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent-red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 600px;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid rgba(38, 44, 62, 0.5);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

/* Closing CTA Container */
.closing-cta-card {
  background: linear-gradient(135deg, rgba(24, 28, 40, 1) 0%, rgba(18, 21, 30, 1) 100%);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent-red);
  border-radius: var(--radius-card);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.closing-cta-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.closing-cta-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

/* Footer */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--card-border);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.footer-nav-col a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-nav-col a:hover {
  color: var(--text-light);
}

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(38, 44, 62, 0.4);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Standard Legal Content Page Styling */
.legal-page {
  padding: 3.5rem 0;
}

.legal-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
}

.legal-card h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.legal-card .update-date {
  font-size: 0.88rem;
  color: var(--accent-red);
  margin-bottom: 2rem;
  font-weight: 600;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem 0;
  color: var(--text-light);
}

.legal-content p, .legal-content ul {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* RESPONSIVE BREAKPOINTS & BINDING MOBILE RULES */

@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* BINDING MOBILE HERO ORDERING REQUIREMENT */
  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    display: contents; /* Allows children to participate in flex order */
  }

  .hero-eyebrow { order: 1; }
  .hero-title { order: 2; }
  .hero-intro { order: 3; }
  .hero-visual-wrapper { order: 4; margin: 1rem 0 1.5rem 0; width: 100%; }
  .hero-cta-wrapper { order: 5; width: 100%; }
  .scan-points { order: 6; }
  .offer-value-summary { order: 7; }
  .proof-strip { order: 8; justify-content: center; }

  .nav-links {
    display: none; /* Hide default nav items on mobile */
  }

  .grid-2, .grid-3, .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .closing-cta-card h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
  }
}
