/* ===================== TOKENS ===================== */
/* The whole theme is derived from the Share2Care logo artwork: deep navy,
   turquoise and the bright yellow heart, on the logo's own off-white.
   All component colors derive from these tokens — do not hardcode colors in
   individual components. Every text token below is contrast-checked against
   the surface it sits on and meets WCAG AA (ratios noted). */
:root {
  /* --- raw brand colours, sampled straight from the logo artwork --- */
  --brand-navy: #051F62;      /* the left "S" */
  --brand-teal: #02BAB5;      /* the right "S" — pair with ink text, not white (8.0:1) */
  --brand-teal-dark: #04A19C; /* teal hover (ink text 6.1:1) */
  --brand-yellow: #E9F403;    /* the heart */
  --brand-blend: #3D5A9B;     /* where the two curves cross */
  --brand-disc: #FCFCFA;      /* the off-white disc behind the mark */

  --primary: #051F62;      /* logo navy — primary actions (white text 15.2:1) */
  --primary-dark: #03164A; /* deeper navy — hovers & gradients (white 17.3:1) */
  --primary-soft: #DCE4F5; /* navy tint — soft fills/borders (navy on it 11.9:1) */
  --primary-rgb: 5, 31, 98;   /* same navy, for rgba() glows and rings */
  --accent: #E9F403;       /* logo yellow — always with ink text (15.4:1) */
  --accent-dark: #CFDA00;
  --accent-soft: #FAFDE0;  /* yellow whisper — gradient stops */
  --accent-rgb: 233, 244, 3;
  --ink: #02132C;          /* the wordmark's navy-black — headings & body */
  --muted: #566078;        /* navy-slate muted text (6.0:1 on the page bg) */
  --muted-strong: #2E3A54; /* stronger body text (10.9:1) */
  --placeholder: #667088;  /* form placeholders */
  --disabled: #A9B4C9;     /* disabled calendar days / time slots */
  --blush: #E6F4F3;        /* teal-tinted surface (hero/section bg) */
  --blush-2: #F7FBFB;      /* near-white with a teal whisper (page bg) */
  --cream: #FCFCFA;        /* the logo's own off-white */
  --white: #ffffff;
  --line: #CFE4E2;         /* soft teal border */
  --star: #6B7300;         /* deep brand yellow — rating text (5.2:1 on white) */
  --footer-bg: #041B57;    /* deep brand navy (white 16.2:1) */
  --footer-text: #C9D6EF;  /* footer body copy (11.0:1) */
  --footer-muted: #A8B8DC; /* footer links (8.1:1) */
  --footer-faint: #8A9CC6; /* footer fine print (5.9:1) */
  --header-bg: rgba(5, 31, 98, 0.95);      /* brand navy, slightly translucent for the sticky header */
  --scrim-rgb: 2, 19, 44;  /* ink, for photo scrims and modal backdrops */
  --shadow-rgb: 5, 31, 98; /* navy-tinted shadows rather than neutral grey */

  /* Supporting brand tones — a deepened turquoise that can carry white text,
     and the navy/teal blend colour lifted straight out of the mark. */
  --secondary: #017E7A;       /* deepened logo teal (white text 4.9:1) */
  --secondary-dark: #015C59;  /* deeper teal — gradients & darker accents (7.9:1) */
  --secondary-soft: #D5F3F1;  /* soft teal tint — icon backgrounds */
  --warm: #3D5A9B;            /* the logo's blend blue (white text 6.7:1) */
  --warm-dark: #2E4780;       /* darker blend — icon/number fills (white 9.0:1) */
  --warm-soft: #DFE6F5;       /* soft periwinkle tint — icon backgrounds */
  --sand: #EFF4FB;            /* cool neutral surface */

  /* Form feedback — the same red and green .auth-error and .form-note already
     hardcode, as tokens for new components. */
  --danger: #B3261E;          /* error text (6.5:1 on white) */
  --danger-soft: #FDECEA;     /* error fill */
  --danger-line: #F5C6C2;     /* error border */
  --success: #1F7A45;         /* success text (5.4:1 on its soft fill) */
  --success-soft: #E9F7EE;    /* success fill */
  --success-line: #BFE6CD;    /* success border */

  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(5, 31, 98, 0.07);
  --shadow-md: 0 18px 45px rgba(5, 31, 98, 0.11);
  --shadow-lg: 0 30px 70px rgba(5, 31, 98, 0.15);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Always light (11-11-2026). The site has no dark theme, so browsers that darken
   pages on their own (Chrome's auto dark mode, Samsung Internet, etc.) must not
   repaint it. "only light" opts out of that forced darkening and keeps form
   controls and scrollbars light; every page also carries
   <meta name="color-scheme" content="only light"> so it applies before this
   stylesheet loads. Don't add prefers-color-scheme: dark rules without
   revisiting both. */
:root { color-scheme: only light; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--muted-strong);
  background: var(--blush-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--blush); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Sunny yellow accent button — always paired with dark (ink) text for contrast */
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 78px;
  gap: 12px;
}
/* Compact header sizing so all nav items fit one straight row on standard desktops */
.site-header .brand-name { font-size: 1.32rem; }
.site-header .brand-mark { width: 34px; height: 34px; }
.header-cta { gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 0.92rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }

.main-nav { display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.main-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 7px 9px;   /* was 10px; the sixth link (10-23-2026) needed the room */
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--blush); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 24px;
  background: var(--blush);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a { padding: 10px 0; font-weight: 500; color: var(--ink); }
.mobile-nav .btn { margin-top: 6px; }
.mobile-nav.open { display: flex; }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(160deg, var(--blush) 0%, var(--primary-soft) 58%, var(--accent-soft) 100%);
  padding: 0 0 96px;               /* no top padding — the video strip sits flush at the top */
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 999px;
}
.pill svg { color: var(--primary); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 22px;
  letter-spacing: -0.5px;
}
.hero-title em { color: var(--primary); font-style: normal; font-weight: 700; }

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted-strong);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

/* Hero cards */
.hero-cards { display: flex; flex-direction: column; gap: 22px; }
.cg-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cg-card--offset { margin-left: 40px; }
.cg-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.cg-info { flex: 1; min-width: 0; }
.cg-info h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.cg-info p { color: var(--muted); font-size: 0.88rem; margin: 2px 0 4px; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.9rem; }
.badge {
  flex: none;
  align-self: flex-start;
  background: var(--blush);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===================== SECTION HEADINGS ===================== */
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ===================== HOW IT WORKS ===================== */
.how { background: var(--blush-2); padding: 100px 0; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.steps-line {
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: var(--primary-soft);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--blush-2);
}
/* Give each step its own calming colour instead of four identical blue discs */
/* Step 01 is the only teal one — it marks where the journey starts. Steps 02–04
   then walk from a light navy tint down to full brand navy. */
.step:nth-child(2) .step-num { background: var(--brand-teal); color: var(--ink); }  /* step 01 */
.step:nth-child(3) .step-num { background: #5474B0; }                /* step 02 — light navy (white 4.7:1) */
.step:nth-child(4) .step-num { background: #2E4F94; }                /* step 03 — mid navy  (white 8.0:1) */
.step:nth-child(5) .step-num { background: var(--primary); }         /* step 04 — brand navy */
.step h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ===================== CARE TYPES ===================== */
.care-types { background: var(--blush); padding: 100px 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.type-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.type-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
/* Rotate the calming palette across the cards so the grid isn't mono-blue */
.cards-grid .type-card:nth-child(3n+2) .type-icon { background: var(--secondary-soft); color: var(--secondary); }
.cards-grid .type-card:nth-child(3n)   .type-icon { background: var(--warm-soft);      color: var(--warm-dark); }
.type-card h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 12px; }
.type-card p { color: var(--muted); font-size: 0.98rem; }

/* Care-type cards: more spacious, and clearly clickable (each reveals a care-type explainer) */
.care-types .type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.care-types .type-card p { margin-bottom: 22px; }
.care-types .type-card:hover { border-color: var(--primary-soft); }
/* The "Learn more →" cue makes clickability obvious even before hover */
.type-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}
.type-arrow { transition: transform .25s ease; }
.care-types .type-card:hover .type-arrow,
.care-types .type-card:focus-visible .type-arrow { transform: translateX(4px); }
/* Tie each card's cue + hover border to its icon accent, matching the palette rotation */
.cards-grid .type-card:nth-child(3n+2) .type-more { color: var(--secondary); }
.cards-grid .type-card:nth-child(3n)   .type-more { color: var(--warm-dark); }
.cards-grid .type-card:nth-child(3n+2):hover { border-color: var(--secondary-soft); }
.cards-grid .type-card:nth-child(3n):hover   { border-color: var(--warm-soft); }

/* ===================== TRUST ===================== */
.trust { background: var(--blush-2); padding: 100px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.trust-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--secondary-soft);
  color: var(--secondary);
  display: grid; place-items: center;
}
.trust-grid .trust-card:nth-child(2n) .trust-icon { background: var(--warm-soft); color: var(--warm-dark); }
.trust-card h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.trust-card p { color: var(--muted); font-size: 0.97rem; }

/* ===================== BOTH SIDES ===================== */
.both-sides { background: var(--sand); padding: 100px 0; }

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.dual-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dual-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dual-card--pro {
  background: linear-gradient(165deg, var(--secondary-soft) 0%, var(--blush-2) 100%);
  border-color: var(--primary-soft);
}
.dual-badge {
  align-self: flex-start;
  background: var(--blush);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.dual-card--pro .dual-badge { background: var(--primary); color: #fff; border-color: var(--primary); }
.dual-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.dual-card > p { color: var(--muted); margin-bottom: 26px; font-size: 1.02rem; }

.benefit-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.benefit-list li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.dual-card .btn { margin-top: auto; align-self: flex-start; }

.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===================== STORIES (scrolling banner) ===================== */
.stories { background: var(--blush-2); padding: 100px 0; overflow: hidden; }

.story-marquee {
  overflow: hidden;
  padding: 22px 0;                     /* room for the hover pop */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.story-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  width: max-content;
  animation: story-scroll 55s linear infinite;
}
/* Pause the whole banner while the mouse is over the stories */
.story-marquee:hover .story-track { animation-play-state: paused; }

@keyframes story-scroll {
  from { transform: translateX(-50%); }   /* start shifted left … */
  to   { transform: translateX(0); }       /* … drift to the right */
}
@media (prefers-reduced-motion: reduce) {
  .story-track { animation: none; }
}

.story-card {
  flex: 0 0 380px;
  max-width: 85vw;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Pop / enlarge the hovered story to focus on it */
.story-card:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
  z-index: 2;
}
.story-card .stars { margin-bottom: 18px; font-size: 1rem; }
.story-card p {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: normal;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 24px;
}
.story-card footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.story-avatar {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 2px solid var(--white);
  box-shadow: 0 3px 10px rgba(var(--shadow-rgb), 0.18);
}
.story-person { display: flex; flex-direction: column; }
.story-card strong { color: var(--ink); font-weight: 600; }
.story-card span { color: var(--muted); font-size: 0.9rem; }

/* ===================== CTA BAND ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
  padding: 90px 0;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 34px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand--footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 320px; color: var(--footer-muted); font-size: 0.97rem; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; color: var(--footer-muted); font-size: 0.95rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.9rem;
  color: var(--footer-faint);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 0 0 72px; }
  .cg-card--offset { margin-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps-line { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .dual { grid-template-columns: 1fr; gap: 20px; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .section-head { margin-bottom: 40px; }
  .how, .care-types, .trust, .both-sides, .stories { padding: 70px 0; }
  .both-feature { padding: 32px 26px; }
}

/* =========================================================
   SHARED HEADER EXTRAS (auth chip, sign-in link, sizes)
   ========================================================= */
.main-nav a.active { color: var(--primary); background: var(--blush); font-weight: 600; }
.mobile-nav > a.active { color: var(--primary); background: var(--blush); }

.nav-signin {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  /* Two words, one line: with seven nav links the header gets tight just above
     the mobile breakpoint and "Sign In" was breaking after "Sign". */
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-signin:hover { color: var(--primary); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow .2s ease;
}
.user-chip:hover { box-shadow: var(--shadow-sm); }
.user-ava {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.user-name { font-size: 0.95rem; }

.mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.mobile-cta .nav-signin { padding: 10px 0; }
.mobile-cta .user-chip { align-self: flex-start; }

/* Hamburger -> X */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   PAGE HERO (sub-page banner)
   ========================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--blush) 0%, var(--primary-soft) 60%, var(--accent-soft) 100%);
  padding: 76px 0 60px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.page-hero h1 em { color: var(--primary); font-style: italic; }
.page-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.12rem;
  color: var(--muted-strong);
}
.page-hero .hero-actions { margin-top: 30px; justify-content: center; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }

/* =========================================================
   FORMS
   ========================================================= */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--placeholder); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(131,28,38,.10);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted-strong);
}
.check-row input { width: auto; margin-top: 3px; }

