/* ===========================================================
   Innovative Tech Stuff — Elemind sleep headband landing page
   Calm deep-night-purple aesthetic.
   Palette: indigo-black base, lavender accent, soft cyan EEG highlight,
            warm amber warn. Typography: Space Grotesk / Inter / JetBrains Mono.
   =========================================================== */

:root {
  /* Palette */
  --bg: #0B0A1F;
  --bg-elev: #141233;
  --bg-elev-2: #1C1946;
  --bg-warm: #0F0D28;
  --ink: #F2EEFF;
  --ink-soft: #C7C0E8;
  --muted: #8E87B5;
  --line: #2A2558;
  --line-strong: #3A3270;
  --accent: #B5A8FF;          /* lavender primary */
  --accent-dim: #8775E0;
  --accent-deep: #2E2270;
  --cyan: #7DD3FC;            /* soft EEG highlight */
  --warn: #F6B65B;
  --warn-dim: #7A4E00;
  --star: #FFD24A;
  --danger: #FF7A8A;

  /* Radius / shadow */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.25);
  --shadow-md: 0 2px 8px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(181,168,255,.25), 0 10px 40px rgba(181,168,255,.15);

  /* Type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Calm night-sky wash */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(181,168,255,.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(125,211,252,.03) 0%, transparent 55%);
}

/* Thin lavender scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; }
h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

img, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

em { font-style: italic; color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

/* ---------- Pulse dot (calm "breathing" indicator) ---------- */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  vertical-align: 1px;
  box-shadow: 0 0 10px rgba(181,168,255,.55);
  animation: pulse-breath 3.2s ease-in-out infinite;
}
@keyframes pulse-breath {
  0%, 100% { transform: scale(1);    opacity: .9; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(11,10,31,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.brand-mark {
  display: inline-flex;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(181,168,255,.45));
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.primary-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.primary-nav a:hover { color: var(--accent); text-decoration: none; }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right .25s ease;
}
.primary-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mobile-nav a:last-child { border: none; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #0B0A1F;
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 24px rgba(181,168,255,.2);
}
.btn-primary:hover {
  background: #C4BAFF;
  color: #0B0A1F;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 28px rgba(181,168,255,.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(181,168,255,.07);
  transform: translateY(-1px);
}
.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(242,238,255,.25);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.btn-ghost-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background-image:
    linear-gradient(rgba(181,168,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,168,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.feature-img {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm);
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  filter: saturate(1.05);
}
.feature-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,31,0) 40%, rgba(11,10,31,.75) 100%);
  pointer-events: none;
}

/* ---------- Hero video + EEG overlay ---------- */
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
  border: 1px solid var(--line);
}
.hero-video video,
.hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,31,0) 45%, rgba(11,10,31,.7) 100%);
  pointer-events: none;
}

.eeg-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: calc(100% - 32px);
  max-width: 380px;
  margin: 0 0 16px 16px;
  padding: 14px 16px 14px 18px;
  background: rgba(11,10,31,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(181,168,255,.3);
  border-radius: var(--radius);
  pointer-events: none;
}
.eeg-wave {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eeg-wave {
  flex: 1 1 auto;
  height: 22px;
  min-width: 0;
  overflow: visible;
}
.eeg-wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: eeg-draw 3s ease-in-out infinite;
}
.eeg-wave.alpha path { stroke: var(--accent); animation-duration: 3s; }
.eeg-wave.theta path { stroke: var(--cyan); animation-duration: 4.5s; animation-delay: .4s; }
.eeg-wave.delta path { stroke: var(--ink-soft); animation-duration: 6s; animation-delay: .8s; }
.eeg-wave.alpha { color: var(--accent); }
.eeg-wave.theta { color: var(--cyan); }
.eeg-wave.delta { color: var(--ink-soft); }

@keyframes eeg-draw {
  0%   { stroke-dashoffset: 120; opacity: .45; }
  50%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: -120; opacity: .45; }
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(11,10,31,.85);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  display: inline-flex;
  align-items: center;
}
.badge-live { color: var(--accent); }
.badge-pick {
  position: static;
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--warn);
  border-color: var(--warn);
  background: rgba(246,182,91,.08);
}

