/* =====================================================================
   Conference.care — custom onboarding deck theme
   Palette + brandmark drawn from the official Conference.care logo
   package (Confcare-Logo/colours.json). Font: Onest (brand typeface).
   ===================================================================== */

:root {
  --cc-navy:       #225278; /* darkest brand blue — headings, key text   */
  --cc-mid:        #2B648C; /* mid blue                                   */
  --cc-blue:       #3E8AB5; /* accent blue                                */
  --cc-accent:     #438FB9; /* highlights, links                          */
  --cc-light:      #67B8DC; /* light blue — data callouts, fills          */
  --cc-pale:       #DCEBF4; /* pale wash for cards / tints                */
  --cc-paler:      #EEF4F9; /* even paler card backgrounds                */
  --cc-bg:         #F5F6FA; /* warm white slide background                */
  --cc-footer:     #1C4159; /* deep navy footer band                      */
  --cc-ink:        #333333; /* body text                                  */
  --cc-ink-soft:   #5a6b78; /* secondary text                             */
  --cc-white:      #ffffff;

  --footer-h: 58px;
  --slide-pad-x: 70px;
  --slide-pad-top: 56px;
}

/* ----------------------------- Base ---------------------------------- */
.reveal-viewport { background: var(--cc-bg); }

.reveal {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--cc-ink);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  height: 100%;
  top: 0 !important;
}

/* Per-slide inner wrapper: consistent padding, clears the footer band */
.slide-inner {
  position: absolute;
  inset: 0;
  padding: var(--slide-pad-top) var(--slide-pad-x) calc(var(--footer-h) + 28px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.slide-inner.center { justify-content: center; }

/* --------------------------- Typography ------------------------------ */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--cc-navy);
  margin: 0 0 .35em;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: none;
}
.reveal h1 { font-size: 2.05em; font-weight: 800; }
.reveal h2 { font-size: 1.5em;  font-weight: 700; }
.reveal h3 { font-size: 1.0em;  font-weight: 600; }

.reveal p, .reveal li { line-height: 1.4; }
.reveal strong { color: var(--cc-navy); font-weight: 700; }
.reveal em { color: var(--cc-mid); font-style: italic; }

.eyebrow {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cc-accent);
  margin: 0 0 14px;
}

/* Accent rule under headings */
.rule {
  width: 64px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cc-navy), var(--cc-light));
  margin: 4px 0 26px;
}

/* ---------------------------- Footer band ---------------------------- */
.deck-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: var(--cc-footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 30;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset;
}
.deck-footer img { height: 26px; width: auto; display: block; }

/* Co-branded left cluster: Conference.care (white) + divider + client logo */
.deck-footer .foot-left { display: flex; align-items: center; gap: 14px; }
.deck-footer .foot-sep { width: 1px; height: 26px; background: rgba(255,255,255,.20); }
.deck-footer .foot-client { height: 22px; opacity: .85; }

.deck-footer .foot-right {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .4px;
  display: flex; align-items: center; gap: 16px;
  margin-right: 92px; /* clear the floating nav arrows in the bottom-right corner */
}

/* Download-PDF pill */
.deck-footer .foot-dl {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cc-white);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.deck-footer .foot-dl:hover {
  background: var(--cc-light);
  border-color: var(--cc-light);
  color: var(--cc-navy);
}
.deck-footer .foot-dl svg { display: block; }

/* Reveal navigation arrows — light blue to contrast against the navy footer */
.reveal .controls { color: var(--cc-light); right: 18px; bottom: 6px; }
.reveal .controls button { color: var(--cc-light); }
.reveal .controls .controls-arrow { opacity: .9; }
.reveal .controls .controls-arrow:hover { opacity: 1; }

