/* ==========================================================================
   CAreetu — SME IPO Readiness
   Single stylesheet. Colour and type tokens are defined on :root.
   ========================================================================== */

:root {
  --ink: #13203a;        /* headings, dark bands */
  --blue: #1e3a8a;       /* primary actions, links */
  --blue-dark: #172a66;
  --paper: #f6f7f9;      /* page background */
  --white: #ffffff;
  --rule: #d6dce6;       /* borders and dividers */
  --muted: #56617a;      /* secondary text */
  --green: #0e7c66;      /* criteria met, listing */
  --green-bg: #e8f4f1;
  --amber: #9a5705;      /* gaps, needs attention */
  --amber-bg: #fbf3e6;
  --red: #b42318;        /* blockers */
  --red-bg: #fbecea;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid #7aa2ff; outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: #2c3852; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #dfe5f1; border-top: 0 !important; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink a:not(.btn) { color: #b9cbff; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split-main { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 860px) { .split, .split-even, .split-main { grid-template-columns: 1fr; } }

.measure { max-width: 68ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .btn { padding: 10px 16px; border-bottom: 0; }
.nav a.btn, .nav a.btn:hover { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--blue); font-weight: 700; }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid var(--blue);
  background: var(--blue); color: var(--white);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--blue); }
.btn-quiet:hover { background: #eef2fb; color: var(--blue-dark); }
.section-ink .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.section-ink .btn:hover { background: #e6ebf5; }
.section-ink .btn-quiet { background: transparent; color: var(--white); border-color: #7f8db0; }
.section-ink .btn-quiet:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: var(--white); border-bottom: 1px solid var(--rule); }
.hero .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
@media (max-width: 860px) { .hero .split { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 20px; }
.hero-credit { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }

/* Readiness track — the one signature element */
.track {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  padding: 28px 28px 20px;
}
.track-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 4px; }
.track-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 20px; }
.track ol { list-style: none; margin: 0; padding: 0; position: relative; }
.track ol::before {
  content: ""; position: absolute; left: 60px; top: 14px; bottom: 22px; width: 2px; background: var(--rule);
}
.track li { position: relative; }
.track .t { font-variant-numeric: tabular-nums; font-size: 0.82rem; font-weight: 700; color: var(--blue); text-align: right; padding-top: 1px; }
.track .dot { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); position: relative; z-index: 1; }
.track li:last-child .dot { background: var(--green); border-color: var(--green); }
.track li:last-child .t { color: var(--green); }
.track strong { display: block; font-size: 0.97rem; }
.track span.d { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }



/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.page-head h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- Pillars (three services) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 2px solid var(--ink); }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--rule); }
.pillar p { color: #34405a; }
.pillar ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.93rem; }
.pillar li { margin-bottom: 6px; }
.pillar .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule); }
}