.feature-body {
  padding: 28px 32px 32px;
}
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.meta .dot { color: var(--line-strong); }
.category-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.category-label.light { color: var(--accent); }

.feature-title {
  font-size: clamp(26px, 3.4vw, 42px);
  margin-bottom: 18px;
  color: var(--ink);
}
.feature-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.feature-dek {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-elev-2);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.byline strong { display: block; font-size: 14px; }
.byline span { display: block; color: var(--muted); font-size: 12px; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.stars { display: inline-flex; gap: 2px; }
.star {
  width: 16px; height: 16px;
  background: var(--line);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star.filled { background-color: var(--star); }
.star.half {
  background: linear-gradient(90deg, var(--star) 50%, var(--line) 50%);
}
.rating-row strong { color: var(--ink); font-size: 15px; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Side cards */
.side-cards {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.side-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.side-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.side-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm);
}
.side-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
  transition: transform .4s ease, opacity .3s ease;
}
.side-card:hover .side-card-img img { transform: scale(1.04); opacity: 1; }
.side-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,10,31,.6) 100%);
}
.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(11,10,31,.8);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 2;
  border: 1px solid transparent;
}
.chip-cyan {
  background: rgba(125,211,252,.12);
  color: var(--cyan);
  border-color: rgba(125,211,252,.4);
}
.chip-accent {
  background: rgba(181,168,255,.14);
  color: var(--accent);
  border-color: rgba(181,168,255,.4);
}
.side-card-body {
  padding: 20px 22px 24px;
}
.side-card-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 10px 0 14px;
  line-height: 1.35;
}
.read-more {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 36px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.trust-strip::before, .trust-strip::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181,168,255,.28), transparent);
}
.trust-strip::before { top: -1px; }
.trust-strip::after  { bottom: -1px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(181,168,255,.08);
  border: 1px solid rgba(181,168,255,.28);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.trust-icon.gold {
  background: rgba(255,210,74,.08);
  border-color: rgba(255,210,74,.3);
  color: var(--star);
}
.trust-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.trust-item span { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Article ---------- */
.article {
  padding: 72px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  align-items: start;
}
.article-eyebrow { margin-bottom: 20px; }
.article-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 0; }
.article-body h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-top: 56px;
  position: relative;
  padding-left: 18px;
}
.article-body h3::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.article-body p { font-size: 16px; color: var(--ink-soft); }
.article-body .lede {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.65;
  padding: 24px;
  background: linear-gradient(180deg, rgba(181,168,255,.06), transparent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* ---------- Spec highlights ---------- */
.spec-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.spec-highlights::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.spec-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.spec-num .spec-unit {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 2px;
}
.h-accent {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Focus-visible (keyboard a11y) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(181,168,255,.3);
}
.spec-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Highlight blocks ---------- */
.highlight-block {
  padding: 24px 28px;
  margin: 20px 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  position: relative;
}
.highlight-block h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 17px;
}
.hb-num {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  background: rgba(181,168,255,.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(181,168,255,.28);
}
.highlight-block p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.highlight-block.warn {
  border-left-color: var(--warn);
  background: linear-gradient(180deg, rgba(246,182,91,.05), transparent);
}
.highlight-block.warn .hb-num {
  color: var(--warn);
  background: rgba(246,182,91,.1);
  border-color: rgba(246,182,91,.3);
}

/* ---------- Inline CTA ---------- */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  margin: 40px 0;
  background: linear-gradient(135deg, rgba(181,168,255,.1), rgba(125,211,252,.04));
  border: 1px solid rgba(181,168,255,.28);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.inline-cta strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.inline-cta span {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}
.inline-cta em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ---------- Plans table (legacy multi-row) ---------- */
.plans-table-wrap {
  overflow-x: auto;
  margin: 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.plans-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}
.plans-table th {
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-elev-2);
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.plans-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.plans-table tr:last-child td { border-bottom: none; }
.plans-table tr:hover td { background: rgba(181,168,255,.03); }
.plans-table td strong { color: var(--ink); }
.plans-table .mono { font-size: 14px; }
.plans-table tr.is-hero {
  position: relative;
}
.plans-table tr.is-hero td {
  background: linear-gradient(90deg, rgba(181,168,255,.1), rgba(181,168,255,.02));
  border-top: 1px solid rgba(181,168,255,.35);
  border-bottom: 1px solid rgba(181,168,255,.35);
}
.plans-table tr.is-hero td:first-child {
  position: relative;
}
.plans-table tr.is-hero td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

/* ---------- Pricing card (single tier) ---------- */
.pricing-card {
  position: relative;
  max-width: 520px;
  margin: 32px auto;
  padding: 36px 32px 32px;
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(181,168,255,.14), transparent 70%);
  pointer-events: none;
}
.pricing-card > * { position: relative; }
.pricing-card h3 { margin-bottom: 8px; color: var(--ink); }
.pricing-main-price {
  display: block;
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-sub {
  display: block;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pricing-sub strong { color: var(--accent); }
.pricing-bullets {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  color: var(--ink-soft);
}
.pricing-bullets li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}
.pricing-bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 6px; height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
  background: var(--bg-elev);
  transition: border-color .2s ease;
}
.faq[open] {
  border-color: rgba(181,168,255,.4);
  box-shadow: inset 0 0 0 1px rgba(181,168,255,.08);
}
/* Absolute-positioned +/- so text wraps naturally without clipping */
.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  display: block;
  position: relative;
  transition: color .15s ease;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  font-size: 20px;
  transition: transform .2s ease;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Product card (sticky) ---------- */
.product-card {
  position: sticky;
  top: 90px;
}
.product-card-inner {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.product-card-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(181,168,255,.1), transparent 70%);
  pointer-events: none;
}
.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.product-name {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}
.product-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.product-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.product-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-bullets li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}
.product-bullets li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.price-unit {
  color: var(--muted);
  font-size: 13px;
}
.price-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.price-free {
  color: var(--ink);
  font-weight: 500;
}
.price-note {
  color: var(--muted);
  font-size: 11px;
}

