/* ==========================================================================
   Frontline Health Assist: design tokens
   Deep plum #4A1942 / Raspberry #C2185B / Warm pink #F48FB1
   Blush #FCE4EC / Cream #FFF8F5 / Soft gold #D9A441
   ========================================================================== */
:root {
  --ink: #4A1942;            /* deep plum: headings, buttons, dark sections */
  --ink-deep: #3D1437;
  --ink-2: #6D2B5E;
  --text: #33232F;           /* body copy */
  --muted: #66505F;          /* secondary text */
  --line: rgba(74, 25, 66, .1);
  --line-strong: rgba(74, 25, 66, .2);

  /* Background system */
  --bg: #FFF8F5;             /* cream: main page background */
  --surface: #ffffff;        /* cards and panels */
  --tint: #FCE4EC;           /* blush section background */
  --plum-deep: #4A1942;      /* feature section + footer */
  --plum-mid: #64204E;
  --on-plum: #FFF8F5;        /* cream text on plum */
  --on-plum-muted: #E8B8CF;
  --card-border: rgba(74, 25, 66, .1);
  --card-shadow: 0 12px 32px rgba(74, 25, 66, .07);
  --divider: rgba(74, 25, 66, .1);

  --brand: #C2185B;          /* raspberry: primary actions, links */
  --brand-600: #961449;
  --brand-400: #F48FB1;      /* warm pink: decorative highlights */
  --brand-50: #FCE4EC;       /* blush */
  --accent: #C2185B;
  --accent-50: #FCE4EC;
  --ok: #16a34a;
  --gold: #D9A441;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(74, 25, 66, .05);
  --shadow: 0 12px 32px rgba(74, 25, 66, .06);
  --shadow-lg: 0 2px 6px rgba(74, 25, 66, .05), 0 24px 48px -16px rgba(74, 25, 66, .18);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
/* Paragraph links get a visible underline and the dark-raspberry colour */
p a:not([class]) { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brand);
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 1.075rem; }
.fine { color: var(--muted); font-size: .85rem; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --fg: #fff; --bd: #C2185B;
  background: linear-gradient(135deg, #C2185B 0%, #961449 100%);
  color: #fff;
  border-color: #C2185B;
  box-shadow: 0 6px 20px -6px rgba(194, 24, 91, .45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #A81450 0%, #7A103C 100%);
  border-color: #A81450;
  box-shadow: 0 8px 24px -6px rgba(194, 24, 91, .55);
}
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn-outline:hover { --bg: var(--surface); --bd: var(--ink); }
.btn-accent { --bg: var(--brand); --fg: #fff; --bd: var(--brand); background: var(--brand); color: #fff; }
.btn-accent:hover { --bg: var(--brand-600); --bd: var(--brand-600); background: var(--brand-600); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Utility bar + header
   ========================================================================== */
.utility { background: var(--tint); color: var(--ink-2); font-size: .82rem; border-bottom: 1px solid var(--divider); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility p { margin: 0; display: flex; align-items: center; gap: .6rem; }
.utility-links { display: flex; gap: 24px; }
.utility a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.utility a:hover { color: var(--brand); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--divider); box-shadow: 0 8px 24px -18px rgba(74, 25, 66, .3); background: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { width: auto; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links > a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links > a:hover { background: var(--tint); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-quiet { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-quiet:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 72px;
  background: linear-gradient(135deg, #FFF8F5 0%, #FCE4EC 65%, #F9D5E5 100%);
}
.hero-grid > *, .roles > *, .compliance > *, .calc-wrap > *, .contact > *, .faq > *, .about-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.4rem, 4.6vw, 3.6rem); color: var(--ink); }
.hero h1 em { display: block; color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; line-height: 1.6; margin-bottom: 2.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* Hero visual: photo with glow and floating status card */
.hero-visual {
  position: relative; padding: 24px 0 40px 32px;
  background: radial-gradient(ellipse 80% 80% at 72% 42%, rgba(194, 24, 91, .1) 0%, transparent 65%);
}
.hero-photo {
  width: 100%; max-width: 500px; margin-left: auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint);
  box-shadow: 0 2px 8px rgba(74, 25, 66, .1), 0 32px 56px -24px rgba(74, 25, 66, .22);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border); border-radius: 16px; box-shadow: var(--card-shadow);
  padding: 12px 16px; font-size: .88rem;
}
.float b { display: block; font-weight: 700; line-height: 1.3; color: var(--ink); }
.float small { color: var(--muted); font-size: .78rem; }
.float-toast { bottom: 72px; left: 0; }
.toast-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.toast-icon .ic { stroke-width: 3; width: 16px; height: 16px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: .8rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--ink));
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* Systems marquee */
.systems { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 32px; }
.systems > p { margin: 0; flex: none; max-width: 160px; font-size: .85rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.marquee { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-400); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: 24px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.stats-grid > div { padding: 32px 28px; border-left: 1px solid var(--divider); }
.stats-grid > div:first-child { border-left: 0; }
.stats-grid strong { display: block; font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: .6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats-grid > div > span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; max-width: 220px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 112px 0; position: relative; }
.section-tint { background: var(--tint); }

.section-divided::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1200px, 100% - 40px); height: 1px; background: var(--divider);
}

/* The dark feature section: deep plum gradient with a faint raspberry glow. */
.section-navy {
  overflow: hidden; color: var(--on-plum);
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(194, 24, 91, .12) 0%, rgba(194, 24, 91, .04) 45%, rgba(194, 24, 91, 0) 75%),
    linear-gradient(135deg, #4A1942 0%, #64204E 60%, #7A2458 100%);
}
.section-navy::after {
  content: ""; position: absolute; right: -48px; bottom: -56px; width: 340px; height: 340px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 168V52l120 100V32M64 46l96 80'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .07;
}
.section-navy > .container { position: relative; z-index: 1; }
.section-navy h2 { color: #fff; }
.section-navy h2 em, .section-navy .eyebrow { color: var(--brand-400); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.split-head { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.split-head > p { margin: 0 0 .6rem; }

/* Photos */
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); background: var(--tint); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo-sm { margin-top: 28px; max-width: 460px; }
.photo-sm img { aspect-ratio: 16 / 10; object-position: 40% 50%; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 961px) { .roles-4 .role > p:not([class]) { min-height: calc(2 * 1.65em); } }
.role .role-kicker { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.role {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.role:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(74, 25, 66, .1); }
.role-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.role-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); transition: background .3s, color .3s; }
.role-icon .ic { width: 22px; height: 22px; }
.role:hover .role-icon { background: var(--ink); color: #fff; }
.role-icon.light { background: rgba(244, 143, 177, .2); color: var(--brand-400); }
.role p { color: var(--muted); font-size: .96rem; }
.avatars { display: flex; }
.avatars span { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--surface); font-size: .68rem; font-weight: 700; color: #fff; background: var(--ink); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--brand); color: #fff; }
.avatars span:last-child { background: var(--tint); color: var(--ink-2); }
.tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .76rem; font-weight: 600; color: var(--ink-2); background: var(--tint); padding: .3rem .65rem; border-radius: 999px; }
.role-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--brand); text-decoration: none; }
.role-link .ic { transition: transform .25s var(--ease); }
.role:hover .role-link .ic { transform: translateX(4px); }
.role-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Expandable task list on each service card */
.role-tasks { margin: 4px 0 22px; border-top: 1px solid var(--divider); }
.role-tasks summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 10px 0 0; list-style: none; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--ink);
}
.role-tasks summary::-webkit-details-marker { display: none; }
.role-tasks summary .ic { width: 18px; height: 18px; color: var(--brand); transition: transform .3s var(--ease); }
.role-tasks[open] summary .ic { transform: rotate(45deg); }
.role-tasks summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.role-tasks ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.role-tasks li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--text); }
.role-tasks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.role .role-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: .84rem; line-height: 1.5; color: var(--muted); }

