/* Shared styles for www.pharmac3.com: the home page and the audience pages. */

:root {
  --pc3-navy: #14213D;
  --pc3-navy-light: #1B2A4A;
  --pc3-teal: #1E7A73;
  --pc3-teal-light: #E4F1EF;
  --pc3-bg: #F7F8FA;
  --pc3-border: #E2E5EA;
  --pc3-brand-dark: #020819;
  --pc3-brand-dark-2: #0B1220;
  --pc3-teal-accent: #62D6D3;
  --pc3-teal-accent-2: #51B3D1;
  --pc3-slate-300: #CBD5E1;
  --pc3-slate-400: #94A3B8;
  --pc3-slate-500: #64748B;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pc3-bg);
  color: var(--pc3-navy);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2px solid var(--pc3-teal-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(2, 8, 25, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo { height: 42px; width: auto; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--pc3-slate-300);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-inner .btn, .nav-links a { white-space: nowrap; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 640px) {
  .nav-inner .btn { white-space: nowrap; font-size: 13px; padding: 8px 12px; }
  .nav-inner { padding: 0 16px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.btn-teal { background: var(--pc3-teal); color: #fff; }
.btn-teal:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 12px 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--pc3-brand-dark);
  padding: 64px 24px 88px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  max-width: 200vw;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(90px);
  background: radial-gradient(closest-side, var(--pc3-teal-accent), var(--pc3-teal-accent-2), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-logo {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto 28px;
  transform: translateX(-40px);
}
@media (max-width: 640px) { .hero-logo { height: 68px; } }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pc3-teal-accent);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 780px;
  margin: 0 auto;
  text-wrap: balance;
  line-height: 1.15;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--pc3-slate-300);
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px auto 0;
  font-size: 14px;
  color: var(--pc3-slate-300);
}
.stat-strip span.sep { color: var(--pc3-teal-accent); }

.frame-wrap { max-width: 960px; margin: 56px auto 0; }
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  background: var(--pc3-brand-dark-2);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-shot-note { font-size: 12px; color: var(--pc3-slate-500); margin: 12px 0 0; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

/* ---------- Generic section ---------- */
.section { padding: 80px 24px; }
.section-light { background: var(--pc3-bg); }
.section-white { background: #fff; border-top: 1px solid var(--pc3-border); }
.section-dark { background: var(--pc3-brand-dark); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pc3-navy);
}
.section-dark h2 { color: #fff; }
.section-head p {
  color: var(--pc3-slate-500);
  margin: 12px 0 0;
  line-height: 1.6;
}
.section-dark .section-head p { color: var(--pc3-slate-300); }

/* ---------- The Challenge ---------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .challenge-grid { grid-template-columns: 1fr; } }
.challenge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 22px;
}
.challenge-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #fff; }
.challenge-card p { font-size: 14px; color: var(--pc3-slate-300); margin: 0; line-height: 1.6; }

/* ---------- Process (Source -> Score -> Surface -> Staff) ---------- */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 860px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-row { grid-template-columns: 1fr; } }
.process-step {
  background: #fff;
  border: 1px solid var(--pc3-border);
  border-radius: 8px;
  padding: 22px 20px;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pc3-teal-light);
  color: var(--pc3-teal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--pc3-navy); }
.process-step p { font-size: 13px; color: var(--pc3-slate-500); margin: 0; line-height: 1.55; }

/* ---------- Module grid ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .module-grid { grid-template-columns: 1fr; } }

.module-card {
  background: #fff;
  border: 1px solid var(--pc3-border);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(20, 33, 61, 0.18);
  border-color: rgba(30, 122, 115, 0.3);
}
.module-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--pc3-teal);
  background: linear-gradient(135deg, var(--pc3-teal-light), #fff);
}
.module-icon svg { width: 18px; height: 18px; }
.module-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--pc3-navy); }
.module-card p { font-size: 14px; color: var(--pc3-slate-500); margin: 0; line-height: 1.5; }

/* ---------- Stage gates & packages ---------- */
.pkg-row {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  gap: 16px;
}
.pkg {
  border: 1px solid var(--pc3-border);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}
.pkg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--pc3-teal-accent);
}
.pkg-name { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pc3-navy); }
.pkg-scope { font-size: 12px; color: var(--pc3-slate-500); }
.gate-row { display: grid; gap: 10px; }
.gate-row.n4 { grid-template-columns: repeat(4, 1fr); }
.gate-row.n2 { grid-template-columns: repeat(2, 1fr); }
.gate {
  background: var(--pc3-bg);
  border-radius: 6px;
  padding: 12px;
}
.gate-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc3-teal);
  font-variant-numeric: tabular-nums;
}
.gate h3 { font-size: 14px; font-weight: 600; margin: 4px 0 6px; color: var(--pc3-navy); line-height: 1.3; }
.gate p { font-size: 12px; color: var(--pc3-slate-500); margin: 0; line-height: 1.45; }
.pkg-note { font-size: 14px; color: var(--pc3-slate-500); margin: 20px auto 0; line-height: 1.6; max-width: 760px; text-align: center; }
@media (max-width: 1100px) {
  .pkg-row { grid-template-columns: 1fr 1fr; }
  .pkg:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pkg-row { grid-template-columns: 1fr; }
  .gate-row.n4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Portfolio & Group Readiness ---------- */
.audience-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
}
.audience-card .eyebrow { margin-bottom: 8px; }
.audience-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.audience-card > p { font-size: 14px; color: var(--pc3-slate-300); margin: 0 0 14px; line-height: 1.6; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pc3-slate-300);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--pc3-teal-accent), var(--pc3-teal-accent-2));
}
.tick-list strong { color: #fff; font-weight: 600; }
.privacy-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--pc3-slate-300);
  line-height: 1.6;
  border-left: 2px solid var(--pc3-teal-accent);
  padding-left: 14px;
}