.form-note {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #e9f7ee;
  border: 1px solid #bfe6cd;
  color: #1f7a45;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-note.show { display: block; }

/* =========================================================
   AUTH PAGES (sign in / sign up)
   ========================================================= */
.auth {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: linear-gradient(160deg, var(--secondary-soft) 0%, var(--blush-2) 100%);
}
.auth-card {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: 0.98rem; }
.auth-card .btn-block { margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 0.95rem; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-error {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #b3261e;
  font-size: 0.9rem;
  line-height: 1.4;
}
.auth-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.forgot { display: block; text-align: right; margin-top: -6px; margin-bottom: 16px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.role-opt {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt .role-emoji { font-size: 1.5rem; }
.role-opt .role-name { display: block; font-weight: 600; color: var(--ink); margin-top: 4px; font-size: 0.95rem; }
.role-opt .role-desc { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.role-opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--blush);
  box-shadow: 0 0 0 3px rgba(131,28,38,.08);
}

/* =========================================================
   FIND A CAREGIVER (browse)
   ========================================================= */
.browse { background: var(--blush-2); padding: 48px 0 90px; }
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  align-items: end;
}
.filters .form-field { margin-bottom: 0; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-head h2 { font-family: var(--serif); font-size: 1.6rem; }
.results-head span { color: var(--muted); font-size: 0.95rem; }

.caregiver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.caregiver-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.caregiver-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cgc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cgc-avatar {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
}
.cgc-meta { flex: 1; min-width: 0; }
.cgc-top h3 { font-size: 1.1rem; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.cgc-name { min-width: 0; }
.cgc-top .verified {
  margin-left: auto;
  flex: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--blush);
  border: 1px solid var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.cgc-role { color: var(--muted); font-size: 0.9rem; }
.cgc-rating { color: var(--star); font-size: 0.9rem; margin-bottom: 14px; }
.cgc-rating span { color: var(--muted); margin-left: 4px; }
.cgc-bio { color: var(--muted-strong); font-size: 0.94rem; margin-bottom: 16px; }
.cgc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cgc-tag {
  background: var(--blush);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.cgc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cgc-price { font-weight: 700; color: var(--ink); }
.cgc-price small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.browse-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   GENERIC CONTENT / PROSE PAGES
   ========================================================= */
.section { padding: 80px 0; }
.section.alt { background: var(--blush); }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p { color: var(--muted-strong); margin-bottom: 16px; }
.prose ul.bullets { margin: 0 0 18px; padding-left: 0; }
.prose ul.bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted-strong);
}
.prose ul.bullets li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 700;
}
.prose .muted-date { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.prose a { color: var(--primary); font-weight: 600; }

/* Value / benefit grids reused across pages */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.value-card .type-icon { margin-bottom: 18px; }
.value-card h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.96rem; }

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat h3 { font-family: var(--serif); font-size: 2.6rem; color: var(--primary); }
.stat p { color: var(--muted); font-weight: 500; margin-top: 4px; }

/* Two-column feature (join as pro) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.apply-card h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 6px; }
.apply-card > p { color: var(--muted); margin-bottom: 24px; }

/* Careers / press lists */
.list-stack { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.list-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.list-item h3 { font-size: 1.12rem; margin-bottom: 4px; }
.list-item p { color: var(--muted); font-size: 0.92rem; }
.list-item .tag {
  flex: none;
  background: var(--blush);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .info-block { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .type-icon { flex: none; }
.contact-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-info p { color: var(--muted); font-size: 0.95rem; }
.card-pad {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* Account page */
.account-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.account-card .cgc-avatar { margin: 0 auto 18px; width: 72px; height: 72px; font-size: 1.8rem; }
.account-rows { text-align: left; margin: 26px 0; }
.account-rows .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.account-rows .row span:first-child { color: var(--muted); }
.account-rows .row span:last-child { font-weight: 600; color: var(--ink); }

/* =========================================================
   CAREGIVER PROFILE + BOOKING
   ========================================================= */
.detail { padding: 40px 0 90px; background: var(--blush-2); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}
.detail-main { display: flex; flex-direction: column; gap: 24px; }

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.detail-head { display: flex; gap: 22px; align-items: center; }
.detail-avatar {
  flex: none;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.1rem;
}
.detail-head h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-head .verified {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--blush);
  border: 1px solid var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.detail-role { color: var(--muted); font-size: 1rem; margin-top: 4px; }
.detail-rating { color: var(--star); margin-top: 8px; font-weight: 600; }
.detail-rating span { color: var(--muted); font-weight: 400; margin-left: 4px; }

.detail-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.detail-card p { color: var(--muted-strong); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .type-icon { flex: none; width: 44px; height: 44px; }
.fact-label { font-size: 0.82rem; color: var(--muted); }
.fact-value { font-weight: 600; color: var(--ink); }

.review-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-item .stars { font-size: 0.85rem; margin-bottom: 8px; }
.review-item p { font-style: normal; color: var(--ink); margin-bottom: 8px; line-height: 1.6; }
.review-item .review-by { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* Message box */
.msg-box textarea { margin-bottom: 14px; }

/* ---------- Booking sidebar ---------- */
.detail-side { position: static; }
.booking-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.booking-price {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.booking-price small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.booking-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 22px 0 12px;
}

/* Arrangement selector */
.arrange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
/* Care Mode row holds three options (In-person / Remote / Private Care) */
#mode { grid-template-columns: repeat(3, 1fr); }
.arrange-btn {
  padding: 12px 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.arrange-btn small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
}
.arrange-btn:hover:not(.is-active) { border-color: var(--primary); }
.arrange-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.arrange-btn.is-active small { color: rgba(255, 255, 255, .8); }
.arrange-note {
  background: var(--blush-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 0.85rem;
  color: var(--muted-strong);
  margin-top: 14px;
}
#arrange-options { margin-top: 14px; }
#arrange-options .form-field { margin-bottom: 12px; }
#arrange-options .form-field:last-child { margin-bottom: 0; }

/* Care mode + client hourly offer */
.offer { margin-top: 4px; }
.offer-amount { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); text-align: center; }
.offer-amount small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.offer input[type="range"] {
  width: 100%;
  margin: 10px 0 6px;
  accent-color: var(--primary);
  cursor: pointer;
}
.offer-scale { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }
.offer-ask { color: var(--primary); font-weight: 600; }
.offer-hint { font-size: 0.82rem; text-align: center; margin-top: 10px; font-weight: 500; color: var(--muted); }

/* Calendar */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-label { font-weight: 600; color: var(--ink); }
.cal-nav {
  width: 34px; height: 34px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  display: grid; place-items: center;
  transition: border-color .2s ease, background .2s ease;
}
.cal-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 6px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.cal-day:hover:not(:disabled):not(.is-selected) { background: var(--blush); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--primary-soft); }
.cal-day.is-selected { background: var(--primary); color: #fff; font-weight: 600; }
.cal-day:disabled { color: var(--disabled); cursor: default; }
.cal-day.is-empty { visibility: hidden; }

/* Time slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.slot:hover:not(:disabled):not(.is-selected) { border-color: var(--primary); }
.slot.is-selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot:disabled { color: var(--disabled); text-decoration: line-through; background: var(--blush-2); cursor: default; }
.slots-hint { color: var(--muted); font-size: 0.9rem; }

/* Summary + total */
.booking-summary { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.booking-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted-strong);
  padding: 5px 0;
}
.booking-summary .row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.booking-summary .row span:last-child { font-weight: 600; color: var(--ink); }
.booking-escrow { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.booking-card .btn[disabled] { opacity: .5; cursor: not-allowed; }

.booking-confirmed { text-align: center; padding: 8px 4px; }
.booking-confirmed .tick {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #e9f7ee;
  color: #1f7a45;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.booking-confirmed h3 {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.booking-confirmed .confirm-detail {
  background: var(--blush-2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}
.booking-confirmed .confirm-detail .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.booking-confirmed .confirm-detail .row span:first-child { color: var(--muted); }

/* =========================================================
   RESPONSIVE (new components)
   ========================================================= */
@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .caregiver-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .list-item { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .facts { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; text-align: center; }
  .detail-card { padding: 24px; }
}

/* =========================================================
   CHAT ASSISTANT (floating, bottom-right)
   ========================================================= */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  font-family: var(--sans);
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Brand yellow, not navy: the launcher floats over the navy footer, so it
     needs the one brand colour that can't disappear into it. Ink icon = 15.4:1. */
  background: var(--accent);
  color: var(--ink);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.chat-toggle:hover { transform: scale(1.06); background: var(--accent-dark); }
.chat-ico.close-ico { display: none; font-size: 1.9rem; line-height: 1; }
.chat-widget.open .chat-ico.open-ico { display: none; }
.chat-widget.open .chat-ico.close-ico { display: block; }

.chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-pop .2s ease;
}
/* Keep it minimized until the bubble is clicked (overrides display:flex). */
.chat-panel[hidden] { display: none; }
@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-ident { display: flex; align-items: center; gap: 12px; }
.chat-ava {
  flex: 0 0 40px;              /* never let the narrow mobile panel squash the mark */
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
}
.chat-ava svg { width: 20px; height: 20px; }
.chat-ident strong { display: block; font-size: 1rem; }
.chat-status { font-size: .76rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #57d977; display: inline-block; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .85; }
.chat-close:hover { opacity: 1; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--blush-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.5;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-link { color: var(--primary); font-weight: 600; }
.chat-msg.user .chat-link { color: #fff; text-decoration: underline; }
.chat-typing { display: flex; gap: 4px; }
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .5;
  animation: chat-blink 1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.chat-quick {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-quick-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-strong);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  padding: 4px 2px;
}
.chat-quick-chev { transition: transform .2s ease; }
.chat-quick.collapsed .chat-quick-chev { transform: rotate(-90deg); }
.chat-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chat-quick.collapsed .chat-quick-list { display: none; }
.chat-chip {
  background: var(--blush);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.chat-chip:hover { background: var(--primary); color: #fff; }

/* Inline action buttons inside a bot message (e.g. the consent opt-in) */
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Tappable answer options the assistant suggests under a reply */
.chat-options {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 92%;
}

/* Gentle, dismissible idle nudge that floats above the chat button */
.chat-nudge {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 244px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-right-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 14px 30px 14px 16px;
  font-size: .9rem;
  line-height: 1.45;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.chat-nudge.show { opacity: 1; transform: none; }
.chat-nudge-x {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.15rem; line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.chat-nudge-x:hover { color: var(--ink); }

/* First-visit welcome: same floating bubble, styled as an inviting brand-coloured call to open chat */
.chat-welcome {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}
.chat-welcome b { font-weight: 600; }
.chat-welcome .chat-nudge-x { color: rgba(255, 255, 255, 0.78); }
.chat-welcome .chat-nudge-x:hover { color: #fff; }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input button {
  flex: none;
  width: 42px; height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.chat-input button:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { width: calc(100vw - 24px); height: calc(100vh - 110px); }
}

/* =========================================================
   HOMEPAGE VIDEO STRIP — seamless film strip of elderly-care clips
   sliding right → left, with the caption below
   ========================================================= */
/* Lives inside the hero section, full-bleed above the "Trusted by" line. */
.video-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 44px;             /* gap between the strip and the "Trusted by" pill */
}

/* Thin viewport that clips the film strip (kept small). */
.video-strip-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(88px, 10.5vw, 150px);
}

/* Sliding track: two identical sets of clips, translated by exactly one set. */
.video-strip-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  animation: strip-slide 55s linear infinite;
  will-change: transform;
}
.video-strip.paused .video-strip-track { animation-play-state: paused; }
/* Shift by exactly one set width (set on the track by script.js) so the loop
   repeats seamlessly with no blank gap at the seam. */
@keyframes strip-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--strip-shift, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .video-strip-track { animation: none; }
}

/* Clips sit flush against one another — no gap, border, radius or shadow. */
.strip-clip {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 220px);
  height: 100%;
  margin: 0;                       /* override the browser's default <figure> margin */
}
.strip-clip::after {               /* readability scrim behind the label */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(var(--scrim-rgb), 0.6), transparent);
  pointer-events: none;
}
.strip-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--secondary-soft);
}
.strip-clip-label {
  position: absolute;
  left: 9px; bottom: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.strip-clip-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Caption row — moved to the bottom, beneath the film strip. */
.video-strip-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 18px;
}
.video-strip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.vs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  animation: vs-pulse 1.9s ease-out infinite;
}
@keyframes vs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
.video-strip-tagline {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 500;
}

.video-toggle {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease;
}
.video-toggle:hover { background: #fff; transform: scale(1.06); }
.video-toggle .vt-play { display: none; }
.video-strip.paused .video-toggle .vt-pause { display: none; }
.video-strip.paused .video-toggle .vt-play { display: inline; }

@media (max-width: 620px) {
  .video-strip { margin-bottom: 30px; }
  .video-strip-viewport { height: clamp(80px, 26vw, 130px); }
  .strip-clip { width: clamp(130px, 42vw, 190px); }
  .video-strip-caption { padding: 7px 14px; gap: 9px; }
  .video-strip-tagline { font-size: 0.76rem; }
}

/* =========================================================
   FACILITIES + REFERRALS
   ========================================================= */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.facility-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.facility-card.is-pending { background: var(--blush); opacity: .85; }
.facility-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.facility-top h3 { font-size: 1.2rem; }
.consent-chip { flex: none; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.consent-chip.ok { color: #1f7a45; background: #e9f7ee; border: 1px solid #bfe6cd; }
.consent-chip.pending { color: var(--muted-strong); background: #fff; border: 1px solid var(--line); }
.facility-meta { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.facility-rating { color: var(--star); font-weight: 600; margin: 8px 0; }
.facility-desc { color: var(--muted-strong); font-size: 0.95rem; margin-bottom: 14px; }
.facility-hidden { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.facility-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.facility-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.facility-openings { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.facility-openings.none { color: var(--muted); font-weight: 500; }

/* Referral tracker table */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.referral-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.referral-table th {
  text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.referral-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.94rem; color: var(--ink); vertical-align: middle; }
.referral-table tbody tr:last-child td, .referral-table tbody tr:last-child td { border-bottom: none; }
.mini-select { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 0.85rem; background: #fff; color: var(--ink); text-transform: capitalize; }
.mini-select:focus { outline: none; border-color: var(--primary); }
.trial-pill { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.trial-pill.active { color: var(--primary-dark); background: var(--primary-soft); }
.trial-pill.ended { color: var(--muted-strong); background: var(--blush); border: 1px solid var(--line); }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 6px; opacity: .6; }
.btn-icon:hover { opacity: 1; }
.tracker-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--muted); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(var(--scrim-rgb), 0.5);
  display: grid; place-items: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-lg);
  animation: chat-pop .2s ease;
}
.modal-card h2 { font-family: var(--serif); font-size: 1.6rem; }
.modal-sub { color: var(--muted); margin: 4px 0 20px; font-size: 0.95rem; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.consent-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 12px; }

@media (max-width: 620px) {
  .facility-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   WEEKLY SURVEYS
   ========================================================= */
.survey-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: start; }
.survey-main .role-toggle { margin-bottom: 20px; }
.survey-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.survey-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.survey-head h2 { font-family: var(--serif); font-size: 1.5rem; }
.week-chip { flex: none; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; }
.survey-intro { color: var(--muted); margin-bottom: 22px; }
.survey-q { margin-bottom: 22px; }
.survey-label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: 0.98rem; }
.survey-q textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); resize: vertical;
}
.survey-q textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10); }

.scale-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scale-end { font-size: 0.78rem; color: var(--muted); }
.scale-opt input, .choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scale-opt {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.scale-opt:hover { border-color: var(--primary); }
.scale-opt:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-opt {
  cursor: pointer; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; color: var(--ink); transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.choice-opt:hover { border-color: var(--primary); }
.choice-opt:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }

.past-item { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); }
.past-item:last-child { border-bottom: none; }
.past-item span { color: var(--muted); font-size: 0.82rem; text-transform: capitalize; }

.stub-badge { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--accent); color: var(--ink); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.analysis-box { margin-top: 16px; background: var(--blush-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 0.92rem; color: var(--muted-strong); }
.analysis-box p { margin-bottom: 8px; }
.analysis-box strong { color: var(--ink); }
.stub-warning { font-size: 0.78rem; font-weight: 600; color: #8a5a00; background: #fff6d6; border: 1px solid #ffe08a; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; }
.sentiment { font-weight: 700; text-transform: capitalize; }
.sentiment.positive { color: #1f7a45; }
.sentiment.mixed { color: #8a5a00; }
.sentiment.needs-attention { color: #b23b2e; }

@media (max-width: 900px) {
  .survey-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCOUNT CONSENT + ACTIVITY
   ========================================================= */
.account-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.account-grid .account-card { max-width: none; margin: 0; }
.consent-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.consent-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.consent-switch input:checked + .switch-track { background: var(--primary); }
.consent-switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.consent-ts { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }
.gated-note { color: var(--muted-strong); background: var(--blush); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; font-size: 0.92rem; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }

/* =========================================================
   ADDITIONS — chatbot animation · clickable care cards ·
   care-type detail pages · Care Bank page   (append-only)
   ========================================================= */

/* 1. Chatbot: gentle entrance + a brief, livelier attention cue on landing.
   The button "beats" softly a few times so visitors notice it as they arrive,
   then settles — it never loops forever, never pops up, and never interrupts. */
@keyframes chat-widget-in {
  from { opacity: 0; transform: translateY(22px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
/* Expanding halo ring */
@keyframes chat-attention {
  0%   { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(var(--accent-rgb), .55); }
  70%  { box-shadow: var(--shadow-lg), 0 0 0 16px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
/* One soft "beat" early in each cycle, then a calm rest */
@keyframes chat-beat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.09); }
  22%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.chat-widget { animation: chat-widget-in .55s cubic-bezier(.2, .8, .2, 1) both; }
/* A short attention burst (~4 beats over ~10s, starting just after it appears),
   then it rests for good — no infinite loop. */
.chat-toggle {
  animation: chat-attention 2.4s ease-out .5s 4, chat-beat 2.4s ease-in-out .5s 4;
}
.chat-widget.open .chat-toggle,
.chat-toggle:hover { animation: none; }     /* calm while chatting or pointed at */
@media (prefers-reduced-motion: reduce) {
  .chat-widget, .chat-toggle { animation: none; }
}

/* 2. "Care for every need" cards become clickable (appearance unchanged) */
.care-types .type-card { cursor: pointer; }
.care-types .type-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Shared shell for the two new interior pages */
.care-page { padding: 70px 0 90px; }
.care-page .breadcrumb { margin-bottom: 30px; }

/* Care-type detail page */
.ct-hero { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.ct-hero .type-icon { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 22px; }
.ct-hero .type-icon svg { width: 28px; height: 28px; }
.ct-lead { font-size: 1.15rem; color: var(--muted-strong); margin-top: 14px; }
.ct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ct-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.ct-card h2 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 14px; }
.ct-card p { color: var(--muted-strong); }
.ct-card .check-list { margin-top: 4px; }
.ct-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

/* Care Bank page */
.cb-hero { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.cb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 46px; }
.cb-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.cb-step .step-num { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 16px; box-shadow: none; }
.cb-steps .cb-step:nth-child(2) .step-num { background: var(--secondary); }
.cb-steps .cb-step:nth-child(3) .step-num { background: var(--warm-dark); }
.cb-step h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 8px; }
.cb-step p { color: var(--muted); font-size: .96rem; }
.cb-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); max-width: 720px; margin: 0 auto; }
.cb-panel h2 { font-family: var(--serif); font-size: 1.5rem; }
.cb-panel .sub { color: var(--muted); margin: 6px 0 22px; }
#cb-tiers { grid-template-columns: repeat(3, 1fr); }
.cb-result { margin-top: 22px; }
.cb-rate { font-family: var(--serif); font-size: 1.9rem; color: var(--secondary); }
.cb-note { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.cb-fund { margin-top: 48px; }
@media (max-width: 760px) {
  .ct-cols, .cb-steps { grid-template-columns: 1fr; }
}

/* ===================== "LEARN MORE" LINKS & DETAIL PAGES ===================== */
/* Shared inline "Learn more →" affordance used by trust cards, facility cards,
   and the Care Bank funding area. Additive — inherits each context's colour. */
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.learn-more svg { transition: transform .2s ease; }
.learn-more:hover { color: var(--primary-dark); }
.learn-more:hover svg { transform: translateX(3px); }

/* Facility detail page — quick facts row */
.fac-facts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.fac-fact {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fac-fact span { color: var(--muted); font-weight: 500; }

/* Facility "photo" gallery — self-contained SVG scene tiles (no external assets) */
.fac-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.fac-tile {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.fac-tile svg { width: 100%; height: 100%; display: block; }
.fac-tile .fac-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.fac-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px; font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(var(--scrim-rgb), 0.55));
}
.fac-tags-center { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
@media (max-width: 760px) {
  .fac-gallery { grid-template-columns: 1fr 1fr; }
}

/* ===== Sign-in account-type chooser + professional caregiver application ===== */
a.role-opt { display: block; text-decoration: none; }
.role-opt:hover { border-color: var(--primary); background: var(--blush); }
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin: 0 0 14px;
  color: var(--primary); font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit;
}
.auth-back:hover { text-decoration: underline; }

.app-form, .app-actions { max-width: 800px; margin: 0 auto; }
.app-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.app-legend { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin: 0 0 4px; }
.app-hint { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.app-section .opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.check-grid .check-row { margin-bottom: 0; }
.app-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 16px; }
.app-foot a { color: var(--primary); font-weight: 600; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr 1fr; } }

/* ===================== MOBILE / PHONE LAYOUT ===================== */
/* Bottom nav bar (Home · Chatbot · Menu) + slide-up menu — phones only.
   Injected by shared.js; hidden on desktop. */
:root {
  --tabbar-h: 62px;      /* the bar itself */
  --tabbar-lift: 28px;   /* how far the raised chat button rises above the bar */
}
.mobile-tabbar, .mobile-menu { display: none; }

@media (max-width: 980px) {
  /* The top hamburger is replaced by the bottom bar; header shows just the brand. */
  .nav-toggle { display: none !important; }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 340;
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(var(--shadow-rgb), .10);
  }
  .tabbar-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: none;
    color: var(--muted-strong); font-size: .72rem; font-weight: 600;
    padding: 8px 10px; min-width: 64px;
  }
  .tabbar-btn svg { width: 24px; height: 24px; }
  .tabbar-btn.active { color: var(--primary); }

  /* Middle chatbot button — the larger focal point, raised above the bar */
  .tabbar-chat { color: var(--primary); font-weight: 700; }
  .tabbar-chat-ring {
    display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 50%;
    margin-top: -28px; margin-bottom: 2px;
    background: var(--accent); color: var(--ink);
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .30);
  }
  .tabbar-chat-ring svg { width: 30px; height: 30px; }

  /* Keep page content clear of the fixed bar */
  body { padding-bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); }

  /* Floating chat FAB hidden — the middle bar button opens chat instead */
  .chat-toggle { display: none !important; }

  /* The entrance animation uses fill-mode:both, so when it ends .chat-widget keeps
     an identity transform — and a transformed ancestor becomes the containing block
     for position:fixed children. With the FAB hidden the widget is a 0x0 box pinned
     to the bottom corner, which collapsed the panel to a ~2px slice off-screen: the
     chat looked like it simply would not open. Drop the transform here (the widget
     is invisible on mobile anyway) so the panel resolves against the viewport. */
  .chat-widget {
    animation: none !important;
    transform: none !important;
    z-index: 330;                 /* under the tab bar (340) so the bar stays tappable */
  }

  /* Full-screen chat that stops clear of the tab bar, so the three bottom icons
     stay visible AND the typing field is never hidden behind the raised chat
     button — that button rises --tabbar-lift above the bar, so the panel has to
     clear the bar plus the lift plus a little breathing room. */
  .chat-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: calc(var(--tabbar-h) + var(--tabbar-lift) + 28px + env(safe-area-inset-bottom, 0px));
    width: auto; height: auto;
    max-width: none; max-height: none;
    border: 0; border-radius: 0;
    transform-origin: center bottom;
  }
  /* Don't let the page scroll behind the full-screen panel. */
  body.chat-fullscreen { overflow: hidden; }

  /* Slide-up menu opened by the Menu button */
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu { position: fixed; inset: 0; z-index: 500; }
  .mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(var(--scrim-rgb), .45); }
  .mobile-menu-sheet {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: #fff; border-radius: 22px 22px 0 0;
    padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    max-height: 86vh; overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(var(--shadow-rgb), .22);
    animation: menu-sheet-up .25s ease;
  }
  @keyframes menu-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; }
  .mobile-menu-head .brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
  .mobile-menu-close { background: none; border: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
  .mobile-menu-links { display: flex; flex-direction: column; }
  .mobile-menu-links a {
    padding: 14px 4px; font-weight: 600; color: var(--ink); font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-links a.active { color: var(--primary); }
  .mobile-menu-auth { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .mobile-menu-auth .user-chip { align-self: flex-start; }
}

/* Restore the chatbot pulse on mobile — the raised bottom-bar button carries the same
   limited "attention" burst the desktop FAB uses (halo ring + soft beat, then rests). */
@keyframes tabbar-chat-pulse {
  0%   { box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .30), 0 0 0 0 rgba(var(--accent-rgb), .55); }
  70%  { box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .30), 0 0 0 16px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .30), 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@media (max-width: 980px) {
  .tabbar-chat-ring {
    animation: tabbar-chat-pulse 2.4s ease-out .5s 4, chat-beat 2.4s ease-in-out .5s 4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tabbar-chat-ring { animation: none; }
}

/* =========================================================
   NAVY NAV BAR   (append-only — overrides the light-header
   defaults further up the file)
   The bar carries the brand navy from --header-bg; the logo sits on its
   white disc, nav type is white, and the primary CTA switches to the logo
   turquoise. Scoped to .header-cta / .main-nav so the light .mobile-nav
   dropdown panel keeps its dark type.
   ========================================================= */
.site-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.site-header .main-nav a { color: #fff; }
.site-header .main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header .main-nav a.active { color: #fff; background: rgba(255, 255, 255, .18); font-weight: 600; }

/* "Join as a Caregiver" — turquoise with ink type (8.0:1; white would be 2.4:1) */
.site-header .header-cta .btn-primary {
  background: var(--brand-teal);
  color: var(--ink);
  box-shadow: none;
}
.site-header .header-cta .btn-primary:hover {
  background: var(--brand-teal-dark);
  box-shadow: var(--shadow-sm);
}

.site-header .header-cta .nav-signin { color: #fff; }
.site-header .header-cta .nav-signin:hover { color: var(--brand-teal); }
.site-header .header-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.site-header .header-cta .btn-outline:hover { background: #fff; color: var(--primary); }
.site-header .header-cta .user-chip {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
/* the signed-in avatar is navy by default, which would vanish on the navy bar */
.site-header .header-cta .user-ava { background: var(--brand-teal); color: var(--ink); }
.site-header .nav-toggle span { background: #fff; }

/* ===================== MOBILE FIT SAFEGUARD ===================== */
/* Guarantee no horizontal scroll on phones, and wrap long strings so they never overflow. */
body { overflow-wrap: break-word; }
@media (max-width: 980px) { html { overflow-x: hidden; } }

/* ===================== MOBILE MENU — "Tab" accordion ===================== */
.mobile-menu-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; background: none; border: none; border-bottom: 1px solid var(--line);
  font-family: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink); cursor: pointer;
}
.mobile-menu-chev { transition: transform .25s ease; flex: none; }
.mobile-menu-acc.open .mobile-menu-chev { transform: rotate(180deg); }
.mobile-menu-acc-panel { display: flex; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.mobile-menu-acc-panel.open { max-height: 560px; }
.mobile-menu-acc-panel a { padding-left: 18px; }

/* ===================== DASHBOARD ===================== */
#dashboard { max-width: 820px; margin: 0 auto; }
.dash-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-ava { position: relative; width: 84px; height: 84px; flex: none; }
.dash-ava-img, .dash-ava-initial { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.dash-ava-initial { background: var(--primary); color: #fff; font-size: 2rem; font-family: var(--serif); }
.dash-ava-edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; cursor: pointer; font-size: .85rem; color: var(--primary);
}
.dash-head-info { flex: 1; min-width: 170px; }
.dash-head-info h1 { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.dash-role { display: inline-block; margin-top: 4px; background: var(--blush); color: var(--primary); font-weight: 600; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.dash-email { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; }
.dash-head-actions { flex: none; }
.dash-save-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dash-saved { color: var(--secondary); font-weight: 600; }
.dash-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-stat { flex: 1; min-width: 90px; background: var(--blush-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.dash-stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--primary); }
.dash-stat span { color: var(--muted); font-size: .85rem; }
.dash-list { margin-top: 14px; }
.dash-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dash-row:last-child { border-bottom: none; }
.dash-row > span:first-child { flex: none; }
.dash-row-meta { color: var(--muted); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dash-pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dash-pro { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color .2s ease; }
.dash-pro:hover { border-color: var(--primary); }
.dash-pro-ava { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; font-weight: 600; }
.dash-pro-info { display: flex; flex-direction: column; font-size: .92rem; min-width: 0; }
.dash-pro-info span { color: var(--muted); font-size: .82rem; }
.dash-pro-info .dash-pro-meta { color: var(--star); font-weight: 600; }
@media (max-width: 560px) { .dash-pros { grid-template-columns: 1fr; } .dash-stats { gap: 8px; } }

/* ===================== COMMUNITY PAGE — social invitation ===================== */
.community-social { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.community-social a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.community-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.community-social .cs-facebook { background: #1877f2; }
.community-social .cs-instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.community-social a svg { flex: none; }

/* Extra-compact top nav on narrower desktops (981–1100px) so all items stay on one
   straight row without wrapping or overflowing; larger screens keep roomier spacing. */
/* Compact header tier. It was 1100px with five nav links; the sixth ("Retire in
   PH", 10-23-2026) needs ~100px more, and above 1100px the logo — a flex item —
   was being squeezed out of shape (to 149px of its 202px signed out, less for
   an admin). 1300px covers the widest realistic signed-in header (admin + Panel). */
@media (max-width: 1300px) {
  .header-inner { gap: 10px; }
  .site-header .brand-name { font-size: 1.15rem; }
  .site-header .brand-mark { width: 32px; height: 32px; }
  .main-nav a { padding: 6px 7px; font-size: 0.84rem; }
  .header-cta { gap: 8px; }
  .header-cta .nav-signin { font-size: 0.9rem; }
  .header-cta .btn { padding: 8px 13px; font-size: 0.85rem; }
}

/* ===================== LOGO IMAGES ===================== */
/* Proportions preserved via width:auto; high-res sources stay crisp when downscaled. */
.brand-logo { display: block; width: auto; }
/* The badge lockups are full-bleed (the white disc reaches the canvas edge), so
   they run a little larger than the padded lockups they replaced. */
.brand-logo--wide { height: 46px; }        /* horizontal badge lockup — desktop header */
.brand-logo--stacked { display: none; height: 54px; }  /* stacked badge — mobile header */
@media (max-width: 1300px) { .brand-logo--wide { height: 38px; } }   /* same tier as the compact header above */
/* Tightest desktop tier, 981–1100px. Six links plus a signed-in header don't fit
   the 1300 tier here, and the logo is what gives way (squeezed to 56px for an
   admin). Links tighten, the logo steps down, and the account chip shows its
   initial only — the email stays in its title and the full name on account.html. */
@media (max-width: 1100px) {
  .header-inner { gap: 6px; }
  .main-nav a { padding: 6px 5px; font-size: 0.8rem; }
  .brand-logo--wide { height: 34px; }
  .header-cta .user-name { display: none; }
  .header-cta .user-chip { padding: 4px; gap: 0; }
  .header-cta .btn { padding: 8px 11px; }
}
/* Whatever the width, the logo is never the thing that gives way: if the header
   still runs short (an unusually long first name), the name truncates instead. */
.site-header .brand { flex-shrink: 0; }
.header-cta, .header-cta .user-chip { min-width: 0; }
.header-cta .user-name { max-width: 9em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) {
  .brand-logo--wide { display: none; }
  .brand-logo--stacked { display: block; }
}
.menu-logo { height: 22px; width: auto; display: block; }   /* wordmark — mobile menu header */

/* Logo instances on darker/branded surfaces + auth cards (transparent PNGs) */
.footer-logo { height: 46px; width: auto; display: block; }   /* same badge lockup as the nav bar */
.auth-logo { height: 40px; width: auto; display: block; }     /* colour lockup on the white auth card */
.chat-ava img { width: 100%; height: 100%; display: block; }  /* full-colour mark badge in the chat avatar */

/* =========================================================
   MOBILE: NOTIFICATIONS · MESSAGING · CONSOLIDATED PROFILE
   (append-only — all colours come from the tokens in :root)
   ========================================================= */

/* ---------- notification bell (mobile header, signed-in only) ---------- */
.notif-slot { display: none; }              /* desktop keeps the existing header row */
@media (max-width: 980px) { .notif-slot { display: block; margin-left: auto; } }

.notif-bell {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.notif-bell:hover { background: rgba(255, 255, 255, .24); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--primary);
}

/* ---------- notification panel ---------- */
.notif-panel { position: fixed; inset: 0; z-index: 520; }
.notif-backdrop { position: absolute; inset: 0; background: rgba(var(--scrim-rgb), .45); }
.notif-sheet {
  position: absolute; top: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 0 0 22px 22px;
  max-height: 88vh; overflow-y: auto;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: notif-drop .22s ease;
}
@keyframes notif-drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; }
.notif-head strong { font-size: 1.05rem; color: var(--ink); }
.notif-head-actions { display: flex; align-items: center; gap: 8px; }
.notif-clear { background: none; border: none; color: var(--primary); font-weight: 600; font-size: .82rem; cursor: pointer; font-family: var(--sans); }
.notif-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: var(--blush-2);
  border: 1px solid var(--line);
}
.notif-item.unread { background: var(--primary-soft); border-color: var(--primary-soft); }
.notif-ico { font-size: 1.1rem; line-height: 1.3; }
.notif-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-txt strong { font-size: .93rem; color: var(--ink); }
.notif-txt span { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.notif-count {
  margin-left: auto; align-self: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.notif-empty { color: var(--muted); font-size: .92rem; padding: 18px 4px; text-align: center; }
.notif-cta { margin-top: 14px; }

/* ---------- messages ---------- */
.msg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.msg-title { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.msg-none { text-align: center; padding: 22px 6px; }
.msg-gate-ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 14px;
}
.msg-ava {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
}
.msg-ava.sm { width: 36px; height: 36px; font-size: .92rem; }

.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.msg-row:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-soft); }
.msg-row.unread { border-color: var(--primary-soft); background: var(--primary-soft); }
.msg-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.msg-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.msg-row-top strong { color: var(--ink); font-size: .97rem; }
.msg-row-time { font-size: .76rem; color: var(--muted); flex: none; }
.msg-row-prev {
  font-size: .86rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-unread {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--secondary); color: #fff;
  font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}

.msg-start { margin-top: 22px; }
.msg-chips { display: flex; flex-direction: column; gap: 8px; }
.msg-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.msg-chip:hover { border-color: var(--primary-soft); }
.msg-chip strong { display: block; font-size: .93rem; color: var(--ink); }
.msg-chip em { font-style: normal; font-size: .8rem; color: var(--muted); }

/* conversation */
.msg-conv-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.msg-back { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--blush); }
.msg-conv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msg-conv-who strong { color: var(--ink); font-size: 1rem; }
.msg-conv-who span { font-size: .82rem; color: var(--muted); }
.msg-profile { flex: none; }

.msg-thread {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--radius);
  background: var(--blush-2); border: 1px solid var(--line);
  max-height: 52vh; overflow-y: auto;
}
.msg-b { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.msg-b.me { align-self: flex-end; align-items: flex-end; }
.msg-b.them { align-self: flex-start; }
.msg-b-text {
  padding: 10px 14px; border-radius: 16px;
  font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere;
}
.msg-b.me .msg-b-text { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg-b.them .msg-b-text { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-b-time { font-size: .7rem; color: var(--muted); padding: 0 4px; }

.msg-typing { display: flex; gap: 4px; align-self: flex-start; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: msg-dot 1.2s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: .18s; }
.msg-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes msg-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .msg-typing span { animation: none; } }

.msg-compose { display: flex; gap: 10px; margin-top: 14px; }
.msg-compose input {
  flex: 1; min-width: 0;
  padding: 13px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.msg-compose input:focus { outline: none; border-color: var(--primary); }
.msg-compose button {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
}
.msg-compose button:hover { background: var(--primary-dark); }

/* ---------- dashboard: consolidated profile summary ---------- */
.profile-summary { margin-bottom: 22px; }
.sum-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sum-ava { flex: none; }
.sum-id { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.sum-id h2 { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.sum-headline { font-size: .95rem; color: var(--muted-strong); margin-top: 2px; }
.sum-meta { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.sum-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-block { margin-top: 20px; }
.sum-block h4 {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.sum-bio { font-size: .93rem; color: var(--muted-strong); line-height: 1.6; }
.sum-rows { display: flex; flex-direction: column; gap: 0; margin: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row dt { font-size: .88rem; color: var(--muted); flex: none; }
.sum-row dd { margin: 0; font-size: .9rem; color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sum-chip {
  padding: 5px 12px; border-radius: 999px;
  background: var(--secondary-soft); color: var(--secondary-dark);
  font-size: .82rem; font-weight: 500;
}

.dash-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 400;
  animation: notif-drop .22s ease;
}

/* ---------- dashboard: messages card ---------- */
.dash-messages { margin-top: 22px; }
.dash-msg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dash-msg {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 14px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.dash-msg.unread { background: var(--primary-soft); border-color: var(--primary-soft); }
.dash-msg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dash-msg-body strong { font-size: .93rem; color: var(--ink); }
.dash-msg-body span { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-msg-cta { margin-top: 14px; }

@media (max-width: 620px) {
  .msg-head { flex-direction: column; gap: 10px; }
  .msg-title { font-size: 1.55rem; }
  .msg-b { max-width: 86%; }
  .sum-row { flex-direction: column; gap: 2px; }
  .sum-row dd { text-align: left; }
}

/* Unread pill inside the mobile menu's Messages accordion (matches .notif-badge) */
.menu-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  margin-left: 8px; vertical-align: middle;
  border-radius: 999px;
  background: var(--secondary); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1;
}
.mobile-menu-acc-panel a .menu-badge { background: var(--primary); }

/* =========================================================
   CIRCLES · CAREGIVER BROWSING · DAILY LOGS
   (append-only — all colours come from the tokens in :root)
   ========================================================= */

/* ---------- circles ---------- */
.circle-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.circle-tab {
  padding: 12px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  color: var(--muted-strong); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.circle-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.circle-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.circle-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 14px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.circle-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.circle-who strong { font-size: .93rem; color: var(--ink); }
.circle-who span { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.circle-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.circle-role {
  font-family: var(--sans); font-size: .8rem; padding: 6px 8px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.circle-x {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff;
  color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.circle-x:hover { border-color: var(--warm); color: var(--warm-dark); }

.invite-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.invite-form .form-field span { display: block; font-size: .85rem; font-weight: 500; color: var(--muted-strong); margin-bottom: 6px; }
.role-blurb { margin: 4px 0 14px; font-style: italic; }
.invite-out { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--secondary-soft); }
.invite-link { display: flex; gap: 8px; margin-top: 8px; }
.invite-link input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: .82rem; color: var(--ink);
}
.invite-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.invite-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 13px; border-radius: 14px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.invite-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 140px; }
.invite-meta strong { font-size: .9rem; color: var(--ink); }
.invite-meta span { font-size: .78rem; color: var(--muted); }
.invite-actions { display: flex; gap: 6px; flex: none; }
.circle-join { max-width: 520px; margin: 0 auto; text-align: center; }
.circle-msg { margin-top: 12px; font-size: .9rem; color: var(--secondary-dark); font-weight: 600; }

/* ---------- caregiver browsing ---------- */
.browse-locked { text-align: center; }
.lock-ico { display: block; font-size: 1.8rem; margin: 4px 0 8px; }
.browse-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.browse-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 13px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.browse-card:hover { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); }
.browse-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.browse-body strong { font-size: .95rem; color: var(--ink); }
.browse-body > span { font-size: .82rem; color: var(--muted); }
.browse-meta { font-weight: 500; color: var(--muted-strong) !important; }
.browse-why {
  margin-top: 4px; font-size: .78rem !important;
  color: var(--secondary-dark) !important; font-weight: 600;
}

/* ---------- daily check-in + medication log ---------- */
.mood-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mood-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: .84rem; font-weight: 500;
  color: var(--muted-strong); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.mood-btn span { font-size: 1.4rem; line-height: 1; }
.mood-btn.on { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.checkin-done {
  margin: 10px 0; padding: 12px; border-radius: 12px;
  background: var(--secondary-soft); color: var(--secondary-dark);
  font-weight: 600; font-size: .92rem; text-align: center;
}
.opt { font-weight: 400; color: var(--muted); font-size: .82em; }

.log-list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.log-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.log-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.log-main strong { font-size: .9rem; color: var(--ink); font-weight: 600; }
.log-main span { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.log-when { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; text-align: right; }
.log-when strong { font-size: .86rem; color: var(--ink); }
.log-when span { font-size: .76rem; color: var(--muted); white-space: nowrap; }

@media (max-width: 620px) {
  .invite-form { grid-template-columns: 1fr; }
  .invite-actions { width: 100%; }
  .invite-actions .btn { flex: 1; }
}

/* =========================================================
   PROFILE POP-UP · FINISH PROMPT · TAPPABLE MEDICATION TIMES
   (append-only — all colours come from the tokens in :root)
   ========================================================= */

/* ---------- profile pop-up (mobile) ---------- */
.profile-modal { position: fixed; inset: 0; z-index: 540; display: flex; align-items: flex-end; }
.profile-modal[hidden] { display: none; }
.profile-modal-backdrop { position: absolute; inset: 0; background: rgba(var(--scrim-rgb), .5); }
.profile-modal-sheet {
  position: relative;
  width: 100%; max-height: 92vh; overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 6px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: sheet-up .24s ease;
}
@keyframes sheet-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.profile-modal-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 10px; margin-bottom: 4px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.profile-modal-head strong { font-size: 1.05rem; color: var(--ink); }
.profile-modal-body .app-section { padding: 0; border: 0; box-shadow: none; background: none; margin-top: 18px; }
.profile-modal-sheet.choice { text-align: center; padding-top: 26px; max-width: 520px; margin: 0 auto; }
body.modal-open { overflow: hidden; }

/* Roomier sheet on desktop, where it's centred rather than bottom-anchored. */
@media (min-width: 981px) {
  .profile-modal { align-items: center; justify-content: center; padding: 24px; }
  .profile-modal-sheet { max-width: 640px; border-radius: var(--radius-lg); }
}

/* ---------- persistent "Finish your profile" prompt ---------- */
.finish-profile {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1.5px dashed var(--accent-dark);
}
.finish-ico { font-size: 1.3rem; flex: none; }
.finish-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.finish-copy strong { font-size: .95rem; color: var(--ink); }
.finish-copy span { font-size: .82rem; color: var(--muted-strong); }
.finish-profile .btn { flex: none; }

/* ---------- tappable medication times ---------- */
.time-slots {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 4px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.time-slots::-webkit-scrollbar { height: 4px; }
.time-slots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.time-slot {
  flex: none; scroll-snap-align: center;
  padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  color: var(--muted-strong); white-space: nowrap; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.time-slot:hover { border-color: var(--primary-soft); }
.time-slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.time-slot.near:not(.on) { border-color: var(--secondary); color: var(--secondary-dark); }

@media (max-width: 620px) {
  .finish-profile { flex-wrap: wrap; }
  .finish-profile .btn { width: 100%; }
}

/* =========================================================
   MATCH MAKER — 1–100% patient ↔ caregiver fit
   (append-only — all colours come from the tokens in :root)
   ========================================================= */

.match-ring {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--line);
  background: #fff;
}
.match-ring strong {
  font-size: 1rem; font-weight: 700; line-height: 1;
  color: var(--ink); letter-spacing: -.02em;
}
.match-ring strong i { font-style: normal; font-size: .62rem; font-weight: 600; margin-left: 1px; }

.match-ring.band-excellent { border-color: var(--secondary); background: var(--secondary-soft); }
.match-ring.band-excellent strong { color: var(--secondary-dark); }
.match-ring.band-strong { border-color: var(--primary); background: var(--primary-soft); }
.match-ring.band-strong strong { color: var(--primary-dark); }
.match-ring.band-good { border-color: var(--warm); background: var(--warm-soft); }
.match-ring.band-good strong { color: var(--warm-dark); }
.match-ring.band-fair { border-color: var(--line); background: var(--blush-2); }
.match-ring.band-fair strong { color: var(--muted); }

.match-band {
  display: inline-block; align-self: flex-start;
  margin-top: 4px; padding: 2px 9px;
  border-radius: 999px;
  font-size: .72rem !important; font-weight: 700;
  letter-spacing: .02em;
}
.match-band.band-excellent { background: var(--secondary-soft); color: var(--secondary-dark) !important; }
.match-band.band-strong { background: var(--primary-soft); color: var(--primary-dark) !important; }
.match-band.band-good { background: var(--warm-soft); color: var(--warm-dark) !important; }
.match-band.band-fair { background: var(--blush); color: var(--muted-strong) !important; }

.match-how {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  color: var(--primary); text-decoration: underline; cursor: pointer;
}
.match-legend {
  margin: 12px 0 4px; padding: 14px;
  border-radius: 14px;
  background: var(--blush-2); border: 1px solid var(--line);
}
.match-legend .sum-row dt { font-weight: 600; color: var(--ink); }
.match-legend .sum-row dd { text-align: right; color: var(--muted); font-weight: 400; }

.match-locked-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}
.browse-locked .app-hint em { font-style: italic; }

@media (max-width: 620px) {
  .match-legend .sum-row { flex-direction: column; gap: 2px; }
  .match-legend .sum-row dd { text-align: left; }
}

/* =========================================================
   MARKETING REVISION — 09/01/2026
   Hero, Why We're Different, story carousel, Get the App,
   booking steps, concierge, footer prefs, wallpaper hook.
   (append-only — all colours come from the tokens in :root)
   ========================================================= */

/* ---------- BRAND WALLPAPER HOOK ----------
   Provision for the subtle background graphic still to be designed (a nod to
   Malasakit / Bayanihan / Kapwa). Drop a file in and set --brand-wallpaper —
   nothing else needs to change:

       :root {
         --brand-wallpaper: url("assets/wallpaper-kapwa.svg");
         --brand-wallpaper-size: 640px;
         --brand-wallpaper-opacity: .05;
       }

   Any section can opt in with class="has-wallpaper". It paints behind the
   content, never intercepts clicks, and stays off for reduced-motion/print. */
:root {
  --brand-wallpaper: none;
  --brand-wallpaper-size: 560px;
  --brand-wallpaper-opacity: .05;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--brand-wallpaper);
  background-size: var(--brand-wallpaper-size);
  background-repeat: repeat;
  opacity: var(--brand-wallpaper-opacity);
}
.has-wallpaper { position: relative; isolation: isolate; }
.has-wallpaper::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--brand-wallpaper);
  background-size: var(--brand-wallpaper-size);
  background-repeat: repeat;
  opacity: var(--brand-wallpaper-opacity);
}
@media print { body::before, .has-wallpaper::before { display: none; } }

/* ---------- HERO ---------- */
/* Hero heading in brand navy, with the full stop picked out in the vivid logo
   teal — the punctuation carries no meaning on its own, so it can take the
   lower-contrast brand colour while the words stay at 15:1. */
.hero-title { color: var(--primary); }
.hero-title em { color: var(--primary); }
.hero-stop { color: var(--brand-teal); }
.hero-trustline {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 20px; max-width: 460px;
  font-size: .88rem; line-height: 1.5;
  color: var(--muted-strong);
}
.hero-trustline svg { flex: none; margin-top: 2px; color: var(--secondary); }

/* ---------- WHY WE'RE DIFFERENT ---------- */
.why-different { padding: 90px 0; background: var(--blush-2); }
.why-card {
  max-width: 780px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-teal);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}
.why-headline {
  font-family: var(--serif);
  font-size: 1.7rem; color: var(--ink);
  margin-bottom: 14px;
}
.why-body { color: var(--muted-strong); line-height: 1.7; font-size: 1rem; }
.why-body + .why-body { margin-top: 14px; }
.why-body--strong { color: var(--ink); }
@media (max-width: 620px) {
  .why-different { padding: 64px 0; }
  .why-card { padding: 26px 22px; }
  .why-headline { font-size: 1.35rem; }
}

/* ---------- STORIES: badges + carousel controls ---------- */
.stories-note {
  color: var(--muted); margin-top: 14px;
  max-width: 720px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.story-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.story-verify {
  flex: none;
  padding: 3px 10px; border-radius: 999px;
  background: var(--secondary-soft); color: var(--secondary-dark);
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.story-verify--pro { background: var(--primary-soft); color: var(--primary-dark); }

/* The banner is a scroll container now (JS drives the drift), so hide its bar. */
.story-marquee { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.story-marquee::-webkit-scrollbar { display: none; }
.story-track { animation: none !important; }

.story-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 18px;
}
.story-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--primary); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.story-arrow:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.story-dots { display: flex; align-items: center; gap: 7px; }
.story-dot {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--line);
  transition: background .2s ease, width .2s ease;
}
.story-dot.on { background: var(--primary); width: 22px; border-radius: 999px; }

/* ---------- GET THE APP ---------- */
.app-cta { padding: 90px 0; background: var(--blush); }
.app-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.app-copy .section-title { margin-top: 6px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.app-tags li {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--muted-strong);
}
.app-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.app-hint-line { font-size: .9rem; color: var(--muted-strong); }
.app-qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.app-qr-card canvas { border-radius: 10px; }
.app-qr-card p { display: flex; flex-direction: column; gap: 4px; }
.app-qr-card strong { color: var(--ink); font-size: .98rem; }
.app-qr-card span { color: var(--muted); font-size: .86rem; }
.app-qr-url {
  display: block; word-break: break-all;
  font-size: .82rem; color: var(--primary-dark);
  background: var(--blush-2); border-radius: 8px; padding: 8px 10px;
}
@media (max-width: 980px) {
  .app-cta { padding: 64px 0; }
  .app-inner { grid-template-columns: 1fr; gap: 28px; }
  .app-actions { align-items: stretch; }
  .app-actions .btn { width: 100%; }
}

/* ---------- LEMON-YELLOW SECONDARY CTA ---------- */
.btn-ghost--lemon { color: var(--accent); border-color: var(--accent); }
.btn-ghost--lemon:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- INTERACTIVE HOVER ON THE DUAL CARDS ---------- */
.dual-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.dual-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--secondary-soft);
}

/* ---------- BOOKING STEPS (directory page) ----------
   Uses the standard .how / .steps format — numbered discs on a connecting line,
   blush background — the same as the homepage's How It Works and the Retire in
   PH journey. (10-23-2026: the yellow background and oversized ghost numerals
   that overlapped the step headings were removed.) Only the CTA needs a rule. */
.booking-cta { display: flex; justify-content: center; margin-top: 38px; }
@media (max-width: 620px) {
  .booking-cta .btn { width: 100%; }
}

/* ---------- CONCIERGE ---------- */
.concierge-badge {
  display: inline-block; margin-bottom: 16px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: .82rem; font-weight: 700;
}
.concierge-team { display: flex; justify-content: center; gap: -10px; margin-bottom: 16px; }
.concierge-face {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 2px solid #fff;
  font-weight: 700; font-size: .95rem;
  margin-left: -10px;
}
.concierge-face:first-child { margin-left: 0; }
.concierge-face--more { background: var(--secondary-soft); color: var(--secondary-dark); }

/* ---------- FOOTER PREFERENCES ---------- */
.footer-prefs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 30px;
}
.footer-select {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--footer-text); font-size: .84rem;
}
.footer-select select {
  background: none; border: none; color: var(--footer-text);
  font-family: var(--sans); font-size: .84rem; cursor: pointer; outline: none;
}
.footer-select select option { color: var(--ink); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.footer-badge {
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--footer-muted); font-size: .76rem; font-weight: 600;
}
.footer-badge i { font-style: normal; opacity: .7; font-size: .9em; }
.footer-badge.is-soon { opacity: .62; }
@media (max-width: 760px) {
  .footer-prefs { flex-direction: column; align-items: flex-start; }
  .footer-badges { margin-left: 0; }
}

/* ---------- "Ready to find care?" band buttons ----------
   The band itself is a navy → deep-teal gradient, so a plain navy fill would
   nearly disappear into its left-hand end. Both buttons therefore carry a thin
   light edge purely so they stay readable as buttons; the fills are the navy
   and teal that were asked for. */
.btn-cta-navy {
  background: var(--primary);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  box-shadow: var(--shadow-sm);
}
.btn-cta-navy:hover {
  background: var(--primary-dark);
  border-color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-cta-teal {
  background: var(--brand-teal);
  color: var(--ink);                 /* ink on teal = 8.0:1; white would be 2.4:1 */
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}
.btn-cta-teal:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   STYLING + INTERACTION ROUND — teal hero CTA, Why We're
   Different treatment, care-type check lists, dual-card
   hover, bordered CTA buttons.
   (append-only — colours come from the tokens in :root)
   ========================================================= */

/* ---------- 1. hero "I'm a caregiver" ---------- */
.btn-teal {
  background: var(--brand-teal);
  color: var(--ink);                 /* ink on teal = 8.0:1; white would be 2.4:1 */
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}
.btn-teal:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  box-shadow: var(--shadow-md);
}

/* ---------- 2. "Why We're Different" ----------
   Deliberately the odd one out: a dark navy band between two light sections,
   with a teal rule, oversized quote mark and a lemon underline on the headline.
   Copy untouched — treatment only. */
.why-different {
  /* Same gradient as the hero, kept on the same tokens so the two stay in step. */
  background: linear-gradient(160deg, var(--blush) 0%, var(--primary-soft) 58%, var(--accent-soft) 100%);
  position: relative;
  overflow: hidden;
}
/* The heading and eyebrow sit on the light gradient now, so they take the same
   colours as every other light section. The card below keeps its navy panel and
   white copy. */
.why-different .section-title { color: var(--ink); }
.why-different .eyebrow { color: var(--primary); }

.why-card {
  position: relative;
  /* A lighter navy than the band behind it — same family, clearly its own panel
     (1.2:1 against the section, so it reads as a step rather than a new colour). */
  background: #0B2C7A;
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 5px solid var(--brand-teal);
  border-radius: var(--radius-lg);
  padding: 40px 42px 38px;
  box-shadow: none;
}
.why-headline {
  color: #fff;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--accent);     /* lemon underline */
}
.why-body { color: rgba(255, 255, 255, .82); }
.why-body--strong { color: #fff; }
.why-body strong { color: var(--brand-teal); }

/* ---------- 3. care-type "What's typically included" ---------- */
.ct-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ct-check { display: flex; align-items: flex-start; gap: 13px; }
.ct-check-ico {
  flex: none; margin-top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.ct-check-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-check-body strong { color: var(--primary); font-size: .97rem; font-weight: 700; }
.ct-check-body span { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ---------- 4. "Built for Both Sides of Care" hover ---------- */
.dual-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  will-change: transform;
}
.dual-card:hover {
  /* !important is deliberate: the reveal-on-scroll animation writes an inline
     transform on these cards, and an inline style outranks any stylesheet rule.
     script.js now clears it once the reveal finishes, but this keeps the hover
     working even if a card is revealed again or the cleanup is interrupted. */
  transform: scale(1.025) translateY(-4px) !important;   /* expands slightly on hover */
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--secondary-soft);
}
@media (prefers-reduced-motion: reduce) {
  .dual-card:hover { transform: none; }
}

/* ---------- 5. "Ready to find care?" buttons ---------- */
.btn-cta-navy, .btn-cta-teal { border-width: 2px; border-style: solid; border-color: #fff; }
.btn-cta-navy:hover, .btn-cta-teal:hover { border-color: #fff; }

@media (max-width: 620px) {
  .why-card { padding: 30px 22px 26px; }
}

/* =========================================================
   COMMUNITY PAGE VISUAL ENHANCEMENTS
   (All colours derive from tokens in :root)
   ========================================================= */

.page-hero.community-hero {
  padding: 56px 0 64px;
}

.community-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.community-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.community-hero-copy h1 {
  text-align: left;
}

.community-hero-copy p {
  text-align: left;
  margin: 16px 0 0;
}

/* High-Visibility Hero Buttons */
.community-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.community-hero-actions .btn-primary {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(5, 31, 98, 0.28);
  border: 2px solid var(--primary);
}
.community-hero-actions .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(5, 31, 98, 0.35);
  transform: translateY(-2px);
}
/* Second hero CTA carries the logo teal, matching "I'm a caregiver" on the
   home page. Ink on teal is 8.0:1 — white would be 2.4:1, so keep the ink. */
.community-hero-actions .btn-teal {
  background: var(--brand-teal);
  color: var(--ink) !important;
  border: 2px solid var(--brand-teal);
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(2, 186, 181, 0.3);
}
.community-hero-actions .btn-teal:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  box-shadow: 0 12px 30px rgba(2, 186, 181, 0.38);
  transform: translateY(-2px);
}

.community-hero-media {
  position: relative;
}

.community-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--line);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.community-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px rgba(var(--primary-rgb), 0.2);
}
.community-media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.community-floating-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(5, 31, 98, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.badge-heart-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.1rem;
}
.badge-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.badge-text-group strong {
  font-size: .92rem;
  color: #fff;
}
.badge-text-group span {
  font-size: .78rem;
  color: var(--accent-soft);
}

/* Two-column Solidarity Section */
.community-solidarity-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.community-feature-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--line);
}
.community-feature-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Community Family Spotlight Banner */
.community-spotlight-banner {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
.spotlight-art-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--line);
}
.spotlight-art-card img {
  width: 100%;
  height: auto;
  display: block;
}
.spotlight-copy h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.spotlight-copy p {
  color: var(--muted-strong);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Prominent button inside spotlight */
.spotlight-copy .btn-primary {
  box-shadow: 0 6px 20px rgba(5, 31, 98, 0.2);
}

/* Member Story Cards */
.community-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.community-story-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.community-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.community-story-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.community-story-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-soft);
  flex: none;
}
.community-story-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.community-story-meta strong {
  font-size: .95rem;
  color: var(--ink);
}
.community-story-meta span {
  font-size: .78rem;
  color: var(--muted);
}
.community-story-quote {
  font-size: .9rem;
  color: var(--muted-strong);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

/* Responsive layout */
@media (max-width: 980px) {
  .community-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .community-solidarity-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .community-spotlight-banner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .community-stories-grid {
    grid-template-columns: 1fr;
  }
  .community-hero-actions {
    width: 100%;
  }
  .community-hero-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   PWA — App Mode, offline page and auto-sync status
   (All colours derive from tokens in :root)
   ========================================================= */

/* ---- "Get the App" band ----
   One column: heading → the scan/phone row → what you get → install button. */
.app-inner {
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  align-items: start;
}
.app-scan-row {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: nowrap;              /* scan code and phone always share one row */
  margin: 26px 0 4px;
}
.app-qr { flex: 0 1 auto; min-width: 0; margin: 0; }
/* Code above, its one line of label centred underneath. */
.app-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
/* Painted at 300px and scaled down here, so it stays sharp at every size. */
.app-qr-card canvas { flex: none; width: 224px; max-width: 100%; height: auto; }
.app-qr-card p { min-width: 0; }
.app-qr-card strong { font-size: 1.02rem; }

/* The install button sits centred under the whole band. */
.app-actions { align-items: center; }
.app-hint-line { text-align: center; }
.app-tags { margin: 18px 0 22px; }

/* Phone mockup — the app icon is the brand mark itself, not a copy of it. */
.app-phone { flex: none; }
.app-phone svg {
  width: 172px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 44px rgba(var(--shadow-rgb), .30));
}
.phone-appname {
  fill: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---- "Switch to App Mode" in the mobile menu drawer ---- */
.btn-appmode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  border: 1.5px solid var(--secondary);
  font-weight: 600;
}
.btn-appmode:hover { background: var(--secondary); color: #fff; }
.btn-appmode svg { flex: none; }
.btn-appmode:disabled { opacity: .6; cursor: progress; }
.menu-appmode-hint {
  margin: -4px 0 2px;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--muted-strong);
}
.menu-appmode-hint strong { color: var(--ink); }

/* ---- offline / auto-sync status pill ----
   Bottom-left on desktop so it never covers the chat launcher; centred above the
   tab bar on phones. */
.sync-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .28);
}
/* The pill is hidden with the `hidden` attribute whenever it has nothing to say,
   but `display: inline-flex` above is a class rule and so beats the UA's
   `[hidden] { display: none }`. Without this line the pill sits on every page as
   an empty near-black capsule — bottom-left on desktop, over the chat launcher
   on phones. Keep it next to the display declaration it has to out-rank. */
.sync-pill[hidden] { display: none; }
.sync-pill svg { flex: none; }
.sync-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.sync-pill.is-offline { background: var(--muted-strong); }
.sync-pill.is-syncing { background: var(--primary); }
.sync-pill.is-syncing .sync-dot { animation: syncPulse 1.1s ease-in-out infinite; }
.sync-pill.is-done { background: var(--secondary); }
@keyframes syncPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .sync-pill.is-syncing .sync-dot { animation: none; opacity: 1; }
}

/* ---- offline.html ---- */
.offline-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush-2);
  padding: 32px 20px;
}
.offline-wrap {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px 34px;
  box-shadow: 0 18px 50px rgba(var(--shadow-rgb), .12);
}
.offline-logo { width: 168px; height: auto; margin: 0 auto 22px; display: block; }
.offline-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--muted-strong);
}
.offline-wrap h1 { font-size: 1.7rem; margin-bottom: 12px; color: var(--ink); }
.offline-wrap p { color: var(--muted-strong); line-height: 1.6; }
.offline-sync {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  font-size: .86rem;
  font-weight: 600;
}
.offline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--secondary);
}
.offline-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.offline-home-link {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: underline;
  margin-top: 2px;
}
.offline-home-link:hover { color: var(--primary); }
.offline-status { margin-top: 16px; font-size: .9rem; color: var(--secondary-dark); font-weight: 600; }

@media (max-width: 980px) {
  .app-inner { gap: 26px; max-width: 620px; }
  .app-scan-row { gap: 24px; }
  .app-qr-card canvas { width: 190px; }
  .app-phone svg { width: 148px; }

  /* Clear the mobile tab bar, and centre the pill where a toast belongs. */
  .sync-pill {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 28px);
  }
  .app-qr-card { display: flex; }
}

/* Below this the caption can no longer sit beside the code, so the card stacks
   internally — the phone still keeps its place alongside it. */
@media (max-width: 700px) {
  .app-scan-row { gap: 16px; }
  .app-qr-card { padding: 20px; gap: 12px; }
  .app-qr-card canvas { width: 168px; }
  .app-phone svg { width: 128px; }
}

@media (max-width: 430px) {
  .app-scan-row { gap: 14px; }
  .app-qr-card { padding: 16px; }
  .app-qr-card canvas { width: 128px; }
  .app-qr-card strong { font-size: .92rem; }
  .app-phone svg { width: 100px; }
  /* The mockup's own label is scaled by the SVG, so lift it a touch here. */
  .phone-appname { font-size: 21px; }
}

/* =========================================================
   COMMUNITY PAGE — 09-04-2026 revision
   ========================================================= */

/* ---------- Hero headline ----------
   Matched to the home page's "Where Care Meets Opportunity." — Playfair 700 in
   brand navy with the full stop picked out in the vivid logo teal. The <em>
   carries no italic here for the same reason it doesn't on the home page: the
   emphasis is colour and weight, not slant. */
.community-hero-copy h1.community-hero-title {
  color: var(--primary);
  font-weight: 700;
  font-style: normal;
}
.community-hero-copy h1.community-hero-title em {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}
.community-hero-copy h1.community-hero-title .hero-stop { color: var(--brand-teal); }

/* ---------- Perk cards ----------
   Cards now end in a Learn more link, so they flex-stack and pin that link to
   the bottom edge — otherwise the six links land at six different heights. */
.perk-grid .value-card { display: flex; flex-direction: column; }
.perk-grid .value-card .learn-more { margin-top: auto; padding-top: 14px; }

/* ---------- Closing CTA band ----------
   Navy and teal as requested. The band itself is a navy → deep-teal gradient,
   so each button gets a light ring: without it the navy button dissolves into
   the left of the band and the teal one into the right. */
.community-cta-actions .btn { font-weight: 700; }
.community-cta-actions .btn-navy {
  background: var(--primary);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.community-cta-actions .btn-navy:hover {
  background: var(--primary-dark);
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}
.community-cta-actions .btn-teal {
  background: var(--brand-teal);
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.community-cta-actions .btn-teal:hover {
  background: var(--brand-teal-dark);
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   PROFILE FORM CONTROLS + SUGGESTIONS — 09-08-2026 revision
   ========================================================= */

/* ---------- "Other" free-text fallback under a picked list ---------- */
.pick-other { margin-top: 10px; }

/* ---------- phone: dial code + number ---------- */
.phone-row { display: flex; gap: 10px; align-items: stretch; }
.phone-row .phone-cc {
  flex: 0 0 clamp(118px, 34%, 168px);
  min-width: 0;
  /* Long country names would otherwise stretch the select past its track. */
  text-overflow: ellipsis;
}
.phone-row input { flex: 1 1 auto; min-width: 0; }

/* ---------- searchable multi-select (languages) ---------- */
.picker {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.picker-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.picker-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 11px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--ink);
  font-size: .84rem; font-weight: 600;
}
.picker-x {
  border: 0; background: none; cursor: pointer;
  color: var(--muted-strong);
  font-size: 1.05rem; line-height: 1;
  padding: 0 3px; border-radius: 50%;
}
.picker-x:hover { color: var(--ink); background: rgba(var(--shadow-rgb), .08); }
.picker-empty { color: var(--placeholder); font-size: .88rem; margin: 0; padding: 1px 0; }
.picker-search {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--blush-2);
}
.picker-search:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
/* The whole point of the field: a long list you scroll rather than a long page. */
.picker-list {
  max-height: 208px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
}
.picker-opt {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 9px 11px; border-radius: 10px;
  font: inherit; font-size: .93rem; color: var(--muted-strong);
}
.picker-opt:hover { background: var(--blush); color: var(--ink); }
.picker-opt.on { background: var(--primary); color: #fff; font-weight: 600; }
.picker-opt.on::after { content: " ✓"; }
.picker-list .picker-empty { padding: 10px 11px; }

/* ---------- preferred schedule ---------- */
.sched-hint { margin: 0 0 10px; }
.sched-days { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-day {
  border: 1.5px solid var(--line); background: #fff;
  color: var(--muted-strong); cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 9px 14px; border-radius: 999px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sched-day:hover { border-color: var(--primary); color: var(--primary); }
.sched-day.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sched-slots { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sched-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--blush-2);
}
.sched-row-day { flex: none; width: 40px; font-weight: 700; color: var(--primary); font-size: .9rem; }
.sched-row-slots { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.sched-slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1.5px solid var(--line); background: #fff;
  color: var(--muted-strong); cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 600;
  padding: 7px 13px; border-radius: 12px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sched-slot em { font-style: normal; font-weight: 500; font-size: .72rem; opacity: .72; }
.sched-slot:hover { border-color: var(--secondary); color: var(--secondary-dark); }
.sched-slot.on { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.sched-summary { margin: 12px 0 0; font-weight: 500; color: var(--muted-strong); }

@media (max-width: 560px) {
  .sched-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sched-row-day { width: auto; }
  .sched-slot { flex: 1 1 auto; }
}

/* ---------- Suggestions cards ----------
   Deliberately not the Match Maker card: no percentage ring, because a wider net
   has no single score worth trusting to two significant figures. */
.sug-ava {
  flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--warm-soft); color: var(--warm-dark);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.sug-pin {
  font-style: normal; font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--secondary-dark); background: var(--secondary-soft);
  padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}
.sug-caveat {
  display: block; margin-top: 4px;
  font-size: .84rem; color: var(--muted);
}
.sug-caveat::before { content: "· "; }

/* =========================================================
   ADDRESS COMBOBOX + N/A OPT-OUTS — 09-15-2026 revision
   ========================================================= */

/* The language list now opens only while the patient is typing, so the search
   box carries no dangling bottom border at rest — the border moves to the top of
   the list, which is only there when the list is. */
.picker-search { border-bottom: 0 !important; }
.picker-list { border-top: 1px solid var(--line); }
/* Both dropdowns are hidden with the `hidden` attribute. Neither sets `display`
   in a class rule, so the UA rule still wins — but declare it anyway: this is the
   exact trap that left an empty .sync-pill on every page. */
.picker-list[hidden], .combo-list[hidden] { display: none !important; }

/* ---------- address combobox ----------
   The list sits in normal flow rather than absolutely positioned: on mobile the
   form lives inside a scrolling modal sheet, and an absolute dropdown gets
   clipped by it. */
.combo { position: relative; }
.combo-list {
  margin-top: 8px;
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.combo-opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 10px 11px; border-radius: 10px;
  font: inherit; font-size: .93rem; color: var(--muted-strong);
}
.combo-opt:hover { background: var(--blush); color: var(--ink); }
.combo-opt em {
  flex: none; font-style: normal; font-size: .78rem; font-weight: 600;
  color: var(--placeholder); letter-spacing: .02em;
}
.combo-opt:hover em { color: var(--secondary-dark); }

/* ---------- N/A opt-outs ---------- */
.na-row { margin: 10px 0 0; font-size: .9rem; }
/* A greyed-out field should read as "answered N/A", not as broken. */
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
  background: var(--sand);
  color: var(--placeholder);
  cursor: not-allowed;
}
.form-field textarea:disabled { min-height: 64px; }

/* =========================================================
   CARE BANK PUSH — 09-21-2026 revision
   Nav accent · membership violator · hero Care Bank card ·
   subscription plans · Care Bank credits on the profile
   ========================================================= */

/* ---------- 1. the Care Bank nav link, picked out in logo yellow ----------
   Yellow always carries ink text (15.4:1); white on this yellow is 1.3:1. */
.main-nav a.nav-accent,
.mobile-nav > a.nav-accent,
.mobile-menu-links a.nav-accent {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 15px;
}
.main-nav a.nav-accent:hover,
.mobile-nav > a.nav-accent:hover,
.mobile-menu-links a.nav-accent:hover { background: var(--accent-dark); color: var(--ink); }
/* .main-nav sets gap:0 — fine between plain links, which have no background, but
   two accent pills side by side would touch and read as one long yellow blob. */
.main-nav a.nav-accent + a.nav-accent { margin-left: 7px; }
.mobile-nav > a.nav-accent + a.nav-accent,
.mobile-menu-links a.nav-accent + a.nav-accent { margin-top: 6px; }
/* The active-page underline is meant for plain links; on the pill it reads as an
   artefact, so the pill shows "current" with a ring instead. */
.main-nav a.nav-accent.active,
.mobile-nav > a.nav-accent.active,
.mobile-menu-links a.nav-accent.active {
  color: var(--ink);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .65);
}
.main-nav a.nav-accent.active::after { display: none; }

/* ---------- 2. membership violator ---------- */
.join-violator {
  background: linear-gradient(100deg, var(--accent) 0%, #F4FA5E 100%);
  color: var(--ink);
  border-bottom: 1px solid rgba(2, 19, 44, .12);
}
.violator-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0;
}
.violator-flash {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--accent);
  font-size: .95rem;
}
.violator-copy { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; flex: 1 1 auto; }
.violator-copy strong { font-size: 1rem; font-weight: 700; }
.violator-copy span { font-size: .92rem; font-weight: 600; letter-spacing: .02em; }
.violator-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.violator-plans { color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: underline; }
.violator-plans:hover { color: var(--primary); }
/* .btn-navy is defined for the community CTA band; give the violator its own so
   neither depends on the other surviving. */
.join-violator .btn-navy { background: var(--primary); color: #fff; border-color: var(--primary); }
.join-violator .btn-navy:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.violator-x {
  flex: none; border: 0; background: none; cursor: pointer;
  color: var(--ink); opacity: .55;
  font-size: 1.5rem; line-height: 1; padding: 0 2px;
}
.violator-x:hover { opacity: 1; }

@media (max-width: 720px) {
  .violator-inner { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .violator-copy { flex: 1 1 100%; order: 1; }
  .violator-flash { order: 0; }
  .violator-actions { order: 2; flex: 1 1 auto; }
  .violator-x { order: 3; align-self: flex-start; }
}

/* ---------- 3. hero Care Bank card (replaces the sample caregiver cards) ---------- */
.hero-cb-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
  align-self: center;
}
.hero-cb-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.2;
  color: var(--primary);
  margin: 12px 0 14px;
}
.hero-cb-card > p { color: var(--muted-strong); font-size: 1rem; margin-bottom: 24px; }
.hero-cb-rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0 18px; }
.hero-cb-free { margin: 0; font-size: .98rem; color: var(--muted-strong); }
.hero-cb-free strong { color: var(--ink); }
.hero-cb-free a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.hero-cb-free a:hover { color: var(--primary-dark); }

/* ---------- 4. subscription plans ---------- */
.sub-draft {
  display: block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: .92rem;
  color: var(--muted-strong);
}
.sub-draft code { background: rgba(2, 19, 44, .07); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.sub-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.sub-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.sub-flag {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.sub-card h2 { font-family: var(--serif); font-size: 1.45rem; color: var(--primary); margin-bottom: 6px; }
.sub-tagline { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.sub-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 16px; }
.sub-price strong { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.sub-cur { font-size: 1.15rem; font-weight: 700; color: var(--ink); align-self: flex-start; margin-top: 4px; }
.sub-note { flex: 1 1 100%; font-size: .85rem; color: var(--muted); }
.sub-who { color: var(--muted-strong); font-size: .95rem; margin-bottom: 20px; }
.sub-card .benefit-list { margin-bottom: 26px; }
.sub-card .btn { margin-top: auto; }

.sub-trial {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  text-align: center;
}
.sub-trial h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.sub-trial p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 28px; }
.sub-trial .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.sub-trial .btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }

@media (max-width: 900px) { .sub-grid { grid-template-columns: 1fr; } }

/* ---------- 5. Care Bank credits on the profile ---------- */
.cb-balance {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
}
.cb-credits { display: flex; align-items: baseline; gap: 10px; }
.cb-credits strong { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--primary); }
.cb-credits span { color: var(--muted-strong); font-size: .95rem; }
.cb-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.cb-plan {
  font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted-strong); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.cb-plan.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cb-trial { font-size: .85rem; color: var(--muted); }
.cb-trial.cb-warn { color: var(--danger); font-weight: 600; }
.sub-renew-note { max-width: 720px; margin: 22px auto 0; text-align: center; font-size: .92rem; color: var(--muted-strong); line-height: 1.55; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 560px) {
  .cb-balance { flex-direction: column; align-items: flex-start; }
  .cb-status { align-items: flex-start; text-align: left; }
  .cb-actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   ADMIN PANEL + LISTING STATUS — 09-24-2026 revision
   ========================================================= */

/* ---------- "Panel" link, immediately left of the account chip ----------
   Admin-only and drawn by ctaMarkup(); the server re-checks every request, so
   this is signposting, not a permission. */
.nav-panel {
  display: inline-flex; align-items: center;
  padding: 8px 15px; border-radius: 999px;
  font-size: .88rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--accent);
  white-space: nowrap;
}
.nav-panel:hover { background: var(--accent-dark); color: var(--ink); }
.site-header .nav-panel { color: var(--ink); }
.mobile-cta .nav-panel { justify-content: center; }

/* ---------- application cards ---------- */
.admin-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.admin-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.admin-card.status-pending  { border-left-color: var(--accent-dark); }
.admin-card.status-approved { border-left-color: var(--secondary); }
.admin-card.status-rejected { border-left-color: var(--muted); }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.admin-card-head h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--primary); }
.admin-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.admin-bio {
  color: var(--muted-strong); font-size: .94rem; margin: 14px 0 0;
  padding: 12px 14px; background: var(--blush-2); border-radius: 12px;
  white-space: pre-wrap;
}
.admin-card .sum-rows { margin-top: 14px; }
.admin-card .cgc-tags { margin-top: 12px; }

.admin-status {
  flex: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.admin-status.s-pending  { background: var(--accent-soft); color: var(--star); border: 1px solid var(--accent-dark); }
.admin-status.s-approved { background: var(--secondary-soft); color: var(--secondary-dark); }
.admin-status.s-rejected { background: var(--sand); color: var(--muted-strong); }

.admin-decide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-note { width: 100%; margin-bottom: 12px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- audit trail ----------
   Five columns on desktop; on a phone each row stacks and the column labels are
   dropped, since a header row of five words is unreadable at that width. */
.audit-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.audit-row {
  display: grid;
  grid-template-columns: 190px 110px 110px 1fr 1fr;
  gap: 14px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--muted-strong);
  border-top: 1px solid var(--line);
}
.audit-row:first-child { border-top: 0; }
.audit-head {
  background: var(--blush);
  font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary);
}
.audit-who { font-weight: 700; color: var(--primary); }
.audit-target { word-break: break-word; }
.audit-note { color: var(--muted); }

@media (max-width: 860px) {
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .audit-head { display: none; }
  .audit-row + .audit-row { padding-top: 14px; }
  .audit-when { font-size: .8rem; color: var(--muted); }
}

/* ---------- listing status pills (account page) ---------- */
.pill-pending, .pill-rejected {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 999px;
}
.pill-pending  { background: var(--accent-soft); color: var(--star); border: 1px solid var(--accent-dark); }
.pill-rejected { background: var(--sand); color: var(--muted-strong); }

/* A brand-new professional has no reviews yet — this replaces the star row
   rather than showing a 0.0 that reads as a bad score. */
.cgc-rating.cgc-new { color: var(--secondary-dark); font-weight: 600; }

/* Optimistic outgoing bubble: shown the instant you hit send, dimmed until the
   server confirms it. The next poll replaces it with the stored copy. */
.msg-b.pending { opacity: .62; }

/* =========================================================
   PRICING / TRIALS / CARE BANK ROLES — 09-28-2026 revision
   ========================================================= */

/* Per-plan trial length, stated on the card itself — trials now differ by role,
   so a single banner can no longer carry the whole truth. */
.sub-trial-badge {
  display: inline-block;
  background: var(--secondary-soft); color: var(--secondary-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  margin: 0 0 16px;
}
.sub-trial-list {
  list-style: none; margin: 0 auto 22px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  max-width: 640px;
}
.sub-trial-list li { color: rgba(255,255,255,.92); font-size: .96rem; }
.sub-trial-list strong { color: #fff; }

/* ---------- the three Care Bank roles, below the trial band ---------- */
.sub-roles-head { margin: 56px auto 32px; }
.sub-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.sub-role {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.sub-role h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--primary); margin-bottom: 10px; }
.sub-role p { color: var(--muted-strong); font-size: .95rem; margin-bottom: 12px; }
.sub-role-who { color: var(--muted); }
.sub-role-who strong { color: var(--ink); }
.sub-role-terms {
  font-weight: 700; color: var(--ink); font-size: .92rem;
  padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto;
}
.sub-role .learn-more { margin-top: 10px; }

@media (max-width: 900px) { .sub-roles { grid-template-columns: 1fr; } }

/* Role detail page: the price/trial line under the lead. */
.role-terms {
  margin-top: 16px;
  font-weight: 700; color: var(--primary); font-size: 1rem;
}

/* ---------- facility entry points ----------
   Plain text, deliberately not a third role card: a much smaller audience than
   patients and professionals, and equal visual weight would misrepresent it. */
.auth-facility { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.auth-facility a { color: var(--primary); font-weight: 600; }
.facility-note {
  background: var(--blush-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}

/* The two closing CTAs moved out of the (now deleted) trial band and sit below
   the role cards, so they need their own breathing room. */
.sub-close-actions { margin-top: 40px; }

/* =========================================================
   FACILITIES / FOR FAMILIES / SUBSCRIPTION — 10-16-2026 revision
   These three pages now share the Community page's layout: they reuse its
   `.community-*` classes directly (hero grid, media card, floating badge,
   photo + copy grid, navy/teal CTA buttons) rather than cloning them under
   new names, so a change to one is a change to all four.
   ========================================================= */

/* Photo + copy block: what community.html does with inline styles. */
.community-solidarity-copy .section-title { margin-bottom: 16px; }
.community-solidarity-copy p { color: var(--muted-strong); margin-bottom: 14px; }
.community-solidarity-actions { margin-top: 24px; }

/* The homepage's hero card, sitting in the Community hero's media column.
   `.page-hero` centres its text, so the card has to opt back out. */
.community-hero-media .hero-cb-card { text-align: left; }
.community-hero-media .hero-cb-card .benefit-list { margin-bottom: 26px; }

/* One heading face: these fell through to the body sans. */
.facility-top h3,
.cgc-top h3 { font-family: var(--serif); }
/* …but the "✓ Verified" chip inside a caregiver's name is a label, not a heading. */
.cgc-top .verified { font-family: var(--sans); }

/* Section heads above a tool (filters, plan cards) sit closer to it. */
.browse .section-head { margin-bottom: 36px; }
.sub-how { background: var(--blush); }

/* In-page anchors land below the sticky header, not under it. */
#browse, #plans, #partners { scroll-margin-top: 96px; }

/* =========================================================
   DESKTOP DASHBOARD ON THE PROFILE PAGE — 10-19-2026
   account.html mounts the very same #dashboard that dashboard.html does, so
   dashboard.js renders the identical sections in the identical order. The only
   thing that differs is the shape: a phone gets the single narrow stack it has
   always had, and from 1024px up the stack becomes a two-column board so a wide
   screen isn't a stretched phone. Everything here is scoped to
   `.dash-on-profile` — dashboard.html is deliberately untouched.
   ========================================================= */

/* It follows the account card inside the same page, so it skips the second
   80px of section padding that would otherwise stack up between them. */
.dash-on-profile { padding-top: 0; }

@media (min-width: 1024px) {
  .dash-on-profile #dashboard {
    max-width: 1160px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  /* Grid items default to min-width:auto, which lets a long unbroken string
     (an address, an email) push a column wider than its track. */
  .dash-on-profile #dashboard > * { min-width: 0; }

  /* `gap` owns the spacing in here; the stack's own margins would land on top
     of it and make the rows uneven. */
  .dash-on-profile #dashboard > .app-section,
  .dash-on-profile #dashboard > .dash-head,
  .dash-on-profile #dashboard > .dash-messages { margin-top: 0; margin-bottom: 0; }

  /* An empty marker div in normal flow; in a grid it would hold open a cell.
     Hiding it doesn't affect closeEditor()'s slot.after(form), which is DOM
     insertion rather than layout. */
  .dash-on-profile #dashboard > #dash-form-slot { display: none; }

  /* Full width: the profile itself, the edit form, and the three sections whose
     own content is already a multi-column grid or a wide list. The rest pair up
     two to a row, which keeps the ragged-row effect to the short cards. */
  .dash-on-profile #dashboard > .profile-summary,
  .dash-on-profile #dashboard > .dash-head,
  .dash-on-profile #dashboard > #dash-form,
  .dash-on-profile #dashboard > .dash-browse,
  .dash-on-profile #dashboard > .dash-suggest,
  .dash-on-profile #dashboard > .dash-messages { grid-column: 1 / -1; }
}

/* =========================================================
   RETIRE IN THE PHILIPPINES + ADVISORY — 10-23-2026
   retirement.html, advisory.html and the two pop-up forms built by
   retire-forms.js. Layout reuses the Community hero/media classes, .value-grid,
   the homepage .steps and .cta-band; this block is only what those pages add.
   Text sizes and contrast are deliberately a step up from the site default —
   the audience is retirees (advisory review §1.2, §2.2, §5.2).
   (All colours derive from tokens in :root)
   ========================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Breadcrumb above the two-column hero, on the copy's left edge. */
.rt-crumb { text-align: left; margin-bottom: 28px; }

.rt-page .community-hero-copy p,
.adv-page .community-hero-copy p { font-size: 1.15rem; color: var(--muted-strong); }
.rt-page .section-lead,
.adv-page .section-lead { color: var(--muted-strong); }
.rt-page .value-card p,
.adv-page .value-card p { color: var(--muted-strong); font-size: 1.02rem; }
.adv-page .hero-cb-card .benefit-list li { font-size: 1rem; }

/* ---------- Everything a retirement needs: five icon cards ----------
   Five doesn't divide evenly, so mid-width uses a 6-track grid: three cards of
   two tracks, then two of three — two full rows instead of a ragged one. */
.rt-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.rt-cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.rt-cat .type-icon { margin-bottom: 16px; }
.rt-cat:nth-child(3n+2) .type-icon { background: var(--secondary-soft); color: var(--secondary); }
.rt-cat:nth-child(3n) .type-icon { background: var(--warm-soft); color: var(--warm-dark); }
.rt-cat h3 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; }
.rt-cat p { color: var(--muted-strong); font-size: 1rem; }
.rt-cat a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rt-helper { margin-top: 32px; text-align: center; font-size: 1.05rem; color: var(--muted-strong); }
.rt-helper a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 1100px) {
  .rt-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rt-cat { grid-column: span 2; }
  .rt-cat:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 760px) {
  .rt-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-cat, .rt-cat:nth-child(n+4) { grid-column: auto; }
  .rt-cat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .rt-cats { grid-template-columns: 1fr; }
}

/* ---------- Where in the Philippines: selectable place cards ---------- */
.rt-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.rt-place {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rt-place:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.rt-place.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16), var(--shadow-md);
}
.rt-place-art { height: 120px; display: grid; place-items: center; flex: none; }
.rt-place-art svg { width: 56px; height: 56px; }
.rt-place-art img { width: 100%; height: 100%; object-fit: cover; }
.art-beach   { background: linear-gradient(160deg, var(--secondary-soft), var(--blush)); color: var(--secondary); }
.art-volcano { background: linear-gradient(160deg, var(--warm-soft), var(--blush)); color: var(--warm-dark); }
.art-city    { background: linear-gradient(160deg, var(--primary-soft), var(--sand)); color: var(--primary); }
.art-towers  { background: linear-gradient(160deg, var(--accent-soft), var(--primary-soft)); color: var(--primary); }
.art-unsure  { background: linear-gradient(160deg, var(--sand), var(--blush)); color: var(--muted-strong); }
.rt-place-check {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--white); font-weight: 700;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s ease, transform .2s ease;
}
.rt-place.is-selected .rt-place-check { opacity: 1; transform: none; }
.rt-place-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.rt-place h3 { font-family: var(--serif); font-size: 1.35rem; }
.rt-place-region { font-size: .9rem; color: var(--muted-strong); margin-top: 2px; }
.rt-place-line { color: var(--muted-strong); font-size: 1rem; line-height: 1.55; margin: 10px 0 12px; }
.rt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rt-tags li {
  font-size: .82rem; font-weight: 600;
  color: var(--primary); background: var(--primary-soft);
  padding: 3px 10px; border-radius: 999px;
}
.rt-facts { display: grid; gap: 9px; margin: 0 0 18px; }
.rt-facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.rt-facts dd { margin: 1px 0 0; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.rt-place-pick { margin-top: auto; width: 100%; }
.rt-place.is-selected .rt-place-pick { background: var(--primary); color: var(--white); }

/* "Not sure yet" is a real option, so it's a card — but a slim full-width one,
   so it doesn't compete with the four places. */
.rt-place--unsure { grid-column: 1 / -1; flex-direction: row; }
.rt-place--unsure .rt-place-art { height: auto; width: 140px; }
.rt-place--unsure .rt-place-body { flex-direction: row; align-items: center; gap: 24px; }
.rt-place--unsure .rt-place-line { margin: 4px 0 0; }
.rt-place--unsure .rt-place-pick { width: auto; margin-top: 0; flex: none; }

.rt-pick-bar {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
}
.rt-pick-bar[hidden] { display: none; }
.rt-pick-bar p { font-size: 1.05rem; color: var(--ink); }
.rt-fineprint { margin-top: 18px; text-align: center; font-size: .95rem; color: var(--muted-strong); }

@media (max-width: 1100px) {
  .rt-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rt-places { grid-template-columns: 1fr; }
  .rt-place--unsure, .rt-place--unsure .rt-place-body { flex-direction: column; align-items: stretch; }
  .rt-place--unsure .rt-place-art { width: auto; height: 90px; }
  .rt-place--unsure .rt-place-pick { width: 100%; margin-top: 14px; }
  .rt-pick-bar .btn { width: 100%; }
}

/* Five places + "Not sure yet" = six cards, so the grid is 3 × 2 (2 × 3 below 1100px)
   and "Not sure yet" takes the last slot as a normal card instead of a full-width row. */
.rt-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-place-art { height: 168px; position: relative; overflow: hidden; }
/* Pinned to the box: as a grid item, height:100% let the photo size its own row and spill over the title. */
.rt-place-art > img { position: absolute; inset: 0; }
.rt-place--unsure { grid-column: auto; flex-direction: column; }
.rt-place--unsure .rt-place-art { width: auto; height: 168px; }
.rt-place--unsure .rt-place-body { flex-direction: column; align-items: stretch; gap: 0; }
.rt-place--unsure .rt-place-line { margin: 10px 0 18px; }
.rt-place--unsure .rt-place-pick { width: 100%; margin-top: auto; }
.rt-place-count {
  position: absolute; top: 12px; left: 12px;
  font-size: .8rem; font-weight: 600;
  color: var(--white); background: rgba(var(--scrim-rgb), .62);
  padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 1100px) {
  .rt-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rt-places { grid-template-columns: 1fr; }
  .rt-place-art, .rt-place--unsure .rt-place-art { height: 150px; }
}

/* ---------- Place details pop-up (retirement.js) ----------
   Photo stage + caption + thumbnail strip, then the place's facts.
   Portrait photos letterbox (contain) on an ink stage rather than crop. */
.rt-place-modal { overflow-y: auto; }
.modal-card.rt-pd-card {
  max-width: 920px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 34px 0;
}
.rt-pd-head { padding-right: 36px; margin-bottom: 16px; }
.rt-pd-head h2 { outline: none; }
.rt-pd-region { color: var(--muted-strong); font-size: 1rem; margin-top: 2px; }

.rt-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rt-pd-chip {
  font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--primary); background: var(--white);
  border: 1.5px solid var(--primary-soft); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.rt-pd-chip:hover { border-color: var(--primary); }
.rt-pd-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }

