/* NuLevels Health — shared site styles
   Used by every public-facing HTML page (homepage, condition pages, pricing, etc).
   Mobile-first. Inter typography. Teal/cream palette.
   ===================================================================== */

:root {
  --teal:        #0F766E;
  --teal-deep:   #0B5158;
  --teal-tint:   #E0F2F1;
  --cream:       #FBF9F4;
  --amber:       #D97706;
  --navy:        #0F172A;
  --slate:       #475569;
  --border:      #E2E8F0;
  --white:       #FFFFFF;
  --light-grey:  #F8FAFC;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow-card: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-card-hover: 0 8px 20px rgba(15,23,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* room for mobile sticky CTA bar */
  overflow-x: hidden; /* mobile safety net — prevents rogue elements from forcing horizontal scroll */
  min-width: 320px;
}
@media (min-width: 768px) {
  body { font-size: 18px; padding-bottom: 0; }
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 72px 0; } }

.bg-cream      { background: var(--cream); }
.bg-teal-tint  { background: var(--teal-tint); }
.bg-light-grey { background: var(--light-grey); }
.bg-teal-deep  { background: var(--teal-deep); color: var(--white); }
.bg-teal-deep h1, .bg-teal-deep h2, .bg-teal-deep h3 { color: var(--white); }
.bg-teal-deep p { color: rgba(255,255,255,0.88); }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; -ms-hyphens: none; }
h1 { font-size: clamp(28px, 8.4vw, 44px); line-height: 1.1; font-weight: 800; }
@media (min-width: 768px) { h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.05; } }
h2 { font-size: 28px; line-height: 1.15; }
@media (min-width: 768px) { h2 { font-size: clamp(28px, 4vw, 48px); } }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin-bottom: 0; }
.subhead { color: var(--slate); font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 720px; }
@media (min-width: 768px) { .subhead { font-size: 20px; margin-top: 20px; } }

.eyebrow {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; color: var(--teal);
  margin-bottom: 16px;
}

.trust-strip {
  font-size: 14px; color: var(--slate);
  margin-top: 12px; line-height: 1.5; text-align: center;
}

.muted { color: var(--slate); }
.tiny  { font-size: 13px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px; min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); }

.btn-secondary { background: transparent; color: var(--teal); border: 2px solid var(--teal); padding: 12px 22px; }
.btn-secondary:hover { background: var(--teal-tint); color: var(--teal-deep); }

.btn-white-on-teal { background: var(--white); color: var(--teal); }
.btn-white-on-teal:hover { background: var(--cream); color: var(--teal-deep); }

.btn-lg { padding: 18px 32px; font-size: 17px; min-height: 52px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
@media (min-width: 768px) { .btn-row { margin-top: 32px; } }

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--navy); font-size: 18px;
}
.nav-brand:hover { text-decoration: none; color: var(--navy); }
.nav-brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}

.nav-links { display: none; align-items: center; gap: 28px; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a, .nav-links button {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--navy); font-weight: 500; font-size: 15px;
}
.nav-links a:hover, .nav-links button:hover { color: var(--teal); text-decoration: none; }

