/* ══════════════════════════════════════════════════
   Health Dash — public site styles
   ══════════════════════════════════════════════════ */

:root {
  --bg: #0b0f19;
  --bg-2: #0e1422;
  --card: rgba(255, 255, 255, 0.032);
  --card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.07);
  --text: #e7ecf5;
  --text-dim: #8a94a8;
  --text-faint: #5a6376;
  --oura-1: #8b7cf6;
  --oura-2: #22d3ee;
  --garmin-1: #34d399;
  --garmin-2: #a3e635;
  --gold: #fbbf24;
  --warn-2: #f87171;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(1000px 620px at 88% -12%, rgba(139, 124, 246, 0.13), transparent 62%),
    radial-gradient(900px 520px at -12% 102%, rgba(34, 211, 238, 0.09), transparent 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: rgba(139, 124, 246, 0.35); }

:focus-visible {
  outline: 2px solid var(--oura-1);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Nav ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.logo b { font-weight: 700; }
/* Parent-brand lockup: stacked under the wordmark, deliberately quiet so it reads as
   attribution rather than competing with the product name. */
.logo-word { display: block; line-height: 1.15; white-space: nowrap; }
.logo-by {
  display: block;
  font-size: 9px; font-style: normal; font-weight: 600;
  letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--text-faint); margin-top: 3px;
}
.logo-ring {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(var(--oura-1), var(--oura-2), var(--garmin-1), var(--oura-1)) border-box;
  filter: drop-shadow(0 0 6px rgba(139, 124, 246, 0.5));
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  transition: all 0.18s;
  white-space: nowrap;
}
.btn:hover { color: var(--text); background: var(--card-hover); transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, rgba(139, 124, 246, 0.9), rgba(34, 211, 238, 0.7));
  border-color: rgba(139, 124, 246, 0.55);
  box-shadow: 0 6px 26px rgba(139, 124, 246, 0.28);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 34px rgba(139, 124, 246, 0.42);
  background: linear-gradient(100deg, rgba(150, 136, 250, 0.95), rgba(52, 219, 244, 0.78));
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }

/* cyan-accented ghost button — the demo, distinct from the primary sign-in */
.btn-demo {
  color: #7fe4f5;
  background: rgba(34, 211, 238, 0.07);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}
.btn-demo:hover {
  color: #c2f4fd;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 6px 22px rgba(34, 211, 238, 0.22);
}

/* nav button pair — must survive at 375px */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Section scaffolding ─────────────────────────── */
section { padding: 54px 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.2px; }
.section-lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 620px;
  margin-bottom: 28px;
}
.divider { height: 1px; background: var(--border); }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 62px 0 46px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: rgba(139, 124, 246, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #b9aefb;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(100deg, var(--oura-1), var(--oura-2) 55%, var(--garmin-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ── Hero rings visual ───────────────────────────── */
.rings-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 20px 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.rings-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 22px;
}
.rings-panel-head .t { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.rings-panel-head .d { font-size: 11px; color: var(--text-faint); }
.rings-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ring-item { text-align: center; }
.ring-item svg { display: block; margin: 0 auto 8px; width: 100%; max-width: 84px; height: auto; }
.ring-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.3;
}
.ring-sub { font-size: 10px; color: var(--text-faint); margin-top: 2px; }

