/* ============================================================
   mama health — product documentation styles
   Extends styles.css. All product/* pages link both files.
   ============================================================ */

:root {
  --green-deep: #0f6e56;
  --ink: #1a2e28;
  --muted: #5b6b73;
  --viz-bg: #15191b;
  --line-p: rgba(10, 31, 58, .1);
  --maxw-p: 1180px;
}

/* ─── Nav: dark navy (matches homepage) ─── */
nav.nav-light {
  position: sticky;
  top: 0;
  background: var(--navy-deep);
  z-index: 100;
  /* padding inherits from base nav { padding: 22px 0 } — matches homepage */
}

nav.nav-light .nav-link,
nav.nav-light .nav-dropdown-trigger { color: rgba(255, 255, 255, .85); }

nav.nav-light .nav-link:hover,
nav.nav-light .nav-dropdown-trigger:hover { color: var(--accent); }

nav.nav-light .nav-dropdown.open .nav-dropdown-trigger { color: var(--accent); }

nav.nav-light .nav-cta {
  background: var(--accent);
  color: var(--navy);
}
nav.nav-light .nav-cta:hover {
  background: #6ee7a4;
  box-shadow: 0 6px 18px rgba(74, 222, 128, .28);
  transform: translateY(-1px);
}

/* ─── Product mega-menu ─── */
.product-mega { min-width: 380px; }
.pmenu-updates.nav-dropdown-item::after { display: none; }

.pmenu-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 5px;
}

.pmenu-divider {
  height: 1px;
  background: var(--line-p);
  margin: 6px 4px;
}

.pmenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  transition: background .14s;
}
.pmenu-item:hover { background: var(--cream); color: var(--green-deep); }
.pmenu-item .qn { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 22px; }

/* Flyout row — visually identical to .nav-dropdown-item */
.pmenu-flyrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--ink);
  cursor: default;
  text-decoration: none;
  transition: background .14s;
}
.pmenu-text { flex: 1; min-width: 0; }
.pmenu-flyrow:hover,
.pmenu-flyrow:focus-within { background: var(--cream); }
.pmenu-flyrow > svg { color: var(--muted); flex: none; opacity: .5; }

.pmenu-sub {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  width: 240px;
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 31, 58, .16);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 10;
}
/* bridge gap so mouse can reach submenu */
.pmenu-sub::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 12px;
  height: 100%;
}
.pmenu-flyrow:hover .pmenu-sub,
.pmenu-flyrow:focus-within .pmenu-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ─── Layout container ─── */
.prod-wrap { max-width: var(--maxw-p); margin: 0 auto; padding: 0 28px; }
body { overflow-x: hidden; }

/* ─── Eyebrow ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: "//"; opacity: .8; }

/* ─── Feature chips ─── */
.feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--green-deep);
  background: rgba(15, 110, 86, .09);
  border: 1px solid rgba(15, 110, 86, .18);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s, border-color .14s;
}
.feat:hover, .feat:focus-visible {
  background: rgba(15, 110, 86, .16);
  border-color: rgba(15, 110, 86, .4);
}
.feat svg { width: 13px; height: 13px; flex: none; }
.feat-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Feature hovercard */
.fcard {
  position: fixed;
  z-index: 9000;
  width: 268px;
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 13px;
  box-shadow: 0 20px 50px rgba(10, 31, 58, .2);
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  pointer-events: none;
}
.fcard.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.fcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.fcard-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(15, 110, 86, .1); display: flex;
  align-items: center; justify-content: center;
  color: var(--green-deep); flex: none;
}
.fcard-icon svg { width: 17px; height: 17px; }
.fcard-tag { font-size: 9.5px; font-family: var(--mono); color: var(--green-deep); letter-spacing: .1em; text-transform: uppercase; }
.fcard-name { font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 1px; }
.fcard p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fcard-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 12.5px; font-weight: 500; color: var(--green-deep); text-decoration: none; }
.fcard-link:hover { text-decoration: underline; }

/* ─── Page header (product hub) — full-bleed dark hero ─── */
.page-head {
  padding: 120px 0 96px;
  position: relative;
  z-index: 0;
}
.page-head::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  z-index: -1;
}
.page-head h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin-top: 18px;
  max-width: 18ch;
  color: #fff;
}
.page-head h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-head .intro { font-size: 19px; color: rgba(255,255,255,.72); margin-top: 20px; max-width: 640px; line-height: 1.55; }
.page-head .eyebrow { color: var(--accent); }

