@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,500;0,700;0,900;1,400;1,700&family=Epilogue:wght@300;400;500;600&display=swap');

:root {
  --soil:      #2d1f14;
  --bark:      #5c3d2e;
  --terra:     #c8603a;
  --terra-mid: #e07a55;
  --terra-lt:  #f5ddd4;
  --moss:      #5a7a4a;
  --moss-lt:   #d6e8ce;
  --sand:      #f2ebe0;
  --parchment: #fdf8f2;
  --warm-mid:  #8c7060;
  --warm-lt:   #d4c4b4;
  --white:     #ffffff;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family:'Epilogue',system-ui,sans-serif;
  background:var(--parchment);
  color:var(--soil);
  line-height:1.75;
  overflow-x:hidden;
}

/* ── HERO ── */
.hero{
  background:var(--bark);
  position:relative;
  overflow:hidden;
  min-height:460px;
  display:flex;
  align-items:center;
}
.hero-texture{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 55% 80% at 85% 40%,rgba(200,96,58,0.35) 0%,transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%,rgba(90,122,74,0.2) 0%,transparent 60%);
}
/* Animated organic blobs */
.hero-blob{
  position:absolute;
  border-radius:60% 40% 55% 45%/50% 60% 40% 50%;
  opacity:0.07;
  animation:blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob:nth-child(1){width:320px;height:280px;background:var(--terra);top:-60px;right:10%;animation-delay:0s}
.hero-blob:nth-child(2){width:200px;height:220px;background:var(--moss);bottom:20px;right:25%;animation-delay:-3s}
@keyframes blobFloat{
  from{transform:translate(0,0) rotate(0deg)}
  to{transform:translate(20px,15px) rotate(8deg)}
}
.hero-inner{
  position:relative;z-index:2;
  max-width:1080px;margin:auto;
  padding:80px 55px;
  display:grid;grid-template-columns:1fr 280px;gap:50px;align-items:center;
}
.hero-crumb{
  font-size:0.72rem;font-weight:600;
  letter-spacing:0.18em;text-transform:uppercase;
  color:rgba(255,255,255,0.5);margin-bottom:20px;
}
h1{
  font-family:'Fraunces',Georgia,serif;
  font-size:clamp(3rem,6.5vw,5rem);
  font-weight:900;
  color:var(--white);
  line-height:0.95;
  letter-spacing:-0.02em;
  margin-bottom:22px;
}
h1 span{
  display:block;font-weight:300;font-style:italic;
  font-size:0.5em;color:var(--terra-mid);margin-bottom:4px;
}
.hero-desc{
  color:rgba(255,255,255,0.7);
  font-size:1.05rem;font-weight:300;
  line-height:1.7;max-width:480px;margin-bottom:32px;
}
.hero-pills{display:flex;flex-wrap:wrap;gap:8px}
.hero-pill{
  padding:5px 16px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.75);
  font-size:0.78rem;border-radius:30px;
}
/* Colon SVG in hero */
.hero-visual{display:flex;align-items:center;justify-content:center}
.colon-svg{width:240px;height:260px;opacity:0.88}

/* ── STICKY NAV ── */
.page-nav{
  background:var(--white);
  border-bottom:3px solid var(--terra);
  position:sticky;top:0;z-index:100;
  box-shadow:0 2px 12px rgba(0,0,0,0.07);
}
.nav-inner{
  max-width:1080px;margin:auto;
  padding:0 55px;
  display:flex;gap:0;overflow-x:auto;scrollbar-width:none;
}
.nav-inner::-webkit-scrollbar{display:none}
.nav-a{
  padding:13px 19px;
  font-size:0.8rem;font-weight:600;
  letter-spacing:0.05em;text-transform:uppercase;
  color:var(--warm-mid);text-decoration:none;
  white-space:nowrap;border-bottom:3px solid transparent;
  transition:all .2s;
}
.nav-a:hover{color:var(--terra)}
.nav-a.active{color:var(--terra);border-bottom-color:var(--terra)}

/* ── LAYOUT ── */
.wrap{
  max-width:1080px;margin:auto;
  padding:64px 55px;
  display:grid;grid-template-columns:1fr 300px;gap:64px;
  align-items:start;
}
main{min-width:0}

/* ── SECTIONS ── */
.sec{margin-bottom:68px}
.sec-eyebrow{
  display:flex;align-items:center;gap:12px;
  font-size:0.72rem;font-weight:600;
  letter-spacing:0.18em;text-transform:uppercase;
  color:var(--terra);margin-bottom:14px;
}
.sec-eyebrow::after{content:'';flex:1;height:1px;background:var(--warm-lt)}
.sec h2{
  font-family:'Fraunces',serif;
  font-size:1.9rem;font-weight:700;color:var(--soil);
  margin-bottom:18px;line-height:1.15;
}
.sec p{
  font-size:0.97rem;color:#3a2a1e;
  margin-bottom:16px;line-height:1.8;
}

/* ── SEGMENTS STRIP ── */
.segments{
  display:grid;grid-template-columns:repeat(6,1fr);
  gap:0;margin:24px 0;
  border-radius:10px;overflow:hidden;
  border:1px solid var(--warm-lt);
}
.seg{
  padding:20px 12px;text-align:center;
  background:var(--white);
  border-right:1px solid var(--warm-lt);
  transition:background .2s,transform .2s;cursor:default;
}
.seg:last-child{border-right:none}
.seg:hover{background:var(--terra-lt);transform:translateY(-2px)}
.seg-icon{font-size:1.4rem;margin-bottom:6px}
.seg-name{
  font-family:'Fraunces',serif;
  font-size:0.82rem;font-weight:700;
  color:var(--terra);margin-bottom:3px;
}
.seg-len{font-size:0.7rem;color:var(--warm-mid)}

