/* achievemetrics.com: the one stylesheet for every page.
   Same look as the AchieveMetrics Test Bank (src/lib/ui.js and
   src/components/PublicHeader.jsx): IBM Plex Sans text, Fraunces headings,
   ink #0f172a with two greys, brand blue #0369a1, the red logo mark,
   radii 4/8/12/pill, text sizes 12/13/14/16/18/22/28/36 (nothing under 12px),
   buttons 32/40/44px tall with an 8px radius, a 4px spacing grid, and a 64px
   header (56px on phones) with the logo at a 24px (16px) inset.
   Polish round 3, 2026-10-20. */

/* Arrows and check marks come from the Test Bank's small glyph font so they
   match the text on every device instead of falling back to emoji. */
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/am-glyphs-400.woff2) format('woff2'); font-weight: 400; unicode-range: U+2190-2193, U+25B2, U+25B4, U+25B8, U+25BC, U+25BE, U+2713, U+2715, U+2717; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/am-glyphs-400.woff2) format('woff2'); font-weight: 500; unicode-range: U+2190-2193, U+25B2, U+25B4, U+25B8, U+25BC, U+25BE, U+2713, U+2715, U+2717; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/am-glyphs-700.woff2) format('woff2'); font-weight: 600; unicode-range: U+2190-2193, U+25B2, U+25B4, U+25B8, U+25BC, U+25BE, U+2713, U+2715, U+2717; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/am-glyphs-700.woff2) format('woff2'); font-weight: 700; unicode-range: U+2190-2193, U+25B2, U+25B4, U+25B8, U+25BC, U+25BE, U+2713, U+2715, U+2717; }

/* Smooth fade between pages (browsers without view transitions just load). */
@view-transition { navigation: auto; }

:root {
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --ink: #0f172a;                    /* headings and body text */
  --ink2: rgba(15,23,42,0.78);       /* secondary text */
  --muted: rgba(15,23,42,0.64);      /* captions and labels (5:1 on white) */
  --line: rgba(15,23,42,0.12);       /* card and control borders */
  --line-strong: rgba(15,23,42,0.2);
  --surface: rgba(15,23,42,0.04);    /* quiet panels */
  --page: #f8fafc;
  --white: #ffffff;
  --blue: #0369a1;                   /* brand: actions, links, selection */
  --blue-dark: #075985;
  --blue-tint: rgba(3,105,161,0.08);
  --red: #c0392b;                    /* the AchieveMetrics wordmark */
  --success: #047857;
  --navy: #0f172a;                   /* dark bands (school report title band) */
  --on-navy: rgba(255,255,255,0.78);
  --on-navy-muted: rgba(255,255,255,0.64);
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); text-wrap: balance; }
ul, ol { padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
strong { font-weight: 600; color: var(--ink); }
::selection { background: rgba(3,105,161,0.16); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 864px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; }
.skip:focus { left: 16px; }

/* ── Header (the same on every page) ─────────────────────────── */
.site-top { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; min-width: 0; }
.site-brand img { width: 21px; height: 21px; flex-shrink: 0; }
.site-brand .brand-red { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-md); background: none; font: 500 14px/1.2 var(--font); color: var(--ink2); text-decoration: none; white-space: nowrap; cursor: pointer; }
.site-link:hover { color: var(--blue); background: var(--surface); }
.site-link[aria-current="page"], .site-drop.current > .site-link { color: var(--blue); background: var(--blue-tint); }
.site-link .chev { width: 10px; height: 10px; opacity: 0.64; transition: transform 0.15s; }
.site-drop { position: relative; }
.site-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 224px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(15,23,42,0.12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.site-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; } /* keeps hover alive across the gap */
.site-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; }
.site-menu a:hover { background: var(--blue-tint); color: var(--blue); }
.site-menu a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.site-drop:hover > .site-menu, .site-drop:focus-within > .site-menu, .site-drop.open > .site-menu { opacity: 1; visibility: visible; transform: none; }
.site-drop:hover > .site-link .chev, .site-drop.open > .site-link .chev { transform: rotate(180deg); }
.site-nav .btn { margin-left: 8px; }
.site-toggle { display: none; }

@media (max-width: 1140px) {
  .site-bar { height: 56px; padding: 0 16px; }
  .site-brand { font-size: 18px; }
  .site-brand img { width: 18px; height: 18px; }
  .site-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: var(--r-md); background: none; color: var(--ink); cursor: pointer; }
  .site-toggle:hover { background: var(--surface); }
  .site-toggle svg { width: 22px; height: 22px; }
  .site-toggle .icon-close, .site-top.open .site-toggle .icon-menu { display: none; }
  .site-top.open .site-toggle .icon-close { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 56px); overflow-y: auto; padding: 8px 16px 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,23,42,0.08); }
  .site-top.open .site-nav { display: flex; }
  .site-link { min-height: 44px; padding: 0 12px; font-size: 16px; }
  .site-drop > .site-link { min-height: 32px; margin-top: 8px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: none; cursor: default; pointer-events: none; }
  .site-drop > .site-link .chev { display: none; }
  .site-drop.current > .site-link { background: none; color: var(--muted); }
  .site-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-menu::before { display: none; }
  .site-menu a { min-height: 44px; font-size: 16px; }
  .site-nav .btn { margin: 12px 0 0; min-height: 44px; }
}