/* ---------- Product screenshots ---------- */
.shot { margin: 32px 0 0; }
.browser-frame.light {
  border-color: var(--pc3-border);
  box-shadow: 0 18px 40px -18px rgba(20, 33, 61, 0.28);
  background: #fff;
}
.browser-frame.light .browser-chrome { background: #F1F4F7; border-bottom-color: var(--pc3-border); }
.browser-frame.light .browser-dot { background: #CBD5E1; }
.shot figcaption { font-size: 13px; color: var(--pc3-slate-500); margin-top: 10px; text-align: center; }
.audience-row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 24px;
  align-items: center;
}
.audience-row + .audience-row { margin-top: 24px; }
.audience-row .shot { margin: 0; }
.audience-row.reverse { grid-template-columns: 8fr 4fr; }
.audience-row.reverse .audience-card { order: 2; }
.section-dark .browser-frame.light { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6); }
.shot-note { font-size: 12px; color: var(--pc3-slate-400); margin: 16px 0 0; }
@media (max-width: 900px) {
  .audience-row, .audience-row.reverse { grid-template-columns: 1fr; }
  .audience-row.reverse .audience-card { order: 0; }
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--pc3-navy); }
.trust-item p { font-size: 14px; color: var(--pc3-slate-500); margin: 0; line-height: 1.5; }