.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.product-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-trust svg { color: var(--accent); }

/* ---------- Science (text + inline video) ---------- */
.science-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.science-video {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-warm);
  box-shadow: var(--shadow-md);
}
.science-video video {
  width: 100%;
  display: block;
  background: var(--bg-warm);
  accent-color: var(--accent);
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.how-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}
.how-card video,
.how-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.how-card h3 {
  margin: 0 0 8px;
  padding: 0 22px;
  font-size: 19px;
  color: var(--ink);
}
.how-card p {
  margin: 0;
  padding: 0 22px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.how-card .how-step {
  display: block;
  padding: 18px 22px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Feature blocks (high-performance sleep) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-block {
  padding: 24px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.feature-block:hover {
  border-color: rgba(181,168,255,.45);
  transform: translateY(-2px);
}
.feature-block svg,
.feature-block .feature-icon {
  width: 40px; height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  color: var(--accent);
  background: rgba(181,168,255,.1);
  border: 1px solid rgba(181,168,255,.28);
  border-radius: var(--radius-sm);
}
.feature-block h3,
.feature-block h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.feature-block p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.review-card .lede,
.review-card h3,
.review-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.review-card blockquote,
.review-card .review-quote {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.review-card .byline {
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-bottom: none;
}

/* ---------- Do-Not-Disturb band ---------- */
.dnd-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Art layer: image + dark gradient overlay (works as .dnd-bg child or on the band itself) */
.dnd-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,10,31,.55), rgba(11,10,31,.95)),
    url("../images/elemind-dnd.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.dnd-band > .wrap,
.dnd-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.dnd-band h2 { color: var(--ink); }
.dnd-band p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Section wrappers + extra grids ---------- */
.how, .benefits { padding: 72px 0; }
.benefits { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how > .wrap > h2, .benefits > .wrap > h2 { text-align: center; margin-bottom: 36px; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.highlight-grid > * {
  padding: 24px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Decorative brand mark inside the science band */
.science-deco {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: auto;
  opacity: .18;
  pointer-events: none;
}

/* Publisher / affiliate note */
.editor-note {
  margin: 32px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.editor-note p { color: inherit; font-size: inherit; margin: 0; }

/* EEG overlay rows (label + wave / status) */
.eeg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}
.eeg-row svg { flex: 1 1 auto; height: 22px; min-width: 0; overflow: visible; }
.eeg-row svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: eeg-draw 3s ease-in-out infinite;
}
.eeg-k { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.eeg-status {
  display: flex;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(181,168,255,.2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Hero media reusing .feature-img layout */
.feature-img.hero-video {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}
.feature-img.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.feature-img.hero-video::after { z-index: 0; }

/* ---------- Tech band ---------- */
.tech-band {
  padding: 72px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.tech-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125,211,252,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}
.tech-band-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.tech-band-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  box-shadow: var(--shadow-md);
}
.tech-band-media img,
.tech-band-media video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .8;
  filter: saturate(1.1);
}
.tech-band-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,10,31,.8) 100%);
  pointer-events: none;
}
.tech-band-status {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  z-index: 2;
}
.status-row {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}
.status-row.muted { color: var(--muted); }

.tech-band-body { position: relative; }
.tech-band-body h2 { margin-top: 12px; margin-bottom: 18px; }
.tech-band-body p { font-size: 16px; color: var(--ink-soft); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip-row .chip {
  position: static;
  color: var(--accent);
  border: 1px solid rgba(181,168,255,.32);
  background: rgba(181,168,255,.08);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Closing band ---------- */
.closing-band {
  position: relative;
  padding: 80px 0;
  background: #07061A;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.closing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  pointer-events: none;
}
.closing-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,26,.96) 0%, rgba(7,6,26,.88) 45%, rgba(7,6,26,.55) 75%, rgba(7,6,26,.35) 100%),
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(181,168,255,.18), transparent 60%);
}
.closing-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,168,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,168,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 85%);
}
.closing-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.closing-band h2 {
  color: var(--ink);
  margin-bottom: 14px;
}
.closing-band p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}
.closing-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07061A;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  max-width: 320px;
}
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: var(--ink-soft);
  font-size: 13px;
  transition: color .15s ease;
}
.site-footer a:hover { color: var(--accent); }