/* ── Buttons (one style; copies ui.js button()) ────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); color: var(--ink); font: 600 14px/1.2 var(--font); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { border-color: var(--muted); background: #f1f5f9; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 44px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--blue); padding: 0 4px; }
.btn-quiet:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-row.center { justify-content: center; }
.text-link, .story-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.text-link:hover, .story-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .btn-row > .btn { flex: 1 1 100%; white-space: normal; min-height: 44px; }
  .pricing-card .btn-row > .btn, .dialog-box .btn-row > .btn { flex: none; }
}

/* ── Type: section labels, titles, body ────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 20px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.section-label { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--blue); margin-bottom: 8px; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.section-body { max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--ink2); }
.section-body + .section-body { margin-top: 12px; }
.section-body + .grid-2, .section-body + .grid-3 { margin-top: 32px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.note { font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) {
  .section-label { font-size: 18px; }
}

/* ── Sections: one rhythm (96px apart, 56px on phones) ─────────── */
.band { padding: 96px 0; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-white + .band-white { border-top: 0; }
.band-tint { background: #f0f7fc; }
.band:not(.band-white) + .band-cta { padding-top: 0; }
.band-white .card, .band-white .cycle, .band-white .story-block { background: var(--page); }
.band:not(.band-white) .svc-tb { background: var(--white); }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .band { padding: 56px 0; }
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.card p { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.card p + p { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .card { padding: 20px; } }

/* ── Hero (home and service pages) ────────────────────────────── */
.hero { background: linear-gradient(180deg, #eaf3fa 0%, var(--page) 100%); padding: 88px 0 80px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 880px; }
.hero h1 em { color: var(--blue); font-style: italic; }
.hero .lede { max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--ink2); margin-bottom: 32px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 12px 32px rgba(15,23,42,0.06); }
.hero-person { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.hero-person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hero-person-name { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.25; }
.hero-person-role { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero-card-head { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.hero-card-text { font-size: 14px; line-height: 1.7; color: var(--ink2); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.stat-val { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat-lbl { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero .lede { font-size: 16px; }
  .hero-card { padding: 24px; }
}

/* ── Test Bank strip under the home hero ───────────────────────── */
.tb-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.tb-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.tb-strip-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.tb-strip-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.tb-strip-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .tb-strip-left { flex-direction: column; align-items: flex-start; gap: 8px; } .tb-strip .btn { width: 100%; min-height: 44px; } }

/* ── Why this work matters ───────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.why-item { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; }
.why-item h3 { font-size: 22px; margin-bottom: 8px; }
.why-item p { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.why-grid.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .why-grid, .why-grid.values-grid { grid-template-columns: 1fr; } }

/* ── My story ─────────────────────────────────────────────────── */
.story-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.story-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.story-block:last-child { grid-column: 1 / -1; }
.story-year { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.story-phase { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.story-block p { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.story-block p + p { margin-top: 12px; }
.pull-quote { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--blue-tint); }
.pull-quote p { font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.55; color: var(--ink); }
@media (max-width: 900px) { .story-timeline { grid-template-columns: 1fr; } .story-block { padding: 20px; } }

/* ── How I work ───────────────────────────────────────────────── */
.feature-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card-wide { grid-column: 1 / -1; }
.card .connection { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--blue); }
.cycle { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; }
.cycle-north-star { font-family: var(--serif); font-size: 18px; line-height: 1.55; border-left: 3px solid var(--blue); padding-left: 16px; margin-bottom: 24px; }
.cycle-head { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.cycle-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.cycle-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.cycle-steps strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cycle-steps strong::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; flex-shrink: 0; }
.cycle-steps span { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.cycle-example { margin-top: 24px; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); font-size: 14px; line-height: 1.7; color: var(--ink2); }
.cycle-example-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 900px) { .cycle-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cycle { padding: 20px; } .cycle-steps { grid-template-columns: 1fr; } }

/* ── The Test Bank ────────────────────────────────────────────── */
.coverage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.coverage-tags span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: 13px; font-weight: 500; }
.panel { margin-top: 16px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.panel p { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.panel-accent { border-left: 3px solid var(--blue); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }

/* ── Free samples ─────────────────────────────────────────────── */
.guide-callout { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid rgba(3,105,161,0.24); border-radius: var(--r-lg); background: #f0f7fc; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.guide-callout .btn { flex-shrink: 0; }
.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.sample-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sample-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 4px; }
.sample-card a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); font-size: 14px; text-decoration: none; }
.sample-card a:hover { border-color: var(--blue); color: var(--blue); }
.sample-card a.sample-free, .sample-card a.sample-guide { font-weight: 600; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; }
.tag-free { background: rgba(4,120,87,0.1); color: var(--success); }
.tag-guide { background: var(--blue-tint); color: var(--blue-dark); }
.tag-paid { background: var(--surface); color: var(--ink2); }
.sample-size { margin-left: auto; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--muted); }
.samples-next { margin-top: 32px; padding: 24px 28px; border-radius: var(--r-lg); background: #f0f7fc; }
.samples-next > p:first-child { font-size: 16px; line-height: 1.7; color: var(--ink2); margin-bottom: 16px; }
.samples-next .note { margin-top: 16px; }
@media (max-width: 900px) { .samples-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .samples-grid { grid-template-columns: 1fr; }
  .guide-callout { flex-direction: column; align-items: stretch; padding: 20px; }
  .guide-callout .btn { white-space: normal; min-height: 44px; }
  .samples-next { padding: 20px; }
}

/* ── Implementation framework ─────────────────────────────────── */
.phases { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; counter-reset: phase; }
.phase { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.phase-head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 20px 28px; background: var(--page); border-bottom: 1px solid var(--line); }
.phase-head::before { counter-increment: phase; content: counter(phase); grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.phase-num { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.phase-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.25; }
.phase-months { font-size: 14px; color: var(--muted); }
.phase-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px 28px 24px; }
.phase-doc { padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-md); }
.phase-doc-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.phase-doc-desc { font-size: 14px; line-height: 1.6; color: var(--ink2); }
@media (max-width: 1000px) { .phase-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .phase-head, .phase-topics { padding-left: 16px; padding-right: 16px; } .phase-topics { grid-template-columns: 1fr; } }

/* ── Testimonial ──────────────────────────────────────────────── */
.testimonial { max-width: 820px; margin: 16px auto 0; padding: 32px 36px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-lg); }
.testimonial blockquote p { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink); }
.testimonial blockquote p + p { margin-top: 16px; }
.testimonial figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.testimonial figcaption strong { display: block; font-size: 16px; }
.center { text-align: center; }
@media (max-width: 640px) { .testimonial { padding: 20px; } }

/* ── Consulting services ──────────────────────────────────────── */
.starter-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; margin-top: 32px; padding: 36px; border-radius: var(--r-lg); background: var(--navy); color: var(--white); }
.starter-offer .pricing-tier { color: #7dd3fc; }
.starter-offer .pricing-name { color: var(--white); font-size: 28px; }
.starter-desc { font-size: 16px; line-height: 1.7; color: var(--on-navy); margin-bottom: 16px; }
.starter-price { font-size: 14px; font-weight: 600; color: #7dd3fc; margin-bottom: 20px; }
.starter-steps { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; }
.starter-steps li { font-size: 14px; line-height: 1.6; color: var(--on-navy); }
.starter-steps li::marker { color: #7dd3fc; font-weight: 600; }
.starter-steps strong { color: var(--white); }
.starter-note { margin-top: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pricing-card { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pricing-card:hover { border-color: rgba(3,105,161,0.4); }
.pricing-tier { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pricing-name { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.pricing-price { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pricing-desc { font-size: 14px; line-height: 1.6; color: var(--ink2); margin-bottom: 20px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.pricing-features li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.pricing-features li::before { content: "\2713"; color: var(--blue); font-weight: 600; flex-shrink: 0; }
.pricing-card .btn-row { margin-top: auto; flex-direction: column; align-items: stretch; gap: 4px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .starter-offer { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* ── Closing call to action (light, like the Test Bank's) ─────── */
.cta-box { padding: 64px 40px; border: 1px solid rgba(3,105,161,0.2); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(3,105,161,0.08) 0%, rgba(3,105,161,0.03) 100%); text-align: center; }
.cta-box h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.cta-box p { max-width: 600px; margin: 0 auto 28px; font-size: 16px; line-height: 1.7; color: var(--ink2); }
.cta-box .btn-row { justify-content: center; }
.cta-others { margin-top: 24px; font-size: 14px; color: var(--muted); }
.cta-others a { display: inline-flex; align-items: center; min-height: 32px; margin: 0 8px; font-weight: 600; text-decoration: none; }
.cta-others a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cta-box { padding: 40px 20px; } .cta-others a { min-height: 44px; } }

/* ── Service pages ────────────────────────────────────────────── */
.svc-h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; margin-bottom: 24px; }
.svc-intro { max-width: 760px; margin: -8px 0 24px; font-size: 16px; line-height: 1.7; color: var(--ink2); }
.svc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.svc-questions { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc-questions li { padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--blue-tint); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.svc-questions + .note { margin-top: 16px; }
.svc-tb { padding: 28px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); }
.svc-tb p { font-size: 16px; line-height: 1.7; color: var(--ink2); margin-bottom: 16px; }
.svc-tb .note { font-size: 13px; color: var(--muted); }
.arch-wrap { overflow: hidden; margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.arch-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.arch-table th, .arch-table td { padding: 12px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.arch-table tbody tr:last-child th, .arch-table tbody tr:last-child td { border-bottom: 0; }
.arch-table thead th { background: var(--page); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.arch-table tbody th { width: 34%; font-weight: 600; }
.arch-table td { color: var(--ink2); }
@media (max-width: 900px) { .svc-two { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .arch-table thead { display: none; }
  .arch-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .arch-table tbody tr:last-child { border-bottom: 0; }
  .arch-table th, .arch-table td { display: block; width: auto; padding: 0; border: 0; }
  .arch-table tbody th { width: auto; margin-bottom: 4px; }
  .svc-tb { padding: 20px; }
}

/* ── Case study ───────────────────────────────────────────────── */
.case-header { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.case-header h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.case-subtitle { font-size: 18px; line-height: 1.7; color: var(--ink2); }
.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 8px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.case-stats .stat-val { color: var(--blue); }
.case-stats .stat-lbl { font-weight: 600; color: var(--ink2); }
.case-section { padding-top: 56px; }
.case-section h2 { font-size: 28px; line-height: 1.25; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.case-section h3 { font-family: var(--font); font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.case-text { font-size: 16px; line-height: 1.75; color: var(--ink2); }
.case-text + .case-text { margin-top: 16px; }
.case-text em { font-style: italic; }
.case-callout { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--blue); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--blue-tint); }
.case-callout p { font-size: 16px; line-height: 1.75; color: var(--ink); }
.case-callout strong { color: var(--blue-dark); }
.timeline { display: grid; gap: 28px; margin: 32px 0 8px; }
.timeline-block { position: relative; padding-left: 32px; }
.timeline-block::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -28px; width: 2px; background: var(--line); }
.timeline-block:last-child::before { bottom: 0; }
.timeline-block::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.timeline-year { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.timeline-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.timeline-desc { font-size: 16px; line-height: 1.7; color: var(--ink2); }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.result-card { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-md); }
.result-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.result-desc { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.case-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; }
.case-links a { display: inline-flex; align-items: center; min-height: 32px; }
.case-footer { margin: 64px 0 96px; padding: 40px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-align: center; }
.case-footer p { margin-bottom: 20px; font-size: 16px; line-height: 1.7; color: var(--ink2); }
@media (max-width: 720px) {
  .case-header { padding-top: 48px; }
  .case-subtitle { font-size: 16px; }
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .case-section h2 { font-size: 22px; }
  .case-links a { min-height: 44px; }
  .case-footer { margin-bottom: 56px; }
}

/* ── Contact dialog (home page "Email me") ───────────────────── */
.dialog { display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,0.48); }
.dialog.open { display: flex; }
.dialog-box { position: relative; width: 100%; max-width: 480px; padding: 32px; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(15,23,42,0.24); text-align: center; }
.dialog-box h2 { font-size: 28px; margin-bottom: 8px; }
.dialog-box p { font-size: 16px; line-height: 1.6; color: var(--ink2); margin-bottom: 24px; }
.dialog-box .btn-row { flex-direction: column; align-items: stretch; }
.dialog-close { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-md); background: none; color: var(--muted); cursor: pointer; }
.dialog-close:hover { background: var(--surface); color: var(--ink); }
.dialog-close svg { width: 18px; height: 18px; }

/* ── Footer (the same on every page) ─────────────────────────── */
.site-footer { padding: 56px 0 32px; background: var(--navy); color: var(--on-navy-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--serif); font-size: 22px; color: var(--white); }
.footer-brand img { width: 20px; height: 20px; }
.footer-about { max-width: 380px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.footer-head { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); }
.footer-grid a { display: flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--on-navy); text-decoration: none; }
.footer-grid a:hover { color: #7dd3fc; }
.footer-grid a.footer-mail { color: #7dd3fc; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; line-height: 1.6; color: var(--on-navy-muted); }
.site-footer :focus-visible { outline-color: #7dd3fc; }
@media (max-width: 720px) {
  .site-footer { padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid a { min-height: 44px; }
}

/* Case study notes */
.case-note { font-size: 14px; line-height: 1.6; color: var(--ink2); margin-top: 16px; }