/* ─── Platform features section (separate from hero) ─── */
.platform-section {
  background: var(--cream);
  border-top: 1px solid var(--line-p);
  padding: 64px 0 80px;
}
.sc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sc-top .eyebrow { color: var(--green-deep); font-size: 11px; }
.sc-top p { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media(max-width: 960px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 660px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }

.fc {
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--text-dark);
  transition: all .18s;
}
.fc:hover {
  background: #fff;
  border-color: rgba(15,110,86,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Feature icon box */
.fc-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line-p);
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.fc-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: stroke .18s;
}
.fc:hover .fc-icon {
  background: rgba(15,110,86,.08);
  border-color: rgba(15,110,86,.22);
}
.fc:hover .fc-icon svg { stroke: var(--green-deep); }

.fc-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-dark);
  line-height: 1.25;
}
.fc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* ─── Section layout ─── */
.prod-section { padding: 42px 0; }
.s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.s-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.018em; }
.s-head h2 em { font-style: italic; color: var(--green-deep); font-weight: 400; }
.s-head .sub { font-size: 14px; color: var(--muted); max-width: 420px; }

/* ─── Team directory list ─── */
.teamlist {
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 18px;
  overflow: hidden;
}
.teamrow {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: start;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-p);
  text-decoration: none;
  color: var(--ink);
  transition: background .14s;
}
.teamrow:last-child { border-bottom: none; }
.teamrow:hover { background: var(--cream-warm); }
.tl-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(15, 110, 86, .09); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tl-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-role { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.tl-desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.tl-feats { margin-top: 11px; }
.tl-arrow { color: var(--green-deep); font-size: 16px; align-self: center; }
@media(max-width: 680px) {
  .teamrow { grid-template-columns: 46px 1fr; }
  .tl-arrow { display: none; }
}

/* ─── Business question cards ─── */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width: 860px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 620px) { .g3 { grid-template-columns: 1fr; } }

.qcard {
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.qcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(10, 31, 58, .08);
  border-color: rgba(15, 110, 86, .25);
}
.viz-dark {
  background: var(--viz-bg);
  border-radius: 12px;
  padding: 14px;
  height: 150px;
  position: relative;
  overflow: hidden;
}
.vlabel {
  position: absolute; top: 13px; left: 15px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; color: rgba(255,255,255,.5); text-transform: uppercase;
}
.viz-dark svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; }
.qcat {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-deep); margin: 16px 0 9px; padding: 0 4px;
}
.qcard h3 { font-size: 19px; font-weight: 500; line-height: 1.2; padding: 0 4px; letter-spacing: -.01em; }
.qcard .qdesc { font-size: 13.5px; color: var(--muted); padding: 0 4px; margin-top: 11px; flex: 1; }
.qcard .qfeats { padding: 16px 4px 4px; }

/* ─── Updates list ─── */
.ulist { border-top: 1px solid var(--line-p); margin-top: 8px; }
.urow {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-p);
}
.urow:last-child { border-bottom: none; }
@media(max-width: 680px) { .urow { grid-template-columns: 1fr; gap: 5px; } }
.udate { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.utag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; justify-self: start;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(15, 110, 86, .25);
  color: var(--green-deep); background: rgba(15, 110, 86, .07);
}
.urow h3 { font-size: 15px; font-weight: 500; }
.urow p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.urow a { text-decoration: none; color: inherit; }
.urow a:hover h3 { color: var(--green-deep); }

/* ─── Inner page layout (team / question / feature pages) — full-bleed dark hero ─── */
.inner-head {
  padding: 110px 0 80px;
  position: relative;
  z-index: 0;
  border-bottom: none;
  margin-bottom: 48px;
}
.inner-head::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  z-index: -1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--green-deep); }
.breadcrumb .bc-sep { color: rgba(10,31,58,.25); opacity: 1; }
.inner-head h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin-top: 10px;
  color: #fff;
}
.inner-head h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.inner-head .eyebrow { color: var(--accent); }
.inner-head .breadcrumb { color: rgba(255,255,255,.5); }
.inner-head .breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.inner-head .breadcrumb a:hover { text-decoration: underline; color: var(--accent); }
.inner-head .breadcrumb .bc-sep { color: rgba(255,255,255,.3); opacity: 1; }
.inner-head .lead { font-size: 18px; color: rgba(255,255,255,.72); margin-top: 16px; max-width: 580px; line-height: 1.5; }
.inner-head .feat-row { margin-top: 22px; }
.inner-head .feat { color: var(--accent); background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.25); }
.inner-head .feat-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .25);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 14px;
}