.rt-pd-stage {
  position: relative; margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.rt-pd-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rt-pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 2rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.rt-pd-nav:hover { background: var(--white); }
.rt-pd-nav[hidden] { display: none; }
.rt-pd-prev { left: 14px; }
.rt-pd-next { right: 14px; }
.rt-pd-counter {
  position: absolute; right: 14px; bottom: 12px;
  font-size: .82rem; font-weight: 600;
  color: var(--white); background: rgba(var(--scrim-rgb), .62);
  padding: 3px 10px; border-radius: 999px;
}
.rt-pd-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 2px 0; }
.rt-pd-caption strong { font-size: 1.08rem; color: var(--ink); }
.rt-pd-caption span { color: var(--muted-strong); font-size: .95rem; }
.rt-pd-caption em {
  font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .4px;
  color: var(--secondary-dark); background: var(--secondary-soft);
  padding: 2px 9px; border-radius: 999px;
}
.rt-pd-thumbs {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 12px 2px 6px; margin-top: 4px;
  scroll-snap-type: x proximity;
}
.rt-pd-thumb {
  flex: none; width: 92px; height: 64px; padding: 0;
  border: 3px solid transparent; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: var(--sand);
  opacity: .72; transition: opacity .15s ease, border-color .15s ease;
  scroll-snap-align: start;
}
.rt-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-pd-thumb:hover { opacity: 1; }
.rt-pd-thumb.is-current { border-color: var(--primary); opacity: 1; }