/* About checklist */
.about-list { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.about-list .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--surface); border: 1px solid var(--card-border); color: var(--brand); stroke-width: 3; }

/* About layout (photo + copy) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-grid .muted { margin-bottom: 1rem; max-width: 480px; }
.chips { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: .5rem 1rem; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--card-border); border-radius: 999px;
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.chips li:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Regular bento cards sit on the dark plum section — keep them translucent so section bg shows through */
.bento-card {
  padding: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg);
}
.bento-card .role-icon { margin-bottom: 20px; }
.bento-card p { color: var(--on-plum-muted); font-size: .95rem; margin: 0; }
.bento-card h3 { color: #fff; }
/* The large feature card: light cream-to-blush on the dark plum section */
.bento-feature {
  grid-column: span 2; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 26px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF8F5 65%, #FCE4EC 100%);
  border: 1px solid var(--card-border);
  position: relative; overflow: hidden;
}
.bento-feature h3 { font-size: 1.6rem; color: var(--ink); }
.bento-feature p { color: var(--muted); font-size: 1.02rem; max-width: 420px; }
.bento-feature > div:first-child > p:last-child { margin-bottom: 0; }
.bento-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1.4fr auto; align-items: center; gap: 24px; }
.bento-wide .role-icon, .bento-wide h3 { margin: 0; }

