/* ============================================
   CO-OP Comms - Style Sheet
   Split-screen co-op theme: Host mint + Guest periwinkle, the app's own pair
   Based on Iron Tower Press design system
   ============================================ */

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

:root {
  /* Backgrounds (the app window's own greys) */
  --bg-dark: #121519;
  --bg-darker: #0c0e12;
  --bg-card: #1b1f27;
  --bg-card-hover: #232834;
  --bg-control: #262b36;

  /* Player colours: Host left, Guest right, as on the app's Host and Join buttons */
  --host: #5bd6b0;          /* 10.2:1 on --bg-dark, 9.2:1 on --bg-card */
  --host-dark: #2f9c7c;
  --guest: #93b4ff;         /* 8.9:1 on --bg-dark, 8.0:1 on --bg-card */
  --guest-dark: #5a7fd6;
  --seam: #76c5d8;          /* the midpoint, where the two halves meet */

  /* Primary accent */
  --accent: var(--host);
  --glow: #a8f0da;

  /* Text */
  --text: #e2e8f0;          /* 14.9:1 on --bg-dark */
  --text-muted: #a0a9b5;    /* 7.7:1 on --bg-dark, 6.9:1 on --bg-card */
  --text-bright: #f8fafc;
  --ink: #0c0e12;           /* text on a Host or Guest fill: 10.8:1 and 9.4:1 */

  /* Borders */
  --border: rgba(147, 180, 255, 0.14);
  --border-hover: rgba(147, 180, 255, 0.34);

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-height: 70px;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap: 24px;

  /* Effects */
  --split: linear-gradient(90deg, var(--host) 0 50%, var(--guest) 50% 100%);
  --duo: linear-gradient(135deg, var(--host), var(--guest));
  --glow-shadow: 0 0 20px rgba(91, 214, 176, 0.3), 0 0 60px rgba(147, 180, 255, 0.12);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--guest);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-bright);
}

img,
svg {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--host);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code {
  background: var(--bg-control);
  color: var(--text-bright);
  padding: 2px 6px;
  border-radius: 6px;
}

/* --- Utility --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--bg-darker);
}

.text-center { text-align: center; }
.text-glow { text-shadow: var(--glow-shadow); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--host);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* Scroll-triggered animation (only hides content when JS is running).
   It moves with `translate`, so a card's hover `transform` still applies,
   and only the reveal waits for the stagger delay. */
.js .fade-in {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    translate 0.6s ease var(--reveal-delay, 0s),
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.js .fade-in.visible {
  opacity: 1;
  translate: none;
}

/* Staggered card animations */
.card-grid .fade-in:nth-child(2) { --reveal-delay: 0.1s; }
.card-grid .fade-in:nth-child(3) { --reveal-delay: 0.2s; }
.card-grid .fade-in:nth-child(4) { --reveal-delay: 0.1s; }
.card-grid .fade-in:nth-child(5) { --reveal-delay: 0.2s; }
.card-grid .fade-in:nth-child(6) { --reveal-delay: 0.3s; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

/* Half Host, half Guest: the split-screen seam in miniature */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--split);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-lede {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(18, 21, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav.scrolled {
  background: rgba(12, 14, 18, 0.95);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  color: var(--text-bright);
}

.nav-logo-img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(147, 180, 255, 0.08);
}

/* Nav CTA button */
.nav-links .btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  background: var(--duo);
  color: var(--ink);
  padding: 8px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-links .btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 214, 176, 0.35);
  color: var(--ink);
  background: var(--duo);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-darker);
  padding: calc(var(--nav-height) + 48px) 0 64px;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  inset: -50px;
  transition: transform 0.1s ease-out;
}

/* Layer 1: Canvas background (rings from the mic) */
.hero-layer--bg {
  z-index: 1;
}

.hero-layer--bg canvas {
  width: 100%;
  height: 100%;
}

/* Layer 2: Midground glow, one per player */
.hero-layer--mid {
  z-index: 2;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 55% at 22% 45%, rgba(91, 214, 176, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 38% 55% at 78% 45%, rgba(147, 180, 255, 0.14) 0%, transparent 70%);
}