/* ---------- Services ---------- */
.services-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--pc3-bg);
  border: 1px solid var(--pc3-border);
  border-radius: 8px;
  padding: 24px;
}
.services-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pc3-slate-400);
  margin: 0 0 12px;
}
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  font-size: 14px;
  color: var(--pc3-navy);
  background: #fff;
  border: 1px solid var(--pc3-border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--pc3-brand-dark); padding: 64px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--pc3-slate-300); margin: 12px 0 0; }
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Evaluation form ---------- */
.eval-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  max-width: 640px;
  margin: 28px auto 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 24px;
}
@media (max-width: 560px) { .eval-form { grid-template-columns: 1fr; padding: 18px; } }
.eval-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.field .opt { color: var(--pc3-slate-400); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px 12px;
}
.field select option { color: var(--pc3-navy); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pc3-teal-accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #F08A7E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: default; }
.form-status { margin: 0; font-size: 14px; color: var(--pc3-slate-300); }
.form-status.ok { color: var(--pc3-teal-accent); }
.form-status.err { color: #F4A79D; }
.cta-band .form-alt { font-size: 13px; margin-top: 16px; }
.cta-band .form-alt a { color: var(--pc3-teal-accent); }

/* ---------- Footer ---------- */
footer {
  background: var(--pc3-brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 52px; width: auto; }
.footer-brand span { font-size: 14px; color: var(--pc3-slate-400); }
.footer-email { font-size: 14px; color: var(--pc3-teal-accent); text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
footer .copyright { font-size: 12px; color: var(--pc3-slate-500); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-card { transition: none; }
}

/* ---------- Nav dropdown ("Who it's for") ---------- */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.nav-dd-toggle:hover, .nav-dd.open .nav-dd-toggle { color: #fff; }
.nav-dd-toggle svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.nav-dd.open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  padding: 8px;
  background: var(--pc3-brand-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-dd.open .nav-dd-menu { display: block; }
@media (hover: hover) { .nav-dd:hover .nav-dd-menu { display: block; } }
.nav-dd-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pc3-slate-300);
  white-space: normal;
}
.nav-dd-menu a:hover, .nav-dd-menu a:focus-visible, .nav-dd-menu a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-dd-menu a span { display: block; font-size: 12px; color: var(--pc3-slate-500); margin-top: 2px; }

/* ---------- Footer audience links (the nav links are hidden on phones) ---------- */
.footer-audiences { display: flex; flex-wrap: wrap; gap: 8px 24px; width: 100%; padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.footer-audiences a { color: var(--pc3-slate-300); text-decoration: none; }
.footer-audiences a:hover { color: #fff; }

/* ---------- Audience pages ---------- */
.page-hero { padding-bottom: 72px; }
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 44px auto 0;
}
@media (max-width: 640px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.stat b { display: block; font-size: 30px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--pc3-slate-300); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .value-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: #fff; border: 1px solid var(--pc3-border); border-radius: 10px; padding: 24px; }
.section-light .value-card { background: #fff; }
.value-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--pc3-navy); }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--pc3-slate-500); margin: 0; }
.value-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pc3-teal-light); color: var(--pc3-teal); font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.tag-caption { text-align: center; font-size: 14px; color: var(--pc3-slate-500); margin: 18px 0 0; }

.data-table { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--pc3-border); border-radius: 10px; overflow: hidden; font-size: 14px; }
.data-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pc3-slate-500); background: var(--pc3-bg); padding: 12px 16px; border-bottom: 1px solid var(--pc3-border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--pc3-border); color: var(--pc3-navy); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.quote-caption { max-width: 640px; margin: 20px auto 0; text-align: center; font-size: 16px; line-height: 1.6; color: var(--pc3-navy); font-weight: 500; }
.illus { display: block; text-align: center; font-size: 12px; color: var(--pc3-slate-400); margin: 12px 0 0; }
.section-dark .illus { color: var(--pc3-slate-400); }

