/* ============ Base ============ */
:root {
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --surface-dark: #0b0b0f;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --grad-ai: linear-gradient(135deg, #0a84ff, #7b5bd6);
  --chart-line: #2a78d6;
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-serious: #ec835a;
  --hairline: rgba(0, 0, 0, 0.08);
  --radius-card: 28px;
  --nav-h: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

section { padding: 130px 22px; }

h1, h2, h3 { letter-spacing: -0.015em; }

h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  text-align: center;
}

.section-sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-secondary);
  text-align: center;
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.5;
  font-weight: 400;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: none; }

.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.visible .reveal-child { opacity: 1; transform: none; }
.visible .reveal-child:nth-child(2) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-child { opacity: 1; transform: none; transition: none; }
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo svg { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  font-size: 13.5px;
  color: rgba(29, 29, 31, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.lang-menu { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.8);
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
}
.lang-menu.open .lang-list { display: block; }
.lang-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 9px;
}
.lang-list button:hover { background: var(--surface-alt); }
.lang-list button.active { font-weight: 700; }
.lang-list button.active::after { content: " ✓"; color: var(--accent); }

.nav-links .mobile-only { display: none; }

.nav-login {
  font-size: 13.5px;
  color: rgba(29, 29, 31, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--ink); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============ Buttons & links ============ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  padding: 12px 24px;
  border-radius: 980px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-small { font-size: 12.5px; padding: 6px 14px; }
.btn-large { font-size: 19px; padding: 15px 32px; }

.link-arrow {
  color: var(--accent);
  text-decoration: none;
  font-size: 17px;
}
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow.small { font-size: 14px; }

/* ============ Hero ============ */
.hero {
  padding-top: calc(var(--nav-h) + 110px);
  text-align: center;
}
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  background: var(--grad-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 700;
  line-height: 1.03;
  margin-top: 14px;
}
.hero-sub {
  font-size: clamp(18px, 2.4vw, 25px);
  color: var(--ink-secondary);
  max-width: 660px;
  margin: 24px auto 0;
  line-height: 1.45;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ============ Mockup window ============ */
.mockup-wrap {
  max-width: 980px;
  margin: 90px auto 0;
  perspective: 1200px;
}
.window {
  background: #fbfbfd;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: #f5f5f7;
}
.window-bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d9d9de;
}
.window-bar .dot:nth-child(1) { background: #ff5f57; }
.window-bar .dot:nth-child(2) { background: #febc2e; }
.window-bar .dot:nth-child(3) { background: #28c840; }
.window-title {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.dash {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 22px;
  padding: 26px;
}
.dash-patient {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-ai);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-patient h3 { font-size: 18px; font-weight: 600; }
.dash-patient p { font-size: 13px; color: var(--ink-secondary); margin-top: 2px; }
.score { margin-left: auto; }
.score-num { font-size: 26px; font-weight: 700; fill: var(--ink); }
.score-label { font-size: 9.5px; fill: var(--ink-secondary); }
.score-arc { transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s; }

.bio-panel {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px 6px;
}
.bio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bio-panel-title { font-size: 13.5px; font-weight: 700; }
.chip-attention {
  font-size: 11.5px;
  font-weight: 600;
  color: #8a5a00;
  background: rgba(250, 178, 25, 0.16);
  padding: 3px 10px;
  border-radius: 980px;
}
.bio2-row { padding: 11px 0 13px; }
.bio2-row + .bio2-row { border-top: 1px solid var(--hairline); }
.bio2-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bio2-name { font-size: 14px; font-weight: 600; margin-right: auto; }
.bio2-reading { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bio2-reading small { font-weight: 400; color: var(--ink-secondary); font-size: 11px; }
.bio2-bar {
  position: relative;
  height: 7px;
  border-radius: 4px;
  margin-top: 10px;
}
.bar-sym {
  background: linear-gradient(90deg,
    rgba(208, 59, 59, 0.20) 0 12%,
    rgba(250, 178, 25, 0.24) 12% 30%,
    rgba(12, 163, 12, 0.20) 30% 70%,
    rgba(250, 178, 25, 0.24) 70% 88%,
    rgba(208, 59, 59, 0.20) 88% 100%);
}
.bar-low {
  background: linear-gradient(90deg,
    rgba(12, 163, 12, 0.20) 0 38%,
    rgba(250, 178, 25, 0.24) 38% 72%,
    rgba(208, 59, 59, 0.20) 72% 100%);
}
.bio2-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 0 0 2px #fff;
}
.bio2-marker.good { background: var(--status-good); }
.bio2-marker.warning { background: #c98500; }
.bio2-marker.serious { background: #d95926; }
.bio2-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10.5px;
  color: #898781;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--surface-alt);
  color: var(--ink);
}
.pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.pill-good i { background: var(--status-good); }
.pill-good { background: rgba(12, 163, 12, 0.1); }
.pill-warning i { background: var(--status-warning); }
.pill-warning { background: rgba(250, 178, 25, 0.14); }
.pill-serious i { background: var(--status-serious); }
.pill-serious { background: rgba(236, 131, 90, 0.14); }

.dash-side { display: flex; flex-direction: column; gap: 14px; }
.ai-card {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.07), rgba(123, 91, 214, 0.07));
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 14px;
  padding: 16px;
}
.ai-card-head {
  font-size: 12.5px;
  font-weight: 700;
  background: var(--grad-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.ai-spark-icon { margin-right: 2px; }
.ai-card p { font-size: 13.5px; line-height: 1.45; margin-bottom: 8px; }
.side-stat {
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
}
.side-num { font-size: 28px; font-weight: 700; display: block; }
.side-label { font-size: 12.5px; color: var(--ink-secondary); }

/* ============ Stats ============ */
.stats { background: var(--surface-alt); }
.stats-grid {
  max-width: 980px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* ============ How ============ */
.how-grid {
  max-width: 1024px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-card {
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  padding: 30px 26px 34px;
  transition: transform 0.3s ease;
}
.how-card:hover { transform: translateY(-4px); }
.how-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.how-card h3 { font-size: 22px; margin: 12px 0 10px; }
.how-card p { font-size: 14.5px; color: var(--ink-secondary); line-height: 1.5; }

/* ============ Dark sections ============ */
.dark-section {
  background: var(--surface-dark);
  color: #f5f5f7;
}
.dark-section .section-sub { color: #a1a1a6; }

.chat-mock {
  max-width: 640px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
  padding: 13px 18px;
  border-radius: 22px 22px 6px 22px;
  font-size: 16px;
  max-width: 78%;
  line-height: 1.4;
}
.chat-card {
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 24px;
}
.chat-card-head {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #64b5ff, #b39dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.chat-card ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-card li {
  font-size: 15px;
  line-height: 1.5;
  color: #d5d5da;
  padding-left: 18px;
  position: relative;
}
.chat-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3987e5;
}
.chat-card li strong { color: #fff; }
.evidence-chip {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9fc7ff;
  background: rgba(57, 135, 229, 0.16);
  border: 1px solid rgba(57, 135, 229, 0.35);
  padding: 2px 8px;
  border-radius: 980px;
  vertical-align: 1px;
}
.chat-foot {
  margin-top: 16px;
  font-size: 13px;
  color: #86868b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.dark-features {
  max-width: 1024px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}
.dark-feature h3 { font-size: 17px; margin-bottom: 8px; }
.dark-feature p { font-size: 14px; color: #a1a1a6; line-height: 1.5; }

/* ============ Early signals / chart ============ */
.chart-card {
  max-width: 760px;
  margin: 64px auto 0;
  background: #fcfcfb;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 30px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}
.chart-title {
  font-size: 16px;
  font-weight: 700;
}
.chart-title span {
  font-weight: 400;
  color: var(--ink-secondary);
  font-size: 13.5px;
  margin-left: 6px;
}
.chart-box { position: relative; margin-top: 14px; }
#trendChart { width: 100%; height: auto; display: block; }
#trendChart .grid line { stroke: #e1e0d9; stroke-width: 1; }
#trendChart .axis-label text { fill: #898781; font-size: 12px; font-variant-numeric: tabular-nums; }
#trendChart .threshold { stroke: #c3c2b7; stroke-width: 1.5; stroke-dasharray: 6 6; }
#trendChart .threshold-label { fill: #898781; font-size: 12px; }
#trendChart .trend-line {
  stroke: var(--chart-line);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#trendChart .points circle {
  fill: var(--chart-line);
  stroke: #fcfcfb;
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.15s ease;
}
#trendChart .points circle:hover { r: 8; }
#trendChart .points .flagged {
  fill: #fff;
  stroke: var(--chart-line);
  stroke-width: 3;
}
#trendChart .annotation line { stroke: var(--chart-line); stroke-width: 1; stroke-dasharray: 3 3; }
#trendChart .annotation text { fill: var(--ink); font-size: 13px; font-weight: 600; }
#trendChart .annotation .annotation-sub { fill: var(--ink-secondary); font-weight: 400; font-size: 12px; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 8px;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.chart-tooltip.show { opacity: 1; }

.early-stat {
  text-align: center;
  margin-top: 48px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-secondary);
}
.early-stat strong { color: var(--ink); }

/* ============ Bento ============ */
.bento-section { background: var(--surface-alt); }
.bento {
  max-width: 1024px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}
.bento-card h3 { font-size: 20px; margin-bottom: 10px; }
.bento-card p { font-size: 14.5px; color: var(--ink-secondary); line-height: 1.55; }

/* ============ Security ============ */
.security-grid {
  max-width: 980px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
  text-align: center;
}
.security-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.security-item h3 { font-size: 17px; margin-bottom: 8px; }
.security-item p { font-size: 14px; color: #a1a1a6; line-height: 1.5; }

/* ============ CTA ============ */
.cta {
  background: var(--surface-alt);
  text-align: center;
}
.cta-mail { margin-top: 22px; font-size: 14.5px; color: var(--ink-secondary); }
.cta-mail a { color: var(--accent); text-decoration: none; }
.cta-mail a:hover { text-decoration: underline; }

/* ============ Footer ============ */
.footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  padding: 40px 22px 48px;
}
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.footer h4 { font-size: 13px; margin-bottom: 12px; }
.footer-cols a {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 720px;
}
.footer-copy { margin-top: 14px; font-size: 12px; color: #86868b; }

/* ============ Legal pages ============ */
.legal-page {
  padding: calc(var(--nav-h) + 70px) 22px 110px;
  max-width: 1024px;
  margin: 0 auto;
}
.legal-head { margin-bottom: 46px; }
.legal-head .eyebrow { font-size: 14px; }
.legal-head h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  margin-top: 10px;
}
.legal-updated {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.legal-switch a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--surface-alt);
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-switch a:hover { background: #e8e8ed; }
.legal-switch a.active { background: var(--ink); color: #fff; }

.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
}
.legal-toc p {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--ink); }

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  margin: 42px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 15.5px;
  line-height: 1.65;
  color: #424245;
  margin-bottom: 14px;
}
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-callout {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 18px 0;
}
.legal-callout p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 34px; }
  .legal-toc { position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 20px; }
}

/* ============ Responsive ============ */
@media (max-width: 1068px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; flex-wrap: wrap; }
  .dash-side > * { flex: 1 1 200px; }
  .how-grid, .dark-features { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .security-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 734px) {
  section { padding: 90px 20px; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 22px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .mobile-only { display: block; }
  .nav-login { display: none; }
  .nav-burger { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 70px); }
  .mockup-wrap { margin-top: 60px; }
  .bio2-head { flex-wrap: wrap; row-gap: 4px; }
  .how-grid, .bento, .dark-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-card { padding: 20px 16px 12px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