/* ── MICROBIOME WHEEL ── */
.micro-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:14px;margin:22px 0;
}
.micro-card{
  background:var(--white);
  border:1px solid var(--warm-lt);
  border-left:4px solid var(--moss);
  border-radius:8px;padding:18px;
  transition:box-shadow .2s;
}
.micro-card:hover{box-shadow:0 6px 20px rgba(90,122,74,0.14)}
.micro-card .mc-name{
  font-family:'Fraunces',serif;font-size:1rem;font-weight:700;
  color:var(--moss);margin-bottom:5px;font-style:italic;
}
.micro-card .mc-role{font-size:0.84rem;color:#3a2a1e;line-height:1.6}
.micro-card .mc-pct{
  display:inline-block;margin-top:8px;
  font-size:0.72rem;font-weight:600;
  background:var(--moss-lt);color:var(--moss);
  padding:2px 10px;border-radius:3px;
}

/* ── FUNCTION CARDS ── */
.fn-list{margin:22px 0}
.fn-item{
  display:grid;grid-template-columns:56px 1fr;
  gap:0;margin-bottom:12px;
  background:var(--white);border:1px solid var(--warm-lt);
  border-radius:10px;overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}
.fn-item:hover{transform:translateX(4px);box-shadow:0 4px 16px rgba(200,96,58,0.12)}
.fn-num{
  background:var(--terra);color:var(--white);
  font-family:'Fraunces',serif;font-size:1.2rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  min-height:60px;
}
.fn-body{padding:14px 18px}
.fn-body strong{display:block;font-weight:600;font-size:0.93rem;color:var(--soil);margin-bottom:3px}
.fn-body p{font-size:0.84rem;color:var(--warm-mid);margin:0;line-height:1.55}

/* ── INFO BOX ── */
.info-box{
  background:var(--terra-lt);
  border:1px solid #e8c0b0;border-left:5px solid var(--terra);
  padding:18px 22px;border-radius:6px;margin:24px 0;
}
.info-box .info-title{
  font-family:'Fraunces',serif;font-weight:700;
  color:var(--bark);font-size:0.95rem;margin-bottom:6px;
}
.info-box p{font-size:0.9rem;color:#5c3020;margin:0}

/* ── TABLE ── */
.tbl-wrap{overflow-x:auto;margin:20px 0}
table{width:100%;border-collapse:collapse;font-size:0.88rem}
th{background:var(--terra);color:var(--white);padding:11px 16px;text-align:left;font-weight:600;font-family:'Fraunces',serif}
td{padding:10px 16px;border-bottom:1px solid var(--warm-lt);color:#3a2a1e;vertical-align:top}
tr:nth-child(even) td{background:var(--terra-lt)}
tr:hover td{background:var(--sand)}

/* ── CANCER RISK METER ── */
.risk-meter{margin:20px 0}
.risk-item{
  display:flex;align-items:center;gap:14px;
  margin-bottom:12px;
}
.risk-label{width:180px;font-size:0.84rem;color:#3a2a1e;flex-shrink:0}
.risk-bar-bg{flex:1;height:10px;background:var(--warm-lt);border-radius:5px;overflow:hidden}
.risk-bar{height:100%;border-radius:5px;background:var(--terra);transition:width 1.2s cubic-bezier(.4,0,.2,1)}
.risk-val{width:50px;text-align:right;font-size:0.8rem;font-weight:700;color:var(--terra)}

/* ── SIDEBAR ── */
.sidebar{position:sticky;top:64px}
.widget{
  background:var(--white);border:1px solid var(--warm-lt);
  border-radius:10px;padding:22px;margin-bottom:18px;
  box-shadow:0 1px 6px rgba(0,0,0,0.04);
}
.w-title{
  font-family:'Fraunces',serif;font-size:1.05rem;font-weight:700;
  color:var(--soil);margin-bottom:14px;padding-bottom:10px;
  border-bottom:2px solid var(--terra);
}
.stat-row{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:8px 0;border-bottom:1px solid var(--warm-lt);font-size:0.85rem;
}
.stat-row:last-child{border-bottom:none}
.stat-row .sl{color:var(--warm-mid)}
.stat-row .sv{font-weight:700;color:var(--terra);font-family:'Fraunces',serif}

.flora-bar{margin:10px 0}
.fb-label{font-size:0.78rem;color:var(--warm-mid);margin-bottom:4px;display:flex;justify-content:space-between}
.fb-track{height:8px;background:var(--sand);border-radius:4px;overflow:hidden;margin-bottom:8px}
.fb-fill{height:100%;border-radius:4px}

.screening-list{list-style:none}
.screening-list li{
  padding:10px 0;border-bottom:1px solid var(--warm-lt);
  font-size:0.84rem;color:#3a2a1e;
  display:flex;align-items:flex-start;gap:10px;
}
.screening-list li:last-child{border-bottom:none}
.screening-list li::before{
  content:'✓';color:var(--moss);font-weight:700;flex-shrink:0;margin-top:1px;
}

/* ── FOOTER ── */
footer{
  background:var(--soil);color:rgba(255,255,255,0.5);
  text-align:center;padding:28px;font-size:0.8rem;
  font-family:'Epilogue',sans-serif;
}
footer strong{color:rgba(255,255,255,0.8)}

@media(max-width:820px){
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{display:none}
  .wrap{grid-template-columns:1fr;padding:30px 20px}
  .sidebar{position:static}
  .segments{grid-template-columns:repeat(3,1fr)}
  .micro-grid{grid-template-columns:1fr}
  .nav-inner{padding:0 20px}
}
