/* =========================================================
   GENEPRINT — Design System
   Premium preventive healthcare. Advanced AI. Clinical calm.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&display=swap');

:root{
  /* Palette */
  --ink:        #16211E;   /* deep charcoal-green text */
  --ink-soft:   #4B5751;   /* muted text */
  --ink-faint:  #7C8983;

  --ivory:      #FBF9F3;   /* warm background */
  --ivory-deep: #F3EEE3;   /* alternating section bg */
  --surface:    #FFFFFF;

  --navy:       #0E2A3D;   /* primary */
  --navy-deep:  #081925;
  --navy-mist:  #E7EDF0;   /* tinted navy surface */

  --sage:       #77947F;   /* secondary / biological accent */
  --sage-deep:  #566E5D;
  --sage-mist:  #E7EEE7;

  --stone:      #CBC3B0;   /* neutral border/accent */
  --stone-mist: #EFEAE0;

  --amber:      #B8813C;   /* attention only */
  --amber-mist: #F5EBDB;

  --red:        #A3402E;   /* clinically urgent only */
  --red-mist:   #F3E4DF;

  --border:     rgba(14,42,61,0.12);
  --border-soft:rgba(14,42,61,0.08);
  --shadow-sm:  0 1px 2px rgba(14,42,61,0.06);
  --shadow-md:  0 8px 24px rgba(14,42,61,0.08);
  --shadow-lg:  0 24px 64px rgba(14,42,61,0.14);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Scale */
  --container: 1200px;
  --container-narrow: 820px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
img, svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }

.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding: 0 32px;
}
.container-narrow{
  width:100%;
  max-width: var(--container-narrow);
  margin:0 auto;
  padding: 0 32px;
}

section{ position:relative; }
.section{ padding: 120px 0; }
.section-tight{ padding: 80px 0; }
.bg-ivory-deep{ background: var(--ivory-deep); }
.bg-navy{ background: var(--navy); color: var(--ivory); }
.bg-navy-deep{ background: var(--navy-deep); color: var(--ivory); }
.bg-surface{ background: var(--surface); }

