/* ============================================================
   page-about.css — Healthvocate About / mission page.
   Executes the house brand at full polish: Playfair Display display
   type, DM Sans body, the gold accent rule, light-sky eyebrows, and
   ink dark bands. Uses the global tokens from app.css :root. Every
   selector is scoped under body.about-body / .ab- classes so nothing
   leaks into the rest of the app.
   ============================================================ */

body.about-body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.about-body * { box-sizing: border-box; }

/* shared rhythm ------------------------------------------------ */
.ab-band { padding: clamp(58px, 9vw, 104px) 24px; }
.ab-wrap { max-width: 760px; margin: 0 auto; }
.ab-wide { max-width: 1080px; margin: 0 auto; }

.ab-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px;
}
.ab-rule { width: 48px; height: 3px; background: var(--gold); border: 0; margin: 18px 0 0; }
.ab-rule.center { margin-left: auto; margin-right: auto; }

.ab-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.ab-p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 16px; color: var(--body); }
.ab-p:last-child { margin-bottom: 0; }
.ab-p strong { color: var(--ink); font-weight: 600; }

/* ── top nav ─────────────────────────────────────────────────── */
.ab-nav { border-bottom: 1px solid var(--rule); background: #fff; }
.ab-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 17px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ab-nav .ab-brand { display: inline-flex; }
.ab-nav .ab-brand img { display: block; height: 34px; width: auto; }
.ab-nav-actions { display: flex; align-items: center; gap: 8px; }
.ab-link {
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  padding: 9px 15px; border-radius: 8px; transition: background .15s ease, color .15s ease;
  color: var(--slate); white-space: nowrap;
}
.ab-link:hover { background: var(--frost); color: var(--ink); }
.ab-link.solid { background: var(--sky); color: #fff; }
.ab-link.solid:hover { background: #3d7cab; color: #fff; }

/* ── hero (ink band, the mission thesis) ─────────────────────── */
.ab-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(72px, 12vw, 132px) 24px clamp(64px, 10vw, 116px);
}
/* soft depth glow, top-right — atmosphere, not decoration */
.ab-hero::after {
  content: ""; position: absolute; top: -28%; right: -12%;
  width: 60%; height: 150%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(74,144,196,0.20), rgba(74,144,196,0) 72%);
}
.ab-hero .ab-wrap { position: relative; z-index: 1; }
.ab-hero .ab-eyebrow { color: #8fbce0; }
.ab-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.ab-hero h1 .accent { color: var(--gold); font-style: italic; }
.ab-hero .ab-lede {
  font-weight: 300;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
  color: #cdddec;
  max-width: 620px;
  margin: 22px 0 0;
}
.ab-hero .ab-rule { margin-top: 28px; }

/* ── mission (light, the lawyer/accountant framing + statement) ─ */
.ab-mission { background: #fff; }
.ab-mission .ab-intro { font-size: clamp(1.06rem, 1.7vw, 1.18rem); color: var(--slate); line-height: 1.7; margin: 0 0 30px; }
.ab-statement {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  padding-left: 26px;
  border-left: 3px solid var(--gold);
}
.ab-statement em { font-style: italic; color: var(--slate); }

/* ── problem (frost band, lead-in + three "truths") ──────────── */
.ab-problem { background: var(--frost); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ab-problem .ab-lead { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.ab-truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-truth { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 24px 22px; }
.ab-truth .t-mark { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.ab-truth h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 12px 0 7px; line-height: 1.25; }
.ab-truth p { font-size: 0.92rem; line-height: 1.55; color: var(--body); margin: 0; }

/* ── how we're different (white, three value cards) ──────────── */
.ab-diff { background: #fff; }
.ab-diff .ab-head, .ab-tools .ab-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-card {
  position: relative; background: #fff; border: 1px solid var(--rule);
  border-radius: 14px; padding: 30px 26px 28px;
  box-shadow: 0 1px 2px rgba(15,28,46,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ab-card::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--gold);
}
.ab-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,28,46,0.10); border-color: #c2d4e4; }
.ab-card .c-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin: 4px 0 10px; }
.ab-card h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 1.24rem; line-height: 1.2; color: var(--ink); margin: 0 0 10px;
}
.ab-card p { font-size: 0.95rem; line-height: 1.6; color: var(--body); margin: 0; }

/* ── founder (monogram + text) ───────────────────── */
.ab-founder { background: #fff; border-top: 1px solid var(--rule); }
.ab-founder-inner { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.ab-monogram {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.9rem;
  letter-spacing: 0.02em; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold);
  flex: none;
}
.ab-founder h2 { margin-top: 0; }
.ab-founder .ab-byline { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--slate); margin: 0 0 16px; }

/* ── closing CTA (ink band) ──────────────────────────────────── */
.ab-cta { background: var(--ink); color: #fff; text-align: center; }
.ab-cta .ab-eyebrow { color: #8fbce0; }
.ab-cta h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; color: #fff; margin: 0 0 14px;
}
.ab-cta .ab-sub { font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.18rem); color: #cdddec; max-width: 540px; margin: 0 auto 30px; line-height: 1.5; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ab-btn {
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 10px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  display: inline-block;
}
.ab-btn.primary { background: var(--sky); color: #fff; box-shadow: 0 6px 18px rgba(74,144,196,0.32); }
.ab-btn.primary:hover { background: #5a9fd1; transform: translateY(-2px); }
.ab-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.ab-btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.ab-fine { margin: 30px auto 0; max-width: 560px; font-size: 0.78rem; line-height: 1.5; color: #7f93a8; }

/* ── entrance motion (hero only; quiet everywhere else) ──────── */
@keyframes abFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ab-hero .ab-eyebrow, .ab-hero h1, .ab-hero .ab-lede, .ab-hero .ab-rule { animation: abFadeUp .6s ease both; }
.ab-hero h1 { animation-delay: .07s; }
.ab-hero .ab-lede { animation-delay: .15s; }
.ab-hero .ab-rule { animation-delay: .22s; }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ab-truths, .ab-cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .ab-founder-inner { grid-template-columns: 1fr; gap: 22px; text-align: left; }
}
@media (max-width: 520px) {
  .ab-nav-inner { padding: 14px 18px; }
  .ab-link { padding: 8px 11px; font-size: 0.86rem; }
  .ab-statement { padding-left: 18px; }
}

/* ── a11y floor ──────────────────────────────────────────────── */
body.about-body a:focus-visible,
body.about-body .ab-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  body.about-body * { animation: none !important; transition: none !important; }
  .ab-card:hover, .ab-btn:hover { transform: none; }
}

/* ── tools (frost band) — soft funnel entry; cards surface Estimates::aggregateBadge
   stats when present (>= AGG_FEATURE_MIN), and stand on name + descriptor + link when
   not. Each link routes to the matched /check-* sample, which sets the feature Intent. */
.ab-tools { background: var(--frost); border-top: 1px solid var(--rule); }
.ab-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-tool {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule);
  border-radius: 12px; padding: 22px 22px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ab-tool:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,28,46,0.09); border-color: #c2d4e4; }
.ab-tool h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 1.12rem; line-height: 1.22; color: var(--ink); margin: 0 0 8px;
}
.ab-tool .t-desc { font-size: 0.9rem; line-height: 1.5; color: var(--body); margin: 0 0 13px; }
.ab-tool .t-badge { margin: 0 0 13px; }   /* badge carries its own inline styling */
.ab-tool .t-link { margin-top: auto; align-self: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--sky); text-decoration: none; }
.ab-tool .t-link:hover { color: #3d7cab; text-decoration: underline; }
.ab-tools-more { text-align: center; margin: 32px auto 0; max-width: 640px; font-size: 0.92rem; line-height: 1.6; color: var(--body); }
.ab-tools-more a { color: var(--sky); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ab-tools-more a:hover { text-decoration: underline; }
@media (max-width: 860px) { .ab-tool-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .ab-tool:hover { transform: none; } }