/* ---------- Rows (definition-style lists) ---------- */
.rows { margin: 0; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row dt, .row h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0; }
.row dd { margin: 0; color: #34405a; }
.row dd p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Numbered sequence (only for real sequences) ---------- */
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 1.6rem; color: var(--blue); line-height: 1; padding-top: 2px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin-bottom: 0; color: #34405a; }
.steps .when { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
thead th { background: #eef1f6; font-weight: 700; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; width: 30%; }
.table-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Notes / callouts ---------- */
.note { border-left: 3px solid var(--blue); background: var(--white); padding: 18px 22px; margin: 28px 0; }
.note p:last-child { margin-bottom: 0; }
.note-plain { border-left-color: var(--rule); }

/* ---------- Insight list ---------- */
.insight-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.insight-list li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 24px; align-items: baseline; }
.insight-list h3 { margin: 0 0 6px; font-size: 1.35rem; }
.insight-list h3 a { color: var(--ink); text-decoration: none; }
.insight-list h3 a:hover { color: var(--blue); text-decoration: underline; }
.insight-list p { margin: 0; color: var(--muted); }
.insight-list .topic { font-size: 0.88rem; color: var(--muted); text-align: right; }
@media (max-width: 700px) { .insight-list li { grid-template-columns: 1fr; gap: 8px; } .insight-list .topic { text-align: left; } }

/* ---------- Article prose ---------- */
.prose { max-width: 70ch; font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; color: #1d2940; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose .note, .prose .table-wrap { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.article-meta { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
fieldset { border: 0; margin: 0 0 28px; padding: 0; }
legend { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; padding: 0; color: var(--ink); }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  padding: 11px 12px; border: 1px solid #b9c2d2; border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #7aa2ff; outline-offset: 0; border-color: var(--blue); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ---------- Checker results ---------- */
.result { margin-top: 32px; }
.result[hidden] { display: none; }
.result-head { border-top: 2px solid var(--ink); padding-top: 22px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.platform h3 { margin-bottom: 4px; }
.verdict { display: inline-block; font-weight: 700; font-size: 0.9rem; padding: 4px 10px; border-radius: var(--radius); margin-bottom: 14px; }
.verdict.met { background: var(--green-bg); color: var(--green); }
.verdict.check { background: #eef2fb; color: var(--blue); }
.verdict.gap { background: var(--amber-bg); color: var(--amber); }
.verdict.block { background: var(--red-bg); color: var(--red); }
.criteria { list-style: none; margin: 0; padding: 0; }
.criteria li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.criteria .s { font-weight: 700; font-size: 0.78rem; padding-top: 2px; }
.criteria .s.met { color: var(--green); }
.criteria .s.gap { color: var(--amber); }
.criteria .s.check { color: var(--blue); }
.criteria .s.block { color: var(--red); }
.criteria .why { display: block; color: var(--muted); font-size: 0.84rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c6cfe0; padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer a { color: #e3e9f6; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin-bottom: 10px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid #2c3a57; margin-top: 40px; padding-top: 22px; font-size: 0.82rem; color: #9ba8c2; }
.footer-legal p { margin-bottom: 8px; max-width: 110ch; }

/* ---------- Misc ---------- */
.kicker-line { font-size: 0.95rem; color: var(--muted); margin-bottom: 14px; }
.two-col-list { columns: 2; column-gap: 40px; padding-left: 1.1em; }
@media (max-width: 700px) { .two-col-list { columns: 1; } }
.center { text-align: center; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Interaction and motion layer
   All entrance motion is gated behind .motion, which main.js adds only when
   the visitor has not asked for reduced motion.
   ========================================================================== */

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(19, 32, 58, .08); }

/* Nav underline slides in on hover */
@media (min-width: 1121px) {
  .nav a:not(.btn) { position: relative; border-bottom: 0; }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Buttons lift slightly */
.btn { transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 58, 138, .22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-quiet:hover { box-shadow: none; }

/* Scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Hero headline intro */
.motion .hero h1, .motion .hero .lede, .motion .hero .btn-row, .motion .hero-credit { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero .lede { animation-delay: .12s; }
.motion .hero .btn-row { animation-delay: .24s; }
.motion .hero-credit { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Interactive readiness track ---------- */
.track .stage {
  display: grid; grid-template-columns: 40px 16px 1fr; column-gap: 14px; width: 100%;
  background: none; border: 0; margin: 0; padding: 7px 8px 9px 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; border-radius: var(--radius); transition: background-color .2s ease;
}
.track .stage:hover { background: rgba(30, 58, 138, .05); }
.track .stage .dot { transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.track .stage[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule); }
.track .stage[aria-pressed="true"] .dot { background: var(--blue); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(30, 58, 138, .12); }
.track li:last-child .stage[aria-pressed="true"] .dot { background: var(--green); box-shadow: 0 0 0 5px rgba(14, 124, 102, .15); }
.track .stage strong { transition: color .2s ease; }
.track .stage[aria-pressed="true"] strong { color: var(--blue); }
.track li:last-child .stage[aria-pressed="true"] strong { color: var(--green); }
.track ol::after {
  content: ""; position: absolute; left: 60px; top: 14px; bottom: 22px; width: 2px; background: var(--blue);
  transform-origin: top; transform: scaleY(var(--progress, 1)); transition: transform .6s ease;
}
.motion .track.drawing ol::after { animation: drawLine 1.6s ease-in-out .3s both; }
@keyframes drawLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.motion .track.drawing .stage { animation: rise .5s ease both; }
.motion .track.drawing li:nth-child(1) .stage { animation-delay: .25s; }
.motion .track.drawing li:nth-child(2) .stage { animation-delay: .5s; }
.motion .track.drawing li:nth-child(3) .stage { animation-delay: .75s; }
.motion .track.drawing li:nth-child(4) .stage { animation-delay: 1s; }
.motion .track.drawing li:nth-child(5) .stage { animation-delay: 1.25s; }
.motion .track.drawing li:nth-child(6) .stage { animation-delay: 1.55s; }
.track-detail { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 14px; min-height: 86px; }
.track-detail-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.track-detail-text { font-size: .93rem; margin: 0; }
.track-detail-text.swap { animation: rise .35s ease both; }
.track-hint { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Tabs ---------- */
.tablist { display: inline-flex; gap: 4px; padding: 4px; background: #e8ecf3; border-radius: 6px; margin: 8px 0 18px; }
.tablist [role="tab"] {
  font: inherit; font-weight: 600; font-size: .95rem; border: 0; background: transparent; color: var(--muted);
  padding: 10px 18px; border-radius: 4px; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(19, 32, 58, .15); }
.motion [role="tabpanel"]:not([hidden]) { animation: rise .4s ease both; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 2px solid var(--ink); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--blue);
  transition: transform .3s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 44px 20px 0; color: #34405a; max-width: 75ch; }
.motion .faq details[open] .answer { animation: rise .35s ease both; }

/* ---------- Pillars and rows: hover emphasis ---------- */
.pillar { position: relative; }
.pillar::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.pillar:hover::before { transform: scaleX(1); }
.pillar + .pillar::before { left: 0; }
.insight-list li { transition: background-color .2s ease, padding .25s ease; }
.insight-list li:hover { background: rgba(30, 58, 138, .03); padding-left: 10px; padding-right: 10px; }

/* ---------- Checker progress and results ---------- */
.progress {
  position: sticky; top: 72px; z-index: 5; background: var(--white);
  margin: -8px 0 22px; padding: 10px 0 12px; border-bottom: 1px solid var(--rule);
}
.progress-text { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.progress-text strong { color: var(--ink); }
.bar { height: 6px; background: #e8ecf3; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .35s ease, background-color .3s ease; }
.bar span.done { background: var(--green); }
fieldset .field { transition: opacity .2s ease; }

.meter { height: 8px; background: #e8ecf3; border-radius: 99px; overflow: hidden; margin: 2px 0 6px; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.motion .meter span { animation: grow 1s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes grow { from { width: 0; } }
.meter.gap span { background: var(--amber); }
.meter.block span { background: var(--red); }
.meter.check span { background: var(--blue); }
.meter-text { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.motion .criteria li { animation: rise .45s ease both; animation-delay: calc(var(--i, 0) * 55ms + .2s); }
.motion .result:not([hidden]) .result-head { animation: rise .5s ease both; }

/* ---------- Reading progress (articles) ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 32, 58, .14); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #eef2fb; }
.to-top svg { width: 18px; height: 18px; }

/* Form success pulse */
.motion .form-status.ok { animation: rise .4s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: 92px; }