.footer-small {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.footer-small .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-small .mono { color: var(--accent); font-size: 11px; }

/* ---------- Cookie preferences modal ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,4,18,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookie-fade .2s ease-out;
}
.cookie-modal-panel {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(181,168,255,.12);
  animation: cookie-rise .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes cookie-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-header {
  margin-bottom: 14px;
  padding-right: 32px;
  position: relative;
}
.cookie-modal-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.cookie-modal-header h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.cookie-modal-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.cookie-modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-modal-intro {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.55;
}
.cookie-opt {
  display: block;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.cookie-opt:hover { border-color: var(--line-strong); }
label.cookie-opt:has(input:checked) {
  border-color: rgba(181,168,255,.55);
  background: rgba(181,168,255,.05);
}
.cookie-opt.is-locked { cursor: default; }
.cookie-opt.is-locked:hover { border-color: var(--line); }
.cookie-opt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cookie-opt strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.cookie-opt-sub {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.cookie-opt-badge {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  white-space: nowrap;
}
.cookie-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  display: inline-block;
  margin-top: 2px;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease;
}
.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(181,168,255,.2);
  border-color: var(--accent);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: var(--accent);
}
.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 12px; }
  .cookie-modal-panel { padding: 22px 18px; }
  .cookie-modal-header h2 { font-size: 19px; }
  .cookie-modal-footer { flex-direction: column-reverse; }
  .cookie-modal-footer .btn { width: 100%; }
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(7,6,26,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -8px 40px rgba(0,0,0,.4);
  z-index: 100;
  padding: 16px 0;
}
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-bar-text {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
  flex: 1;
  min-width: 260px;
}
.cookie-bar-text .mono { color: var(--accent); margin-right: 8px; font-size: 11px; }
.cookie-bar-text a { color: var(--accent); text-decoration: underline; }
.cookie-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .cookie-bar-actions { width: 100%; }
  .cookie-bar-actions .btn { flex: 1 1 auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .product-card { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-highlights { grid-template-columns: repeat(2, 1fr); }
  .tech-band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .science-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .disclosure-bar { font-size: 11px; }
  .disclosure-bar .wrap { gap: 6px; }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-grid { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 18px; }
  .header-grid .btn { display: none; }
  .brand-sub { display: none; }
  .hero { padding: 24px 0 40px; }
  .hero-video { aspect-ratio: 1 / 1; }
  .eeg-overlay { max-width: none; padding: 10px 12px 10px 14px; margin: 0 0 12px 12px; width: calc(100% - 24px); }
  .feature-body { padding: 22px 20px 24px; }
  .feature-title { font-size: 28px; }
  .feature-dek { font-size: 15px; }
  .cta-row .btn { flex: 1; padding: 12px 14px; font-size: 13px; }
  .side-cards { gap: 14px; }
  .side-card-body { padding: 16px 18px 18px; }
  .side-card-body h3 { font-size: 16px; }
  .trust-strip { padding: 24px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .article { padding: 48px 0; }
  .spec-highlights { padding: 20px; gap: 12px; }
  .spec-num { font-size: 32px; }
  .highlight-block { padding: 20px 22px; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card { padding: 22px 20px; }
  .pricing-card { padding: 28px 20px 24px; }
  .dnd-band { min-height: 340px; padding: 56px 0; }
  .closing-band { padding: 56px 0; }
  .tech-band { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-small .wrap { flex-direction: column; gap: 6px; }
}

@media (max-width: 540px) {
  .features-grid, .highlight-grid { grid-template-columns: minmax(0, 1fr); }
  .how, .benefits { padding: 48px 0; }
}

@media (max-width: 480px) {
  .eeg-wave { font-size: 10px; gap: 8px; }
  .product-trust { grid-template-columns: 1fr; }
  .plans-table { font-size: 13px; min-width: 440px; }
  .plans-table th, .plans-table td { padding: 12px 10px; }
  /* Hide the descriptive "Best for" column on narrow mobile — price/term is enough */
  .plans-table th:nth-child(4),
  .plans-table td:nth-child(4) { display: none; }
  .plans-table-wrap { position: relative; }
  .plans-table-wrap::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(90deg, transparent, var(--bg-elev));
    pointer-events: none;
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-dot { animation: none; opacity: .85; }
  .eeg-wave path, .eeg-row svg path { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal-wrap { max-width: 740px; }
.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.legal-back:hover { color: var(--cyan); text-decoration: none; }
.legal h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 4px;
}
.legal .legal-updated {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}
.legal h2::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.legal p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.legal ul { padding-left: 22px; margin: 0 0 20px; color: var(--ink-soft); }
.legal ul li { margin-bottom: 8px; line-height: 1.6; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--cyan); }
.legal strong { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .legal { padding: 36px 0 48px; }
  .legal h2 { font-size: 18px; margin: 28px 0 10px; }
  .legal p, .legal ul { font-size: 15px; }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Omi: multi-tier pricing grid ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 8px;
}
.pricing-grid .pricing-card {
  max-width: none;
  margin: 0;
  padding: 56px 24px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.pricing-grid .pricing-card.is-hero {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(181, 168, 255, 0.14);
  border-color: rgba(181, 168, 255, 0.35);
}
.pricing-grid .pricing-card .badge-pick {
  position: absolute;
  top: 18px;
  left: 24px;
  margin: 0;
  z-index: 2;
}
.pricing-grid .pricing-card h4 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.pricing-grid .pricing-card .product-bullets {
  text-align: left;
  flex: 1 0 auto;
}
.pricing-grid .pricing-card .btn-block {
  margin-top: auto;
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid .pricing-card.is-hero { transform: none; }
}

/* ---------- Omi: integrations grid ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}
.integration-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.integration-tile:hover {
  border-color: rgba(181, 168, 255, 0.4);
  background: rgba(181, 168, 255, 0.06);
  transform: translateY(-1px);
}
.integration-tile img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.integration-tile span {
  line-height: 1.3;
  opacity: 0.85;
}
@media (max-width: 540px) {
  .integrations-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
  .integration-tile { padding: 14px 8px; font-size: 11px; }
  .integration-tile img { width: 30px; height: 30px; }
}

/* ---------- Omi: hot pricing promo ---------- */
.price-hot {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.price-hot s {
  color: var(--muted);
  opacity: 0.7;
  text-decoration: line-through;
  font-weight: 500;
}
.price-hot strong {
  color: var(--accent);
  font-weight: 700;
}

span.save-flag,
.save-flag {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ff5f7a, #ff7a3d);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 95, 122, 0.3);
  white-space: nowrap;
}
span.save-flag.inline,
.save-flag.inline {
  padding: 2px 8px;
  font-size: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.price-was {
  color: var(--muted);
  opacity: 0.7;
  font-size: 20px;
  font-weight: 500;
  margin-right: 6px;
}
.price-was s { text-decoration: line-through; }

.btn-was {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 0.85em;
  margin: 0 4px 0 6px;
  text-decoration: line-through;
}

.price-row.is-hot {
  position: relative;
  background: linear-gradient(135deg, rgba(181, 168, 255, 0.07), rgba(255, 95, 122, 0.05));
  border-color: rgba(255, 122, 61, 0.3);
}
.price-row.is-hot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 122, 61, 0.18) inset;
}

/* Pricing-grid promo layout — 2-row grid: was+save on top, big price below */
.pricing-grid .pricing-card .price-row {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "was save"
    "now now";
  justify-content: start;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 16px 18px;
  margin: 14px 0 20px;
}
.pricing-grid .pricing-card .price-was {
  grid-area: was;
  font-size: 18px;
  margin: 0;
}
.pricing-grid .pricing-card .save-flag {
  grid-area: save;
  justify-self: start;
  margin: 0;
}
.pricing-grid .pricing-card .price-amount {
  grid-area: now;
  font-size: 44px;
  line-height: 1;
}

/* Hero meta promo sizing */
.meta .price-hot { font-size: 14px; }
.meta .save-flag { padding: 2px 8px; font-size: 10px; }

/* ---------- Omi: app showcase ---------- */
.app-showcase {
  padding: 84px 0 72px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(181, 168, 255, 0.10), transparent 70%),
    var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.app-showcase > .wrap > h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
  text-align: center;
}
.app-showcase .article-eyebrow {
  text-align: center;
  margin-bottom: 14px;
}
.app-dek {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

/* Rail of phone screenshots — horizontal scroll with snap */
.app-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  margin: 0 -4px 40px;
  scrollbar-width: thin;
}
.app-rail::-webkit-scrollbar { height: 8px; }
.app-rail::-webkit-scrollbar-thumb { background: rgba(181, 168, 255, 0.25); border-radius: 999px; }
.app-rail::-webkit-scrollbar-track { background: transparent; }