/* The split-screen frame: two tinted halves, a seam, a corner tag on each */
.hero-split {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(91, 214, 176, 0.05) 0 50%, rgba(147, 180, 255, 0.05) 50% 100%);
}


.hud-tag {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hud-tag strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.hud-tag--host {
  left: 24px;
}

.hud-tag--host strong { color: var(--host); }

.hud-tag--guest {
  right: 24px;
  text-align: right;
}

.hud-tag--guest strong { color: var(--guest); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 920px;
}

/* The seam runs down into the mic and on below the buttons, never through the text */
.hero-content::before,
.hero-content::after {
  content: '';
  position: absolute;
  left: calc(50% - 2px);
  width: 4px;
  height: 100vh;
  background: var(--bg-darker);
  box-shadow: -1px 0 0 rgba(91, 214, 176, 0.35), 1px 0 0 rgba(147, 180, 255, 0.35);
  pointer-events: none;
}

.hero-content::before {
  bottom: calc(100% - 22px);
}

.hero-content::after {
  top: calc(100% + 32px);
}

/* One mic between two headsets, the sound reaching both */
.hero-link {
  width: min(640px, 100%);
  height: auto;
  margin: 0 auto 32px;
}

.hero-link .host { color: var(--host); }
.hero-link .guest { color: var(--guest); }
.hero-link .mic { color: var(--text-bright); }

.hero-link .bar {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: speak 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes speak {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--host) 0%, var(--text-bright) 50%, var(--guest) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-lede {
  max-width: 36em;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-status {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-status strong {
  color: var(--text-bright);
  font-weight: 600;
}

/* --- Trailer: on the hero's dark, just below it --- */
.trailer-section {
  padding-top: 40px;
}

.trailer {
  max-width: 960px;
  margin: 0 auto;
}

.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.trailer-caption {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--duo);
  color: var(--ink);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91, 214, 176, 0.35), 0 0 60px rgba(147, 180, 255, 0.15);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border: 2px solid var(--text-bright);
}

.btn-outline:hover {
  background: var(--duo);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147, 180, 255, 0.3);
  color: var(--ink);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow), 0 0 20px rgba(147, 180, 255, 0.06);
}

/* Feature icon: tinted for the player it belongs to */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(91, 214, 176, 0.12);
  border: 1px solid rgba(91, 214, 176, 0.35);
  color: var(--host);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-icon--guest {
  background: rgba(147, 180, 255, 0.12);
  border-color: rgba(147, 180, 255, 0.35);
  color: var(--guest);
}

.feature-icon--both {
  background: linear-gradient(135deg, rgba(91, 214, 176, 0.14), rgba(147, 180, 255, 0.14));
  border-color: rgba(118, 197, 216, 0.4);
  color: var(--seam);
}

.feature-card {
  padding: 40px 32px;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-host {
  background: rgba(91, 214, 176, 0.12);
  color: var(--host);
  border: 1px solid rgba(91, 214, 176, 0.3);
}

.tag-guest {
  background: rgba(147, 180, 255, 0.12);
  color: var(--guest);
  border: 1px solid rgba(147, 180, 255, 0.3);
}

.tag-neutral {
  background: rgba(160, 169, 181, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(160, 169, 181, 0.25);
}

/* --- Comparison Table --- */
.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row.comparison-header {
  background: rgba(147, 180, 255, 0.06);
}

.comparison-cell {
  padding: 16px 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-header .comparison-cell {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-bright);
}

.comparison-cell.feature-name {
  color: var(--text);
  font-weight: 500;
}

.comparison-cell.ours {
  color: var(--host);
  font-weight: 600;
}

.comparison-cell.theirs {
  color: var(--text-muted);
}

.comparison-cell .check {
  color: var(--host);
  font-weight: 700;
}

.comparison-cell .x-mark {
  color: #fb8a9a;
  font-weight: 700;
}

/* Mobile comparison labels (hidden on desktop) */
.comparison-cell .mobile-label {
  display: none;
}

/* --- How it works: steps --- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: step;
  margin-bottom: 72px;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 2px solid var(--seam);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-bright);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step strong {
  color: var(--text-bright);
  font-weight: 600;
}

.step .on-host { color: var(--host); }
.step .on-guest { color: var(--guest); }

/* --- The two live screens, side by side --- */
.screens {
  max-width: 1152px;
  margin: 0 auto;
}

.screens-frame {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-dark);
}

.screens-seam {
  background: var(--bg-darker);
  box-shadow: -1px 0 0 rgba(91, 214, 176, 0.35), 1px 0 0 rgba(147, 180, 255, 0.35);
}

.screen {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-player {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.screen-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.screens-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Requirements & specs --- */
.spec-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--gap);
  align-items: start;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.spec-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.spec-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-list dt {
  font-weight: 600;
  color: var(--text-bright);
}

.spec-list dd {
  color: var(--text-muted);
}

.spec-list dd strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Status Card (the pricing card's slot) --- */
.status-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--split);
}

.status-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.status-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--guest);
  font-weight: 600;
  margin-bottom: 24px;
}