/* Conversation: sits directly on the feature card. */
.chat { display: flex; flex-direction: column; align-items: flex-start; }
.chat .chat-sender {
  margin: 0 0 6px; max-width: none;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; color: var(--muted);
}
.chat .chat-sender-out { align-self: flex-end; margin-top: 12px; }
.chat .msg {
  margin: 0; width: fit-content; max-width: 85%;
  padding: 11px 15px; border-radius: 16px;
  font-size: 14px; line-height: 1.45;
}
.chat .msg + .msg, .chat .msg + .msg-slot, .chat .msg-slot + .msg { margin-top: 12px; }
/* Practice: blush bubble, plum text */
.chat .msg.in { background: #FCE4EC; color: var(--ink); border-bottom-left-radius: 6px; }
.nowrap { white-space: nowrap; }
/* Account manager: raspberry bubble, white text */
.chat .msg.out { background: #C2185B; color: #fff; font-weight: 500; border-bottom-right-radius: 6px; }

/* Reply slot: reserves space for reply / typing indicator */
.msg-slot { position: relative; display: flex; justify-content: flex-end; align-self: stretch; }
.typing {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 18px 16px; border-radius: 16px; border-bottom-right-radius: 6px;
  background: #C2185B;
  opacity: 0; pointer-events: none;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); opacity: .7; animation: typing-dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .7; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Animated states */
.chat.is-animated .msg,
.chat.is-animated .typing,
.chat.is-animated .chat-sender {
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}
.chat.is-animated .msg { opacity: 0; transform: translateY(8px); }
.chat.is-animated .typing { transform: translateY(8px); }
.chat.is-animated .chat-sender { opacity: 0; }
.chat.is-animated .msg.is-shown,
.chat.is-animated .typing.is-shown,
.chat.is-animated .chat-sender.is-shown { opacity: 1; transform: none; }
.chat.is-animated .typing:not(.is-shown) i { animation-play-state: paused; }
.chat.is-paused .typing i { animation-play-state: paused; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; padding: 32px 28px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.step-num { display: inline-block; margin-bottom: 28px; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--brand); }
.step-num.trial-step { color: var(--brand); }
.steps li:last-child { border-color: rgba(194,24,91,.35); box-shadow: 0 0 0 3px rgba(194,24,91,.08); }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps-note { margin-top: 32px; padding: 16px 20px; background: var(--tint); border-radius: var(--radius); font-size: .93rem; color: var(--muted); }
.steps-note strong { color: var(--ink); }

/* Compliance */
.compliance { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comp-grid article {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--card-border);
  transition: border-color .3s;
}
.comp-grid article:hover { border-color: rgba(194, 24, 91, .4); }
.comp-grid .ic { width: 26px; height: 26px; color: var(--brand); margin-bottom: 18px; }
.comp-grid h3 { font-size: 1.02rem; }
.comp-grid p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Calculator */
.calc-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.calc { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--card-shadow); padding: 36px; }
.calc-fields { display: grid; gap: 26px; margin-bottom: 28px; }
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.calc output { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc input[type=range] {
  grid-column: 1 / -1; width: 100%; height: 6px; margin: 4px 0;
  -webkit-appearance: none; appearance: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--brand) var(--fill, 50%), #e8d0e4 var(--fill, 50%));
}
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.calc input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.calc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.calc-compare div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.calc-compare span, .calc-result span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.calc-compare strong { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-compare div:first-child strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(122,91,115,.4); }
.calc-result { padding: 22px 22px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #4A1942, #961449); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; }
.calc-result span { color: rgba(255,255,255,.7); grid-column: 1 / -1; }
.calc-result strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-result small { font-weight: 700; font-size: .85rem; color: var(--ink-deep); background: var(--brand-400); padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; }
.calc-result small:empty { display: none; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--card-shadow); }
.plan h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.plan-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 1.6rem; color: var(--ink); }
.price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.plan ul { list-style: none; margin: 1.8rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--divider); display: grid; gap: 12px; }
.plan li { display: flex; gap: .7rem; font-size: .94rem; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2185B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan-featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan-featured h3, .plan-featured .price { color: #fff; }
.plan-featured .plan-sub, .plan-featured .price span { color: var(--on-plum-muted); }
.plan-featured ul { border-color: rgba(255,255,255,.14); }
.plan-featured li::before { background-color: rgba(244,143,177,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F48FB1' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan-badge { position: absolute; top: 32px; right: 28px; margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); padding: .35rem .7rem; border-radius: 999px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 40px 0 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.quote { margin: 0; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); }
.quote blockquote { margin: 0; font-size: 1.1rem; font-weight: 500; line-height: 1.55; letter-spacing: -0.01em; color: var(--ink); }
.quote-lg { grid-row: span 2; background: var(--brand-50); border-color: transparent; padding: 44px; }
.quote-lg blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote-lg blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--brand); margin-bottom: 12px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption b { display: block; font-size: .95rem; color: var(--ink); }
.quote figcaption small { color: var(--muted); font-size: .85rem; }

/* Tools section */
.tools-row { display: flex; justify-content: center; align-items: stretch; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.tool-badge {
  flex: 0 0 auto; min-width: 180px; padding: 28px 36px;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em;
  text-align: center; box-shadow: var(--card-shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tool-badge:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(74,25,66,.1); }
.tools-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 32px; max-width: 520px; margin-inline: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq > div:first-child { position: sticky; top: 120px; }
.faq .muted { margin-bottom: 1.8rem; }
.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.accordion details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--tint); color: var(--ink); transition: transform .3s var(--ease), background .3s, color .3s; }
.accordion details[open] summary .ic { transform: rotate(45deg); background: var(--ink); color: #fff; }
.accordion details p { margin: 0; padding: 0 24px 0; color: var(--muted); max-width: 620px; }
.accordion details p:last-of-type { padding-bottom: 22px; }
.accordion details p + p { margin-top: .75rem; }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
  padding: 64px; border-radius: var(--radius-xl);
  background: var(--tint); border: 1px solid var(--card-border);
}
.contact-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 440px; }
.contact-steps { list-style: none; counter-reset: cs; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.contact-steps li { counter-increment: cs; display: flex; align-items: baseline; gap: 12px; font-size: .95rem; color: var(--muted); }
.contact-steps li::before { content: counter(cs); min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1.5px solid rgba(194,24,91,.35); border-radius: 50%; font-size: .75rem; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.contact-info { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.contact-info .ic { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--card-border); color: var(--brand); }
.contact-info a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-info a:hover { text-decoration: underline; }
.form { display: grid; gap: 16px; padding: 32px; background: var(--surface); color: var(--text); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .95rem; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1.5px solid rgba(74, 25, 66, .22); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #907580; }
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #fff inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(74,25,66,.35); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(194,24,91,.12); }
.form textarea { resize: vertical; min-height: 92px; }
.form .invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.form-status { margin: 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; text-align: center; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }

/* Careers */
.careers-section { padding: 0 0 112px; }
.careers {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px 48px; border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--card-border);
}
.careers h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .3rem; }
.careers p { margin: 0; color: var(--muted); }

/* Footer: cream surface with blush border */
.site-footer { background: #FFF8F5; color: var(--muted); padding: 72px 0 32px; font-size: .93rem; border-top: 2px solid #FCE4EC; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.site-footer .logo { display: block; width: fit-content; margin: 0 0 16px; padding: 0; background: none; }
.site-footer .logo img { display: block; width: 240px; height: auto; filter: none; }
.site-footer .logo:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.footer-brand p { max-width: 300px; margin: 0 0 16px; color: var(--muted); }
.footer-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: #FCE4EC; border-radius: 10px;
  color: var(--ink); text-decoration: none;
  font-size: .88rem; font-weight: 600; line-height: 1;
  transition: background .2s, color .2s;
}
.footer-linkedin:hover { background: #F9D5E5; color: var(--brand); }
.footer-linkedin:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.footer-linkedin .ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; }
.site-footer h4 { color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer nav a, .footer-contact a { display: block; text-decoration: none; padding: .3rem 0; color: var(--text); transition: color .2s; }
.footer-contact p { margin-top: .3rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--divider); font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; color: var(--muted); }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.role.reveal.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links > a { padding: .5rem .6rem; }
  .nav-quiet { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-template-columns: auto 1fr; }
  .bento-wide p { grid-column: 1 / -1; }
  .bento-wide .btn { grid-column: 1 / -1; justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .hero-grid, .about-grid, .compliance, .calc-wrap, .faq, .contact, .split-head { grid-template-columns: 1fr; gap: 48px; }
  .split-head { gap: 16px; }
  .hero-visual { max-width: 560px; padding-left: 0; }
  .hero-photo { margin-left: 0; max-width: none; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .float-toast { bottom: 16px; left: 16px; }
  .roles, .pricing { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .faq > div:first-child { position: static; }
  .contact { padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a { padding: .9rem .5rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { flex-direction: column; align-items: stretch; margin: 12px 0 0; gap: 12px; }
  .nav-quiet { display: block; text-align: center; padding: .5rem; }
  .nav-cta .btn { padding: .95rem; font-size: 1rem; }
  .logo img { height: 30px; }
  .site-footer .logo img { width: 200px; height: auto; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .utility p { display: none; }
  .utility-inner { justify-content: center; }
  .hero { padding: 40px 0 24px; }
  .lead { font-size: 1.08rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual { padding: 0 0 8px; background: none; }
  .float { padding: 10px 12px; }
  .systems { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
  .systems > p { max-width: none; }
  .marquee { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-left: 0 !important; border-top: 1px solid var(--divider); padding: 24px; }
  .section-navy::after { width: 220px; height: 220px; right: -40px; bottom: -40px; }
  .stats-grid > div:first-child { border-top: 0; }
  .roles, .pricing, .bento, .steps, .steps-3, .comp-grid, .calc-compare, .form .row { grid-template-columns: 1fr; }
  .bento-feature { grid-column: auto; grid-row: auto; }
  .bento-wide { display: block; }
  .bento-wide .role-icon { margin-bottom: 20px; }
  .bento-wide h3 { margin-bottom: .6rem; }
  .bento-wide p { margin-bottom: 20px; }
  .quotes { grid-template-columns: 1fr; }
  .quote-lg { grid-row: auto; padding: 32px; }
  .calc { padding: 24px; }
  .contact { padding: 28px 20px; border-radius: var(--radius-lg); }
  .form { padding: 22px; }
  .careers { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .careers-section { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tools-row { flex-direction: column; align-items: stretch; }
  .tool-badge { min-width: auto; }
}

/* Who we support: three equal audience cards */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audience {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
}
.audience .role-icon { margin-bottom: 20px; }
.audience h3 { font-size: 1.15rem; }
.audience p { color: var(--muted); font-size: .96rem; margin-bottom: 24px; }
.audience .role-link { margin-top: auto; }
#who-we-support .section-head { max-width: 880px; }

/* Active page nav link */
.nav-links > a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 600; }

/* Sub-page intro header (replaces hero on interior pages) */
.page-intro {
  position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 72px;
  background: linear-gradient(135deg, #FFF8F5 0%, #FCE4EC 65%, #F9D5E5 100%);
}
.page-intro-inner { max-width: 760px; }
.page-intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 1.2rem; }
.page-intro .lead { margin-bottom: 0; max-width: 560px; }
@media (max-width: 640px) { .page-intro { padding: 56px 0 48px; } }

/* CTA banner at bottom of sub-pages */
.cta-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  padding: 56px 64px;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
}
.cta-banner h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-banner p { color: var(--muted); max-width: 440px; margin: .6rem 0 0; }
@media (max-width: 820px) { .cta-banner { grid-template-columns: 1fr; gap: 28px; padding: 40px 36px; } }
@media (max-width: 640px) { .cta-banner { padding: 32px 24px; } }

/* Team placeholder (About page) */
.team-placeholder {
  text-align: center; max-width: 600px; margin-inline: auto;
  padding: 56px 48px;
  background: var(--surface); border: 1.5px solid var(--tint);
  border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
}
.team-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem;
  padding: .35rem .8rem;
  background: var(--tint); color: var(--brand);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px;
}
.team-placeholder h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.team-placeholder > p { color: var(--muted); max-width: 460px; margin-inline: auto; margin-bottom: 0; }
@media (max-width: 640px) { .team-placeholder { padding: 40px 24px; } }

/* Accessible-only text */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "Apply as a VA" visible only in mobile menu */
.nav-mobile-only { display: none; }

/* Audience section needs less top space (right under the hero) */
.section-who { padding-top: 72px; }
@media (max-width: 820px) { .nav-links .nav-mobile-only { display: block; } }

/* ==========================================================================
   Hero: cream/blush gradient with drifting pink ribbons
   ========================================================================== */
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ribbon {
  position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px);
  will-change: transform; transform-origin: 70% 60%;
  animation: var(--drift) var(--dur) ease-in-out infinite; animation-delay: var(--delay);
}
.ribbon-1 { --drift: ribbon-drift-1; --dur: 26s; --delay: -4s; }
.ribbon-2 { --drift: ribbon-drift-2; --dur: 30s; --delay: -13s; }
.ribbon-3 { --drift: ribbon-drift-3; --dur: 22s; --delay: -9s; opacity: .9; }
@keyframes ribbon-drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%      { transform: translate3d(-28px, 18px, 0) rotate(-1.6deg); }
  66%      { transform: translate3d(14px, 32px, 0) rotate(.8deg); }
}
@keyframes ribbon-drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  40%      { transform: translate3d(32px, -20px, 0) rotate(1.4deg); }
  75%      { transform: translate3d(-16px, -8px, 0) rotate(-.6deg); }
}
@keyframes ribbon-drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(-22px, 26px, 0) rotate(2deg); }
}
.hero-art.is-paused .ribbon { animation-play-state: paused; }

/* Discreet Pause/Play control for the background motion */
.hero-motion-toggle {
  position: absolute; right: max(16px, calc((100% - 1200px) / 2)); bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .75rem;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--muted);
  background: rgba(74, 25, 66, .1); border: 1px solid rgba(74, 25, 66, .2); border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.hero-motion-toggle:hover { color: var(--ink); border-color: rgba(74, 25, 66, .4); background: rgba(74, 25, 66, .06); }
.hero-motion-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hero-motion-toggle .ic { width: 14px; height: 14px; }
.hero-motion-toggle .icon-play { display: none; }
.hero-motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-motion-toggle[aria-pressed="true"] .icon-play { display: inline; }
.hero-motion-toggle[hidden] { display: none; }

/* Mobile: simpler artwork */
@media (max-width: 640px) {
  .ribbon-1, .ribbon-3, .ribbon-glow { display: none; }
  .ribbon { opacity: .85; }
  .hero { padding-bottom: 64px; }
}
/* Reduced motion: static art, no control */
@media (prefers-reduced-motion: reduce) {
  .ribbon { animation: none !important; }
}

/* ==========================================================================
   Custom cursor: plum phone, raspberry dot — desktop fine-pointer only.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("assets/cursor/cursor.svg") 5 5, auto; }

  a[href], button:not(:disabled), summary, select, [role="button"], label[for],
  input[type="range"], input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"], .btn {
    cursor: url("assets/cursor/cursor-hover.svg") 5 5, pointer !important;
  }

  input:not([type="range"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
  textarea, [contenteditable]:not([contenteditable="false"]) { cursor: text !important; }
  :disabled, [aria-disabled="true"] { cursor: not-allowed !important; }
  [aria-busy="true"] { cursor: progress !important; }
}
/* Pricing: single centered column below 960px */
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ==========================================================================
   Sub-pages: shared components
   ========================================================================== */

/* CTA banner at bottom of sub-pages */
.cta-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  padding: 56px 64px;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
}
.cta-banner .eyebrow { margin-bottom: .75rem; }
.cta-banner h2 { margin-bottom: .75rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-banner p { color: var(--muted); margin: 0; max-width: 480px; }
@media (max-width: 760px) {
  .cta-banner { grid-template-columns: 1fr; gap: 2rem; padding: 40px 32px; }
}

/* ==========================================================================
   Who We Support page
   ========================================================================== */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.audience {
  padding: 36px 32px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 0;
}
.audience-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--tint); border-radius: 12px; margin-bottom: 1.25rem; color: var(--brand); flex-shrink: 0;
}
.audience-icon .ic { width: 22px; height: 22px; }
.audience h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.audience > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; flex: 1; }
.audience-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.audience-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text); }
.audience-list .ic { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.audience .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; } }