.rt-pd-info {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px 30px;
  margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line);
}
.rt-pd-about { grid-column: 1; font-size: 1.02rem; line-height: 1.65; color: var(--muted-strong); }
.rt-pd-tags { grid-column: 1; margin-top: 12px; }
.rt-pd-facts { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.rt-pd-foot {
  position: sticky; bottom: 0;
  display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  margin: 18px -34px 0; padding: 16px 34px 22px;
  background: var(--white); border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .rt-place-modal { padding: 0; place-items: stretch; }
  .modal-card.rt-pd-card {
    max-width: none; max-height: none; height: 100%;
    border-radius: 0; padding: 22px 16px 0;
  }
  /* One swipeable row of filters instead of three wrapped rows above the photo. */
  .rt-pd-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
  .rt-pd-chips::-webkit-scrollbar { display: none; }
  .rt-pd-chip { flex: none; padding: 6px 12px; }
  .rt-pd-stage { aspect-ratio: 4 / 3; border-radius: 14px; }
  .rt-pd-nav { width: 40px; height: 40px; font-size: 1.7rem; }
  .rt-pd-info { grid-template-columns: 1fr; }
  .rt-pd-facts { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .rt-pd-foot { margin: 18px -16px 0; padding: 12px 16px 16px; }
  .rt-pd-foot .btn { flex: 1; }
}

/* ---------- Journey: one colour, a line that runs centre to centre ----------
   The homepage's .steps deliberately gives each disc its own colour and starts
   the line at 8%; here every disc is navy and the line spans exactly from the
   first disc's centre to the last one's (review §3.1). The 34px is .steps' gap. */
.rt-journey .steps .step { text-align: center; }
.rt-journey .steps .step .step-num { background: var(--primary); color: var(--white); margin-left: auto; margin-right: auto; }
.rt-journey .steps-line {
  left: calc((100% - 3 * 34px) / 8);
  right: calc((100% - 3 * 34px) / 8);
  height: 2px;
  background: var(--primary-soft);
}
.rt-journey .step p { color: var(--muted-strong); font-size: 1rem; }

/* ---------- Benefits: four across ---------- */
.value-grid.rt-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rt-benefits .value-card:nth-child(2) .type-icon,
.adv-page .value-card:nth-child(2) .type-icon { background: var(--secondary-soft); color: var(--secondary); }
.rt-benefits .value-card:nth-child(3) .type-icon,
.adv-page .value-card:nth-child(3) .type-icon { background: var(--warm-soft); color: var(--warm-dark); }
@media (max-width: 1100px) { .value-grid.rt-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .value-grid.rt-benefits { grid-template-columns: 1fr; } }

/* ---------- Plan with an advisor: full-width band ---------- */
.rt-advisor .eyebrow { color: var(--accent); }

/* ---------- Advisory page ---------- */
.adv-page .community-hero-actions .btn-outline { border-width: 2px; font-weight: 700; background: var(--white); }
.adv-page .community-hero-actions .btn-outline:hover { background: var(--primary); color: var(--white); }
.adv-audiences .value-card { display: flex; flex-direction: column; }
.adv-audiences .value-card p { margin-bottom: 22px; }
.adv-audiences .value-card .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; }
.adv-audiences .value-card.is-primary { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }

.adv-contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.adv-contact-copy .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.adv-contact-copy p { color: var(--muted-strong); font-size: 1.05rem; }
.adv-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.adv-contact-list { display: grid; gap: 12px; margin: 0; }
.adv-contact-list > div {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blush-2);
  border: 1px solid var(--line);
}
.adv-contact-list .type-icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.adv-contact-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted-strong); }
.adv-contact-list dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.adv-contact-list a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.adv-disclaimer {
  max-width: 880px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-strong);
}
@media (max-width: 980px) {
  .adv-contact { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
}
@media (max-width: 620px) {
  .adv-contact-actions .btn { width: 100%; white-space: normal; }
  .adv-audiences .value-card .btn { align-self: stretch; text-align: center; }
}

/* ---------- The pop-up forms (retire-forms.js) ----------
   Built on .modal-overlay / .modal-card, wider and roomier. On phones the card
   becomes a full-screen sheet and the submit row sticks to its bottom edge. */
.rt-modal { overflow-y: auto; }
.modal-card.rt-form-card {
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 40px 30px;
}
.rt-form-card h2 { margin-bottom: 4px; padding-right: 32px; }
.rt-form-card .modal-sub { font-size: 1rem; color: var(--muted-strong); }
.rt-form-card .form-field label { font-size: .98rem; }
.rt-form-card .form-hint { color: var(--muted-strong); font-size: .9rem; }
.rt-pick {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dark);
  color: var(--ink);
  font-size: .95rem;
}
.rt-pick[hidden] { display: none; }

