/* AbbVie Gastro portfolio demo - design system
   Palette and motif derived from the SKYRIZI UC CVA (UK-SKZG-260157). */

/* ---------- fonts ---------- */
@font-face { font-family: 'Roboto'; src: url('../fonts/Roboto-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-1.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-2.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-3.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --navy: #041C47;   /* AbbVie brand navy, from the official logo files */
  --navy-2: #0A2B66;
  --navy-deep: #02102B;
  --ink: #122A52;
  --body-c: #42546F;
  --muted: #6B7C95;
  --paper: #ffffff;
  --wash: #F2F7FC;
  --wash-2: #E8F2FA;
  --hair: #D9E4F0;
  --hair-navy: rgba(255,255,255,.16);

  --sky-1: #55B4EA;
  --sky-2: #1E7CC9;
  --sky-3: #0F5AA8;
  --cyan: #00A0DF;
  --cyan-deep: #0284C0;

  --start-1: #1470B4;
  --start-2: #33A9E0;
  --stay-1: #8F1D63;
  --stay-2: #C93585;
  --berry: #A50F5C;
  --berry-deep: #6E1444;
  --green: #6CBE45;

  --grad-hero-sky: linear-gradient(168deg, #62BBED 0%, #2E8AD1 58%, #1465AE 100%);
  --grad-hero-berry: linear-gradient(168deg, #B4327A 0%, #8F1D63 55%, #5E123F 100%);
  --grad-hero-navy: linear-gradient(168deg, #123C8C 0%, #0A2B66 55%, #041C47 100%);
  --grad-callout: linear-gradient(135deg, #1E7CC9 0%, #7E2B8F 55%, #A50F5C 100%);

  --chart-hatch-bg: #CFE4F4;
  --chart-hatch-fg: #8FB8D8;

  /* AbbVie brand type: F37 Lineca (headlines) + Roboto (body). Roboto is embedded;
     Figtree stands in for Lineca on corporate headlines; Barlow Condensed carries
     the campaign display style from the CVA on brand pages. */
  --f-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --f-display: 'Figtree', 'Roboto', sans-serif;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-num: 'Inter', 'Roboto', sans-serif;

  --r-card: 12px;
  --r-chip: 8px;
  --shadow-1: 0 1px 2px rgba(7,29,73,.05), 0 8px 28px -12px rgba(7,29,73,.14);
  --shadow-2: 0 2px 6px rgba(7,29,73,.07), 0 22px 48px -18px rgba(7,29,73,.24);
  --wrap: 1220px;
  --ease-out: cubic-bezier(.22,.9,.28,1);
}

/* theme accents */
html[data-theme="sky"] { --accent: var(--cyan-deep); --accent-soft: #E3F3FB; }
html[data-theme="berry"] { --accent: var(--berry); --accent-soft: #F8E9F1; }
html[data-theme="portfolio"] { --accent: #1E5FB2; --accent-soft: #E8F0FA; }

/* ---------- reset/base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
body {
  font-family: var(--f-body);
  font-size: 16.5px; line-height: 1.6;
  color: var(--body-c);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
sup { font-size: .58em; line-height: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; margin: 0 auto; }
.narrow-wide { max-width: 920px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
.muted { color: var(--muted); }
.muted-s { color: var(--muted); font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* MPA view transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- type ---------- */
.h1 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.2vw, 4.05rem); line-height: .97; letter-spacing: .012em;
  color: var(--ink);
}
.h2 {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem); line-height: 1.02; letter-spacing: .012em;
  color: var(--ink);
}
.h3 { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; color: var(--ink); }
.h4 { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.h1--light, .h2--light { color: #fff; }
/* Corporate (portfolio) pages: Lineca-style sentence-case headlines */
html[data-theme="portfolio"] .h1,
html[data-theme="portfolio"] .h2,
html[data-theme="portfolio"] .h3,
html[data-theme="portfolio"] .wlegend {
  font-family: var(--f-display); text-transform: none; letter-spacing: -0.025em; font-weight: 800;
}
html[data-theme="portfolio"] .h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.04; }
html[data-theme="portfolio"] .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.kicker--light { color: rgba(255,255,255,.85); }
.lede { font-size: 1.16rem; line-height: 1.55; max-width: 56ch; }
.lede--light { color: rgba(255,255,255,.92); }
.lede-s { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.shead { margin-bottom: 44px; max-width: 760px; }
.shead .lede { margin-top: 14px; }

/* ---------- reveal states ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.no-js [data-reveal], .reveal-done [data-reveal] { opacity: 1; transform: none; }

/* ---------- chrome ---------- */
.chrome { position: sticky; top: 0; z-index: 90; background: #fff; }
.util { background: var(--navy); color: #fff; }
.util-in { display: flex; align-items: center; gap: 26px; height: 52px; }
.lockup { display: inline-flex; align-items: flex-start; gap: 7px; color: #fff; }
.lockup-img { height: 20px; width: auto; display: block; margin-top: 3px; }
.lockup-pro {
  font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: lowercase;
  background: var(--green); color: #fff; border-radius: 4px; padding: 2px 7px 3px; transform: translateY(-7px);
}
.util-links { display: flex; align-items: center; gap: 14px; }
.util-link { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; transition: color .2s; }
.util-link:hover { color: #fff; }
.util-sep { width: 1px; height: 14px; background: var(--hair-navy); }
.util-right { margin-left: auto; display: flex; gap: 10px; }
.util-cta {
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 99px;
  border: 1px solid var(--hair-navy); color: #fff; transition: background .2s, border-color .2s;
}
.util-cta:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.util-cta--chat { background: var(--cyan); border-color: var(--cyan); }
.util-cta--chat:hover { background: var(--cyan-deep); }

.crumbbar { background: #fff; border-bottom: 1px solid var(--hair); }
.crumbbar-in { display: flex; align-items: center; height: 46px; gap: 20px; }
.crumbs { display: flex; align-items: center; align-self: stretch; gap: 10px; font-size: .86rem; }
.crumb-item { position: relative; display: flex; align-items: center; align-self: stretch; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .2s; }
.crumb:hover, .crumb-item.is-open > .crumb { color: var(--accent); }
.crumb--current { color: var(--ink); font-weight: 700; white-space: nowrap; }
.crumb-sep { color: var(--hair); }
.crumb-caret { opacity: .55; transition: transform .25s var(--ease-out), opacity .2s; }
.crumb-item.is-open .crumb-caret { transform: rotate(180deg); opacity: 1; }

/* sub-menus */
.cm {
  position: absolute; top: calc(100% - 4px); left: -14px; z-index: 95; min-width: 268px;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--shadow-2);
  padding: 14px 10px 10px; font-size: .9rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .24s var(--ease-out), visibility 0s linear .24s;
}
.cm::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.crumb-item.is-open .cm { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .24s var(--ease-out), visibility 0s; }
.cm--wide { min-width: 540px; }
.cm-title { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.cm--sky .cm-title { color: var(--sky-3); }
.cm--berry .cm-title { color: var(--berry); }
.cm-groups { display: grid; gap: 4px 6px; }
.cm--wide .cm-groups { grid-template-columns: 1fr 1fr; }
.cm-group + .cm-group { border-top: 1px solid var(--wash-2); padding-top: 4px; }
.cm--wide .cm-group:nth-child(2) { border-top: 0; padding-top: 0; }
.cm-group--span { grid-column: 1 / -1; }
.cm--wide .cm-group--span ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.cm-gtitle { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); padding: 2px 12px 4px; }
.cm-group--sky .cm-gtitle { color: var(--sky-3); }
.cm-group--berry .cm-gtitle { color: var(--berry); }
.cm ul { list-style: none; }
.cm li { opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .3s var(--ease-out); transition-delay: 0s; }
.crumb-item.is-open .cm li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 22ms + 40ms); }
.cm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 12px; border-radius: var(--r-chip); color: var(--ink); font-weight: 600; white-space: nowrap;
  transition: background .18s, color .18s;
}
.cm-arrow { opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .25s var(--ease-out); flex: none; }
.cm-link:hover, .cm-link:focus-visible { background: var(--wash); color: var(--accent); }
.cm-link:hover .cm-arrow, .cm-link:focus-visible .cm-arrow { opacity: 1; transform: none; }
.cm-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cm-group--sky .cm-link:hover { color: var(--sky-3); }
.cm-group--berry .cm-link:hover { color: var(--berry); }
.cm-link.is-current { color: var(--accent); }
.cm-link.is-current::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.cm-link.is-current .cm-arrow { display: none; }
.cm-link--soon { color: var(--muted); font-weight: 500; cursor: default; }
.cm-link--soon em { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--wash); border-radius: 99px; padding: 3px 8px; }
@media (prefers-reduced-motion: reduce) {
  .cm, .cm li, .crumb-caret { transition: none !important; transform: none !important; }
}
.crumb-brand { margin-left: auto; }
.brand-logo { display: inline-flex; flex-direction: column; line-height: 1.04; }
.brand-logo-name { font-family: var(--f-body); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.015em; color: var(--sky-3); }
.brand-logo--berry .brand-logo-name { color: var(--berry); }
.brand-logo-generic { font-size: .68rem; color: var(--muted); font-weight: 600; }
.ribbon { background: var(--wash-2); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--hair); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: clip; }
.hero--sky, .hero--brand.hero--sky { background: var(--grad-hero-sky); }
.hero--berry, .hero--brand.hero--berry { background: var(--grad-hero-berry); }
.hero--portfolio, .hero--immuno, .hero--gastro { background: var(--grad-hero-navy); }
.hero--gastro { background: var(--grad-hero-sky); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: url('../img/sky.webp') center 20% / cover no-repeat;
  opacity: .32; mix-blend-mode: luminosity; pointer-events: none;
}
.hero--immuno::before, .hero--aurora::before { background: none; opacity: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('../img/noise.png') repeat; background-size: 96px; opacity: .55;
  mix-blend-mode: overlay;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero > .wrap { position: relative; z-index: 2; }
.hero .hero-in { position: relative; z-index: 2; }
.hero--immuno .wrap { padding-top: 120px; padding-bottom: 140px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end; }
.hero--gastro .hero-in { padding-top: 84px; }
.hero--gastro .hero-copy { padding-bottom: 110px; }
.hero--brand .hero-in { padding: 84px 28px 0; }
.hero-copy { padding-bottom: 96px; }
.hero--brand .hero-copy { padding-bottom: 110px; }
.hero-copy .h1 { margin: 18px 0 18px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-figure { align-self: end; margin-bottom: -6px; position: relative; }
.hero-figure img { max-height: 520px; width: auto; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(7,29,73,.35)); }
.hero-points { list-style: none; display: grid; gap: 10px; margin-top: 8px; max-width: 58ch; }
.hero-points li { padding-left: 22px; position: relative; color: rgba(255,255,255,.92); }
.hero-points li::before {
  content: ''; position: absolute; left: 0; top: .48em; width: 10px; height: 10px;
  background: currentColor; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: .8;
}
.hero-chev { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 68px; z-index: 3; pointer-events: none;
  background: #fff; clip-path: ellipse(78% 100% at 50% 100%); }
.band--wash + * .hero-wave { background: var(--wash); }
.hero--sub .wrap { padding-top: 72px; padding-bottom: 108px; }
.tagline--berry { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .06em; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 6px; }

/* ---------- chevron lockups ---------- */
.chevrons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.chev { display: inline-flex; align-items: stretch; height: 40px; position: relative; filter: drop-shadow(0 4px 10px rgba(7,29,73,.25)); }
.chev-text {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.16rem; color: #fff; padding: 0 16px; display: inline-flex; align-items: center;
}
.chev--start .chev-text { background: linear-gradient(100deg, var(--start-1), var(--start-2)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 24px; }
.chev--stay .chev-text { background: linear-gradient(100deg, var(--stay-1), var(--stay-2)); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 24px; }
.chev-arrow { width: 21px; display: inline-block; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
/* double leading chevrons before START (berry then blue), trailing after STAY (berry) */
.chev--start .chev-arrow--a { background: linear-gradient(100deg, var(--stay-1), var(--stay-2)); margin-right: 2px; }
.chev--start .chev-arrow--b { background: linear-gradient(100deg, var(--start-1), var(--start-2)); margin-right: 3px; }
.chev--stay .chev-arrow--a { background: linear-gradient(100deg, var(--stay-1), var(--stay-2)); margin-left: 2px; }
.chev--stay .chev-arrow--b { background: linear-gradient(100deg, var(--stay-2), var(--stay-1)); margin-left: 2px; }
.chev-banner {
  position: relative; color: #fff; font-weight: 600; font-size: 1.06rem;
  background: linear-gradient(100deg, var(--start-1) 0%, var(--start-2) 55%, var(--stay-2) 100%);
  padding: 16px 34px 16px 20px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  border-radius: 4px 0 0 4px; max-width: 620px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; border-radius: 99px; padding: 13px 24px;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--solid { background: #fff; color: var(--sky-3); box-shadow: var(--shadow-1); }
.btn--solid:hover { box-shadow: var(--shadow-2); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.band .btn--ghost, .wpanel .btn--ghost, .goals-left .btn--ghost, .done .btn--ghost { border-color: var(--hair); color: var(--ink); }
.band .btn--ghost:hover, .wpanel .btn--ghost:hover { background: var(--wash); border-color: var(--muted); }
.btn--navy { background: var(--navy); color: #fff; border-radius: 8px; }
.btn--navy:hover { background: var(--navy-2); }
.btn--chev { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); position: relative; }
.btn--chev::after {
  content: ''; width: 9px; height: 9px; flex: none;
  background: currentColor; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  transition: transform .25s var(--ease-out);
}
.btn--chev:hover::after { transform: translateX(3px); }
.btn--chev:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- bands / layout ---------- */
.band { padding: 92px 0; position: relative; background: #fff; }
.band--wash { background: var(--wash); }
.band--navy { background: var(--grad-hero-navy); color: rgba(255,255,255,.85); }
.band--navy .h2, .band--navy .h4 { color: #fff; }
.band--navy .kicker { color: var(--cyan); }
.band--navy .lede { color: rgba(255,255,255,.85); }
.band--raise { padding-top: 0; margin-top: -84px; padding-bottom: 84px; background: transparent; z-index: 4; }
.band--tall { padding: 110px 0 130px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split-aside { position: relative; }

/* ---------- therapy area cards ---------- */
.ta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ta {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 8px; min-height: 190px;
  box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.ta:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ta--soon { opacity: .55; pointer-events: none; }
.ta-label { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; color: var(--ink); }
.ta-desc { color: var(--muted); font-size: .95rem; }
.ta-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: .9rem; }
.ta-go .ic { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.ta:hover .ta-go .ic { transform: translateX(4px); }

/* ---------- intent cards ---------- */
.intent-grid { display: grid; gap: 20px; }
.intent-grid--4 { grid-template-columns: repeat(4, 1fr); }
.intent {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 28px 26px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease-out), box-shadow .3s; position: relative; overflow: clip;
}
.intent::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); opacity: 0; transition: opacity .3s; }
.intent--sky::before { background: linear-gradient(90deg, var(--start-1), var(--start-2)); }
.intent--berry::before { background: linear-gradient(90deg, var(--stay-1), var(--stay-2)); }
.intent--book::before { background: var(--navy); }
.intent--chat::before { background: var(--cyan); }
.intent:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.intent:hover::before { opacity: 1; }
.intent-title { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; color: var(--ink); }
.intent-title .brand-logo-name { font-size: 1.5rem; }
.intent-feature { display: inline-flex; align-items: center; gap: 10px; }
.intent-feature .ic { width: 26px; height: 26px; color: var(--accent); }
.intent--book .intent-feature .ic { color: var(--navy); }
.intent--chat .intent-feature .ic { color: var(--cyan); }
.intent-sub { font-size: .93rem; color: var(--body-c); }
.intent-links { list-style: none; display: grid; }
.intent-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 2px; font-weight: 600; font-size: .93rem; color: var(--ink);
  border-bottom: 1px solid var(--hair); transition: color .2s, padding-left .25s var(--ease-out);
}
.intent-links li:last-child .intent-link { border-bottom: 0; }
.intent-link .intent-arrow { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease-out); flex: none; }
.intent-link:hover { color: var(--accent); padding-left: 6px; }
.intent-link:hover .intent-arrow { opacity: 1; transform: none; }
.intent .btn { margin-top: auto; align-self: flex-start; }

/* ---------- core page cards ---------- */
.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.core {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.core:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.core-ic .ic { width: 30px; height: 30px; color: var(--accent); }
.core-title { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; color: var(--ink); }
.core-sub { font-size: .9rem; color: var(--muted); min-height: 3.4em; }
.core-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.core-go .ic { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.core:hover .core-go .ic { transform: translateX(4px); }

/* ---------- claims ---------- */
.claims { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.claim { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 30px 26px; box-shadow: var(--shadow-1); }
.claim-title { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.claim-body { font-size: .93rem; }
.claim-safety .ic { width: 34px; height: 34px; color: var(--berry); }

/* ---------- stat cards, donuts ---------- */
.statcard {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 32px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: center;
}
.statcard .btn { grid-column: 1 / -1; justify-self: start; }
.statcard-text { font-size: .98rem; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut--sm { width: 108px; height: 108px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--wash-2); stroke-width: 13; }
.donut-fill { fill: none; stroke: var(--cyan); stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
html[data-theme="berry"] .donut-fill { stroke: var(--berry); }
.donut-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-num); font-weight: 800; font-size: 1.7rem; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.donut--sm .donut-num { font-size: 1.4rem; }
.stat-suffix { font-size: .6em; margin-top: .35em; }

/* ---------- benefits / ticklist / topiclist ---------- */
.benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.benefit { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 16px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.benefit .ic { color: var(--cyan-deep); flex: none; }
.ticklist { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.ticklist li { padding-left: 34px; position: relative; font-weight: 600; color: var(--ink); }
.ticklist li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
}
.ticklist li::after {
  content: ''; position: absolute; left: 6px; top: 9px; width: 10px; height: 6px;
  border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent); transform: rotate(-45deg);
}
.topiclist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.topiclist li { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 20px 22px; display: grid; gap: 4px; }
.topiclist strong { color: var(--ink); }
.topiclist span { font-size: .9rem; color: var(--muted); }

/* ---------- mayo gallery ---------- */
.mayo-row { margin-top: 70px; }
.mayo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.mayo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mayo { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); overflow: clip; box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s; }
.mayo:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.mayo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.mayo figcaption { padding: 14px 16px 18px; display: grid; gap: 2px; }
.mayo-score { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-deep); }
.mayo figcaption strong { color: var(--ink); font-size: .95rem; }
.mayo-detail { font-size: .82rem; color: var(--muted); }

/* ---------- window of opportunity ---------- */
.window { max-width: 860px; margin: 0 auto; }
.window-svg { width: 100%; height: auto; }
.w-axis { stroke: rgba(255,255,255,.5); stroke-width: 2; }
.w-lab { fill: rgba(255,255,255,.85); font: 700 13px var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.w-fill { fill: rgba(201,53,133,.18); }
.w-line { stroke: #E0509B; stroke-width: 4; fill: none; stroke-linecap: round; }
.w-box { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.w-boxlab { fill: #fff; font: 700 15px var(--f-cond); letter-spacing: .05em; text-transform: uppercase; }
.w-mile rect { fill: var(--berry); opacity: .95; }
.w-mile text { fill: #fff; font: 600 10.5px var(--f-body); letter-spacing: .04em; }
.window-strap {
  margin: 26px auto 0; text-align: center; font-weight: 700; color: #fff; font-size: 1.08rem;
  background: linear-gradient(90deg, transparent, rgba(0,160,223,.35) 18%, rgba(0,160,223,.35) 82%, transparent); padding: 12px 30px;
}

/* ---------- next links ---------- */
.next-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.next {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 18px;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 24px 28px;
  box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s;
}
.next:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.next-k { grid-column: 1 / -1; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.next-t { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--ink); line-height: 1.05; }
.next .ic { color: var(--accent); transition: transform .25s var(--ease-out); }
.next:hover .ic { transform: translateX(5px); }

/* ---------- profiles ---------- */
.profile-switch { display: flex; gap: 14px; margin-bottom: 40px; }
.pswitch {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px;
  border: 1.5px solid var(--hair); border-radius: 99px; font-weight: 700; color: var(--muted);
  transition: border-color .2s, color .2s, box-shadow .3s, transform .3s var(--ease-out);
  background: #fff;
}
.pswitch img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--wash-2); }
.pswitch:hover { transform: translateY(-2px); }
.pswitch.is-active { border-color: var(--cyan-deep); color: var(--ink); box-shadow: var(--shadow-1); }
.profile { display: none; }
.profile.is-active { display: block; }
.profile-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.profile-title { margin-bottom: 4px; }
.profile-note { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.profile-intro { margin-bottom: 26px; }
.profile-vitals { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.vital { background: var(--wash); border: 1px solid var(--hair); border-radius: 10px; padding: 12px 18px; }
.vital dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vital dd { font-family: var(--f-num); font-weight: 800; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.psec { border-top: 1px solid var(--hair); padding: 16px 0; }
.psec h3 { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 6px; }
.psec p { font-size: .97rem; }
.profile-photo { position: sticky; top: 140px; }
.profile-photo img { max-height: 560px; width: auto; margin: 0 auto; filter: drop-shadow(0 26px 36px rgba(7,29,73,.22)); }

.goals-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.goal { display: grid; grid-template-columns: 1fr 84px; gap: 12px; margin-bottom: 12px; }
.goal-chip {
  background: var(--navy); color: #fff; font-family: var(--f-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: 1.05rem; padding: 12px 18px; text-align: left;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transition: background .2s, transform .25s var(--ease-out); border-radius: 4px 0 0 4px;
}
.goal-chip:hover { background: var(--navy-2); transform: translateX(3px); }
.goal.is-ranked .goal-chip { background: linear-gradient(100deg, var(--start-1), var(--start-2)); }
.goal-slot { border: 1.5px dashed var(--hair); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; }
.goal.is-ranked .goal-slot { border-style: solid; border-color: var(--cyan-deep); }
.goal-rank { font-family: var(--f-num); font-weight: 800; font-size: 1.15rem; color: var(--cyan-deep); }
.goals-actions { display: flex; gap: 14px; margin-top: 22px; align-items: center; }
.goals-right { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 34px 32px; }
.goals-result-head { display: grid; gap: 10px; margin-bottom: 20px; }
.galign-list { list-style: none; display: grid; gap: 14px; counter-reset: g; margin-bottom: 22px; }
.galign { display: grid; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease-out); }
.galign.is-in { opacity: 1; transform: none; }
.galign-chip {
  justify-self: start; background: var(--navy); color: #fff; font-family: var(--f-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; padding: 6px 20px 6px 12px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}
.galign-answer { font-weight: 600; color: var(--ink); }
.galign-safety { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--berry); border-top: 1px solid var(--hair); padding-top: 18px; margin-bottom: 22px; }

/* ---------- evidence ---------- */
.enav { position: sticky; top: 0; z-index: 80; background: var(--navy); box-shadow: 0 10px 26px -18px rgba(7,29,73,.5); }
.chrome ~ * .enav { top: 0; }
.enav-in { display: flex; gap: 4px; position: relative; overflow-x: auto; scrollbar-width: none; }
.enav-in::-webkit-scrollbar { display: none; }
.enav-link {
  color: rgba(255,255,255,.72); font-family: var(--f-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1.02rem; padding: 15px 18px; white-space: nowrap; position: relative;
  transition: color .2s;
}
.enav-link:hover { color: #fff; }
.enav-link.is-active { color: #fff; }
.enav-link.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--cyan); }
.esec { padding: 88px 0; }
.esec--wash { background: var(--wash); }
.esec-head { max-width: 860px; margin-bottom: 40px; display: grid; gap: 16px; justify-items: start; }
.esec-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: start; }
.esec-grid--safety { grid-template-columns: 1.35fr .65fr; }
/* prevent grid blowout: children may shrink below content min-width */
.esec-grid > *, .split > *, .goals-grid > *, .profile-grid > *, .chart-duo > *, .tabs, .tabpanel { min-width: 0; }
.tablewrap { max-width: 100%; }
.esec-grid aside { display: grid; gap: 16px; }
.herostat {
  border-radius: var(--r-card); padding: 30px 28px; color: #fff; display: grid; gap: 10px; justify-items: start;
  background: var(--navy);
}
.herostat--grad { background: var(--grad-callout); }
.herostat-k { font-weight: 700; font-size: .95rem; opacity: .9; }
.herostat-num { font-family: var(--f-num); font-weight: 800; font-size: 4.4rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.herostat-pc { font-size: .45em; font-weight: 800; }
.herostat-text { font-size: 1rem; opacity: .95; }
.herostat-text--lg { font-size: 1.12rem; font-weight: 600; }
.herostat .btn--solid { color: var(--berry); margin-top: 8px; }

.chart { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px 26px 20px; box-shadow: var(--shadow-1); }
.esec--wash .chart { box-shadow: none; }
.chart-title { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.chart-cap { font-size: .85rem; color: var(--cyan-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.chart-note { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; }
.chart-grid { stroke: var(--wash-2); stroke-width: 1; }
.chart-axis { stroke: var(--hair); stroke-width: 1.5; }
.chart-tick { fill: var(--muted); font: 600 11px var(--f-num); }
.chart-lab { fill: var(--ink); font: 700 12px var(--f-body); }
.chart-n { fill: var(--muted); font: 600 10.5px var(--f-num); }
.chart-val { fill: var(--cyan-deep); font: 800 20px var(--f-num); }
.chart-val--grey { fill: #9AA8BC; }
.chart-val--cyan { fill: var(--cyan-deep); }
.chart-val--berry { fill: var(--berry); }
.chart-val-pc { font-size: 12px; }
.chart-p { fill: var(--muted); font: 600 11px var(--f-num); font-style: italic; }
.chart-foot { font-size: .74rem; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.barfill--mid { fill: #2E9AD6; }
.barfill--light { fill: #8ECCEC; }
.barfill--grey { fill: #C2CEDC; }
html[data-theme="berry"] .barfill--mid { fill: var(--berry); }
html[data-theme="berry"] .barfill--light { fill: #D287AF; }
.line { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.line--cyan { stroke: var(--cyan); }
.line--grey { stroke: #B9C6D6; }
.line-dot { opacity: 0; }
.line-dot--cyan { fill: var(--cyan); }
.line-dot--grey { fill: #B9C6D6; }
svg .chart-val[data-dot] { opacity: 0; }
.legend { display: flex; gap: 22px; margin-top: 8px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; }
.legend-swatch { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.legend-swatch--cyan { background: var(--cyan); }
.legend-swatch--grey { background: #B9C6D6; }
.chart-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.prestat { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 18px 26px; margin-bottom: 28px; max-width: 720px; box-shadow: var(--shadow-1); }
.prestat p { font-weight: 600; color: var(--ink); }

.tabs { }
.tabbar { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 2px solid var(--hair); }
.tab {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  padding: 10px 20px; color: var(--muted); border-radius: 8px 8px 0 0; position: relative; top: 2px;
  border-bottom: 2px solid transparent; transition: color .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); background: linear-gradient(180deg, transparent, var(--accent-soft)); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: tab-in .4s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(10px); } }

.badge3yr {
  display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff;
  font-family: var(--f-num); font-weight: 800; font-size: 2rem; padding: 8px 20px 8px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.badge3yr span { font: 700 .62rem/1.1 var(--f-body); text-transform: uppercase; letter-spacing: .1em; }

.bigstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bigstat { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 32px 28px; box-shadow: var(--shadow-1); display: grid; gap: 6px; justify-items: start; }
.bigstat .ic { width: 32px; height: 32px; color: var(--cyan-deep); margin-bottom: 8px; }
.bigstat-num { font-family: var(--f-num); font-weight: 800; font-size: 3.1rem; line-height: 1; letter-spacing: -0.03em; color: var(--cyan-deep); font-variant-numeric: tabular-nums; }
.bigstat-gt { font-size: .6em; vertical-align: .2em; margin-right: 2px; }
.bigstat-label { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.bigstat-text { font-size: .88rem; color: var(--muted); }

.tablewrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
.dtable { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 520px; }
.dtable th, .dtable td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--wash-2); }
.dtable thead th { background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; vertical-align: bottom; }
.dtable tbody th { font-weight: 600; color: var(--ink); }
.dtable td { font-family: var(--f-num); font-variant-numeric: tabular-nums; color: var(--body-c); }
.dtable tbody tr:nth-child(even) { background: var(--wash); }
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: 0; }

.warn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.warn h3 { font-size: .95rem; color: var(--cyan-deep); margin-bottom: 4px; }
.warn p { font-size: .9rem; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.phase { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 28px 26px; box-shadow: var(--shadow-1); display: grid; gap: 10px; align-content: start; }
.phase-k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phase-name { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; color: var(--ink); }
.phase-row { font-size: .88rem; }
.phase-row strong { display: block; color: var(--cyan-deep); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.phase-row--result strong { color: var(--berry); }

.whatnext { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.whatnext-k { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.whatnext-chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--hair); border-radius: 99px;
  padding: 9px 18px; font-weight: 700; font-size: .88rem; color: var(--ink); background: #fff;
  transition: border-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .3s;
}
.whatnext-chip .ic { width: 15px; height: 15px; color: var(--accent); transition: transform .25s var(--ease-out); }
.whatnext-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.whatnext-chip:hover .ic { transform: translateX(3px); }

.expander { border: 1px solid var(--hair); border-radius: 10px; background: #fff; margin-top: 28px; overflow: clip; }
.expander summary {
  list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; transition: background .2s;
}
.expander summary::-webkit-details-marker { display: none; }
.expander summary::after { content: '+'; font-size: 1.3rem; font-weight: 600; color: var(--accent); transition: transform .3s var(--ease-out); }
.expander[open] summary::after { transform: rotate(45deg); }
.expander summary:hover { background: var(--wash); }
.expander p { padding: 0 22px 18px; font-size: .93rem; }

.relief-stats { display: grid; gap: 18px; margin-top: 16px; }
.relief-stats--row { grid-template-columns: repeat(3, 1fr); }
.relief-stat { display: flex; gap: 18px; align-items: center; background: var(--wash); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 18px 20px; }
.relief-stat strong { color: var(--cyan-deep); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.relief-stat p { font-size: .9rem; }
.batteries { display: flex; gap: 14px; }
.battery { width: 56px; height: 96px; border: 3px solid var(--cyan); border-radius: 9px; position: relative; display: grid; place-items: center; }
.battery::before { content: ''; position: absolute; top: -9px; width: 20px; height: 6px; border-radius: 3px 3px 0 0; background: var(--cyan); }
.battery--grey { border-color: #B9C6D6; }
.battery--grey::before { background: #B9C6D6; }
.battery-fill { position: absolute; left: 4px; right: 4px; bottom: 4px; height: var(--pct); background: #BFE5F7; border-radius: 4px; transition: height 1.2s var(--ease-out); }
.battery--grey .battery-fill { background: #E1E8F0; }
.battery span { position: relative; z-index: 2; font-family: var(--f-num); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.battery em { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font: 600 .62rem var(--f-body); color: var(--muted); white-space: nowrap; font-style: normal; }
.batteries { gap: 34px; padding: 0 14px; }
.relief-stat--battery { padding-bottom: 34px; }

/* ---------- using / dosing ---------- */
.dose-timeline { position: relative; padding: 30px 10px 120px; margin-top: 10px; }
.dose-track { position: absolute; left: 2%; right: 2%; top: 68px; height: 6px; background: var(--wash-2); border-radius: 3px; }
.dose-progress { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--start-1), var(--start-2) 30%, var(--stay-2)); }
.dose-nodes { position: relative; height: 130px; margin: 0 2%; }
.dose-node { position: absolute; left: var(--x); transform: translateX(-50%); top: 22px; display: grid; justify-items: center; gap: 5px; width: 92px; }
.dose-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--sky-3); box-shadow: 0 0 0 5px #fff, 0 2px 10px rgba(7,29,73,.25); z-index: 2;
}
.dose-node--sc .dose-dot { background: var(--berry); }
.dose-week { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: 8px; }
.dose-amt { font-family: var(--f-num); font-size: .72rem; font-weight: 700; color: #fff; background: var(--navy); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.dose-node--sc .dose-amt { background: var(--berry); }
.dose-bands { position: absolute; left: 2%; right: 2%; bottom: 34px; height: 40px; }
.dose-band {
  position: absolute; left: var(--from); width: calc(var(--to) - var(--from)); height: 100%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.dose-band--ind { background: linear-gradient(90deg, var(--start-1), var(--start-2)); }
.dose-band--mnt { background: linear-gradient(90deg, var(--stay-1), var(--stay-2)); }

.split--obd { grid-template-columns: .9fr 1.1fr; align-items: center; }
.obd-photo img { border-radius: var(--r-card); box-shadow: var(--shadow-2); }
.obd-features { list-style: none; display: grid; gap: 16px; }
.obd-feature { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 22px; }
.obd-feature .ic { width: 30px; height: 30px; color: var(--cyan-deep); flex: none; }
.obd-feature strong { color: var(--ink); display: block; margin-bottom: 2px; }
.obd-feature p { font-size: .9rem; }
.steps-h { margin: 54px 0 20px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 18px; position: relative; display: grid; gap: 8px; align-content: start; }
.step-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--f-num); font-weight: 800; font-size: .95rem;
}
.step-label { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; color: var(--ink); }
.step-text { font-size: .82rem; color: var(--muted); }

/* ---------- resources ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgroup-label { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 92px; }
.fchip {
  border: 1.5px solid var(--hair); border-radius: 99px; padding: 7px 16px; font-weight: 700; font-size: .85rem;
  color: var(--body-c); background: #fff; transition: all .2s;
}
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fclear { font-size: .82rem; font-weight: 700; color: var(--accent); justify-self: start; text-decoration: underline; }
.fcount { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-out), box-shadow .35s, opacity .3s;
}
.res:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.res.is-hidden { display: none; }
.res-top { display: flex; justify-content: space-between; align-items: center; }
.res-type { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-deep); }
.res-type .ic { width: 17px; height: 17px; }
.res-type--event { color: var(--berry); }
.res-type--tool { color: #7E2B8F; }
.res-date { font-size: .78rem; color: var(--muted); font-weight: 600; }
.res-title { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.res-desc { font-size: .9rem; color: var(--body-c); }
.res-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--wash-2); }
.res-tags { font-size: .76rem; font-weight: 700; color: var(--muted); }
.res-cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .86rem; color: var(--accent); }
.res-cta .ic { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.res:hover .res-cta .ic { transform: translateX(3px); }

/* ---------- booking ---------- */
.wsteps { list-style: none; display: flex; gap: 8px; margin-bottom: 36px; }
.wstep {
  flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: .92rem;
  padding: 12px 16px; background: #fff; border: 1px solid var(--hair);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transition: background .3s, color .3s;
}
.wstep span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--wash-2); font-family: var(--f-num); font-weight: 800; font-size: .85rem; transition: background .3s, color .3s; }
.wstep.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.wstep.is-active span { background: var(--cyan); color: #fff; }
.wstep.is-done { color: var(--ink); }
.wstep.is-done span { background: var(--green); color: #fff; }
.wizard { position: relative; }
.wpanel { display: none; border: 0; }
.wpanel.is-active { display: block; animation: tab-in .45s var(--ease-out); }
.wlegend { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.9rem; color: var(--ink); margin-bottom: 6px; }
.whelp { color: var(--muted); margin-bottom: 26px; max-width: 62ch; }
.whelp--note { font-size: .82rem; margin: 14px 0 0; }
.wnav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.topic { display: flex; }
.topic input { position: absolute; opacity: 0; }
.topic-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  flex: 1; border: 1.5px solid var(--hair); border-radius: var(--r-card); padding: 26px 12px; font-weight: 700; color: var(--ink);
  background: #fff; cursor: pointer; transition: all .25s var(--ease-out); position: relative;
}
.topic-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.topic input:checked + .topic-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-1); }
.topic input:focus-visible + .topic-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.topic-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hair); position: relative; transition: all .2s; }
.topic input:checked + .topic-card .topic-tick { background: var(--accent); border-color: var(--accent); }
.topic input:checked + .topic-card .topic-tick::after {
  content: ''; position: absolute; left: 5px; top: 6px; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
/* Medical question: routes to Medical Information, never to the rep */
.topic--medical .topic-card { border-style: dashed; background: var(--wash); }
.topic--medical input:checked + .topic-card { border-style: solid; border-color: var(--navy); background: var(--navy); color: #fff; }
.topic--medical input:checked + .topic-card .topic-tick { background: #fff; border-color: #fff; }
.topic--medical input:checked + .topic-card .topic-tick::after { border-color: var(--navy); }
.medroute { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.medroute.is-open { grid-template-rows: 1fr; }
.medroute-in { overflow: hidden; }
.medroute-card {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 14px; padding: 20px 22px;
  border-radius: var(--r-card); background: #fff; border: 1.5px solid var(--navy); box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease-out);
}
.medroute.is-open .medroute-card { opacity: 1; transform: none; transition-delay: .08s; }
.medroute-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--wash-2); color: var(--navy); }
.medroute-ic .ic { width: 22px; height: 22px; }
.medroute-h { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.medroute-card p { font-size: .92rem; max-width: 66ch; }
.medroute-also { margin-top: 8px; color: var(--ink); font-weight: 600; }
.medroute-card .btn { margin-top: 14px; }
/* arriving from the assistant: the context it carries */
.handoff {
  display: flex; align-items: flex-start; gap: 14px; margin: -8px 0 22px; padding: 14px 14px 14px 16px;
  border-radius: var(--r-card); background: var(--accent-soft); border: 1px solid var(--hair);
  animation: tab-in .45s var(--ease-out); transition: opacity .22s, transform .22s;
}
.handoff.is-leaving { opacity: 0; transform: translateY(-6px); }
.handoff-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: #fff; }
.handoff-ic .ic { width: 18px; height: 18px; }
.handoff-t { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--ink); line-height: 1.45; }
.handoff-k { width: 100%; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-deep); }
.handoff-t strong { font-size: 1.02rem; }
.handoff-scope { font-size: .82rem; color: var(--muted); }
.handoff-note { width: 100%; font-size: .88rem; color: var(--body-c); }
.handoff-x { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; color: var(--muted); transition: background .2s, color .2s; }
.handoff-x:hover { background: #fff; color: var(--ink); }
.hosp { position: relative; max-width: 520px; }
.hosp-input {
  width: 100%; font: inherit; padding: 14px 18px; border: 1.5px solid var(--hair); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.hosp-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hosp-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none;
  background: #fff; border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--shadow-2);
  max-height: 260px; overflow: auto;
}
.hosp-list li { padding: 11px 16px; cursor: pointer; font-size: .93rem; }
.hosp-list li:hover, .hosp-list li.is-hi { background: var(--accent-soft); color: var(--ink); }
.hosp-picked { margin-top: 20px; background: var(--wash); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 18px 22px; max-width: 520px; }
.hosp-picked-h { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hosp-picked-rep strong { color: var(--ink); font-size: 1.05rem; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.asap {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; margin: 4px 0 18px; padding: 12px 16px 12px 12px;
  text-align: left; border-radius: var(--r-card); border: 1.5px solid var(--hair); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s, transform .25s var(--ease-out), opacity .2s;
}
.asap:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.asap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asap-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: background .2s, color .2s; }
.asap-ic .ic { width: 21px; height: 21px; }
.asap-t { flex: 1; display: grid; gap: 1px; }
.asap-t strong { font-weight: 700; font-size: .98rem; }
.asap-t span { font-size: .8rem; color: var(--muted); transition: color .2s; }
.asap-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hair); position: relative; transition: all .2s; }
.asap.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.asap.is-on .asap-ic { background: rgba(255,255,255,.12); color: #fff; }
.asap.is-on .asap-t span { color: rgba(255,255,255,.75); }
.asap.is-on .asap-tick { background: #fff; border-color: #fff; }
.asap.is-on .asap-tick::after { content: ''; position: absolute; left: 5px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.asap.is-off { opacity: .45; cursor: not-allowed; }
.asap.is-off:hover { border-color: var(--hair); box-shadow: none; transform: none; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--hair); display: grid; place-items: center; font-size: 1rem; color: var(--ink); transition: all .2s; }
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-range { font-weight: 700; color: var(--ink); min-width: 210px; }
.dur { display: inline-flex; gap: 6px; margin-left: auto; }
.dur-opt input { position: absolute; opacity: 0; }
.dur-opt span {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--hair); border-radius: 99px;
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; color: var(--body-c); background: #fff;
}
.dur-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
/* my availability: day columns, Morning/Afternoon blocks expand to hourly slots */
.wq { color: var(--ink); font-weight: 600; margin-bottom: 12px; max-width: 62ch; }
.dur--left { margin: 0 0 28px; }
.pick-count { margin-left: auto; font-family: var(--f-num); font-size: .82rem; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--wash); transition: background .2s, color .2s; }
.pick-count.is-full { background: var(--navy); color: #fff; }
.pick-count.is-nudge { animation: nudge .42s var(--ease-out); }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.avail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 16px;
}
.aday { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aday-h { text-align: center; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 4px 0 6px; }
.aday-h em { display: block; font-style: normal; font-family: var(--f-num); font-weight: 600; color: var(--muted); font-size: .74rem; letter-spacing: .02em; }
.aper {
  position: relative; display: grid; gap: 2px; justify-items: start; text-align: left; width: 100%;
  padding: 12px 34px 12px 14px; border-radius: 10px; border: 1.5px solid var(--hair); background: var(--wash);
  color: var(--ink); transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.aper:hover { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-1); }
.aper:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aper-name { font-weight: 700; font-size: .92rem; }
.aper-range { font-family: var(--f-num); font-size: .76rem; font-weight: 600; color: var(--muted); }
.aper-caret { position: absolute; right: 13px; top: 50%; margin-top: -3px; color: var(--muted); transition: transform .3s var(--ease-out); }
.aper.is-open { border-color: var(--accent); background: #fff; }
.aper.is-open .aper-caret { transform: rotate(180deg); color: var(--accent); }
.aper.has-pick { background: var(--navy); border-color: var(--navy); color: #fff; }
.aper.has-pick .aper-range { color: rgba(255,255,255,.82); }
.aper.has-pick .aper-caret { color: rgba(255,255,255,.8); }
.hp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out), margin .32s var(--ease-out); margin-top: -8px; }
.hp.is-open { grid-template-rows: 1fr; margin-top: 0; }
.hp-in { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hp.is-open .hp-in { padding-bottom: 2px; }
.hchip {
  padding: 9px 6px; border-radius: 8px; border: 1.5px solid var(--hair); background: #fff;
  font-family: var(--f-num); font-size: .8rem; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .28s var(--ease-out), background .18s, border-color .18s, color .18s;
}
.hchip--any { grid-column: 1 / -1; font-family: var(--f-body); }
.hp.is-open .hchip { opacity: 1; transform: none; transition-delay: calc(var(--i) * 28ms), calc(var(--i) * 28ms), 0s, 0s, 0s; }
.hchip:hover { border-color: var(--accent); color: var(--accent); }
.hchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hchip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.hchip.is-off { opacity: .4 !important; }
.hchip.is-off:hover { border-color: var(--hair); color: var(--ink); cursor: not-allowed; }
.picks { margin-top: 16px; min-height: 26px; }
.picks-h { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.picks-empty { font-size: .88rem; color: var(--muted); }
.picks-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 99px;
  background: var(--accent-soft); border: 1px solid var(--hair); font-size: .88rem; color: var(--ink);
}
.pick--new { animation: tab-in .35s var(--ease-out); }
.pick-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-num); font-weight: 800; font-size: .74rem; flex: none; }
.pick-t strong { font-weight: 700; }
.pick-x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; line-height: 1; color: var(--muted); transition: background .2s, color .2s; }
.pick-x:hover { background: #fff; color: var(--ink); }
.wform-err { margin-top: 14px; color: #B3261E; font-weight: 600; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .hp, .hchip, .aper-caret { transition: none !important; } }

/* step 2: contact the rep directly, or share availability */
.rep-split { display: grid; grid-template-columns: minmax(0, 520px) auto minmax(0, 260px); gap: 22px; align-items: center; margin-top: 20px; }
.rep-split[hidden] { display: none; }
.rep-split .hosp-picked { margin-top: 0; }
.rep-direct { margin: 10px 0 8px; font-size: .92rem; color: var(--body-c); }
.rep-email { display: flex; width: fit-content; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); margin-top: 6px; overflow-wrap: anywhere; }
.rep-email .ic { width: 17px; height: 17px; }
.rep-email:hover span { text-decoration: underline; text-underline-offset: 3px; }
.rep-demo-note { font-size: .8rem; color: var(--ink); background: #fff; border: 1px dashed var(--hair); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.rep-or { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--muted); }
.rep-alt { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-card); background: var(--accent-soft); color: var(--ink); font-weight: 600; line-height: 1.45; }
.rep-alt .ic { width: 26px; height: 26px; color: var(--accent); }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 28px; }
.wfield { display: grid; gap: 7px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.wfield input[type="text"], .wfield input[type="email"], .wfield input[type="tel"] {
  font: inherit; font-weight: 500; padding: 12px 16px; border: 1.5px solid var(--hair); border-radius: 10px; transition: all .2s;
}
.wfield input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wfield input.is-bad { border-color: #C0392B; }
.wfield--radio .dur { margin-left: 0; flex-wrap: wrap; }
.wfield--phone:not([hidden]) { animation: tab-in .35s var(--ease-out); }
.wfield--check { grid-template-columns: auto 1fr; align-items: start; grid-column: 1 / -1; font-weight: 500; color: var(--body-c); }
.wfield--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.done { text-align: center; padding: 30px 0 10px; display: grid; gap: 14px; justify-items: center; }
.done-tick .done-c { stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s .1s var(--ease-out) forwards; }
.done-tick .done-p { stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.45s .65s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-ref { font-family: var(--f-num); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.done-ref strong { color: var(--ink); letter-spacing: .08em; }
.done-list { text-align: left; width: min(100%, 520px); background: var(--wash); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 6px 20px; }
.done-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.done-list div:last-child { border-bottom: 0; }
.done-list dt { color: var(--muted); font-size: .86rem; }
.done-list dd { color: var(--ink); font-weight: 600; font-size: .92rem; }
.done .muted-s a { font-weight: 700; }
.done-actions { display: flex; gap: 14px; align-items: center; }

/* ---------- medical ---------- */
.med-handover { margin-bottom: 18px; padding: 18px 22px; border-radius: var(--r-card); background: var(--accent-soft); border: 1px solid var(--hair); color: var(--ink); }
.med-handover p { font-size: .95rem; }
.med-back { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.med-back::before { content: '\2190\00a0'; }
.med-card { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-1); }
.med-card .ic { width: 40px; height: 40px; color: var(--navy); flex: none; }
.med-card .btn { margin-top: 16px; }

/* ---------- chat ---------- */
.chat-dock { position: fixed; right: 26px; bottom: 26px; z-index: 110; }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%; background: var(--cyan); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,160,223,.65);
  transition: transform .3s var(--ease-out), background .2s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); background: var(--cyan-deep); }
.chat-dock.is-in .chat-fab { animation: fab-in .6s var(--ease-out) both; }
@keyframes fab-in { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.chat-dock.is-in::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan);
  animation: fab-pulse 1.6s .5s var(--ease-out) 2; z-index: -1;
}
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.chat {
  position: fixed; right: 26px; bottom: 26px; z-index: 120; width: min(400px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 100px)); background: #fff; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(7,29,73,.5);
  display: flex; flex-direction: column; overflow: clip;
  transform-origin: bottom right;
}
.chat.is-open { animation: chat-in .38s var(--ease-out); }
@keyframes chat-in { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chat-title { font-weight: 800; font-size: 1.02rem; }
.chat-sub { font-size: .8rem; opacity: .75; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--wash); }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.5; animation: msg-in .35s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg--user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--hair); color: var(--body-c); border-bottom-left-radius: 4px; }
.msg-links { display: grid; gap: 6px; margin-top: 10px; }
.msg-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 8px 12px;
  font-weight: 700; font-size: .84rem; transition: background .2s, transform .2s;
}
.msg-link:hover { background: var(--wash-2); transform: translateX(2px); }
.msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--hair); background: #fff; }
.chat-input { flex: 1; font: inherit; font-size: .92rem; padding: 11px 15px; border: 1.5px solid var(--hair); border-radius: 99px; }
.chat-input:focus { outline: none; border-color: var(--cyan); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; transition: background .2s; flex: none; }
.chat-send:hover { background: var(--cyan-deep); }
.chat-note { text-align: center; font-size: .68rem; color: var(--muted); padding: 0 12px 10px; background: #fff; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggest-h { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.msg-handoff {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--hair); font-weight: 700; font-size: .84rem; color: var(--cyan-deep);
}
.msg-handoff span[aria-hidden] { transition: transform .2s var(--ease-out); }
.msg-handoff:hover span[aria-hidden] { transform: translateX(3px); }
.chat-suggest button { border: 1px solid var(--hair); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: .8rem; font-weight: 600; color: var(--ink); transition: all .2s; }
.chat-suggest button:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.chat-scope-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: rgba(255,255,255,.14); border-radius: 99px; padding: 3px 4px 3px 11px;
  font-size: .76rem; font-weight: 700; color: #fff;
}
.chat-scope-chip button {
  font-size: .68rem; font-weight: 700; color: var(--navy); background: #fff;
  border-radius: 99px; padding: 3px 9px; transition: background .2s;
}
.chat-scope-chip button:hover { background: var(--wash-2); }
.chat-scope { flex: 1; overflow-y: auto; padding: 22px 20px; background: var(--wash); display: flex; flex-direction: column; }
.scope-intro { font-size: .9rem; color: var(--body-c); margin-bottom: 18px; }
.scope-q { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.scope-row { display: grid; gap: 8px; margin-bottom: 18px; }
.scope-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  background: #fff; border: 1.5px solid var(--hair); border-radius: 10px; padding: 12px 15px;
  font-weight: 700; font-size: .92rem; color: var(--ink); transition: all .2s var(--ease-out);
}
.scope-opt:not([disabled]):hover { border-color: var(--cyan); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.scope-opt.is-on { border-color: var(--cyan); background: var(--accent-soft); box-shadow: var(--shadow-1); }
.scope-opt[disabled] { opacity: .55; cursor: not-allowed; }
.scope-soon { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--wash-2); border-radius: 99px; padding: 3px 9px; }
.scope-go { justify-content: center; margin-top: auto; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: rgba(7,21,45,.55); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto;
  box-shadow: 0 40px 90px -20px rgba(4,12,28,.6); animation: chat-in .35s var(--ease-out);
}
.modal-card--wide { max-width: 860px; }
.modal-head { background: var(--cyan); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; }
.modal-head h2 { font-family: var(--f-cond); text-transform: uppercase; font-size: 1.4rem; letter-spacing: .04em; }
.modal-x { font-size: 1.6rem; line-height: 1; opacity: .85; transition: opacity .2s, transform .25s var(--ease-out); }
.modal-x:hover { opacity: 1; transform: rotate(90deg); }
.modal-body { padding: 24px; display: grid; gap: 12px; }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 44px; font-size: .84rem; }
.foot-ae { border: 1px solid var(--hair-navy); border-radius: 10px; padding: 16px 22px; margin-bottom: 26px; }
.foot-indication { margin-bottom: 22px; font-size: .8rem; line-height: 1.55; opacity: .85; }
.foot-h { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.foot-refs ol { padding-left: 18px; display: grid; gap: 3px; font-size: .78rem; margin-bottom: 24px; }
.foot-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--hair-navy); padding-top: 26px; flex-wrap: wrap; }
.foot-logo-img { height: 26px; width: auto; }
.foot-meta-r { text-align: right; display: grid; gap: 2px; }
.foot-demo { color: var(--cyan); font-weight: 700; }
.foot-signout { color: rgba(255,255,255,.55); font-weight: 600; margin-left: 10px; text-decoration: underline; }
.foot-signout:hover { color: #fff; }

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: 26px; bottom: 100px; z-index: 105;
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 6px 24px -6px rgba(4,28,71,.4); border: 1px solid var(--hair);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.85);
  transition: opacity .3s, transform .35s var(--ease-out), visibility .3s, background .2s;
}
.totop.is-in { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--wash); }
.totop:hover .totop-arrow { transform: translateY(-2px); }
.totop-arrow { position: relative; z-index: 2; transition: transform .25s var(--ease-out); }
.totop-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop-ring circle { fill: none; stroke-width: 2.5; }
.totop-ring .totop-track { stroke: var(--wash-2); }
.totop-ring .totop-prog { stroke: var(--cyan); stroke-linecap: round; }
@media (max-width: 720px) { .totop { right: 16px; bottom: 84px; width: 44px; height: 44px; } }

/* ---------- auth gate ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  position: relative; overflow: clip; padding: 32px 20px;
  background: var(--grad-hero-navy);
}
.auth::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('../img/noise.png') repeat; background-size: 96px; opacity: .55; mix-blend-mode: overlay;
}
.auth .hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.auth-stack { position: relative; z-index: 2; width: min(440px, 100%); display: grid; justify-items: center; gap: 22px; }
.hs-lockup { display: grid; justify-items: center; gap: 2px; animation: chat-in .6s var(--ease-out); }
.hs-mark { width: 60px; height: 60px; filter: drop-shadow(0 8px 22px rgba(2,10,25,.5)); margin-bottom: 6px; }
.hs-name { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.01em; color: #fff; }
.hs-tag { font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hs-credit { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.5); text-align: center; }
.auth-card {
  width: 100%;
  background: #fff; border-radius: 18px; padding: 44px 42px 34px;
  box-shadow: 0 40px 90px -20px rgba(2,10,25,.65);
  animation: chat-in .5s var(--ease-out);
}
.auth-logo { height: 24px; width: auto; margin-bottom: 30px; }
.auth-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.auth-h { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.75rem; color: var(--ink); margin-bottom: 8px; }
.auth-sub { font-size: .95rem; color: var(--body-c); margin-bottom: 22px; }
.auth-error { background: #FBEAE8; border: 1px solid #EFC5C0; color: #8C2B20; border-radius: 9px; padding: 10px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; }
.auth-dev { background: #FFF7E0; border: 1px solid #F0DFA6; color: #7A5E12; border-radius: 9px; padding: 10px 14px; font-size: .88rem; margin-bottom: 16px; }
.auth-form { display: grid; gap: 10px; }
.auth-label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.auth-input {
  font: inherit; padding: 13px 16px; border: 1.5px solid var(--hair); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-btn { justify-content: center; margin-top: 8px; }
.code-row { display: flex; gap: 9px; justify-content: space-between; }
.code-box {
  width: 100%; aspect-ratio: 4/5; max-width: 56px; text-align: center;
  font-family: var(--f-num); font-size: 1.5rem; font-weight: 800; color: var(--ink);
  border: 1.5px solid var(--hair); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.code-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-2px); }
.auth-alt { margin-top: 16px; font-size: .86rem; }
.auth-alt a { font-weight: 700; }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--wash-2); font-size: .76rem; color: var(--muted); line-height: 1.6; }
.auth-foot a { font-weight: 700; }

/* ---------- responsive ---------- */
/* ---------- reference popovers ---------- */
.ref {
  padding: 0 1px; cursor: pointer; position: relative;
  border-radius: 3px; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 2px;
  transition: background .15s, color .15s;
}
.ref::after { content: ''; position: absolute; inset: -9px -7px; } /* a fingertip-sized target */
.ref:hover, .ref[aria-expanded="true"] { background: var(--cyan); color: #fff; text-decoration-color: transparent; }
.ref:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.refpop {
  position: fixed; top: 0; left: 0; z-index: 160; width: min(380px, calc(100vw - 24px));
  padding: 14px 16px 13px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .84rem; line-height: 1.5;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 22px 48px -14px rgba(2,16,43,.55);
  opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .18s, transform .24s var(--ease-out), visibility 0s .24s;
}
.refpop[data-side="top"] { transform: translateY(-5px); }
.refpop.is-in { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .24s var(--ease-out), visibility 0s; }
.refpop::before {
  content: ''; position: absolute; left: var(--ax, 50%); top: -5px; width: 12px; height: 12px; border-radius: 2px;
  background: var(--navy); transform: translateX(-50%) rotate(45deg);
}
.refpop[data-side="top"]::before { top: auto; bottom: -5px; }
.refpop:focus { outline: none; }
.refpop:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.refpop-h { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.refpop-list { list-style: none; display: grid; gap: 7px; }
.refpop-list li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.refpop-n { font-family: var(--f-num); font-weight: 800; color: rgba(255,255,255,.55); }
.refpop-all { display: inline-block; margin-top: 10px; color: #fff; font-weight: 700; font-size: .76rem; opacity: .78; text-decoration: underline; text-underline-offset: 3px; }
.refpop-all:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .refpop, .refpop.is-in, .medroute, .medroute-card, .asap { transition: none; } }

@media (max-width: 1080px) {
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rep-split { grid-template-columns: minmax(0, 560px); gap: 14px; }
  .rep-or { display: flex; align-items: center; gap: 12px; }
  .rep-or::before, .rep-or::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
  .intent-grid--4, .core-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .claims, .bigstats, .relief-stats--row { grid-template-columns: 1fr; }
  .mayo-grid { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chart-duo { grid-template-columns: 1fr; }
  .esec-grid, .esec-grid--safety { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .split, .split--obd, .goals-grid, .profile-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-photo { position: static; }
  .profile-photo img { max-height: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .band, .esec { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .util-links { display: none; }
  /* the chat FAB is always on screen at this width, so the header keeps one CTA on one line */
  .util-cta--chat { display: none; }
  .util-cta { white-space: nowrap; font-size: .78rem; padding: 7px 12px; }
  /* crumbs scroll sideways on phones; menus escape the scroller as a fixed sheet */
  .crumbs { overflow-x: auto; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }
  .cm, .cm--wide { position: fixed; top: var(--cm-top, 98px); left: 12px; right: 12px; min-width: 0; }
  .cm::before { display: none; }
  .cm--wide .cm-groups, .cm--wide .cm-group--span ul { grid-template-columns: 1fr; }
  .cm--wide .cm-group:nth-child(2) { border-top: 1px solid var(--wash-2); padding-top: 4px; }
  .cm-link { padding: 11px 12px; white-space: normal; }
  .ta-grid, .intent-grid--4, .core-grid, .mayo-grid, .topiclist, .next-row, .benefits, .warn-grid, .wgrid, .res-grid { grid-template-columns: 1fr; }
  .wsteps { gap: 5px; }
  .wstep { min-width: 0; padding: 10px 12px; font-size: .78rem; gap: 7px; }
  .wstep span { width: 22px; height: 22px; font-size: .74rem; flex: none; }
  .topics { grid-template-columns: 1fr 1fr; }
  .medroute-card { flex-direction: column; gap: 12px; padding: 18px; }
  .asap { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .statcard { grid-template-columns: 1fr; justify-items: start; }
  .dose-node { width: 64px; }
  .dose-amt { display: none; }
  .avail { grid-template-columns: 1fr; padding: 10px; gap: 6px; }
  .aday { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 6px 4px 10px; border-bottom: 1px solid var(--wash-2); }
  .aday:last-child { border-bottom: 0; }
  .aday-h { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; padding: 2px 2px 0; }
  .aday-h em { display: inline; }
  .aday .aper--morning { grid-column: 1; grid-row: 2; }
  .aday .aper--afternoon { grid-column: 2; grid-row: 2; }
  .aday .hp { grid-column: 1 / -1; margin-top: -6px; }
  .aday .hp.is-open { margin-top: 0; }
  .aday .hp--morning { grid-row: 3; }
  .aday .hp--afternoon { grid-row: 4; }
  .hp-in { grid-template-columns: repeat(3, 1fr); }
  .hchip { padding: 11px 6px; }
  .cal-range { min-width: 0; }
  .pick-count { margin-left: 0; }
  .done-list div { grid-template-columns: 1fr; gap: 2px; }
  .hero--sub .wrap { padding-top: 48px; padding-bottom: 84px; }
  .hero-copy { padding-bottom: 72px; }
  .foot-meta { flex-direction: column; align-items: flex-start; }
  .foot-meta-r { text-align: left; }
  .chat { right: 12px; bottom: 12px; }
  .chat-dock { right: 16px; bottom: 16px; }
}