/* ==========================================================================
   How It Works page
   ========================================================================== */
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: flex-start;
  padding: 48px 0; border-bottom: 1px solid var(--divider);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--tint); border-radius: 50%; font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-top: 4px;
}
.hiw-step-trial .hiw-step-num { background: var(--brand); color: #fff; }
.hiw-step-body h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 1rem; }
.hiw-step-body p { color: var(--muted); margin-bottom: .85rem; max-width: 640px; }
.hiw-step-body p:last-child { margin-bottom: 0; }
.steps-note {
  margin-top: 1.25rem; padding: 16px 20px; background: var(--tint); border-radius: var(--radius);
  border-left: 3px solid var(--brand); font-size: .9rem; color: var(--text);
}
.steps-note strong { color: var(--ink); }

@media (max-width: 640px) {
  .hiw-step { grid-template-columns: 48px 1fr; gap: 20px; padding: 36px 0; }
  .hiw-step-num { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* How It Works FAQ */
.hiw-faq { display: flex; flex-direction: column; gap: 2px; max-width: 760px; margin-inline: auto; }
.hiw-faq-item {
  border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.hiw-faq-item + .hiw-faq-item { margin-top: 4px; }
.hiw-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); font-size: .97rem;
  transition: background .15s;
}
.hiw-faq-item summary:hover { background: var(--tint); }
.hiw-faq-item summary .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); transition: transform .2s; }
.hiw-faq-item[open] summary .ic { transform: rotate(45deg); }
.hiw-faq-item p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: .93rem; max-width: 640px; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: flex-start; }
.about-mission-text .eyebrow { margin-bottom: .75rem; }
.about-mission-text h2 { margin-bottom: 1.25rem; }
.about-mission-text p { color: var(--muted); margin-bottom: 1rem; }
.about-mission-text p:last-child { margin-bottom: 0; }