.rt-progress { display: flex; gap: 10px; margin: 6px 0 16px; }
.rt-progress li {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px;
  border-top: 4px solid var(--line);
  font-size: .92rem; font-weight: 600; color: var(--muted-strong);
}
.rt-progress li span {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line); color: var(--ink);
  font-size: .82rem;
}
.rt-progress em { font-style: normal; }
.rt-progress li.is-current, .rt-progress li.is-done { color: var(--ink); border-top-color: var(--primary); }
.rt-progress li.is-current span, .rt-progress li.is-done span { background: var(--primary); color: var(--white); }

.rt-req { color: var(--danger); font-weight: 700; margin-left: 3px; }
.rt-opt { font-weight: 400; color: var(--muted-strong); font-size: .88rem; }
.rt-req-legend { font-size: .92rem; color: var(--muted-strong); margin-bottom: 16px; }
.rt-req-legend .rt-req { margin: 0 2px 0 0; }

.rt-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.rt-form .form-field.has-error input,
.rt-form .form-field.has-error select,
.rt-form .form-field.has-error textarea { border-color: var(--danger); }
.rt-err { margin-top: 6px; color: var(--danger); font-size: .9rem; font-weight: 500; }
.rt-err:empty { display: none; }
.rt-consent-err { margin: -4px 0 12px; }

