/* Healthcare AI Certification — styles
   Working brand: HAIC (placeholder — see README)
   Design language (owner brief 2026-07-15): "luxurious yacht" — creamy hull,
   deep navy waterline, champagne-gold trims, serif display type, life with
   mild motion. Interactive elements stay navy (contrast); gold is trim only. */

:root {
  --page: #f8f4ea;
  --surface: #fffdf6;
  --ink: #171410;
  --ink-2: #56503f;
  --muted: #8c8267;
  --hairline: #e7dcc1;
  --border: rgba(23, 20, 16, 0.10);

  /* navy = water & action */
  --accent: #1c4e80;
  --accent-deep: #133c66;
  --accent-deeper: #0a2440;
  /* gold-cream washes = the trim */
  --accent-wash: #e8d9ab;
  --accent-wash-2: #f6efdb;

  --gold: #c19a3f;
  --gold-deep: #96742a;
  --gold-bright: #dcbb64;

  --good: #006300;

  --serif: Georgia, "Times New Roman", "Palatino Linotype", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23,20,16,.05), 0 8px 24px rgba(10,36,64,.08);
  --shadow-lift: 0 3px 8px rgba(23,20,16,.07), 0 16px 38px rgba(10,36,64,.12);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(193, 154, 63, .22);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-deeper) 100%);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(220, 187, 100, .35);
  color: var(--gold-bright); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand small {
  display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover {
  background: var(--accent-deeper);
  box-shadow: var(--shadow), 0 0 0 1.5px var(--gold-bright);
}
.btn-ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost:hover { background: var(--accent-wash-2); }
.btn-big { padding: 15px 28px; font-size: 17px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(220, 187, 100, .38) 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(28, 78, 128, .10) 0%, transparent 55%);
  border-bottom: 1px solid rgba(193, 154, 63, .25);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-deep);
  background: var(--accent-wash-2); border: 1px solid var(--accent-wash);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: -.015em;
  margin: 0 0 18px; max-width: 19ch; font-weight: 700;
}
.hero p.lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Trust strip ---------- */
.strip {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.strip-item { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.strip-item b { color: var(--ink); font-size: 20px; font-weight: 800; white-space: nowrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 10px;
}
.kicker::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 42px; height: 1px; margin-left: 12px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.01em; line-height: 1.18;
  margin: 0 0 14px; font-weight: 700;
}
.sub { font-size: 17.5px; color: var(--ink-2); max-width: 62ch; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(193, 154, 63, .45);
}
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.005em; font-family: var(--serif); font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .num {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-wash-2); border: 1px solid var(--gold);
  color: var(--gold-deep); font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* track cards */
.track { display: flex; flex-direction: column; gap: 10px; }
.track .aud {
  font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-deep);
}
.track ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.track ul li { margin: 3px 0; }
.track .meta { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); }

