/* ==========================================================================
   A Happy Mind — Midnight Lagoon Design System (WCAG 2.2 AA+ Verified)
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #060d19;
  --bg-mid: #0b1626;
  --bg-elevated: #112136;
  --surface-card: rgba(16, 30, 50, 0.78);
  --surface-card-strong: rgba(19, 36, 60, 0.94);
  --border-subtle: rgba(148, 179, 212, 0.16);
  --border-accent: rgba(122, 215, 201, 0.36);

  /* Verified WCAG AAA/AA contrast on #060d19 / #101e32 */
  --text-primary: #f5f8fc;   /* ~17.5:1 on #060d19 */
  --text-secondary: #bccae0; /* ~11.2:1 on #060d19 */
  --text-muted: #95a9c6;     /* ~7.4:1 on #060d19 */

  --accent-teal: #7ad7c9;    /* ~11.6:1 on #060d19 */
  --accent-teal-hover: #9be5da;
  --accent-teal-ink: #071320;
  --accent-gold: #f2c679;    /* ~12.2:1 on #060d19 */

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.52);
  --shadow-glow: 0 0 80px rgba(122, 215, 201, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(122, 215, 201, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 40% at 88% 12%, rgba(242, 198, 121, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #071120 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-teal-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip to main content (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent-teal);
  color: var(--accent-teal-ink);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 25, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(122, 215, 201, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.18s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent-teal);
  color: var(--accent-teal-ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.nav-cta:hover {
  background: var(--accent-teal-hover);
  color: var(--accent-teal-ink);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 13, 25, 0.97);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
}

.mobile-drawer a:hover {
  background: rgba(122, 215, 201, 0.1);
}

/* ---------- Buttons & Store Badges ---------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 1.35rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d1a2e;
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  min-height: 54px;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-teal);
  background: #132541;
  color: var(--text-primary);
}

.store-btn--primary {
  background: var(--accent-teal);
  color: var(--accent-teal-ink);
  border-color: transparent;
}

.store-btn--primary:hover {
  background: var(--accent-teal-hover);
  color: var(--accent-teal-ink);
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn-meta small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.store-btn-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.3rem;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  background: rgba(122, 215, 201, 0.08);
  color: var(--accent-teal);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(122, 215, 201, 0.16);
  transform: translateY(-2px);
}

/* ---------- Editorial Section Helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(122, 215, 201, 0.12);
  border: 1px solid rgba(122, 215, 201, 0.34);
}

.eyebrow--gold {
  color: var(--accent-gold);
  background: rgba(242, 198, 121, 0.12);
  border-color: rgba(242, 198, 121, 0.36);
}

section {
  padding-block: clamp(4rem, 7vw, 6.25rem);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.9rem;
}

.section-header p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--text-secondary);
}

.accent-text {
  color: var(--accent-teal);
}

.gold-text {
  color: var(--accent-gold);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.2vw, 4.1rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin: 1.1rem 0 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0 0 1.9rem;
  max-width: 56ch;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 215, 201, 0.22), rgba(242, 198, 121, 0.08) 55%, transparent 75%);
  filter: blur(28px);
  z-index: 0;
}

.phone-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 470px;
}

.device-frame {
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(145deg, #1b2d47, #0b1422);
  border: 1px solid rgba(186, 212, 240, 0.28);
  box-shadow: var(--shadow-soft);
}

.device-frame img {
  border-radius: 26px;
  width: 100%;
}

.phone-primary {
  width: 60%;
  position: relative;
  z-index: 2;
}

.phone-secondary {
  width: 52%;
  margin-left: -14%;
  margin-bottom: 4%;
  opacity: 0.96;
  transform: translateY(-6px);
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  border-block: 1px solid var(--border-subtle);
  background: rgba(11, 22, 38, 0.62);
  padding-block: 1.35rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
}

/* ---------- Bento Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 215, 201, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(122, 215, 201, 0.24);
  margin-bottom: 1.15rem;
}

.card-icon--gold {
  background: rgba(242, 198, 121, 0.12);
  color: var(--accent-gold);
  border-color: rgba(242, 198, 121, 0.28);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  line-height: 1.28;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------- Flagship iPhone Duo & Multi-Screen Showcase ---------- */
.duo-section {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(122, 215, 201, 0.10), transparent 72%),
    rgba(9, 18, 33, 0.72);
  border-block: 1px solid var(--border-subtle);
}

.duo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.25rem;
}

.pose-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.pose-tab {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.pose-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.pose-tab[aria-selected="true"] {
  background: var(--accent-teal);
  color: var(--accent-teal-ink);
  border-color: transparent;
}

.pose-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.pose-panel[hidden] {
  display: none;
}

.pose-media {
  display: flex;
  justify-content: center;
}

.pose-media img {
  border-radius: 18px;
  border: 1px solid rgba(186, 212, 240, 0.22);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
  max-height: 460px;
  width: auto;
  object-fit: contain;
}

.pose-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin: 0.85rem 0 0.85rem;
  line-height: 1.2;
}

.pose-copy p {
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  color: var(--accent-teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Library & Soundscapes Split ---------- */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.showcase-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.showcase-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0.65rem 0 0.55rem;
}

.showcase-card p {
  color: var(--text-secondary);
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip-row li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.showcase-shot {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.showcase-shot img {
  width: min(100%, 275px);
  border-radius: 24px;
  border: 1px solid rgba(186, 212, 240, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.plan-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

.plan-card--featured {
  border-color: rgba(242, 198, 121, 0.55);
  background: linear-gradient(180deg, rgba(22, 42, 68, 0.92), rgba(14, 27, 46, 0.92));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.plan-art {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: cover;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.plan-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.plan-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 2rem auto 0;
  max-width: 72ch;
}

/* ---------- FAQ (Native Accessible Accordion) ---------- */
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-teal);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.faq-answer p {
  margin: 0;
}

/* ---------- Final CTA Banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 65% 80% at 50% 0%, rgba(122, 215, 201, 0.20), transparent 70%),
    linear-gradient(135deg, rgba(16, 33, 56, 0.96), rgba(9, 19, 35, 0.98));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0.9rem 0 0.85rem;
  line-height: 1.15;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 2rem;
  font-size: 1.06rem;
}

.cta-banner .store-buttons {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 10, 20, 0.92);
  padding-block: 3.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.85rem 0 1.1rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-teal);
}

.footer-address {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: grid;
  gap: 0.45rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.social-links a:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Video Preview Dialog ---------- */
.video-dialog {
  width: min(94vw, 960px);
  padding: 0;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  background: #071120;
  color: var(--text-primary);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.85);
}

.video-dialog::backdrop {
  background: rgba(3, 8, 16, 0.84);
  backdrop-filter: blur(8px);
}

.video-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.video-dialog-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.video-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---------- Legal Document Reader & Download Router ---------- */
.legal-main {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}

.legal-shell {
  max-width: 820px;
  margin-inline: auto;
  background: var(--surface-card-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-soft);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.legal-nav a[aria-current="page"] {
  background: var(--accent-teal);
  color: var(--accent-teal-ink);
  border-color: transparent;
}

.legal-body {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.legal-body h2,
.legal-body h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 2rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-secondary);
}

.legal-body b,
.legal-body strong {
  color: var(--text-primary);
}

.legal-body a {
  color: var(--accent-teal);
  word-break: break-word;
}

.legal-callout {
  margin: 1.25rem 0 2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  background: rgba(122, 215, 201, 0.08);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.plan-card--featured h3 {
  margin-top: 0.6rem;
}

.download-hero {
  max-width: 740px;
  margin-inline: auto;
}

.download-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 1rem 0 0.75rem;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.legal-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.legal-body th {
  background: rgba(122, 215, 201, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .pose-panel,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .header-desktop-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .features-grid,
  .plans-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .store-btn,
  .btn-ghost {
    justify-content: center;
  }
}

/* ---------- Reduced Motion (WCAG 2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