.rt-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rt-group legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .98rem; color: var(--ink); }
.rt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rt-choice {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: .98rem; line-height: 1.3; color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.rt-choice:hover { border-color: var(--primary-soft); background: var(--blush-2); }
.rt-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.rt-choice input,
.rt-consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--primary); }

.rt-consents { margin-top: 6px; }
.rt-consent {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--blush-2);
  font-size: .98rem; line-height: 1.5; color: var(--ink);
  cursor: pointer;
}
.rt-consent input { margin-top: 2px; }
.rt-consent a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.rt-consent.has-error { border-color: var(--danger); background: var(--danger-soft); }

/* The submit row sits clear of the consent text above it (review §4.7). */
.rt-form-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); background: var(--white); }
.rt-form-nav { display: flex; justify-content: flex-end; gap: 12px; }
.rt-form-nav .js-back { margin-right: auto; }
/* ⚠️ The step buttons are shown/hidden with the `hidden` attribute, and
   .btn's display:inline-flex out-ranks the UA's [hidden] rule — without this,
   Back, Next and Send all show on every step (same trap as .sync-pill). */
.rt-form-nav .btn[hidden] { display: none; }
.rt-form-error {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  font-size: .95rem;
}
.rt-form-error[hidden] { display: none; }
.rt-disclaimer { margin-top: 16px; font-size: .95rem; line-height: 1.55; color: var(--muted-strong); }