/* ---------- Certificate mock ---------- */
.cert-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .cert-wrap { grid-template-columns: 1fr; } }
.certificate {
  background: linear-gradient(160deg, #fffef9 0%, #fbf5e6 100%);
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 34px 38px;
  box-shadow: 0 2px 6px rgba(23,20,16,.06), 0 18px 44px rgba(10,36,64,.14);
  position: relative; overflow: hidden;
}
.certificate::before {
  content: ""; position: absolute; inset: 10px; border-radius: 8px;
  border: 1.5px solid rgba(193, 154, 63, .55); pointer-events: none;
}
.certificate::after {
  content: ""; position: absolute; inset: 14px; border-radius: 6px;
  border: 1px solid rgba(193, 154, 63, .28); pointer-events: none;
}
.certificate .c-head { text-align: center; margin-bottom: 18px; }
.certificate .c-head .brand-mark { width: 40px; height: 40px; font-size: 16px; margin-bottom: 10px; }
.certificate .c-title { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.certificate .c-name { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.005em; margin: 6px 0 2px; }
.certificate .c-cred { font-size: 15px; color: var(--accent-deep); font-weight: 700; }
.certificate .c-body { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 22px; }
.certificate .c-sigs { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.certificate .c-sig { text-align: center; flex: 1; }
.certificate .c-sig .sig-line { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink); }
.certificate .c-sig .sig-role { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.certificate .c-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 10.5px; color: var(--muted); }
.cert-points { display: flex; flex-direction: column; gap: 18px; }
.cert-points .pt { display: flex; gap: 14px; }
.cert-points .pt .dot {
  flex: none; width: 26px; height: 26px; border-radius: 999px; margin-top: 2px;
  background: var(--accent-wash-2); border: 1px solid var(--gold);
  color: var(--gold-deep); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cert-points .pt b { display: block; margin-bottom: 2px; }
.cert-points .pt p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Experts ---------- */
.expert { text-align: left; }
.avatar {
  width: 56px; height: 56px; border-radius: 999px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-wash) 0%, var(--accent-wash-2) 100%);
  border: 1px solid var(--accent-wash);
  color: var(--accent-deeper); font-weight: 800; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-photo {
  width: 84px; height: 84px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--gold); margin-bottom: 14px; display: block;
  box-shadow: var(--shadow), 0 0 0 3px var(--accent-wash-2);
}
.expert .creds { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.expert .role { color: var(--gold-deep); font-weight: 600; font-size: 14px; margin: 0 0 8px; }

/* ---------- Forms ---------- */
.form-card { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 15.5px; font-family: inherit;
  border: 1px solid var(--hairline); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-wash); border-color: var(--accent); }
.form-msg { font-size: 14.5px; margin-top: 12px; }
.form-msg.ok { color: var(--good); font-weight: 600; }
.form-msg.err { color: #b3261e; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deeper) 0%, var(--accent-deep) 100%);
  border: 1px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(220,187,100,.25), var(--shadow);
  border-radius: 20px; padding: 52px 48px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
.cta-band .btn-primary { background: var(--gold-bright); color: var(--accent-deeper); }
.cta-band .btn-primary:hover { background: #e9ce85; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline); background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(193, 154, 63, .22);
  padding: 36px 0 44px; color: var(--muted); font-size: 13.5px;
}
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- Assessment ---------- */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.progress-track {
  height: 6px; border-radius: 999px; background: var(--accent-wash);
  overflow: hidden; margin: 26px 0 34px;
}
.progress-fill { height: 100%; background: var(--accent-deep); border-radius: 999px; width: 0%; transition: width .25s ease; }
.q-pillar { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.q-text { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; margin: 0 0 22px; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  text-align: left; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 18px; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.q-opt:hover { border-color: var(--accent); background: var(--accent-wash-2); }
.q-back { background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; margin-top: 22px; }
.q-back:hover { color: var(--ink-2); }

/* ---------- Report (dataviz spec) ---------- */
.report-hero { text-align: center; margin-bottom: 8px; }
.report-hero .score-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.report-hero .score-value { font-family: var(--serif); font-size: 66px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.report-hero .score-tier { font-size: 17px; font-weight: 700; color: var(--accent-deep); margin-top: 2px; }
.meter { height: 14px; border-radius: 999px; background: var(--accent-wash); overflow: hidden; margin: 22px auto 6px; max-width: 460px; }
.meter-fill { height: 100%; background: var(--accent-deep); border-radius: 999px 0 0 999px; width: 0%; transition: width .6s ease; }
.meter-scale { display: flex; justify-content: space-between; max-width: 460px; margin: 0 auto 36px; font-size: 12px; color: var(--muted); }

.pillar-chart { max-width: 560px; margin: 0 auto; }
.pillar-row { display: grid; grid-template-columns: 168px 1fr 44px; align-items: center; gap: 12px; margin: 14px 0; }
.pillar-name { font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: right; }
.pillar-track { height: 22px; background: transparent; position: relative; }
.pillar-bar {
  height: 100%; max-height: 22px; background: var(--accent);
  border-radius: 0 4px 4px 0; /* rounded data-end, square at baseline */
  width: 0%; transition: width .6s ease; min-width: 2px;
  border-left: 1px solid var(--accent-deep);
}
.pillar-val { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pillar-axis { display: grid; grid-template-columns: 168px 1fr 44px; gap: 12px; font-size: 11.5px; color: var(--muted); }
.pillar-axis .ticks { display: flex; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 4px; }

.recs { margin-top: 40px; display: grid; gap: 14px; }
.rec { border-left: 3px solid var(--accent-wash); padding: 2px 0 2px 16px; }
.rec b { display: block; font-size: 15px; }
.rec p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }

.hidden { display: none !important; }

/* ---------- Skip link (a11y) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px;
  letter-spacing: -.01em; list-style: none; display: flex; align-items: baseline; gap: 12px;
}
.faq summary::before { content: "+"; color: var(--accent-deep); font-weight: 800; flex: none; }
.faq[open] summary::before { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 22px 20px 44px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Tables (lead console + spec tables) ---------- */
table.leads { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.leads th, table.leads td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
table.leads th { background: var(--accent-wash-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 44px; }
  section { padding: 52px 0; }
  .cta-band { padding: 36px 28px; }
  .pillar-row, .pillar-axis { grid-template-columns: 110px 1fr 40px; }
  .pillar-name { font-size: 12.5px; }
}

/* ---------- Life: mild motion (reveal-on-scroll, tagged by site.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .65s ease, transform .65s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .progress-fill, .meter-fill, .pillar-bar, .btn { transition: none; }
}