.about-mission-values { display: flex; flex-direction: column; gap: 20px; }
.value-card {
  padding: 24px 28px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.value-label { font-weight: 700; color: var(--ink); margin-bottom: .5rem; font-size: .9rem; letter-spacing: .02em; }
.value-card p:last-child { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 860px) { .about-mission { grid-template-columns: 1fr; gap: 40px; } }

/* Team placeholder */
.team-placeholder {
  text-align: center; max-width: 600px; margin-inline: auto;
  padding: 56px 48px; background: var(--surface); border: 1.5px solid var(--tint); border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
}
.team-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem;
  padding: .35rem .8rem; background: var(--tint); color: var(--brand);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px;
}
.team-badge .ic { width: 14px; height: 14px; }
.team-placeholder h3 { margin-bottom: .85rem; font-size: 1.3rem; }
.team-placeholder > p { color: var(--muted); margin-bottom: 2rem; max-width: 420px; margin-inline: auto; }
.team-placeholder-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Team section layout */
.team-section { position: relative; }
.team-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.team-container { position: relative; z-index: 1; }

/* Decorative background blobs */
.team-blob {
  position: absolute; border-radius: 62% 38% 46% 54% / 58% 44% 56% 42%;
  filter: blur(72px); animation-play-state: paused;
}
.team-blob-1 {
  width: 520px; height: 420px; top: -80px; left: -120px;
  background: rgba(255, 248, 245, 0.7);
  animation: team-drift-1 28s ease-in-out infinite;
}
.team-blob-2 {
  width: 460px; height: 380px; bottom: -60px; right: -100px;
  background: rgba(242, 195, 215, 0.45);
  border-radius: 44% 56% 60% 40% / 40% 60% 42% 58%;
  animation: team-drift-2 24s ease-in-out infinite;
}
.team-bg.is-playing .team-blob { animation-play-state: running; }