.rt-success { text-align: center; padding: 16px 0 8px; }
.rt-success[hidden] { display: none; }
.rt-success-ico {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  border: 1.5px solid var(--success-line);
  color: var(--success);
  font-size: 1.8rem; font-weight: 700;
}
.rt-success h2 { padding-right: 0; outline: none; }
.rt-success p { max-width: 460px; margin: 10px auto 0; font-size: 1.05rem; color: var(--muted-strong); }
.rt-success .hero-actions { margin-top: 26px; }

@media (max-width: 620px) {
  .rt-modal { padding: 0; place-items: stretch; }
  .modal-card.rt-form-card {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    padding: 26px 18px 0;
  }
  .rt-choices { grid-template-columns: 1fr; }
  /* Three labels don't fit across a phone; the current step keeps its name. */
  .rt-progress li:not(.is-current) .rt-step-label { display: none; }
  .rt-progress li.is-current { flex: 2.4; white-space: nowrap; }
  .rt-form-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 22px -18px 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 20px rgba(var(--shadow-rgb), .08);
  }
  .rt-form-nav .btn { flex: 1; }
  .rt-form-nav .js-back { flex: 0 0 auto; margin-right: 0; }
  .rt-disclaimer { padding-bottom: 20px; }
  .rt-success .hero-actions .btn { width: 100%; }
}