/* ─── Content body + sidebar ─── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-bottom: 80px;
  align-items: start;
}
@media(max-width: 860px) { .content-grid { grid-template-columns: 1fr; } }

.content-body h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500; letter-spacing: -.015em;
  margin: 36px 0 12px; color: var(--ink);
}
.content-body h2:first-child { margin-top: 0; }
.content-body p {
  font-size: 15.5px; color: var(--text-dark);
  line-height: 1.68; margin-bottom: 14px;
}
.content-body p:last-child { margin-bottom: 0; }

/* Patient excerpt block */
.excerpt {
  background: rgba(15, 110, 86, .06);
  border-left: 3px solid var(--green-deep);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.excerpt p { font-size: 14.5px; font-style: italic; color: var(--ink); line-height: 1.62; margin-bottom: 0; }
.excerpt-meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); margin-top: 9px;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Sidebar cards */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line-p);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 13px; font-weight: 500;
  letter-spacing: -.005em; margin-bottom: 12px;
  color: var(--ink);
}
.sidebar-card .feat-row { gap: 5px; }

.related-links { list-style: none; }
.related-links li { padding: 9px 0; border-bottom: 1px solid var(--line-p); }
.related-links li:last-child { border-bottom: none; }
.related-links a {
  font-size: 13.5px; color: var(--green-deep);
  text-decoration: none; display: flex;
  align-items: center; justify-content: space-between;
}
.related-links a::after { content: '→'; font-size: 12px; flex: none; }
.related-links a:hover { text-decoration: underline; }

/* ─── Feature page viz hero ─── */
.feat-viz-hero {
  background: var(--viz-bg);
  border-radius: 18px;
  padding: 32px;
  margin: 28px 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feat-viz-hero .vlabel { position: absolute; top: 18px; left: 22px; font-size: 11px; }

/* how-it-works steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 42px;
  border-bottom: 1px solid var(--line-p);
  font-size: 15px; color: var(--text-dark); line-height: 1.55;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  font-family: var(--mono); font-size: 11px;
  color: var(--green-deep); font-weight: 500;
  background: rgba(15, 110, 86, .1);
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  left: 0;
  top: 16px;
}

/* ─── CTA strip ─── */
.cta-strip {
  background: var(--navy);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0 60px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74,222,128,.14) 0%, transparent 68%);
  top: -100px;
  right: 160px;
  pointer-events: none;
}
.cta-strip p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; max-width: 560px; position: relative; z-index: 1; margin: 0; }
.cta-strip p strong {
  color: #fff;
  font-weight: 600;
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cta-btn {
  background: var(--accent); color: var(--navy);
  font-family: var(--body); font-size: 14px; font-weight: 600;
  padding: 13px 30px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; transition: all .2s;
  position: relative; z-index: 1; flex-shrink: 0;
  letter-spacing: -.01em;
}
.cta-btn:hover {
  background: #6ee7a4;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,222,128,.3);
}

/* ─── Use-case closing pull-quote ─── */
.use-case-close {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--green-deep);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Product mockup visualizations ─── */
.product-viz-wrap {
  margin: 32px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.12);
}
.product-viz {
  display: block;
  width: 100%;
  height: auto;
}
.viz-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
  opacity: .75;
}

/* ─── Insight cards (team pages) ─── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 0;
}
.insight-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 58, .1);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insight-card .ic-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 500;
  margin: 0;
}
.insight-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 6px;
  line-height: 1.3;
}
.insight-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ─── Hash-routed product panel ─── */
#product-panel:not([hidden]) {
  display: block;
}

.product-panel-back {
  padding-top: 28px;
  padding-bottom: 0;
}

.panel-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  margin-bottom: 8px;
}

.panel-back-link:hover {
  text-decoration: underline;
}

/* ─── Utility ─── */
@media(prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; border-radius: 4px; }