@keyframes team-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  38% { transform: translate(30px, -18px) scale(1.04); }
  68% { transform: translate(-18px, 14px) scale(0.97); }
}
@keyframes team-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  34% { transform: translate(-24px, 16px) scale(1.03); }
  66% { transform: translate(20px, -10px) scale(0.98); }
}

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow); overflow: hidden;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.team-card-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 250ms var(--ease); }
.team-card-body { padding: 28px 28px 32px; }
.team-card-body h3 { font-size: 1.1rem; margin-bottom: .25rem; color: var(--ink); }
.team-role { font-size: .85rem; font-weight: 600; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.team-bio { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* Desktop hover (fine pointer only — cards are not clickable) */
@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(74, 25, 66, .13), 0 4px 12px rgba(194, 24, 91, .09);
    border-color: rgba(194, 24, 91, .28);
    transition-delay: 0ms;
  }
  .team-card:hover .team-card-photo img { transform: scale(1.025); }
}

/* Entrance animation overrides for team section */
.team-card.reveal { transform: translateY(12px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: var(--d, 0ms); }
.team-section .section-head.reveal { transform: translateY(8px); transition: opacity 350ms var(--ease), transform 350ms var(--ease); }

/* Mobile: quieter blobs */
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .team-blob { filter: blur(50px); }
  .team-blob-1 { width: 320px; height: 260px; top: -40px; left: -60px; }
  .team-blob-2 { width: 280px; height: 240px; bottom: -40px; right: -60px; }
}