.tier-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 860px; margin: 0 auto; }
@media (max-width: 640px) { .tier-strip { grid-template-columns: 1fr; } }
.tier { display: block; text-decoration: none; background: #fff; border: 1px solid var(--pc3-border); border-top: 3px solid var(--pc3-teal-accent); border-radius: 10px; padding: 18px; text-align: center; }
.tier:hover { border-color: rgba(30, 122, 115, 0.4); border-top-color: var(--pc3-teal-accent); }
.tier b { display: block; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pc3-navy); }
.tier span { display: block; font-size: 13px; color: var(--pc3-slate-500); margin-top: 4px; }
.text-link { color: var(--pc3-teal); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-dark .text-link { color: var(--pc3-teal-accent); }
.center-link { text-align: center; margin: 20px 0 0; font-size: 14px; }

.callout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .callout-2 { grid-template-columns: 1fr; } }
.callout { border-left: 3px solid var(--pc3-teal-accent); background: rgba(255, 255, 255, 0.03); border-radius: 0 10px 10px 0; padding: 22px 24px; }
.callout h3 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.callout p { font-size: 15px; line-height: 1.65; color: var(--pc3-slate-300); margin: 0; }
.leverage { max-width: 760px; margin: 0 auto; text-align: center; font-size: 19px; line-height: 1.6; color: #fff; }

/* investor: sample portfolio bars */
.bars { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--pc3-border); border-radius: 10px; padding: 8px 20px; }
.bar-row { display: grid; grid-template-columns: 110px 170px 1fr 40px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--pc3-border); font-size: 14px; color: var(--pc3-navy); }
.bar-row:last-child { border-bottom: 0; }
.bar-row.head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pc3-slate-500); padding: 10px 0; }
.bar-row .bar-gate { color: var(--pc3-slate-500); }
.bar-track { height: 10px; border-radius: 999px; background: #EEF2F5; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.bar-row .score { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row.flag { background: #FFF6F4; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.c-good { background: #2BA59B; } .c-mid { background: #E9A23B; } .c-low { background: #E06B5B; }
@media (max-width: 600px) {
  .bar-row { grid-template-columns: 1fr 40px; gap: 6px 10px; }
  .bar-row .bar-gate { grid-column: 1; order: 2; font-size: 12px; }
  .bar-row .bar-track { grid-column: 1 / -1; order: 3; }
  .bar-row .score { grid-column: 2; grid-row: 1; }
  .bar-row.head { display: none; }
}

/* group: function-by-subsidiary grid */
.fgrid { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 4px; font-size: 14px; }
.fgrid th { font-size: 12px; font-weight: 600; color: var(--pc3-slate-500); padding: 6px 8px; text-align: center; }
.fgrid th.fn { text-align: left; color: var(--pc3-navy); font-size: 14px; background: #fff; border: 1px solid var(--pc3-border); border-radius: 6px; padding: 10px 12px; white-space: nowrap; }
.fgrid td { text-align: center; font-weight: 600; border-radius: 6px; padding: 11px 6px; font-variant-numeric: tabular-nums; }
.fgrid td.ok { background: #DDF3EF; color: #146E66; }
.fgrid td.mid { background: #FBEBD3; color: #8A5A12; }
.fgrid td.weak { background: #FCE1DC; color: #A23B2C; }
.fgrid td.grp { background: #fff; border: 1px solid var(--pc3-border); color: var(--pc3-navy); }
.fgrid td.note { background: none; text-align: left; font-weight: 500; font-size: 12px; color: var(--pc3-slate-500); white-space: nowrap; }
.fgrid td.note b { color: #A23B2C; }
.grid-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--pc3-slate-500); }
.grid-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* what stays inside each company */
.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto; }
@media (max-width: 700px) { .boundary { grid-template-columns: 1fr; } }
.boundary > div { background: #fff; border: 1px solid var(--pc3-border); border-radius: 10px; padding: 22px 24px; }
.boundary h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; color: var(--pc3-navy); }
.boundary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.boundary li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: var(--pc3-slate-500); }
.boundary li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.boundary .sees li::before { content: "✓"; color: var(--pc3-teal); }
.boundary .private li::before { content: "✕"; color: #C2554A; }

.provenance { max-width: 720px; margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.6; color: var(--pc3-slate-500); font-style: italic; }
.section-dark .provenance { color: var(--pc3-slate-300); }
.cta-band .cta-detail { max-width: 640px; margin: 12px auto 0; }
.provenance-band { padding: 40px 24px; }
@media (max-width: 600px) {
  .fgrid { border-spacing: 3px; font-size: 13px; }
  .fgrid .long, .fgrid td.note, .fgrid th.note-h { display: none; }
  .fgrid th.fn { font-size: 13px; padding: 8px; white-space: normal; }
  .fgrid td { padding: 9px 2px; }
}

/* ======================================================================
   Animated stats and sample dashboards (audience pages)
   Final state is the default; site.js adds .anim to <html> and .in to
   each [data-animate] block as it scrolls into view. Reduced motion or
   no JavaScript: everything simply shows at its final value.
   ====================================================================== */
.stat { position: relative; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #B6F0E0, #62C9EC); opacity: 0.85; }
.stat:hover { transform: translateY(-2px); border-color: rgba(98, 214, 211, 0.35); }
.stat b {
  font-size: 38px;
  background: linear-gradient(135deg, #B6F0E0, #62C9EC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0F1D2D 0%, #0A1422 100%);
  border: 1px solid rgba(98, 214, 211, 0.18);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  color: #fff;
}
.dash::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(98, 214, 211, 0.16), transparent 70%);
  pointer-events: none;
}
.dash > * { position: relative; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-title { font-size: 15px; font-weight: 600; }
.dash-title small { display: block; font-size: 12px; font-weight: 400; color: var(--pc3-slate-400); margin-top: 2px; }
.chip { font-size: 12px; font-weight: 500; color: #B6F0E0; border: 1px solid rgba(98, 214, 211, 0.35); border-radius: 999px; padding: 4px 10px; }

.kpis { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { border-radius: 12px; padding: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.kpi-label { font-size: 12px; color: var(--pc3-slate-400); }
.kpi-value { font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--pc3-slate-400); margin-left: 2px; }
.kpi-sub { font-size: 12px; color: var(--pc3-slate-300); margin-top: 4px; }
.kpi.ring-kpi { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--pc3-slate-300); }
.dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.ring { width: 92px; height: 92px; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-track { stroke: rgba(255, 255, 255, 0.08); }
.ring .ring-val { stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: var(--off); transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.ring text { fill: #fff; font: 600 28px var(--font-sans); text-anchor: middle; dominant-baseline: central; }

.g-good { background: linear-gradient(90deg, #1E8C83, #62D6D3); }
.g-mid { background: linear-gradient(90deg, #D98A26, #F5C76B); }
.g-low { background: linear-gradient(90deg, #C9503F, #F28B7D); }
.t-good { color: #7FE3D6; } .t-mid { color: #F5C76B; } .t-low { color: #FF9F91; }
.bg-good { background: #2BA59B; } .bg-mid { background: #E9A23B; } .bg-low { background: #E06B5B; }

.drows { border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); padding: 4px 16px; }
.drow { display: grid; grid-template-columns: 120px 190px 1fr 56px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.drow:last-child { border-bottom: 0; }
.drow .name { font-weight: 500; }
.drow .gate-pill { justify-self: start; font-size: 12px; color: var(--pc3-slate-300); background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.dtrack { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dfill { display: block; height: 100%; width: var(--w); border-radius: 999px; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s); }
.dscore { justify-self: end; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.drow.flag { margin: 0 -16px; padding-left: 16px; padding-right: 16px; background: linear-gradient(90deg, rgba(224, 107, 91, 0.16), rgba(224, 107, 91, 0.02)); box-shadow: inset 3px 0 0 #E06B5B; }
.flag-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #FF9F91; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF7A66; box-shadow: 0 0 0 0 rgba(255, 122, 102, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 102, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 102, 0); } }
@media (max-width: 640px) {
  .drow { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .drow .gate-pill { grid-column: 1; }
  .drow .dtrack { grid-column: 1 / -1; }
  .drow .dscore { grid-column: 2; grid-row: 1; }
  .flag-tag { display: flex; margin: 4px 0 0; }
}
.dash-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(224, 107, 91, 0.1); border: 1px solid rgba(224, 107, 91, 0.3); font-size: 14px; line-height: 1.55; color: #FFD9D2; }
.dash-note .pulse-dot { margin-top: 6px; flex-shrink: 0; }
.dash + .illus, .dash ~ .illus { color: var(--pc3-slate-400); }

/* health bars (leaders snapshot) */
.hbars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); padding: 16px; }
@media (max-width: 640px) { .hbars { grid-template-columns: 1fr; } }
.hbar-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--pc3-slate-300); margin-bottom: 6px; }
.hbar-top b { color: #fff; font-weight: 600; }
.hstack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.hstack span { display: block; height: 100%; width: var(--w); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s); }

/* group heatmap on dark */
.heat { width: 100%; border-collapse: separate; border-spacing: 5px; font-size: 14px; }
.heat th { font-size: 12px; font-weight: 600; color: var(--pc3-slate-300); padding: 4px 6px; text-align: center; }
.heat th.fn { text-align: left; font-size: 14px; color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; padding: 10px 12px; white-space: nowrap; }
.heat td { text-align: center; font-weight: 700; border-radius: 8px; padding: 12px 6px; font-variant-numeric: tabular-nums; transition: opacity 0.5s ease var(--d, 0s), transform 0.5s ease var(--d, 0s); }
.heat td.ok { background: rgba(43, 165, 155, 0.22); color: #7FE3D6; }
.heat td.mid { background: rgba(233, 162, 59, 0.2); color: #F5C76B; }
.heat td.weak { background: rgba(224, 107, 91, 0.26); color: #FF9F91; }
.heat td.solo { box-shadow: 0 0 0 2px #FF7A66, 0 0 22px rgba(255, 122, 102, 0.45); }
.heat tr.hot td.weak { box-shadow: 0 0 0 1px rgba(255, 140, 120, 0.55), 0 0 18px rgba(224, 107, 91, 0.35); }
.heat td.grp { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.heat td.note { background: none; text-align: left; font-weight: 500; font-size: 12px; color: var(--pc3-slate-300); white-space: nowrap; }
.heat td.note b { color: #FF9F91; }
.heat .badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #0A1422; background: linear-gradient(90deg, #FF9F91, #F5C76B); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px; }
.heat-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 12px; color: var(--pc3-slate-300); }
.heat-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 640px) {
  .heat { border-spacing: 3px; font-size: 13px; }
  .heat .long, .heat td.note, .heat th.note-h, .heat .badge { display: none; }
  .heat th.fn { font-size: 13px; padding: 8px; white-space: normal; }
  .heat td { padding: 10px 2px; }
}

/* light callouts (investor page) and light leverage text (group page) */
.section-white .callout, .section-light .callout { background: #fff; border: 1px solid var(--pc3-border); border-left: 3px solid var(--pc3-teal-accent); }
.section-white .callout h3, .section-light .callout h3 { color: var(--pc3-navy); }
.section-white .callout p, .section-light .callout p { color: var(--pc3-slate-500); }
.section-white .leverage, .section-light .leverage { color: var(--pc3-navy); }

/* start states, only when animation is on */
html.anim [data-animate]:not(.in) .dfill,
html.anim [data-animate]:not(.in) .hstack span { width: 0; }
html.anim [data-animate]:not(.in) .ring-val { stroke-dashoffset: 326.7; }
html.anim [data-animate]:not(.in) .heat td:not(.note) { opacity: 0; transform: scale(0.9); }
html.anim [data-animate]:not(.in) .kpi { opacity: 0; transform: translateY(8px); }
.kpi { transition: opacity 0.6s ease var(--d, 0s), transform 0.6s ease var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  .stat, .dfill, .hstack span, .ring .ring-val, .heat td, .kpi { transition: none; }
}
@media (max-width: 640px) {
  .dash { padding: 16px 12px; border-radius: 12px; }
  .kpi.ring-kpi { grid-column: 1 / -1; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 26px; }
  .drows { padding: 4px 12px; }
  .drow.flag { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 640px) {
  .heat { border-spacing: 2px; }
  .heat th.fn { padding: 8px 6px; font-size: 12px; }
  .heat th { padding: 4px 2px; }
}