.app-shot {
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 10px 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-shot:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 168, 255, 0.45);
  box-shadow: 0 10px 40px rgba(181, 168, 255, 0.12);
}
.app-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #0a0a16;
  display: block;
}
.app-shot figcaption {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
}

/* App feature callouts */
.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.app-feature {
  padding: 24px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.app-feature:hover {
  border-color: rgba(181, 168, 255, 0.4);
  transform: translateY(-2px);
}
.app-feature-ic {
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  background: rgba(181, 168, 255, 0.1);
  border: 1px solid rgba(181, 168, 255, 0.28);
  border-radius: var(--radius-sm);
}
.app-feature-ic svg { width: 100%; height: 100%; }
.app-feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}
.app-feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Platform strip */
.app-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.app-platforms-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.app-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.app-platforms ul li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.app-platforms ul li svg { opacity: 0.75; }
.app-platforms-cta {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.app-platforms-cta:hover { text-decoration: underline; }

.app-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 10px 0 0;
}

@media (max-width: 960px) {
  .app-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-rail { grid-auto-columns: minmax(210px, 70%); }
  .app-platforms-cta { margin-left: 0; width: 100%; text-align: center; }
}
@media (max-width: 640px) {
  .app-showcase { padding: 64px 0 56px; }
  .app-feature-grid { grid-template-columns: 1fr; }
  .app-rail { grid-auto-columns: 78%; gap: 14px; }
  .app-shot { border-radius: 16px; }
  .app-shot img { border-radius: 10px; }
}