/* About careers nudge */
.about-careers {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  padding: 56px 64px; background: linear-gradient(135deg, #FFF8F5 0%, #FCE4EC 100%);
  border: 1px solid var(--tint); border-radius: var(--radius-xl);
}
.about-careers .eyebrow { margin-bottom: .75rem; }
.about-careers h2 { margin-bottom: .75rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.about-careers p { color: var(--muted); max-width: 520px; margin: 0; }
@media (max-width: 760px) {
  .about-careers { grid-template-columns: 1fr; gap: 2rem; padding: 40px 32px; }
}

/* ==========================================================================
   Sub-page animation system
   ========================================================================== */

/* --- Shared keyframe: fade up (page intro text, used as auto CSS animation) --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --- Page intro: decorative curves --- */
.page-intro > .container { position: relative; z-index: 1; }
.page-intro-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.pi-curve {
  position: absolute; border-radius: 50%;
  filter: blur(64px); animation-play-state: paused;
}
.pi-curve-1 {
  width: 500px; height: 400px; top: -100px; right: -60px;
  background: rgba(255, 248, 245, 0.62);
  animation: pi-drift-1 28s ease-in-out infinite;
}
.pi-curve-2 {
  width: 360px; height: 300px; bottom: -80px; left: -40px;
  background: rgba(242, 195, 215, 0.38);
  border-radius: 42% 58% 52% 48% / 52% 42% 58% 48%;
  animation: pi-drift-2 32s ease-in-out infinite;
}
.page-intro-bg.is-playing .pi-curve { animation-play-state: running; }

@keyframes pi-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  42% { transform: translate(-22px, 16px) scale(1.04); }
  70% { transform: translate(16px, -10px) scale(0.97); }
}
@keyframes pi-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  36% { transform: translate(20px, -14px) scale(1.03); }
  66% { transform: translate(-16px, 10px) scale(0.98); }
}