/* ── Generic card grids ──────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  transition: all 0.2s;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
/* keep grid tracks from being widened by non-shrinkable content */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ── Device cards ────────────────────────────────── */
.device-card { display: flex; flex-direction: column; }
.device-card:hover { background: var(--card-hover); transform: translateY(-3px); }
.device-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.device-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.icon-oura {
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.2), rgba(34, 211, 238, 0.08));
  border-color: rgba(139, 124, 246, 0.28);
}
.icon-garmin {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(163, 230, 53, 0.08));
  border-color: rgba(52, 211, 153, 0.26);
}
.device-title { font-size: 16px; font-weight: 650; }
.device-worn { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.device-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.metric-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.metric-list li {
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: auto;
}
.badge-O { background: rgba(139, 124, 246, 0.18); color: #a99df8; }
.badge-G { background: rgba(52, 211, 153, 0.15); color: #4ade9d; }
.note-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}
.note-line a { color: #a99df8; text-decoration: none; border-bottom: 1px solid rgba(169, 157, 248, 0.35); }
.note-line a:hover { color: #c4bafb; }

/* three device cards: 3 across, 2 on tablet, 1 column under 860px */
.devices-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ── Which daily rings a device feeds ────────────── */
.ring-feeds { margin-top: 14px; }
.rf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  max-width: 360px;
}
.rf {
  flex: 1 1 42px;
  min-width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.rf-ring { display: block; width: 27px; height: 27px; flex-shrink: 0; }
.rf-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 5;
}
.rf-arc {
  fill: none;
  stroke: var(--rf-c, var(--text-faint));
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 0;
}
.rf-label {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.25;
  color: var(--text-dim);
}
.rf-part-tag {
  display: block;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-faint);
}
.rf-readiness { --rf-c: #8b7cf6; }
.rf-sleep     { --rf-c: #22d3ee; }
.rf-recovery  { --rf-c: #34d399; }
.rf-strain    { --rf-c: #fbbf24; }
.rf-battery   { --rf-c: #a3e635; }
.rf-stress    { --rf-c: #fb923c; }

.rf.is-on .rf-arc { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12)); }
/* partial — coloured but only part of the ring is drawn, and dimmed */
.rf.is-part .rf-arc { stroke-dashoffset: 61; opacity: 0.72; }
.rf.is-part .rf-label { color: var(--text-faint); }
/* not a source for this ring */
.rf.is-off .rf-arc { stroke: rgba(255, 255, 255, 0.1); }
.rf.is-off .rf-label { color: var(--text-faint); opacity: 0.75; }

.ring-feeds .rf-cap {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-faint);
}

/* ── Feature cards ───────────────────────────────── */
.feature-card { padding: 22px; }
.feature-card:hover { background: var(--card-hover); }
.feature-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feature-glyph {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.feature-card h3 { font-size: 15px; }
.feature-card p { font-size: 13.5px; color: var(--text-dim); }
.pill-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  margin-left: auto;
  white-space: nowrap;
}

/* ── Flow diagram ────────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.flow-col { display: flex; flex-direction: column; gap: 12px; }
.flow-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.flow-box .fb-title { font-size: 13.5px; font-weight: 650; }
.flow-box .fb-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.flow-oura { border-color: rgba(139, 124, 246, 0.32); background: rgba(139, 124, 246, 0.08); }
.flow-garmin { border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.07); }
.flow-merge {
  border-color: rgba(139, 124, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.16), rgba(34, 211, 238, 0.09));
  box-shadow: 0 0 34px rgba(139, 124, 246, 0.16);
  padding: 20px 16px;
}
.flow-dash {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.08);
  padding: 20px 16px;
}
.flow-arrow {
  color: var(--text-faint);
  font-size: 18px;
  text-align: center;
  line-height: 1;
  user-select: none;
}
.flow-legend {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}

/* ── Mockup gallery ──────────────────────────────── */
.mockup { padding: 20px; }
.mockup-cap { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }

/* glance card */
.mk-glance-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mk-label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.mk-value { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; }
.mk-value small { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-left: 3px; }
.mk-delta { font-size: 11.5px; margin-top: 2px; }
.delta-up { color: var(--garmin-1); }
.delta-down { color: var(--warn-2); }
.mk-spark { margin-top: 10px; width: 100%; height: 40px; display: block; }

/* sleep stage bar */
.mk-stage-bar {
  display: flex;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 12px;
  border: 1px solid var(--border);
}
.mk-stage-bar span { display: block; height: 100%; }
.stage-deep { background: linear-gradient(180deg, #22d3ee, #0fb6d0); }
.stage-rem { background: linear-gradient(180deg, #8b7cf6, #6f5fe6); }
.stage-light { background: rgba(148, 163, 184, 0.42); }
.stage-awake { background: rgba(248, 113, 113, 0.4); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--text-dim); }
.mk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* HR zone bars */
.mk-zones { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.mk-zone { display: grid; grid-template-columns: 26px 1fr 44px; align-items: center; gap: 10px; }
.mk-zone .z { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.mk-zone .track {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.mk-zone .fill { display: block; height: 100%; border-radius: 6px; }
.mk-zone .t { font-size: 11px; color: var(--text-faint); text-align: right; }
.z1 { background: linear-gradient(90deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.8)); }
.z2 { background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), var(--oura-2)); }
.z3 { background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), var(--garmin-1)); }
.z4 { background: linear-gradient(90deg, rgba(251, 191, 36, 0.55), var(--gold)); }
.z5 { background: linear-gradient(90deg, rgba(248, 113, 113, 0.55), var(--warn-2)); }

/* calendar fragment */
.mk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mk-cal-month { font-size: 13px; font-weight: 650; }
.mk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mk-dow {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  text-align: center;
  padding-bottom: 2px;
}
.mk-cell {
  border: 1px solid var(--border);
  border-radius: 7px;
  min-height: 40px;
  padding: 3px 4px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 9.5px;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-cell.dim { opacity: 0.35; }
.mk-cell.today { border-color: rgba(139, 124, 246, 0.5); background: rgba(139, 124, 246, 0.08); }
.mk-chip {
  font-size: 8.5px;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.chip-run { background: rgba(52, 211, 153, 0.18); color: #56dfa9; }
.chip-ride { background: rgba(34, 211, 238, 0.16); color: #5cdcef; }
.chip-planned { background: rgba(251, 191, 36, 0.15); color: #f5c94f; border: 1px dashed rgba(251, 191, 36, 0.35); }
.chip-note { background: rgba(148, 163, 184, 0.14); color: #a8b4c6; }

/* ── Setup steps ─────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 26px;
}
.step-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.85), rgba(109, 94, 240, 0.65));
  border: 1px solid rgba(139, 124, 246, 0.5);
  box-shadow: 0 0 22px rgba(139, 124, 246, 0.28);
  flex-shrink: 0;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step .step-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.step .step-tag.optional { color: var(--gold); }
.step p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.step p:last-child { margin-bottom: 0; }
.step ol, .step ul { color: var(--text-dim); font-size: 14.5px; margin: 0 0 12px 20px; }
.step li { margin-bottom: 7px; }
.step li:last-child { margin-bottom: 0; }
.step a { color: #a99df8; text-decoration: none; border-bottom: 1px solid rgba(169, 157, 248, 0.35); }
.step a:hover { color: #c4bafb; }

code, .kbd {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5px 6px;
  color: #cbd5e8;
}
.path-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  margin: 2px 0;
}

.callout {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  margin-top: 4px;
}
.callout strong { color: var(--text); font-weight: 600; }
.callout-warn {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.07);
}
.callout-info {
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.06);
}

.faq-card h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.faq-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.faq-card p:last-child { margin-bottom: 0; }
.faq-card ul { font-size: 14px; color: var(--text-dim); margin: 0 0 10px 20px; }
.faq-card li { margin-bottom: 5px; }

.setup-hero { padding: 44px 0 12px; }
.setup-hero h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.setup-hero p { color: var(--text-dim); font-size: 16.5px; max-width: 640px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--text-dim); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 38px;
  margin-top: 26px;
}
.footer-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer p { font-size: 13px; color: var(--text-faint); max-width: 480px; }
.site-footer p + p { margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-legend { display: flex; gap: 14px; align-items: center; margin-top: 16px; font-size: 12px; color: var(--text-faint); }

/* ── Route cards — "Which setup are you?" ────────── */
.routes-grid { align-items: stretch; }

/* Legal pages */
.legal-wrap { max-width: 760px; }
.legal-body h2 { font-size: 19px; margin: 34px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
.legal-body ul { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin: 0 0 12px 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--oura-1); }
.legal-body strong { color: var(--text); }

/* Pricing */
.pricing-grid { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.is-recommended { border-color: rgba(139, 124, 246, 0.45); }
.price-name {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.price-amount { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.price-amount span { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.price-card .tick-list { flex: 1; }
.price-card .note-line { margin-top: 14px; }
.route-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px 22px;
}
.route-card:hover { background: var(--card-hover); transform: translateY(-3px); }
.route-card.is-recommended {
  border-color: rgba(139, 124, 246, 0.45);
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 42px rgba(139, 124, 246, 0.15);
}
.route-card.is-recommended:hover {
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.14), rgba(255, 255, 255, 0.05));
}
.route-rec {
  position: absolute;
  top: -11px;
  left: 22px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, rgba(139, 124, 246, 0.95), rgba(34, 211, 238, 0.8));
  border: 1px solid rgba(139, 124, 246, 0.6);
  box-shadow: 0 4px 18px rgba(139, 124, 246, 0.3);
  white-space: nowrap;
}
.route-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.route-badges { display: inline-flex; gap: 4px; flex-shrink: 0; }
.route-badges .badge { margin: 0; width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
.route-title { font-size: 16.5px; font-weight: 650; letter-spacing: -0.2px; }
.route-line { font-size: 13.5px; color: var(--text-dim); margin: 2px 0 18px; }
.tick-head {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.tick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
}
.tick-list li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.45; }
.tick-list li::before { position: absolute; left: 0; top: 0; font-size: 12.5px; font-weight: 700; }
.tick-list li.yes { color: var(--text-dim); }
.tick-list li.yes::before { content: "\2713"; color: var(--garmin-1); }
.tick-list li.no { color: var(--text-faint); }
.tick-list li.no::before { content: "\2717"; color: var(--text-faint); }
.route-card .note-line { margin-top: auto; }
.routes-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.routes-demo p { font-size: 13.5px; color: var(--text-faint); margin: 0; flex: 1 1 240px; }
.routes-demo .btn { white-space: normal; text-align: center; max-width: 100%; }

/* ── Device illustrations ────────────────────────── */
.device-art {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 8px;
  margin-bottom: 16px;
}
.device-art svg { display: block; width: 120px; max-width: 100%; height: auto; }
.art-oura {
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.16), rgba(34, 211, 238, 0.06));
  border-color: rgba(139, 124, 246, 0.26);
}
.art-garmin {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(163, 230, 53, 0.06));
  border-color: rgba(52, 211, 153, 0.24);
}

/* ── Setup route picker ──────────────────────────── */
[hidden] { display: none !important; }

.route-picker { padding: 22px 24px; margin-bottom: 34px; }
.route-picker label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.route-select {
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4 11 1.6' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 40px 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.18s;
}
.route-select:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 124, 246, 0.42);
}
.route-select option { background: var(--bg-2); color: var(--text); }
.route-picker .picker-note { font-size: 12.5px; color: var(--text-faint); margin-top: 12px; }
.route-picker .picker-note a { color: #a99df8; text-decoration: none; border-bottom: 1px solid rgba(169, 157, 248, 0.35); }

/* auto-numbered steps (visible ones only) */
.steps { counter-reset: hd-step; }
.step { counter-increment: hd-step; }
.step-badge.auto-num::before { content: counter(hd-step); }

/* ── Metrics showcase ────────────────────────────── */
.sc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sc-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sc-set {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.sc-set:hover { color: var(--text); background: var(--card-hover); }
.sc-set.is-on {
  color: #fff;
  background: linear-gradient(100deg, rgba(139, 124, 246, 0.9), rgba(34, 211, 238, 0.7));
  border-color: rgba(139, 124, 246, 0.55);
  box-shadow: 0 4px 18px rgba(139, 124, 246, 0.28);
}

.sc-browser {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.sc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.sc-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.sc-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.sc-url {
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-body { padding: 18px 18px 20px; }

/* ── Metric chips — display only, dimmed when the setup can't supply them ── */
.sc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.sc-mchip {
  display: inline-block;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  white-space: nowrap;
  user-select: none;
  transition: opacity 0.28s, color 0.28s, background 0.28s, border-color 0.28s;
}
.sc-mchip.is-off {
  opacity: 0.34;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.sc-mchip[data-target] { color: var(--text); }

/* ── Simulated pointer + click ripple ─────────────── */
.sc-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  fill: #fff;
  stroke: rgba(11, 15, 25, 0.65);
  stroke-width: 1.1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: translate(var(--cx0, 60%), var(--cy0, 70%));
}
.sc-ripple {
  position: absolute;
  left: calc(var(--cx, 0px) + 4px);
  top: calc(var(--cy, 0px) + 4px);
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 124, 246, 0.75);
  background: rgba(139, 124, 246, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform: scale(0.2);
}

/* ── The loop (≈10s): move → click → draw → read → fade ── */
.sc-browser.is-playing .sc-cursor { animation: scCursor 10s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.sc-browser.is-playing .sc-ripple { animation: scRipple 10s ease-out infinite; }
.sc-browser.is-playing .sc-mchip[data-target] { animation: scChipHit 10s ease-in-out infinite; }
.sc-browser.is-playing .sc-panel { animation: scPanel 10s ease infinite; }
.sc-browser.is-playing .sc-line { animation: scDraw 10s ease-out infinite; }
.sc-browser.is-playing .sc-area,
.sc-browser.is-playing .sc-tip { animation: scArea 10s ease infinite; }
.sc-browser.is-playing .sc-tipbox { animation: scTipbox 10s ease infinite; }
.sc-browser.is-playing .sc-overview { animation: scOv 10s ease infinite; }

@keyframes scCursor {
  0%   { opacity: 0; transform: translate(var(--cx0), var(--cy0)) scale(0.9); }
  7%   { opacity: 1; }
  22%  { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1); }
  25%  { transform: translate(var(--cx), var(--cy)) scale(0.8); }
  29%  { transform: translate(var(--cx), var(--cy)) scale(1); }
  84%  { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1); }
  93%  { opacity: 0; transform: translate(var(--cx), var(--cy)) scale(1); }
  100% { opacity: 0; transform: translate(var(--cx0), var(--cy0)) scale(0.9); }
}
@keyframes scRipple {
  0%, 23%   { opacity: 0; transform: scale(0.2); }
  25%       { opacity: 0.85; transform: scale(0.55); }
  35%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes scChipHit {
  0%, 22% {
    color: var(--text); background: rgba(255, 255, 255, 0.045);
    border-color: var(--border); box-shadow: none;
  }
  26%, 84% {
    color: #fff; background: rgba(139, 124, 246, 0.22);
    border-color: rgba(139, 124, 246, 0.55); box-shadow: 0 0 16px rgba(139, 124, 246, 0.22);
  }
  93%, 100% {
    color: var(--text); background: rgba(255, 255, 255, 0.045);
    border-color: var(--border); box-shadow: none;
  }
}
@keyframes scPanel {
  0%, 24%   { opacity: 0; transform: translateY(8px); }
  33%, 84%  { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes scDraw {
  0%, 26%   { stroke-dashoffset: 1400; }
  46%, 100% { stroke-dashoffset: 0; }
}
@keyframes scArea {
  0%, 34%   { opacity: 0; }
  50%, 84%  { opacity: 1; }
  93%, 100% { opacity: 0; }
}
@keyframes scTipbox {
  0%, 48%   { opacity: 0; }
  56%, 80%  { opacity: 1; }
  88%, 100% { opacity: 0; }
}
@keyframes scOv {
  0%, 44%   { opacity: 0.2; }
  54%, 84%  { opacity: 1; }
  93%, 100% { opacity: 0.2; }
}

/* height tracks the 520x200 chart aspect so the SVG fills the panel */
.sc-stage { position: relative; height: clamp(200px, 34vw, 400px); }
.sc-panel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sc-phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sc-pname { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.sc-pval { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; }
.sc-pval small { font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-left: 5px; letter-spacing: 0; }
.sc-pdelta { display: block; font-size: 11.5px; }
.sc-pdelta.up { color: var(--garmin-1); }
.sc-pdelta.down { color: var(--warn-2); }
.sc-badge { margin-left: 0; width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }

.sc-chart { display: block; width: 100%; flex: 1 1 auto; min-height: 0; }
.sc-grid line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.sc-line {
  fill: none;
  stroke: url(#scLine);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(139, 124, 246, 0.5));
}
.sc-tip { fill: var(--oura-2); filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.9)); }
.sc-ax text { fill: var(--text-faint); font-family: 'Inter', sans-serif; font-size: 11px; }

/* the "being read" tooltip + scrub line */
.sc-tipbox rect { fill: rgba(11, 15, 25, 0.92); stroke: rgba(139, 124, 246, 0.42); stroke-width: 1; }
.sc-scrub { stroke: rgba(139, 124, 246, 0.4); stroke-width: 1; stroke-dasharray: 3 4; }
.sc-tipbox text { font-family: 'Inter', sans-serif; }
.sc-tt-a { fill: var(--text); font-size: 11.5px; font-weight: 650; }
.sc-tt-b { fill: var(--text-dim); font-size: 10px; }

.sc-overview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  min-height: 104px;
}
.sc-ov-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.sc-ov-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #b9aefb;
  background: rgba(139, 124, 246, 0.12);
  border: 1px solid rgba(139, 124, 246, 0.3);
  white-space: nowrap;
}
.sc-ov-title { font-size: 12.5px; font-weight: 650; color: var(--text-dim); }
.sc-overview p { font-size: 13.5px; color: var(--text-dim); }

.sc-foot { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }

/* ── AI overviews ────────────────────────────────── */
.ai-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 26px;
  margin-bottom: 34px;
}
.ai-points > * { min-width: 0; }
.ai-point { position: relative; padding-left: 16px; }
.ai-point::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--oura-1), rgba(34, 211, 238, 0.25));
}
.ai-point h3 { font-size: 13.5px; font-weight: 650; margin-bottom: 4px; }
.ai-point p { font-size: 13px; color: var(--text-dim); }

.ai-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}
.ai-grid > * { min-width: 0; }
.ai-stack { display: flex; flex-direction: column; gap: 14px; }
.ai-card { padding: 18px 20px; }
.ai-card:hover { background: var(--card-hover); }
.ai-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-label { font-size: 12.5px; font-weight: 650; letter-spacing: -0.1px; }
.ai-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #b9aefb;
  background: rgba(139, 124, 246, 0.12);
  border: 1px solid rgba(139, 124, 246, 0.3);
  white-space: nowrap;
  margin-left: auto;
}
.ai-tag-flat { margin-left: 0; display: inline-block; }
.ai-card p { font-size: 13.5px; color: var(--text-dim); }

.ai-demo { padding: 18px 18px 20px; }
.ai-demo-head { display: flex; align-items: center; gap: 10px; }
.ai-demo-title { font-size: 13px; font-weight: 650; }
.ai-demo-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.ai-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 14px; }
.ai-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
  animation: aiPill 16s ease infinite;
}
.ai-pill.is-on {
  color: #fff;
  background: rgba(139, 124, 246, 0.22);
  border-color: rgba(139, 124, 246, 0.55);
}
.ai-pill:nth-child(1) { animation-delay: 0s; }
.ai-pill:nth-child(2) { animation-delay: -12s; }
.ai-pill:nth-child(3) { animation-delay: -8s; }
.ai-pill:nth-child(4) { animation-delay: -4s; }
@keyframes aiPill {
  0%, 22% {
    color: #fff; background: rgba(139, 124, 246, 0.22); border-color: rgba(139, 124, 246, 0.55);
  }
  25%, 100% {
    color: var(--text-faint); background: rgba(255, 255, 255, 0.04); border-color: var(--border);
  }
}

.ai-mini { display: block; width: 100%; height: auto; }
.ai-mini-grid line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.ai-mini-line {
  fill: none;
  stroke: url(#scLine);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(139, 124, 246, 0.45));
  animation: aiDraw 4s ease-out infinite;
}
@keyframes aiDraw {
  0%        { stroke-dashoffset: 420; }
  32%, 100% { stroke-dashoffset: 0; }
}

.ai-demo-ov {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}
.ai-swap { display: grid; margin-top: 8px; }
.ai-swap p {
  grid-area: 1 / 1;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0;
  animation: aiSwap 16s ease infinite;
}
.ai-swap p.is-on { opacity: 1; }
.ai-swap p:nth-child(1) { animation-delay: 0s; }
.ai-swap p:nth-child(2) { animation-delay: -12s; }
.ai-swap p:nth-child(3) { animation-delay: -8s; }
.ai-swap p:nth-child(4) { animation-delay: -4s; }
@keyframes aiSwap {
  0%        { opacity: 0; }
  3%, 22%   { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.ai-foot { margin-top: 22px; font-size: 12.5px; color: var(--text-faint); }

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

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ai-points { grid-template-columns: repeat(2, 1fr); }
  /* Six section links plus two buttons and the Nebula lockup stop fitting on one row
     around here — tighten the links before they start wrapping onto two lines. */
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .site-nav .wrap { gap: 12px; }
  .logo-by { letter-spacing: 0.6px; }
}

@media (max-width: 860px) {
  section { padding: 38px 0; }
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  /* keep the section links through tablet — they collapse lower down */
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 8px; font-size: 13px; }
  .rings-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ring-item svg { max-width: 76px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .site-nav .wrap { gap: 10px; }
  .routes-grid { gap: 26px; }
  .routes-demo .btn { flex: 1 1 auto; }
  .sc-body { padding: 14px 14px 16px; }
  .sc-set { flex: 1 1 auto; padding: 8px 12px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-points { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
}

@media (max-width: 740px) {
  .nav-links { display: none; }
}

@media (max-width: 420px) {
  .rings-row { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .site-nav .wrap { gap: 8px; padding: 0 16px; }
  .nav-actions { gap: 6px; }
  .logo { font-size: 16px; gap: 8px; }
  .btn-sm { padding: 8px 11px; font-size: 12.5px; }
  .sc-pval { font-size: 24px; }
  .sc-ax text { font-size: 13px; }
  .sc-overview { min-height: 0; }
  .sc-mchip { font-size: 11px; padding: 4px 8px; }
  .ai-card { padding: 16px; }
  .ai-demo { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── FAQ ─────────────────────────────────────────── */
/* Accordions rather than a wall of prose: most people want one answer, and the
   questions themselves double as a table of contents for what the merge does. */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(139, 124, 246, 0.35); }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 28px 17px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  font-weight: 400;
  color: #a99df8;
}
.faq-item[open] > summary::after { content: '\2013'; }
.faq-item > summary:hover { color: #c4bafb; }
.faq-body {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}
.faq-body p + p { margin-top: 10px; }
.faq-body strong { color: var(--text); }
.faq-body a { color: #a99df8; text-decoration: none; border-bottom: 1px solid rgba(169, 157, 248, 0.35); }
.faq-body code {
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}
@media (max-width: 740px) {
  .faq-item { padding: 0 15px; }
  .faq-item > summary { font-size: 14px; padding: 15px 26px 15px 0; }
  .faq-body { font-size: 13.5px; }
}
