/* vs.css — self-contained design system for Night Shift "vs" comparison pages.
   Deliberately NOT shared with landing.html's inline CSS: these pages live in
   /vs/ and import this file, so they can evolve without any regression risk to
   the live marketing homepage. Tokens mirror landing.html :root so the look
   matches. Built 2026-06-05 (competitive-teardown sprint). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #0a0420;
  --bg-2:      #160a32;
  --bg-3:      #1f0f44;
  --card:      #1a0f2e;
  --card-2:    #231540;
  --line:      #2a1c4a;
  --ink:       #e0d8f0;
  --ink-dim:   #b8a9d9;
  --ink-mute:  #9b8eb5;
  --accent:    #ff4fa3;
  --accent-2:  #b36bff;
  --accent-3:  #fbbf24;
  --good:      #6bffb0;
  --bad:       #ff6b8a;
  --grad: linear-gradient(135deg, #fbbf24 0%, #ff4fa3 50%, #b36bff 100%);
  --nav-h: 64px;
}

body {
  background: radial-gradient(circle at 20% 0%, #2a0f3e 0%, var(--bg) 50%, #000 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

.wrap { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: var(--ink-dim); text-decoration: none; }
a:hover { color: var(--ink); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(10, 4, 32, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 20px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.nav-logo img { width: 32px; height: 32px; }
.nav-cta {
  background: var(--grad); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 16px; font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,79,163,0.32); transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,79,163,0.5); color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff; border: 0; border-radius: 12px;
  padding: 14px 26px; font-weight: 700; font-size: 16px; cursor: pointer;
  font-family: inherit; box-shadow: 0 4px 20px rgba(255,79,163,0.35);
  transition: transform .15s, box-shadow .2s; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,79,163,0.5); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 26px; font-weight: 700; font-size: 16px;
  font-family: inherit; transition: background .15s, border-color .15s; text-decoration: none;
}
.btn-secondary:hover { background: var(--card); border-color: var(--accent-2); color: var(--ink); }

/* ── Founding band (mirrors landing.html) ────────────────────────────────── */
.founding-band {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  max-width: 100%; margin: 0 auto 22px; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(255,79,163,0.10), rgba(179,107,255,0.10));
  border: 1px solid rgba(255,79,163,0.35); color: var(--ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.4; text-decoration: none;
  transition: border-color .15s, transform .1s, box-shadow .2s;
}
.founding-band:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,79,163,0.18); }
.founding-band strong { color: var(--accent-3); font-weight: 800; }
.founding-badge {
  flex-shrink: 0; background: var(--grad); color: #0a0014; font-size: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.vs-hero { padding: 56px 0 40px; text-align: center; }
.vs-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; display: inline-block; margin-bottom: 14px;
}
.vs-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.vs-hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-dim); line-height: 1.6; max-width: 680px; margin: 0 auto 28px; }
.vs-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vs-note { color: var(--ink-mute); font-size: 12px; margin-top: 14px; }

/* ── Generic section ─────────────────────────────────────────────────────── */
section.block { padding: 48px 0; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; display: inline-block; margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--ink-dim); line-height: 1.7; max-width: 720px; }
.lead + .lead { margin-top: 14px; }

/* ── Ego-protecting pain list ────────────────────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.pain-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px; }
.pain-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.pain-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-wrap { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.compare thead th { background: var(--bg-2); padding: 14px 14px; text-align: center; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--line); }
table.compare thead th:first-child { text-align: left; color: var(--ink-mute); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; }
table.compare thead th.us { color: var(--accent-3); }
table.compare tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody td:first-child { font-weight: 600; color: var(--ink); }
table.compare td.cell { text-align: center; width: 22%; }
table.compare td.us { background: rgba(255,79,163,0.06); }
.mark-yes { color: var(--good); font-weight: 800; font-size: 17px; }
.mark-no  { color: var(--bad);  font-weight: 800; font-size: 16px; opacity: 0.8; }
.mark-mid { color: var(--accent-3); font-weight: 800; font-size: 16px; }
.cell-note { display: block; font-size: 11px; color: var(--ink-mute); font-weight: 500; margin-top: 2px; }
.compare-foot { font-size: 12.5px; color: var(--ink-mute); margin-top: 14px; text-align: center; }

/* ── Switch callout ──────────────────────────────────────────────────────── */
.switch-card {
  margin-top: 32px; padding: 22px 22px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,79,163,0.08), rgba(179,107,255,0.08));
  border: 1px solid rgba(179,107,255,0.3);
}
.switch-card p { font-size: 16px; color: var(--ink-dim); line-height: 1.65; }
.switch-card strong { color: var(--ink); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; text-align: left;
  padding: 18px 36px 18px 0; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 520px; }
.faq-a p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; padding: 0 0 18px; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.cta-block { text-align: center; padding: 56px 0 64px; }
.cta-block h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin-bottom: 18px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-mute); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  table.compare { font-size: 13px; }
  table.compare thead th, table.compare tbody td { padding: 10px 9px; }
  table.compare td.cell { width: 20%; }
  .vs-hero { padding: 36px 0 28px; }
}