/* Progress bar — light sky blue fill */
.reveal .progress { color: var(--cc-light); height: 4px; background: rgba(255,255,255,.12); }
.reveal .progress span { background: var(--cc-light); }
.deck-footer .foot-num {
  color: var(--cc-white);
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3px 12px;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------ Cards -------------------------------- */
.card {
  background: var(--cc-white);
  border: 1px solid #E2E9F1;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(34,82,120,.07);
}

/* Generic icon chip */
.chip {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--cc-pale);
  display: flex; align-items: center; justify-content: center;
}
.chip svg { width: 28px; height: 28px; color: var(--cc-navy); }
.chip.solid { background: linear-gradient(135deg, var(--cc-mid), var(--cc-light)); }
.chip.solid svg { color: #fff; }

/* Tick list (slide 2) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; font-size: .82em; }
.facts li > span:not(.tick) { flex: 1; }
.facts .tick {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cc-light); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* --------------------------- Icon grid ------------------------------- */
.icon-grid { display: grid; gap: 18px 26px; }
.icon-grid .cell { display: flex; align-items: center; gap: 16px; }
.icon-grid .cell p { margin: 0; font-size: .72em; line-height: 1.3; }

/* Numbered list (slide 5 / 8) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 16px; }
.steps .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cc-navy); color: #fff; font-weight: 800; font-size: .8em;
  display: flex; align-items: center; justify-content: center;
}
.steps .body { font-size: .76em; line-height: 1.34; padding-top: 5px; }

/* Pills / tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--cc-pale); color: var(--cc-navy);
  border-radius: 22px; padding: 8px 18px;
  font-size: .58em; font-weight: 600;
}

/* Stat callout */
.stat-callout {
  background: linear-gradient(135deg, var(--cc-navy), var(--cc-mid));
  color: #fff; border-radius: 16px; padding: 22px 28px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.stat-callout .big { font-size: 1.9em; font-weight: 800; line-height: 1; color: var(--cc-light); }
.stat-callout p { margin: 0; font-size: .66em; color: rgba(255,255,255,.92); }

/* Callout strip */
.callout {
  border-left: 5px solid var(--cc-light);
  background: var(--cc-paler);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  font-size: .68em; line-height: 1.4; color: var(--cc-mid);
}
.callout strong { color: var(--cc-navy); }

/* ------------------------------ Tables ------------------------------- */
.reveal table.bill {
  border-collapse: collapse; width: 100%; font-size: .62em;
  box-shadow: 0 6px 22px rgba(34,82,120,.07); border-radius: 12px; overflow: hidden;
}
.reveal table.bill th, .reveal table.bill td {
  padding: 13px 16px; text-align: left; border: none;
}
.reveal table.bill thead th { background: var(--cc-navy); color: #fff; font-weight: 600; }
.reveal table.bill tbody tr { background: #fff; }
.reveal table.bill tbody tr:nth-child(even) { background: var(--cc-paler); }
.reveal table.bill td.cc { color: var(--cc-navy); font-weight: 800; }
.reveal table.bill td.std { color: var(--cc-ink-soft); }

/* ----------------------------- Bar chart ----------------------------- */
.barchart { display: grid; gap: 12px; }
.barchart .row { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 14px; }
.barchart .label { font-size: .56em; font-weight: 600; color: var(--cc-ink); text-align: right; }
.barchart .track { background: #E6EDF4; border-radius: 8px; height: 30px; position: relative; }
.barchart .fill {
  height: 100%; border-radius: 8px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px; color: #fff; font-size: .52em; font-weight: 700;
  background: var(--cc-light);
  transition: width .6s ease;
}
.barchart .row.hi .track { background: transparent; }   /* no ghost — it sets the 100% limit */
.barchart .row.hi .fill { background: linear-gradient(90deg, var(--cc-mid), var(--cc-navy)); }
.barchart .row.hi .label { color: var(--cc-navy); font-weight: 800; }

/* Bars grow left-to-right when the slide becomes active */
@media (prefers-reduced-motion: no-preference) {
  .reveal section.present .barchart .fill { animation: growBar 1s cubic-bezier(.22,.61,.36,1) both; }
  .reveal section.present .barchart .row:nth-child(1) .fill { animation-delay: .25s; }
  .reveal section.present .barchart .row:nth-child(2) .fill { animation-delay: .38s; }
  .reveal section.present .barchart .row:nth-child(3) .fill { animation-delay: .51s; }
  .reveal section.present .barchart .row:nth-child(4) .fill { animation-delay: .64s; }
  @keyframes growBar { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* --------------------------- Team avatars ---------------------------- */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.team .member { text-align: center; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--cc-pale), var(--cc-light));
  border: 4px solid #fff; box-shadow: 0 8px 24px rgba(34,82,120,.16);
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.avatar svg { width: 64px; height: 64px; fill: rgba(34,82,120,.35); }
.team .name { font-weight: 800; color: var(--cc-navy); font-size: .78em; }
.team .creds { color: var(--cc-accent); font-weight: 600; font-size: .5em; letter-spacing: .5px; text-transform: uppercase; margin: 2px 0 8px; }
.team .role { font-weight: 700; color: var(--cc-mid); font-size: .56em; margin-bottom: 8px; }
.team .bio  { font-size: .5em; line-height: 1.4; color: var(--cc-ink-soft); }

/* --------------------------- FAQ cards ------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.faq {
  background: #fff; border: 1px solid #E2E9F1; border-left: 4px solid var(--cc-light);
  border-radius: 12px;
  padding: 15px 18px; box-shadow: 0 4px 14px rgba(34,82,120,.05);
}
.faq .q { color: var(--cc-navy); font-weight: 700; font-size: .56em; margin: 0 0 5px; display: flex; gap: 9px; }
.faq .q .qmark { color: var(--cc-light); font-weight: 800; }
.faq .a { color: var(--cc-ink-soft); font-size: .5em; line-height: 1.36; margin: 0; }

/* --------------------------- Title slide ----------------------------- */
.title-grid { display: grid; grid-template-columns: 1fr 1.15fr; height: 100%; align-items: center; gap: 50px; }
.title-left { display: flex; flex-direction: column; gap: 30px; }
.title-left .cc-logo { width: 360px; max-width: 100%; }
.cobrand { display: flex; align-items: center; gap: 22px; }
.cobrand .x { color: var(--cc-ink-soft); font-size: .8em; }
.cobrand .partner { height: 56px; width: auto; }
.title-right h1 { font-size: 2.5em; font-weight: 800; }
.title-right .sub { font-size: 1.0em; color: var(--cc-mid); font-weight: 500; }

/* Decorative side panel */
.title-right { position: relative; }

/* --------------------------- Closing slide --------------------------- */
.closing { text-align: center; }
.closing h1 { font-size: 2.5em; }
.closing .lede { font-size: .92em; color: var(--cc-mid); max-width: 22em; margin: 0 auto 36px; }
.contact-block {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px;
  width: fit-content; max-width: 92%; margin: 0 auto;
  background: #fff; border-radius: 16px;
  padding: 22px 40px; box-shadow: 0 10px 30px rgba(34,82,120,.1);
  font-size: .7em; align-items: center;
}
.contact-block .ci { display: flex; align-items: center; gap: 12px; }
.contact-block .ci svg { width: 24px; height: 24px; color: var(--cc-accent); }
.contact-block strong { color: var(--cc-navy); }

/* Two-column generic */
.cols { display: grid; gap: 40px; flex: 1; min-height: 0; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-2-left { grid-template-columns: 1fr 1.05fr; }
.cols-2-right { grid-template-columns: 1.05fr 1fr; }
.v-center { display: flex; flex-direction: column; justify-content: center; }

/* Section column headers (slide 9) */
.colhead {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  color: var(--cc-navy); font-weight: 800; font-size: .78em;
}
.colhead .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cc-light); }

.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-plain li { position: relative; padding-left: 22px; font-size: .64em; line-height: 1.34; }
.list-plain li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cc-light);
}

/* Fragment-friendly spacing */
.reveal .fragment { transition: all .25s ease; }

/* Account manager slide */
.am-grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; height: 100%; }
.am-photo {
  width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-pale), var(--cc-light));
  border: 6px solid #fff; box-shadow: 0 14px 40px rgba(34,82,120,.2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.am-photo svg { width: 120px; height: 120px; fill: rgba(34,82,120,.35); }
.am-info .name { font-size: 1.5em; font-weight: 800; color: var(--cc-navy); }
.am-info .role { color: var(--cc-accent); font-weight: 600; font-size: .72em; margin-bottom: 18px; }
.am-contact { display: grid; gap: 10px; font-size: .66em; margin: 14px 0 20px; }
.am-contact .ci { display: flex; align-items: center; gap: 12px; }
.am-contact .ci svg { width: 22px; height: 22px; color: var(--cc-accent); }
.am-body { font-size: .62em; color: var(--cc-ink-soft); font-style: italic; line-height: 1.4; max-width: 26em; }
.mini-team { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.mini-team .mini {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-pale), var(--cc-light));
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(34,82,120,.14);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mini-team .mini svg { width: 28px; height: 28px; fill: rgba(34,82,120,.4); }
.mini-team .cap { font-size: .52em; color: var(--cc-ink-soft); font-weight: 600; margin-left: 6px; }

/* Discipline tiles (slide 10) */
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.disc {
  position: relative; background: linear-gradient(180deg,#fff,#fbfdff);
  border: 1px solid rgba(34,82,120,.10); border-radius: 13px;
  padding: 15px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 9px; text-align: center; box-shadow: 0 1px 2px rgba(22,56,78,.05), 0 2px 8px rgba(22,56,78,.05);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1);
}
.disc:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(22,56,78,.06), 0 12px 30px rgba(22,56,78,.09); }
.disc .di {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--cc-paler), #fff); border: 1px solid rgba(34,82,120,.08);
}
.disc svg { width: 24px; height: 24px; color: var(--cc-mid); }
.disc span { font-size: .46em; font-weight: 600; color: var(--cc-navy); line-height: 1.2; }