/* =========================================================
   Retire in PH — 10-24-2026 additions
   (1) Learn more on the four "Why plan your care" cards, pinned to the card
       foot so the four links line up across a row.
   (2) Remote jobs band (#remote-jobs): a yellow-whisper band with its own
       navy-bordered panel, so it reads as a different audience (job seekers)
       from the family-facing sections around it.
   (All colours derive from tokens in :root)
   ========================================================= */
.rt-benefits .value-card { display: flex; flex-direction: column; }
.rt-benefits .learn-more { margin-top: auto; padding-top: 14px; align-self: flex-start; }

.rt-jobs {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--blush) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Yellow marks an offer on this site (the Subscription pill); always ink text on it. */
.rt-jobs-chip {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.rt-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rt-role {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rt-role:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rt-role .type-icon { margin-bottom: 16px; }
.rt-role:nth-child(3n+2) .type-icon { background: var(--secondary-soft); color: var(--secondary); }
.rt-role:nth-child(3n) .type-icon { background: var(--warm-soft); color: var(--warm-dark); }
.rt-role h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; margin-bottom: 10px; }
.rt-role-what { color: var(--muted-strong); font-size: 1rem; line-height: 1.55; margin-bottom: 14px; }
.rt-role-fit {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--blush-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.rt-role-fit strong { color: var(--primary); }
.rt-role .rt-tags { margin: auto 0 0; padding-top: 14px; }

.rt-jobs-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  margin-top: 32px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}
.rt-jobs-panel h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 16px; }
.rt-jobs-need .check-list { gap: 10px; }
.rt-jobs-need .check-list li {
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--blush-2);
  box-shadow: none;
  font-size: .98rem;
  line-height: 1.5;
}
.rt-jobs-steps { list-style: none; margin: 0; padding: 0; counter-reset: rt-step; display: grid; gap: 16px; }
.rt-jobs-steps li {
  counter-increment: rt-step;
  position: relative;
  padding-left: 50px;
  min-height: 34px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-strong);
}
.rt-jobs-steps li::before {
  content: counter(rt-step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}
.rt-jobs-steps strong { color: var(--ink); }
.rt-jobs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rt-jobs-note { margin-top: 14px; font-size: .95rem; color: var(--muted-strong); }
.rt-jobs-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .rt-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rt-jobs-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
}
@media (max-width: 620px) {
  .rt-roles { grid-template-columns: 1fr; }
  .rt-jobs-actions .btn { width: 100%; }
}

/* =========================================================
   About Us + Privacy Policy rebuild — 10-23-2026
   Rebuilt from the UX/legal review's screenshots. Layout reuses the Community
   hero, .value-grid / .value-card, .learn-more and .cta-band; these rules only
   add what those don't cover. (All colours derive from tokens in :root)
   ========================================================= */
.abt-page #story, .abt-page #mission, .abt-page #values,
.abt-page #founder, .abt-page #community { scroll-margin-top: 96px; }

/* Shared tick list (mission/vision, founder, plain-language summary) */
.abt-ticks, .pv-ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.abt-ticks li, .pv-ticks li { position: relative; padding-left: 30px; color: var(--ink); line-height: 1.55; }
.abt-ticks li::before, .pv-ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--secondary); font-weight: 700;
}

/* Hero: what "culturally matched" means, and the founder badge as a link */
.abt-define { margin: 2px 0 6px; }
.abt-define summary {
  display: inline-block; cursor: pointer;
  color: var(--primary); font-weight: 600; font-size: .98rem;
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.abt-define summary::-webkit-details-marker { display: none; }
.abt-define p {
  margin-top: 10px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem !important;
}
.abt-define a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.abt-page .community-hero-copy p { color: var(--muted-strong); font-size: 1.12rem; }
a.abt-founder-badge { color: var(--white); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.abt-founder-badge:hover { transform: translateY(-3px); }
a.abt-founder-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Origin story: copy beside a stat and a pull-quote */
.abt-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.abt-story-copy .section-title { margin-bottom: 18px; }
.abt-story-copy p { color: var(--muted-strong); font-size: 1.05rem; line-height: 1.7; margin-bottom: 14px; }
.abt-down {
  display: inline-flex; gap: 6px; margin-top: 6px;
  color: var(--primary); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.abt-story-side { display: grid; gap: 20px; }
.abt-stat {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-md);
}
.abt-stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1.05; }
.abt-stat span { display: block; margin-top: 6px; font-size: 1.02rem; opacity: .92; }
.abt-pull {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-teal);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.abt-pull p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }

/* Mission & vision: two equal-height cards, then where we operate */
.abt-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.abt-mv-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm);
}
.abt-mv-card:nth-child(2) .type-icon { background: var(--secondary-soft); color: var(--secondary); }
.abt-mv-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; }
.abt-mv-lead { color: var(--muted-strong); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }
.abt-ai-note {
  margin-top: 18px; padding: 12px 16px;
  background: var(--blush-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: .96rem; line-height: 1.55; color: var(--muted-strong);
}
.abt-ai-note strong { color: var(--ink); }
.abt-mv-card .learn-more { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.abt-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.abt-where > div {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--primary); border-radius: var(--radius);
  padding: 20px 24px;
}
.abt-where > div:nth-child(2) { border-left-color: var(--secondary); }
.abt-where h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.abt-where p { color: var(--muted-strong); }

/* Values + community cards: brand-palette icons, link pinned to the foot, lift on hover */
.abt-values .value-card, .abt-people .value-card {
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.abt-values .value-card:hover, .abt-people .value-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft);
}
.abt-values .value-card:nth-child(3n+1) .type-icon, .abt-people .value-card:nth-child(3n+1) .type-icon { background: var(--primary); color: var(--white); }
.abt-values .value-card:nth-child(3n+2) .type-icon, .abt-people .value-card:nth-child(3n+2) .type-icon { background: var(--secondary); color: var(--white); }
.abt-values .value-card:nth-child(3n) .type-icon, .abt-people .value-card:nth-child(3n) .type-icon { background: var(--warm-dark); color: var(--white); }
.abt-page .value-card p { color: var(--muted-strong); font-size: 1rem; }
.abt-page .value-card p strong { color: var(--ink); }
.abt-values .learn-more, .abt-people .learn-more { margin-top: auto; padding-top: 14px; align-self: flex-start; }
.abt-say {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .4px;
  color: var(--muted-strong); background: var(--sand);
  padding: 2px 9px; border-radius: 999px;
}

/* Founder */
.abt-founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md);
}
.abt-founder-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--primary) 0%, var(--secondary-dark) 100%);
}
.abt-founder-initials { font-family: var(--serif); font-size: 4.2rem; color: var(--white); letter-spacing: 3px; }
.abt-founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abt-founder-copy h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 2px 0 6px; }
.abt-founder-titles { font-weight: 600; color: var(--ink); font-size: .95rem; }
.abt-founder-quote {
  margin: 18px 0; padding: 4px 0 4px 16px;
  border-left: 4px solid var(--brand-teal);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink);
}
.abt-founder-copy > p { color: var(--muted-strong); font-size: 1.03rem; line-height: 1.65; margin-bottom: 16px; }

@media (max-width: 980px) {
  .abt-story, .abt-mv, .abt-where { grid-template-columns: 1fr; }
  .abt-story { gap: 32px; }
  .abt-founder { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
  .abt-founder-photo { max-width: 280px; }
}
@media (max-width: 620px) {
  .abt-mv-card { padding: 26px 22px; }
  .abt-stat strong { font-size: 2.2rem; }
}

/* ---------- Privacy Policy ---------- */
.pv-container { max-width: 860px; }
.pv-meta { color: var(--muted-strong); font-size: .92rem; margin-bottom: 16px; }
.pv-status {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--brand-teal);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 24px;
  color: var(--ink); line-height: 1.6; box-shadow: var(--shadow-sm);
}
.pv-status strong { color: var(--primary); }
.pv-status a, .pv-callout a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pv-plain {
  background: var(--white); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.pv-plain h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 14px; }
.pv-toc {
  background: var(--blush); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 44px;
}
.pv-toc h2 {
  font-size: .82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.pv-toc ol { columns: 2; column-gap: 36px; margin: 0; padding-left: 24px; }
.pv-toc li { margin-bottom: 8px; break-inside: avoid; color: var(--muted-strong); }
.pv-toc a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pv-body.prose { max-width: none; }
.pv-section { scroll-margin-top: 96px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pv-section:last-child { border-bottom: 0; }
.pv-section h3 { scroll-margin-top: 96px; }
.pv-top { display: inline-block; margin: 2px 0 26px; font-size: .88rem; color: var(--muted-strong) !important; }
.pv-alert {
  background: var(--primary-soft); border: 1px solid var(--primary-soft); border-left: 5px solid var(--primary);
  border-radius: 14px; padding: 14px 18px; margin: 4px 0 18px;
  color: var(--ink); line-height: 1.6;
}
.pv-alert strong { color: var(--primary); }
.pv-callout {
  background: var(--blush); border-left: 4px solid var(--secondary);
  border-radius: 10px; padding: 12px 16px; color: var(--ink) !important;
}

/* ---------- Policy pages (Terms, Privacy, Cookies) — 11-11-2026 ----------
   Same type and colour treatment as the homepage: navy bold title with an
   upright last word and a teal full stop (.hero-title), bold serif headings
   in ink (.section-title), slate body copy. Scoped by body.policy-page. */
.policy-page .page-hero h1 { color: var(--primary); font-weight: 700; }
.policy-page .page-hero h1 em { font-style: normal; font-weight: 700; }
.policy-page .prose h2 { font-weight: 700; color: var(--ink); }
.policy-page .prose h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.policy-page .prose p, .policy-page .prose ul.bullets li { color: var(--muted-strong); }
.policy-page .prose strong { color: var(--ink); }
.pv-contact {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px; margin: 14px 0;
}
.pv-contact h3 { margin-top: 0; }
.pv-history { margin: 10px 0 6px; }
.pv-history summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.pv-history ul { margin-top: 12px; }
.pv-page code { font-size: .9em; background: var(--sand); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 620px) {
  .pv-toc ol { columns: 1; }
  .pv-plain { padding: 22px 20px; }
}

/* Footer: the link for the page being viewed (set by shared.js) */
.site-footer a[aria-current="page"] { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   Remote support Learn more — 11-11-2026
   Each card in #remote-jobs (retirement.html) ends in a Learn more link to
   remote-role.html?role=…; the role pages reuse the .ct-* detail-page
   layout, and Bantay Tech Security lists its services as cards.
   (All colours derive from tokens in :root)
   ========================================================= */
.rt-role .learn-more { margin-top: 14px; align-self: flex-start; }

.rr-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rr-service {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.rr-service:nth-child(3n+2) { border-top-color: var(--primary); }
.rr-service:nth-child(3n) { border-top-color: var(--warm-dark); }
.rr-service h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.rr-service dl { display: grid; gap: 12px; margin: 0; }
.rr-service dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--primary);
}
.rr-service dd { margin: 3px 0 0; color: var(--muted-strong); line-height: 1.6; }
.rr-footnote { margin-top: 22px; text-align: center; font-size: .95rem; color: var(--muted-strong); }
.rr-note {
  margin-top: 16px; padding: 12px 16px;
  background: var(--blush); border-left: 4px solid var(--secondary); border-radius: 10px;
  color: var(--ink); font-size: .96rem;
}
@media (max-width: 760px) {
  .rr-services { grid-template-columns: 1fr; }
  .rr-service { padding: 22px 20px; }
}

/* =========================================================
   Care Bank page rebuild — 11-11-2026
   From the Care Bank reference images (concepts only — every colour and
   font here is a site token): membership box, "Three people, one circle
   of care", the two-column journey, and three pop-ups on .modal-overlay /
   .modal-card. (All colours derive from tokens in :root)
   ========================================================= */
.cb-hero-body { color: var(--muted-strong); margin-top: 16px; line-height: 1.7; }
.cb-hero-body strong { color: var(--ink); }

.cb-member {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  max-width: 900px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 26px 32px; box-shadow: var(--shadow-sm);
}
.cb-member h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cb-member p { color: var(--muted-strong); line-height: 1.6; }
.cb-member p strong { color: var(--ink); }
.cb-member .btn { flex: none; }

.cb-block { margin-top: 72px; scroll-margin-top: 96px; }

.cb-pill {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--secondary-dark); background: var(--secondary-soft);
  padding: 4px 11px; border-radius: 999px;
}

/* Three people */
.cb-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cb-person {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.cb-person.is-featured { border: 2px solid var(--secondary); box-shadow: var(--shadow-md); }
.cb-person h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.35; color: var(--ink); margin: 14px 0 10px; }
.cb-person p { color: var(--muted-strong); line-height: 1.6; margin-bottom: 22px; }
.cb-person .btn { margin-top: auto; }

/* Journey: two sides, numbered steps on a thin line */
.cb-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cb-side {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.cb-side header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cb-side h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.cb-journey-steps { list-style: none; margin: 0; padding: 0; counter-reset: cb-step; position: relative; }
.cb-journey-steps li {
  counter-increment: cb-step;
  position: relative; padding: 0 0 18px 46px;
  color: var(--muted-strong); line-height: 1.6;
}
.cb-journey-steps li strong { color: var(--ink); }
.cb-journey-steps li::before {
  content: counter(cb-step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: .82rem; font-weight: 700;
}
.cb-journey-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px;
  width: 2px; background: var(--primary-soft);
}
.cb-journey-note {
  margin-top: 6px; padding: 14px 16px;
  background: var(--blush); border-left: 4px solid var(--secondary); border-radius: 10px;
  color: var(--ink); line-height: 1.6; font-size: .96rem;
}
.cb-journey-note strong { color: var(--secondary-dark); }

/* Pop-ups */
.cb-modal { overflow-y: auto; }
.modal-card.cb-modal-card { max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.cb-modal-card h2 { padding-right: 32px; margin-bottom: 4px; }
.cb-modal-card h2:focus { outline: none; }
.cb-modal-card .modal-sub { color: var(--muted-strong); font-size: 1rem; line-height: 1.55; }
.cb-modal-card .modal-sub strong { color: var(--ink); }
.cb-field { margin-bottom: 18px; }
.cb-field > label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.cb-next { color: var(--muted-strong); font-size: .92rem; margin: 6px 0 12px; }
.cb-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cb-choice {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: var(--blush-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; font: inherit; color: var(--muted-strong);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cb-choice strong { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.cb-choice span { font-size: .9rem; line-height: 1.5; }
.cb-choice:hover, .cb-choice:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

@media (max-width: 900px) {
  .cb-people, .cb-journey { grid-template-columns: 1fr; }
  .cb-member { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .cb-member { padding: 22px 20px; }
  .cb-member .btn { width: 100%; }
  .cb-side { padding: 24px 20px; }
  .cb-choices { grid-template-columns: 1fr; }
  .modal-card.cb-modal-card { padding: 28px 22px 24px; }
}