.nav-conditions { position: relative; }
.nav-conditions-menu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  min-width: 260px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  padding: 10px; display: none;
}
.nav-conditions.open .nav-conditions-menu { display: block; }
.nav-conditions-menu a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--navy); font-size: 14px; font-weight: 500;
}
.nav-conditions-menu a:hover { background: var(--cream); color: var(--teal); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-secondary { padding: 8px 14px; font-size: 14px; min-height: 36px; border-width: 1.5px; }
.nav-cta .btn-primary { padding: 8px 14px; font-size: 14px; min-height: 44px; }
@media (max-width: 480px) {
  .nav-cta .btn-primary { padding: 8px 10px; font-size: 13px; }
  .nav-brand { font-size: 15px; }
  .nav-brand-mark { width: 28px; height: 28px; font-size: 14px; }
}

.nav-cta .signin-link { display: none; }
@media (min-width: 900px) { .nav-cta .signin-link { display: inline-flex; } }

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0;
  border-radius: 8px;
  background: none; border: 1px solid var(--border);
  color: var(--navy); cursor: pointer;
  margin-left: 8px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-mobile {
  display: none; padding: 16px 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); background: var(--white);
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.nav-mobile.open { display: block; }
.nav-mobile a, .nav-mobile button {
  display: block; padding: 12px 24px; color: var(--navy); font-weight: 500;
  background: none; border: none; text-align: left; width: 100%; font: inherit; cursor: pointer;
}
.nav-mobile a:hover, .nav-mobile button:hover { background: var(--cream); color: var(--teal); text-decoration: none; }
.nav-mobile .nav-mobile-group { margin: 6px 0; padding: 10px 24px 0; color: var(--slate); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero { padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 768px) { .hero { padding-top: 80px; padding-bottom: 96px; } }
.hero-grid {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.hero-visual {
  background: linear-gradient(135deg, var(--teal-tint), var(--cream));
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep);
}
.hero-visual-phone {
  width: 60%; max-width: 240px; aspect-ratio: 9/19;
  background: var(--white); border-radius: 28px;
  border: 8px solid var(--navy);
  box-shadow: var(--shadow-card-hover);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-visual-phone::after {
  content: "";
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  width: 56%; aspect-ratio: 1/2.4;
  background: linear-gradient(180deg, var(--amber) 18%, #b96405 18% 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-visual-phone::before {
  content: "scanning…";
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--teal);
  background: var(--teal-tint); padding: 4px 10px; border-radius: 12px;
}

/* ── GRIDS ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { margin-bottom: 32px; max-width: 720px; }
@media (min-width: 768px) { .section-head { margin-bottom: 48px; } }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .card:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); } }

.card a.card-link { color: inherit; text-decoration: none; display: contents; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow-card); transform: translateY(-1px); }

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-tint); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.card-icon i, .card-icon svg { width: 22px; height: 22px; }

.card-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.card-body  { font-size: 14px; color: var(--slate); line-height: 1.55; }
.card-link-cue { font-size: 13px; font-weight: 600; color: var(--teal); margin-top: 4px; }

/* Evidence / quote card */
.evidence-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 24px;
}
.evidence-quote { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.evidence-source { font-size: 14px; color: var(--slate); margin-top: 10px; }

/* Pricing cards */
.pricing-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; } }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.pricing-card.popular { border-color: var(--teal); box-shadow: var(--shadow-card); }
.pricing-card .popular-badge {
  position: absolute; top: -12px; right: 16px;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.pricing-card .tier-name { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.pricing-card .tier-price { font-size: 28px; font-weight: 800; color: var(--navy); }
.pricing-card .tier-renewal { font-size: 13px; color: var(--slate); }
.pricing-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.pricing-card ul li { font-size: 14px; color: var(--navy); padding-left: 22px; position: relative; line-height: 1.45; }
.pricing-card ul li::before { content: "✓"; color: var(--teal); position: absolute; left: 0; top: 0; font-weight: 700; }
.pricing-card .btn { margin-top: auto; }
.pricing-card .tier-everything { font-size: 13px; color: var(--slate); font-style: italic; }

/* Lists */
.bullets { display: grid; gap: 12px; margin-top: 16px; padding-left: 0; list-style: none; }
.bullets li { font-size: 16px; line-height: 1.55; padding-left: 24px; position: relative; color: var(--navy); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Two-column callout */
.two-col {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* How-it-works step */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 12px 0 6px; }
.step-body  { font-size: 15px; color: var(--slate); line-height: 1.55; }

/* Final CTA section */
.final-cta { text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.92); max-width: 620px; margin: 16px auto 0; }
.final-cta .btn-row { justify-content: center; }

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.faq-list { display: grid; gap: 8px; margin-top: 24px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; }
.faq-q {
  width: 100%; background: none; border: none; padding: 20px 24px;
  text-align: left; font: inherit; font-weight: 700; font-size: 16px;
  color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--teal); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none; padding: 0 24px 20px; color: var(--slate); line-height: 1.55; font-size: 15px;
}
.faq-item.open .faq-a { display: block; }

/* ── DISCLOSURE / DISCLAIMER BAR ──────────────────────────── */
.disclosure-bar {
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 13px; color: var(--slate);
}

/* ── STICKY MOBILE BOTTOM CTA ─────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(15,23,42,0.06);
  display: block;
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--light-grey);
  border-top: 1px solid var(--border);
  padding-top: 48px; padding-bottom: 32px;
  font-size: 14px; color: var(--slate);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--slate); }
.footer-col a:hover { color: var(--teal); }
.footer-brand-tag { color: var(--slate); margin-top: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; font-size: 13px; }
.footer-disclaimer { margin-top: 12px; font-size: 12px; color: var(--slate); line-height: 1.5; }

/* ── INLINE EVIDENCE CALLOUT (small alerts) ───────────────── */
.alert {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px; color: var(--slate); line-height: 1.5;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-3 { margin-bottom: 16px; }

/* Lucide icon defaults when injected */
[data-lucide] { width: 22px; height: 22px; stroke-width: 2; color: var(--teal); }
.card-icon [data-lucide] { color: var(--teal); }