.conf-types { display: grid; grid-template-columns: 1fr; gap: 18px; }
.conf-type {
  font-size: .54em; line-height: 1.4; color: var(--cc-ink-soft);
  padding-left: 16px; border-left: 2px solid var(--cc-pale);
}
.conf-type b {
  display: block; color: var(--cc-navy); font-weight: 800;
  font-size: 1.08em; letter-spacing: -.2px; margin-bottom: 3px;
}

/* video call illustration */
.videocall { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 450px; }
.vc-tile {
  aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--cc-mid), var(--cc-navy));
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: 0 8px 22px rgba(34,82,120,.18);
}
.vc-tile:nth-child(2){ background: linear-gradient(160deg, var(--cc-blue), var(--cc-mid)); }
.vc-tile:nth-child(3){ background: linear-gradient(160deg, var(--cc-accent), var(--cc-blue)); }
.vc-tile:nth-child(4){ background: linear-gradient(160deg, var(--cc-light), var(--cc-accent)); }
.vc-tile svg { width: 46%; height: 46%; fill: rgba(255,255,255,.9); }
.vc-tile .mic {
  position: absolute; bottom: 8px; left: 8px; width: 20px; height: 20px;
  background: rgba(255,255,255,.2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.vc-tile .mic svg { width: 12px; height: 12px; }

/* helper for big number lockups */
.metric { color: var(--cc-light); font-weight: 800; }

/* =====================================================================
   BROCHURE STYLE — big soft circles, brandmark watermark, photography
   ===================================================================== */

/* Atmospheric soft-blue blobs (brochure background feel) */
.reveal-viewport {
  background-color: var(--cc-bg);
  background-image:
    radial-gradient(900px 900px at 97% -10%, rgba(103,184,220,.22), transparent 55%),
    radial-gradient(620px 620px at 88% 6%, rgba(78,156,196,.14), transparent 52%),
    radial-gradient(1100px 850px at -12% 112%, rgba(220,235,244,.65), transparent 55%);
}

/* Concentric-brandmark watermark bleeding off the top-right corner */
.reveal .slides section { overflow: hidden; }
.reveal .slides section::before {
  content: ""; position: absolute; top: -155px; right: -135px;
  width: 470px; height: 470px; z-index: 0; pointer-events: none;
  -webkit-mask: url(../assets/logos/brandmark-tight.svg) center/contain no-repeat;
          mask: url(../assets/logos/brandmark-tight.svg) center/contain no-repeat;
  background: #b7d6ea; opacity: .5;
}
.reveal .slides section.dark-slide::before { background: #ffffff; opacity: .08; }
.slide-inner { z-index: 2; }

/* Brighter sky-blue kicker, like the brochure section labels */
.eyebrow { color: #50A8D6; }

/* Photo components ---------------------------------------------------- */
.photo-frame {
  border-radius: 22px; overflow: hidden; border: 7px solid #fff;
  box-shadow: 0 22px 55px rgba(22,56,78,.22); background: #fff;
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.photo-plain { border-radius: 22px; overflow: hidden; box-shadow: 0 22px 55px rgba(22,56,78,.20); }
.photo-plain img { display: block; width: 100%; height: 100%; object-fit: contain; }

.photo-circle {
  border-radius: 50%; overflow: hidden; border: 5px solid #fff;
  box-shadow: 0 14px 40px rgba(22,56,78,.22);
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Real-photo video-call tiles (slide 2) */
.vc-tile.photo { background: #0c2c3f; }
.vc-tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-tile .name-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(12,32,48,.72); color: #fff; font-size: .34em; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; letter-spacing: .2px;
}
.vc-tile.photo .mic { z-index: 2; left: auto; right: 10px; bottom: 10px; }

/* Account-manager photo fills the round frame */
.am-photo.has-photo { background: none; }
.am-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Photo with caption overlay (brochure-style, slide 5) */
.photo-caption {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 22px 55px rgba(22,56,78,.22);
}
.photo-caption img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-caption .cap-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 24px 22px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(to top, rgba(12,32,48,.94), rgba(12,32,48,.74) 55%, transparent);
}
.photo-caption .cap-overlay p { margin: 0; font-size: .58em; line-height: 1.4; color: #fff; }
.photo-caption .cap-overlay strong { color: var(--cc-light); }
.photo-caption .cap-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
}
.photo-caption .cap-icon svg { width: 26px; height: 26px; color: #fff; }

/* Slightly rounder, brochure-grade panels */
.stat-callout { border-radius: 20px; }
.callout { border-radius: 0 16px 16px 0; }
.card { border-radius: 18px; }

/* "Patients who benefit most" — central image with floating labels */
.benefit-stage { position: relative; width: 100%; max-width: 960px; height: 100%; margin: 0 auto; }
.benefit-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 240px; height: 240px; border-radius: 50%; overflow: hidden; z-index: 2;
  background: radial-gradient(circle at 35% 28%, #eaf4fb, var(--cc-light));
  border: 6px solid #fff; box-shadow: 0 18px 50px rgba(22,56,78,.22);
  display: flex; align-items: center; justify-content: center;
}
.benefit-center svg { width: 112px; height: 112px; fill: rgba(34,82,120,.42); }
.benefit-center img { width: 100%; height: 100%; object-fit: cover; }

/* Central photo with a steady fade-out to the slide background (soft bokeh edge) */
.benefit-photo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 680px; max-width: 72%; z-index: 1;
}
.benefit-photo img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 40%, rgba(0,0,0,0) 80%);
          mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 40%, rgba(0,0,0,0) 80%);
}
.benefit-label {
  position: absolute; z-index: 3; white-space: nowrap;
  background: #fff; border: 1px solid rgba(34,82,120,.14); border-radius: 24px;
  padding: 12px 22px; font-size: .6em; font-weight: 700; color: var(--cc-navy);
  box-shadow: 0 8px 22px rgba(22,56,78,.12);
}

/* Platform slide — "how it works" screenshots as a prominent 1x4 row */
.hiw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; flex: 1; min-height: 0;
}
.hiw-card {
  display: flex; flex-direction: column; min-height: 0;
  background: #fff; border: 1px solid #E2E9F1; border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 26px rgba(34,82,120,.10);
}
.hiw-card .shot {
  flex: 1; min-height: 0; width: 100%; overflow: hidden;
  background: #fff;
}
.hiw-card .shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transform: scale(1.12); transform-origin: top center;
}
.hiw-cap {
  flex: 0 0 auto; display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
}
.hiw-cap .n {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-mid), var(--cc-light));
  color: #fff; font-size: .54em; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hiw-cap .lbl { display: flex; flex-direction: column; font-size: .54em; color: var(--cc-navy); line-height: 1.2; }
