/* ════════════════════════════════════════════════════════════
   Omi Health — Shared Design System
   Extracted from omiscribe.com (hand-written, not Framer)
   ════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f8;

  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;

  --border: #e5e5e5;
  --border-hover: #ccc;

  --accent: #0071e3;
  --accent-faint: #f0f7ff;

  --green: #1a8a5c;
  --green-faint: #edf7f2;

  --radius: 12px;
  --max: 1060px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,113,227,.14); }

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

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 17px; font-weight: 600; }
p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--text); }

/* ── Dark-background buttons ── */
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-on-dark.white { background: #fff; color: var(--text); }
.btn-on-dark.white:hover { background: #e8e8e8; }
.btn-on-dark.outline {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-on-dark.outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Sections ── */
section { padding: 88px 0; }
section:focus-visible { outline: none; }

.section-header {
  max-width: 540px;
  margin-bottom: 48px;
}
.section-header h2 { margin-top: 6px; }
.section-header p { margin-top: 10px; }
.section-header.center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Placeholder images ── */
.img-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-mark {
  width: 41px;
  height: 41px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  position: relative;
  top: -0.5px;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.03); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { padding: 8px 16px; font-size: 13px; }

.mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}
.mobile-nav {
  display: none;
  padding: 8px 0 16px;
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border: none; }

/* ════════════════════════════════════════════════════════════
   FINAL CTA (dark box)
   ════════════════════════════════════════════════════════════ */
.final-cta {
  background: var(--text);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.65); margin-top: 10px; }
.final-cta .cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

/* ════════════════════════════════════════════════════════════
   COOKIE CONSENT BAR
   ════════════════════════════════════════════════════════════ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--text);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar a:hover { color: #fff; }
.cookie-bar button {
  background: #fff;
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-bar button:hover { background: #e8e8e8; }

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-btn { display: block; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }

  .final-cta {
    padding: 40px 24px;
    border-radius: 0;
  }

  .footer-grid { grid-template-columns: 1fr; }
}

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