/* ==========================================================================
   ChorusRx brand theme: aligns the LEAD ACO and SNP landing pages with the
   redesigned chorusrx.com.

   Loaded AFTER styles.css (and snp.css) on every page. It works in two moves:
   1) redefine the design tokens those files already use, so colour carries
      through every component automatically;
   2) restyle the few components whose SHAPE changes (header, hero, buttons,
      cards, dark sections, footer).

   Source of the values: computed styles on chorusrx.com (Oct 2026).
     navy #194370   blue #027ac0   teal #28a99e   amber #ffaf10 -> #f48414
     off-white page #fafafa, 12px cards, 10px buttons, pill header CTA
     headings/nav/buttons: coolvetica (Adobe Fonts kit lmf4riv); body: Roboto
   ========================================================================== */

:root {
  /* Palette */
  --navy: #194370;
  --blue: #027ac0;
  --blue-dark: #0a5f98;          /* text-safe blue on white */
  --blue-light: #4cc9bd;         /* accent on dark surfaces (a light teal) */
  --teal: #28a99e;               /* brand teal: borders, fills, large type */
  --teal-dark: #178379;          /* text-safe teal (4.6:1 on white) */
  --navy-900: #14365d;           /* deepest navy: footer, gradient ends */
  --navy-800: #194370;           /* headings, dark cards */
  --navy-700: #194370;
  --navy-600: #4a74a3;
  --amber: #ffaf10;
  --amber-deep: #f48414;
  --amber-light: #ffd23f;
  --ink: #1d2733;

  /* Neutrals */
  --paper: #ffffff;
  --paper-2: #eaf5f6;            /* faint teal tint for icon chips and bars */
  --line: #d3e2e6;
  --line-soft: #e6eff1;
  --muted: #55646f;

  /* Type: coolvetica via the chorusrx.com Adobe Fonts kit, with a close fallback */
  --font-display: coolvetica, "Trebuchet MS", "Segoe UI", Roboto, sans-serif;
  --font-label: coolvetica, "Trebuchet MS", "Segoe UI", Roboto, sans-serif;
  --font-body: Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(25, 67, 112, .10);
  --shadow: 0 5px 14px rgba(25, 67, 112, .16);
  --shadow-lg: 0 10px 28px rgba(25, 67, 112, .22);

  --grad-amber: linear-gradient(180deg, #ffaf10 0%, #f48414 100%);
  --grad-science: linear-gradient(180deg, #24998f 0%, #1d6f86 26%, #194370 58%, #163b64 100%);
}

/* ---------- Base ---------- */
body { background: #fafafa; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }
h1 { font-weight: 700; }
h2 { font-weight: 700; color: var(--navy); }
h3 { font-weight: 500; color: var(--navy); }
h4 { font-weight: 700; color: var(--navy); }
a { color: var(--blue-dark); }
::selection { background: var(--amber-light); color: var(--navy-900); }
:focus-visible { outline-color: var(--teal); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .07em;
  color: var(--teal-dark);
}
.eyebrow::before { background: var(--teal); height: 4px; border-radius: 3px; }
.lede { color: var(--muted); }

/* ---------- Sections ---------- */
.section--paper { background: #fff; }
.section--navy, .cta, .picker, .team { background: var(--grad-science); color: #e8f1f7; }
.section--navy .eyebrow, .cta .eyebrow, .picker .eyebrow, .team .eyebrow,
.picker__head .eyebrow { color: #fff; }
.section--navy .eyebrow::before, .cta .eyebrow::before, .picker .eyebrow::before,
.team .eyebrow::before { background: var(--amber); }
.section--navy .lede, .cta .lede { color: #dbe8f1; }
.picker__head p, .team__cap { color: #dbe8f1; }

/* ---------- Buttons: 10px radius, mixed case, no shout ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 26px;
  border-radius: 10px;
  border-width: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(2, 122, 192, .9); }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--amber { background: var(--grad-amber); color: #10294a; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(244, 132, 20, .95); }
.btn--amber:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: var(--teal-dark); color: #fff; border: 0; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--outline, .btn--ghost-dark { background: transparent; color: var(--navy); border: 2px solid var(--blue); }
.btn--outline:hover, .btn--ghost-dark:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .95rem; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: none;
}
.announce strong { color: var(--amber-light); }

/* ---------- Header ---------- */
.header { background: #fff; backdrop-filter: none; border-bottom: 0; box-shadow: 0 2px 12px rgba(25, 67, 112, .12); }
.header.is-stuck { border-bottom-color: transparent; box-shadow: 0 4px 16px rgba(25, 67, 112, .18); }
.scroll-progress { background: linear-gradient(90deg, var(--teal), var(--blue) 60%, var(--amber)); }
.header__logo img { height: 74px; }
.header__inner { gap: 20px; }
.header__nav { gap: clamp(12px, 1.3vw, 22px); }
.header__nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.86rem, 1vw, .98rem);
  letter-spacing: .01em;
  color: var(--navy);
  border-bottom: 3px solid transparent;
}
.header__nav a:hover, .header__nav a.is-active { color: var(--blue); border-bottom-color: var(--teal); }
.header__cta .btn {
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  background: var(--blue);
  box-shadow: none;
}
.header__cta .btn::after { content: "\2192"; margin-left: 6px; }
.header__cta .btn:hover { background: var(--navy); }
@media (max-width: 1180px) {
  .header__logo img { height: 58px; }
  .header__nav { border-top-color: var(--line-soft); }
  .header__nav::after { background: linear-gradient(90deg, transparent, #fff 65%); }
}

@media (max-width: 640px) {
  .header__logo img { height: 44px; }
  .header__inner { padding-block: 10px; gap: 8px 12px; }
  .header__cta .btn { padding: 9px 15px; font-size: .86rem; }
  .header__cta .btn::after { display: none; }
  .header__nav a { font-size: .9rem; }
}

/* ---------- Hero: a rounded navy panel floating on the off-white page ---------- */
.hero {
  margin: 20px clamp(12px, 2.4vw, 34px) 0;
  border-radius: 28px;
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(40, 169, 158, .55), transparent 62%),
    radial-gradient(700px 420px at 0% 110%, rgba(2, 122, 192, .45), transparent 60%),
    linear-gradient(160deg, #1c4d7c 0%, #194370 52%, #143a63 100%);
  box-shadow: 0 16px 36px -16px rgba(25, 67, 112, .6);
}
.hero::after { display: none; }
.hero__deco { opacity: .20; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { font-weight: 700; }
.hero h1 em { color: var(--amber-light); }
.hero__sub { color: #e1edf6; }
.hero__note { color: #cfe1ee; }
.countdown { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .28); border-radius: 18px; }
.countdown__label { font-family: var(--font-display); font-weight: 500; letter-spacing: .08em; color: #fff; font-size: .9rem; }
.cd { background: rgba(20, 54, 93, .55); }
.cd__n { font-family: var(--font-display); font-weight: 700; }
.cd__u { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; color: #cfe1ee; }
.countdown__foot { color: #dbe8f1; border-top-color: rgba(255, 255, 255, .22); }

/* SNP hero: plan-flow chips and photo frame */
.flow__step { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); border-radius: 14px; }
.flow__step:not(:last-child)::after { border-color: var(--amber); }
.flow__ico { background: rgba(40, 169, 158, .45); color: #fff; }
.flow__txt b { font-family: var(--font-display); font-weight: 500; }
.flow__step--result { background: var(--grad-amber); }
.flow__step--result .flow__ico { background: var(--navy); color: var(--amber-light); }
.flow__step--result .flow__txt b { color: #10294a; }
.slides__frame {
  border: 0;
  border-bottom: 6px solid var(--teal);
  border-radius: 22px;
  box-shadow: 0 14px 30px -10px rgba(10, 30, 60, .6);
}
.slides__dot::after { background: var(--amber); }

/* ---------- Stat strip ---------- */
.stats { background: transparent; border-bottom: 0; }
.stats__grid { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.stat__n { font-family: var(--font-display); font-weight: 700; color: var(--blue); letter-spacing: 0; }
.stat { border-right-color: var(--line-soft); }

/* ---------- Cards ---------- */
.card {
  border: 2px solid rgba(40, 169, 158, .45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.card h3 { font-weight: 500; }
.card__icon { border-radius: 12px; background: var(--paper-2); color: var(--teal-dark); }
.card--accent { border-top: 6px solid var(--teal); border-left-color: rgba(40, 169, 158, .45); }

/* Solid colour cards in the navy / teal / blue rotation used on chorusrx.com */
.card--navy { background: var(--navy); border: 0; color: #fff; box-shadow: var(--shadow); }
.card--navy:nth-child(3n + 2) { background: var(--teal-dark); }
.card--navy:nth-child(3n) { background: var(--blue); }
.card--navy h3 { color: #fff; }
.card--navy p { color: #f1f7fb; }
.num-badge { background: var(--amber); color: #10294a; font-family: var(--font-display); }

/* ---------- Charts, tables, tags ---------- */
.chartbox, .tablewrap, .acc { border-radius: var(--radius); border-color: var(--line); }
thead th { background: var(--navy); font-family: var(--font-display); font-weight: 500; font-size: .9rem; letter-spacing: .03em; text-transform: none; }
td strong { color: var(--navy); }
tbody tr:nth-child(even) { background: #f8fbfb; }
.tag { font-family: var(--font-display); font-weight: 500; letter-spacing: .03em; text-transform: none; font-size: .78rem; background: var(--paper-2); color: var(--teal-dark); }
.tag--amber { background: #fff3d8; color: #8a5200; }
.tag--green { background: #e0f4ec; color: #0f6a49; }
.compare .col-us { background: rgba(40, 169, 158, .10); }
.compare thead .col-us { background: var(--teal-dark); }

/* ---------- Timeline (sits on the teal-to-navy section) ---------- */
.tl { border-left-color: rgba(255, 255, 255, .28); }
.tl::before { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 175, 16, .22); }
.tl__when { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: .95rem; color: var(--amber-light); }
.tl p { color: #e0ecf5; }
.tl__icon { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ---------- Calculator ---------- */
.calc { border-radius: var(--radius-lg); border-color: var(--line); }
.calc__out { background: linear-gradient(165deg, #1f8c8a 0%, #1d6a85 30%, #194370 62%, #163b64 100%); color: #e8f1f7; }
.field label { color: var(--navy); }
.field label .val { font-family: var(--font-display); color: var(--blue); }
input[type="range"]::-webkit-slider-thumb { background: var(--teal); }
input[type="range"]::-moz-range-thumb { background: var(--teal); }
.segmented label { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: .95rem; border-radius: 10px; border-color: var(--line); }
.segmented label:hover { border-color: var(--teal); color: var(--navy); }
.segmented input:checked + label { background: var(--blue); border-color: var(--blue); }
.calc__headline { font-family: var(--font-display); letter-spacing: 0; }
.calc__headline-label { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: .95rem; color: #fff; }
.calc__sub, .calc__row span:first-child { color: #d7e6f1; }
.calc__row span:last-child { font-family: var(--font-display); }
.calc__disclaimer { color: #c7dbe9; }

/* Footnote markers must stay legible on every dark surface */
.calc__out sup.fn, .cta sup.fn, .picker sup.fn, .team sup.fn, .hero sup.fn { color: var(--amber-light); }

/* ---------- Accordion, quote ---------- */
.acc__btn { font-family: var(--font-body); color: var(--navy); }
.acc__ico { background: var(--paper-2); color: var(--teal-dark); }
.acc__btn[aria-expanded="true"] .acc__ico { background: var(--teal-dark); }
.quote { border-left-color: var(--teal); color: var(--navy); }

/* ---------- Call to action + form ---------- */
.cta h2, .team h2 { color: #fff; }
.checklist li { color: #eaf3f9; }
.checklist li svg { color: var(--amber); }
.form { border-radius: var(--radius-lg); border: 4px solid var(--teal); box-shadow: var(--shadow-lg); }
.form h3 { color: var(--navy); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2, 122, 192, .16); }

/* ---------- Footer: navy, like chorusrx.com ---------- */
.footer { background: var(--navy); color: #cfe0ee; }
.footer h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: .05em; text-transform: none; font-size: 1.05rem; }
.footer a { color: #cfe0ee; }
.footer a:hover { color: #fff; }
.footer__bar { color: #aac4d8; border-top-color: rgba(255, 255, 255, .2); }
.footer img { background: none; padding: 0; border-radius: 0; height: 58px; }
.back-to-top { background: var(--navy); }
.back-to-top:hover { background: var(--teal-dark); }
.skip { background: var(--amber); font-family: var(--font-display); text-transform: none; }

/* ---------- SNP page components ---------- */
.exec__col { border-radius: var(--radius); }
.exec__col--need { background: var(--paper-2); border-top-color: var(--teal); }
.exec__col--do { background: var(--navy); border-top-color: var(--teal); }
.exec__col--gain { border-color: var(--amber); }
.exec__tag { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.vpanel, .cohort, .plain > div, .pair, .jget__grid li, .levers--row li { border-radius: var(--radius); }
.cohort, .plain > div:first-child { border-top-color: var(--teal); }
.econ__q, .jex__t, .econ__foot, .jget__t { font-family: var(--font-display); font-weight: 500; }
.ring span, .bignum span, .hbar__v, .vbar b, .rung b, .stack span, .big .big__n, .vrow__n, .ptile__n { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.ring { background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--paper-2) 0); }
.bignum { border-color: var(--teal); }
.hbar__f { background: var(--teal); }
.vbar__f { background: var(--teal); }
.rung em { font-family: var(--font-display); }
.track__steps::before { background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 35%, var(--teal) 68%, var(--amber) 100%); }
.tstep__node { border-color: var(--teal); }
.tstep--plan .tstep__node { border-color: var(--navy); }
.tstep__who, .chip { font-family: var(--font-display); font-weight: 500; letter-spacing: .03em; text-transform: none; font-size: .8rem; background: var(--blue); }
.tstep--plan .tstep__who { background: var(--navy); }
.jlens { border-left-color: var(--teal); }
.jlens__t, .jex__row b, .cohort__k { font-family: var(--font-display); font-weight: 500; letter-spacing: .05em; text-transform: none; font-size: .95rem; color: var(--teal-dark); }
.jex__row li::before { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
details.more > summary { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 1rem; border-color: var(--teal); color: var(--navy); }
details.more > summary:hover { background: var(--paper-2); }
.big .big__n { color: var(--blue); }
.vrow h3 { color: #fff; }

/* Plan picker: white cards with the teal border, as on chorusrx.com's science section */
.ptile { background: #fafafa; border: 4px solid var(--teal); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); }
.ptile:hover, .ptile:focus-visible { background: #fff; border-color: var(--amber); }
.ptile__tag { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: .95rem; color: var(--teal-dark); }
.ptile__name { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: 0; }
.ptile__who { color: var(--muted); }
.ptile__n { color: var(--blue); }
.ptile__nl { color: var(--muted); }
.ptile__pitch { color: var(--ink); }
.ptile__go { font-family: var(--font-display); font-weight: 500; letter-spacing: .03em; text-transform: none; font-size: 1rem; color: var(--blue-dark); }
.picker__fn { color: #cfe0ee; }

/* The wave card behind the opportunity section on the ACO page */
.section--wave { position: relative; overflow: hidden; }
.section--wave::before {
  content: "";
  position: absolute; left: -12%; bottom: -30%;
  width: 62%; aspect-ratio: 1.4;
  background: var(--grad-amber);
  border-radius: 60% 40% 0 0 / 80% 80% 0 0;
  opacity: .9;
  z-index: 0;
}
.section--wave > .wrap { position: relative; z-index: 1; }