.hiw-cap .lbl strong { color: var(--cc-navy); font-weight: 800; }
.hiw-cap .lbl .d { font-size: .82em; font-weight: 500; color: var(--cc-ink-soft); margin-top: 3px; }

.hiw-doc {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; flex: 0 0 auto;
  background: linear-gradient(120deg, var(--cc-navy), var(--cc-mid));
  border-radius: 14px; padding: 11px 22px; box-shadow: 0 10px 30px rgba(22,56,78,.18);
}
.hiw-doc .ic {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.hiw-doc .ic svg { width: 20px; height: 20px; color: #fff; }
.hiw-doc p { margin: 0; font-size: .6em; color: rgba(255,255,255,.92); }
.hiw-doc p strong { color: #fff; }

/* Enlarged screenshot overlay (JS-driven, sits on top of the grid) */
.hiw-zoom-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hiw-step { display: none; }                       /* step markers are invisible */
.hiw-scrim {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: rgba(245,246,250,.42); backdrop-filter: blur(2px);
}
.hiw-scrim.on { opacity: 1; }
.hiw-stage { position: absolute; inset: 0; overflow: hidden; }
.hiw-stage .zoom-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  opacity: 0; transform: translateX(0) scale(1);
  transition: transform .5s cubic-bezier(.22,.72,.24,1), opacity .42s ease;
}
.hiw-stage .zoom-inner.s-center { opacity: 1; transform: translateX(0) scale(1); }
.hiw-stage .zoom-inner.s-left   { opacity: 1; transform: translateX(-108%) scale(1); }
.hiw-stage .zoom-inner.s-right  { opacity: 1; transform: translateX(108%) scale(1); }
.hiw-stage .zoom-inner.s-zoom   { opacity: 0; transform: translateX(0) scale(.4); }
/* zoom in from card 1's spot; zoom back out toward card 4's spot */
.hiw-stage .zoom-inner[data-i="0"] { transform-origin: 16% 74%; }
.hiw-stage .zoom-inner[data-i="3"] { transform-origin: 84% 74%; }

/* enlarged screenshot presented as a single card (image + caption strip) */
.zoom-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #E2E9F1; border-radius: 16px;
  box-shadow: 0 22px 52px rgba(22,56,78,.24); max-height: 86%;
}
.zoom-shot { display: flex; align-items: center; justify-content: center; padding: 18px 18px 6px; min-height: 0; }
.zoom-shot img {
  max-height: 430px; max-width: 660px; width: auto; height: auto;
  object-fit: contain; display: block;
}
.zoom-cap { padding: 13px 22px; border-top: 1px solid #EEF2F6; gap: 13px; }
.zoom-cap .n { width: 30px; height: 30px; font-size: .66em; }
.zoom-cap .lbl { font-size: .72em; }
.zoom-cap .lbl .d { font-size: .82em; margin-top: 3px; }

/* Contacts slide — Rosanna centred & prominent, Daniel + Trent flanking (no cards) */
.contact-photo {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(34,82,120,.16);
  background: radial-gradient(circle at 35% 28%, #eaf4fb, var(--cc-light));
  display: flex; align-items: center; justify-content: center;
}
.contact-photo.md { width: 120px; height: 120px; }
.contact-photo.xl { width: 190px; height: 190px; border-width: 6px; }
.contact-photo svg { width: 46%; height: 46%; fill: rgba(34,82,120,.5); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

.cname { font-size: .82em; font-weight: 800; color: var(--cc-navy); line-height: 1.1; }
.crole { font-size: .5em; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--cc-accent); margin: 4px 0 12px; }
.tbc { color: var(--cc-ink-soft); font-weight: 500; font-size: .62em; }
.clines { display: flex; gap: 26px; font-size: .54em; color: var(--cc-ink); }
.clines.col { flex-direction: column; gap: 8px; }
.clines.center { align-items: center; }
.clines .ci { display: flex; align-items: center; gap: 9px; }
.clines .ci svg { width: 18px; height: 18px; color: var(--cc-light); flex: 0 0 auto; }

.contacts-arc {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 64px; height: 100%; padding-top: 18px;
}
.contact-person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-person .cname { margin-top: 16px; }
.contact-person .crole { margin: 7px 0 12px; }
.crole.sky { color: var(--cc-light); }
.contact-blurb {
  font-size: .52em; line-height: 1.4; font-style: italic;
  color: var(--cc-light); max-width: 22em; margin: 24px 0 0;
}
/* Rosanna raised; flanking contacts dropped lower and aligned with each other */
.contact-person.lead { margin-top: -22px; }
.contact-person.side { margin-top: 74px; width: 240px; }
.contact-person.side .cname { font-size: .72em; }
.contact-person.side .crole { min-height: 2.4em; }
.contact-person.lead .contact-photo.xl {
  box-shadow: 0 16px 44px rgba(34,82,120,.24), 0 0 0 4px var(--cc-pale);
}
.contact-person.side .contact-photo.md {
  box-shadow: 0 8px 22px rgba(34,82,120,.16), 0 0 0 2px var(--cc-pale);
}
.clines .ci a { color: var(--cc-mid); text-decoration: none; }
.clines .ci a:hover { text-decoration: underline; }
.contact-block .ci a { color: inherit; text-decoration: none; }
.contact-block .ci a:hover { text-decoration: underline; }
.contact-person.lead .cname { font-size: .96em; }
.contact-person.lead .crole { color: var(--cc-light); }

/* Citation superscripts (slide 3) + references slide */
sup.cite { font-size: .5em; font-weight: 700; vertical-align: super; line-height: 0; margin-left: 3px; white-space: nowrap; }
sup.cite a { color: var(--cc-accent); text-decoration: none; }
sup.cite a:hover { text-decoration: underline; }

.refs { column-count: 2; column-gap: 44px; margin-top: 6px; }
.refs .ref {
  break-inside: avoid; display: flex; gap: 9px; margin-bottom: 10px;
  font-size: .44em; line-height: 1.36; color: var(--cc-ink);
}
.refs .ref .rn { flex: 0 0 auto; font-weight: 800; color: var(--cc-accent); min-width: 1.4em; }
.refs .ref a { color: var(--cc-mid); word-break: break-word; }
.reveal a.ref-back {
  position: absolute; top: var(--slide-pad-top); right: var(--slide-pad-x);
  font-size: .5em; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--cc-navy); padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,56,78,.22);
}
.reveal a.ref-back:hover { background: var(--cc-mid); }