/* --- Page intro: text entrance (CSS auto-play, no JS required) --- */
.page-intro .eyebrow { animation: fade-up 420ms var(--ease) both; }
.page-intro h1       { animation: fade-up 420ms var(--ease) 110ms both; }
.page-intro .lead    { animation: fade-up 420ms var(--ease) 220ms both; }

/* Mobile: smaller curves */
@media (max-width: 640px) {
  .pi-curve { filter: blur(44px); }
  .pi-curve-1 { width: 280px; height: 220px; top: -60px; right: -30px; }
  .pi-curve-2 { width: 220px; height: 180px; bottom: -40px; left: -20px; }
}

/* --- Audience cards: reveal override + hover --- */
.audience.reveal { transform: translateY(16px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: var(--d, 0ms); }
.audience { transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .audience:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(74, 25, 66, .12); }
  .audience-icon { transition: transform 240ms var(--ease); }
  .audience:hover .audience-icon { transform: scale(1.1); }
}

/* --- Button arrow nudge on hover --- */
.btn .ic { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ic { transform: translateX(3px); }
}

/* --- How It Works: timeline progress line --- */
.hiw-steps { position: relative; }
.hiw-line-track {
  position: absolute;
  left: 29px;
  top: 78px;    /* header padding + half circle */
  bottom: 78px;
  width: 2px;
  background: rgba(74, 25, 66, .08);
  pointer-events: none;
  z-index: 0;
  border-radius: 1px;
}
.hiw-line-fill {
  position: absolute; top: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(to bottom, var(--brand-400), var(--brand));
  transition: height 500ms var(--ease);
  border-radius: 1px;
}
@media (max-width: 640px) {
  .hiw-line-track { left: 21px; top: 64px; bottom: 64px; }
}

/* Step number: pop animation when step enters view */
@keyframes step-pop {
  0%   { transform: scale(0.82); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hiw-step.is-active .hiw-step-num { animation: step-pop 380ms var(--ease) forwards; }
.hiw-step-trial.is-active .hiw-step-num { animation: step-pop 380ms var(--ease) forwards; }

/* Step cards: reveal override */
.hiw-step.reveal { transform: translateY(14px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: var(--d, 0ms); }

/* --- How It Works FAQ: smooth accordion --- */
.hiw-faq-content {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease), opacity 260ms var(--ease);
  opacity: 0;
}
.hiw-faq-item[open] .hiw-faq-content { grid-template-rows: 1fr; opacity: 1; }
.hiw-faq-item.is-closing .hiw-faq-content { grid-template-rows: 0fr; opacity: 0; }
.hiw-faq-content > p { overflow: hidden; min-height: 0; }
/* Chevron rotation already set on .hiw-faq-item[open] summary .ic */
.hiw-faq-item summary .ic { transition: transform 240ms var(--ease); }
.hiw-faq-item.is-closing summary .ic { transform: rotate(0deg); }

/* --- About: value cards reveal + hover --- */
.value-card.reveal { transform: translateY(14px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: var(--d, 0ms); }
.value-card { transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .value-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(74, 25, 66, .1); }
}

/* --- About: mission text reveal override --- */
.about-mission-text.reveal { transform: translateY(14px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }

/* --- CTA banner reveal --- */
.cta-banner.reveal { transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }

/* --- Reduced motion: disable page intro auto-animations --- */
@media (prefers-reduced-motion: reduce) {
  .page-intro .eyebrow,
  .page-intro h1,
  .page-intro .lead { animation: none; opacity: 1; transform: none; }
}