/* ---------- Typography ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  font-weight:600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.bg-navy .eyebrow, .bg-navy-deep .eyebrow{ color: var(--stone); }
.eyebrow::before{
  content:'';
  width:18px; height:1px;
  background: currentColor;
  opacity:.6;
}

h1, .h1{
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--navy);
}
.bg-navy h1, .bg-navy-deep h1{ color: var(--ivory); }

h2, .h2{
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.14;
  color: var(--navy);
}
.bg-navy h2, .bg-navy-deep h2{ color: var(--ivory); }

h3, .h3{
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height:1.3;
}
.bg-navy h3, .bg-navy-deep h3{ color: var(--ivory); }

.lede{
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 400;
  color: var(--ink-soft);
  line-height:1.6;
  max-width: 640px;
}
.bg-navy .lede, .bg-navy-deep .lede{ color: rgba(251,249,243,0.75); }

.serif-quote{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}

.section-head{
  max-width: 700px;
  margin: 0 0 56px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ margin-top:16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--navy);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--navy-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-secondary{
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover{ border-color: var(--navy); background: var(--navy-mist); }

.bg-navy .btn-secondary, .bg-navy-deep .btn-secondary{
  color: var(--ivory);
  border-color: rgba(251,249,243,0.28);
}
.bg-navy .btn-secondary:hover, .bg-navy-deep .btn-secondary:hover{
  background: rgba(251,249,243,0.08);
  border-color: rgba(251,249,243,0.5);
}

.btn-ivory{
  background: var(--ivory);
  color: var(--navy);
}
.btn-ivory:hover{ background:#fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm{ padding: 10px 18px; font-size: 13.5px; }
.btn-block{ width:100%; }

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  color: var(--navy);
  font-size:14.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom:2px;
}
.link-arrow svg{ transition: transform .18s ease; width:14px; height:14px; }
.link-arrow:hover svg{ transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,249,243,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.01em;
  color: var(--navy);
}
.brand svg{ width:30px; height:30px; }
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a{
  font-size:14.5px;
  font-weight:500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--navy); }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none; padding:8px;
}
.nav-toggle svg{ width:24px; height:24px; color: var(--navy); }

@media (max-width: 920px){
  .nav-links{
    position:fixed; inset: 74px 0 0 0;
    background: var(--ivory);
    flex-direction:column;
    padding: 32px;
    gap: 22px;
    transform: translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition: all .22s ease;
    border-top:1px solid var(--border-soft);
  }
  .nav-links.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ font-size:17px; }
  .nav-toggle{ display:block; }
  .nav-actions .btn-secondary{ display:none; }
}

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon{
  width:48px; height:48px;
  border-radius: 12px;
  background: var(--navy-mist);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  color: var(--navy);
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ margin-bottom:10px; }
.card p{ color: var(--ink-soft); font-size:15px; }

.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ---------- Badges / risk pills ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing:.01em;
}
.badge-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.badge-standard{ background: var(--sage-mist); color: var(--sage-deep); }
.badge-moderate{ background: var(--amber-mist); color: var(--amber); }
.badge-significant{ background: #F1E3DC; color: #9A5230; }
.badge-high{ background: var(--red-mist); color: var(--red); }
.badge-neutral{ background: var(--stone-mist); color: var(--ink-soft); }
.badge-navy{ background: var(--navy-mist); color: var(--navy); }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset: step; }
@media (max-width: 980px){ .steps{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .steps{ grid-template-columns: 1fr; } }
.step{ position:relative; padding-top: 8px; }
.step-num{
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--sage);
  margin-bottom: 18px;
  font-weight:500;
}
.step h3{ margin-bottom:8px; }
.step p{ color: var(--ink-soft); font-size:14.5px; }

/* ---------- Divider / connector line ---------- */
.rule{ height:1px; background: var(--border-soft); border:none; margin:0; }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom: 1px solid var(--border-soft); }
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
  padding: 24px 0;
  background:none; border:none; text-align:left;
  font-size: 17px; font-weight:600; color: var(--navy);
}
.faq-q svg{ width:18px; height:18px; flex-shrink:0; transition: transform .2s ease; color: var(--sage-deep); }
.faq-item.open .faq-q svg{ transform: rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden;
  transition: max-height .25s ease;
  color: var(--ink-soft);
  font-size: 15px;
}
.faq-a-inner{ padding: 0 0 24px; max-width: 760px; }
.faq-item.open .faq-a{ max-height: 400px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(251,249,243,0.72); padding: 80px 0 32px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px){ .footer-top{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-top h4{ color: var(--ivory); font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:18px; }
.footer-top a, .footer-top li{ font-size:14.5px; margin-bottom:12px; display:block; color: rgba(251,249,243,0.62); }
.footer-top a:hover{ color: var(--ivory); }
.footer-brand .brand{ color: var(--ivory); margin-bottom:16px; }
.footer-brand p{ font-size:14px; max-width:280px; color: rgba(251,249,243,0.55); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 28px; border-top: 1px solid rgba(251,249,243,0.12);
  font-size:13px; color: rgba(251,249,243,0.45);
  flex-wrap:wrap; gap:12px;
}

/* ---------- Utilities ---------- */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;} .mt-64{margin-top:64px;}
.mb-8{ margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;} .mb-32{margin-bottom:32px;}
.flex{ display:flex; } .items-center{ align-items:center; } .gap-8{gap:8px;} .gap-12{gap:12px;} .gap-16{gap:16px;} .gap-24{gap:24px;}
.flex-wrap{ flex-wrap:wrap; }
.muted{ color: var(--ink-soft); }
.small{ font-size: 13.5px; }
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; }
.max-w-narrow{ max-width: 640px; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in{ opacity:1; transform:none; }

/* ---------- Hero visual layers ---------- */
.layer-orbit{
  position:relative; width:100%; aspect-ratio: 1/1; max-width:520px; margin:0 auto;
}
.layer-orbit svg{ width:100%; height:100%; }

/* ---------- Eligibility check ---------- */
.check-list{ display:grid; gap:14px; }
.check-item{ display:flex; gap:14px; align-items:flex-start; padding:18px 20px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md); }
.check-item svg{ width:20px; height:20px; color: var(--sage-deep); flex-shrink:0; margin-top:2px; }

/* ---------- Banner / CTA strip ---------- */
.cta-strip{
  border-radius: var(--radius-lg);
  padding: 64px;
  display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
@media (max-width: 700px){ .cta-strip{ padding: 40px 28px; } }

/* ---------- Tag / kicker line for hospital logos ---------- */
.logo-row{ display:flex; align-items:center; gap:48px; flex-wrap:wrap; opacity:.8; }
.logo-row .logo-chip{ font-family: var(--font-serif); font-style:italic; font-size:19px; color: var(--ink-faint); }

/* ---------- Table-ish info rows (science page) ---------- */
.info-row{ display:grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top:1px solid var(--border-soft); }
.info-row:first-of-type{ border-top:none; }
.info-row h4{ color: var(--navy); font-weight:600; font-size:15px; }
@media (max-width: 700px){ .info-row{ grid-template-columns: 1fr; gap:8px; } }