.status-body {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.status-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.status-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-features li:last-child {
  border-bottom: none;
}

.status-features .check-icon {
  color: var(--host);
  font-weight: 700;
  flex-shrink: 0;
}

.status-card .btn + .btn {
  margin-top: 12px;
}

.status-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hover);
}

.faq-item h3 {
  font-size: inherit;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.faq-question::after {
  content: '+';
  content: '+' / '';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--host);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '\2212';
  content: '\2212' / '';
  transform: rotate(180deg);
}

/* Grid-row trick: opens to the answer's real height, so long answers never clip */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}

.faq-item.open .faq-answer-inner {
  visibility: visible;
  transition-delay: 0s;
}

.faq-answer-inner > div {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer-inner p + p {
  margin-top: 10px;
}

.faq-answer-inner strong {
  color: var(--text);
  font-weight: 600;
}

/* Without JS every answer stays open */
html:not(.js) .faq-answer {
  grid-template-rows: 1fr;
}

html:not(.js) .faq-answer-inner {
  visibility: visible;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-darker);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-brand h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Without JS the toggle cannot work, so a plain link to the footer's list stands in */
.nav-menu-link {
  display: none;
}

@media (max-width: 900px) {
  html:not(.js) .nav-links {
    display: none;
  }

  html:not(.js) .nav-menu-link {
    display: block;
    color: var(--text-bright);
    font-weight: 600;
    padding: 8px 12px;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(12, 14, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
  }

  .js .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
  }

  .nav-links .btn-nav-cta {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
    padding: 12px 20px;
  }

  .js .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --gap: 16px;
  }

  .section-lede {
    margin-bottom: 40px;
  }

  .hud-tag span {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .screens-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto 4px auto;
  }

  .screens-seam {
    box-shadow: 0 -1px 0 rgba(91, 214, 176, 0.35), 0 1px 0 rgba(147, 180, 255, 0.35);
  }

  .screen {
    padding: 14px;
  }

  /* Comparison table responsive */
  .comparison-header {
    display: none;
  }

  .comparison-row:not(.comparison-header) {
    display: block;
    padding: 16px 24px;
  }

  .comparison-row:not(.comparison-header) .comparison-cell {
    display: block;
    padding: 4px 0;
  }

  .comparison-cell.feature-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: 8px;
  }

  .comparison-cell .mobile-label {
    display: inline;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 4px;
  }

  .status-card {
    padding: 32px 24px;
  }

  .spec-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
    letter-spacing: 0.04em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --- Reduced motion: no loops, no reveals, no lift --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .fade-in {
    opacity: 1;
    translate: none;
  }

  .hero-link .bar {
    animation: none;
    transform: none;
  }
}

/* --- Print: every section and every answer, no chrome --- */
@media print {
  .nav,
  .skip-link,
  .hero-parallax,
  .hero-split,
  .hero-buttons,
  .hero-content::before,
  .hero-content::after {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 24px 0;
  }

  .js .fade-in {
    opacity: 1;
    translate: none;
  }

  .faq-answer {
    grid-template-rows: 1fr;
    transition: none;
  }

  .faq-answer-inner {
    visibility: visible;
    transition: none;
  }

  .faq-question::after {
    content: none;
  }
}
