/* ==========================================================
   Bold AI Solutions — site styles
   Brand: blue #37BFFF · dark #1C1C1C · white #FFFFFF
   ========================================================== */

:root {
  --blue: #37BFFF;          /* brand blue: buttons, accents, on-dark text */
  --blue-ink: #0A6A99;      /* brand blue darkened for text/links on white (5.6:1) */
  --blue-deep: #08405C;
  --blue-wash: #E8F7FF;
  --ink: #1C1C1C;           /* brand dark */
  --black: #0D0E0F;
  --char-2: #232527;
  --char-3: #2E3134;
  --line-dark: #3A3E42;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4BBC2;
  --paper: #FFFFFF;
  --mist: #F3F5F7;
  --line: #DFE4E8;
  --muted: #56606A;
  --ok: #1D7A46;
  --warn-bg: #FFF6E0;
  --warn-line: #C98A00;
  --warn-ink: #6B4A00;
  --error: #B42318;
  --ph-green: #1F7A3B;      /* PivotHub brand */
  --ph-blue: #1F5AA6;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 6px;
  --radius-lg: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.section-light :focus-visible, .section-white :focus-visible, .form-card :focus-visible { outline-color: var(--blue-ink); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.section-dark .lede, .page-hero .lede, .hero .lede { color: var(--on-dark-muted); }
.accent { color: var(--blue); }
.section-white .accent, .section-light .accent { color: var(--blue-ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.1rem;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-ink);
}
.eyebrow::before { content: ''; width: 9px; height: 9px; background: currentColor; border-radius: 1px; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: #62CEFF; }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--on-dark); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-text { background: none; border: 0; padding: 0; min-height: 0; color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; }
.section-dark .btn-text, .hero .btn-text { color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.arrow-link::after { content: '→'; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }
.section-dark .arrow-link, .hero .arrow-link { color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a.nav-link { display: block; padding: 10px 12px; color: #E6E9EC; text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: var(--radius); position: relative; }
.site-nav a.nav-link:hover { color: #fff; background: var(--char-2); }
.site-nav a.nav-link[aria-current="page"] { color: #fff; }
.site-nav a.nav-link[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--blue); }
.site-nav .btn { min-height: 42px; padding: .55em 1.05em; margin-left: 10px; font-size: .95rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 20px var(--gutter) 40px; gap: 16px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .menu-open .site-nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a.nav-link { font-size: 1.25rem; padding: 14px 4px; border-bottom: 1px solid var(--char-3); border-radius: 0; font-family: var(--font-display); font-weight: 600; }
  .site-nav a.nav-link[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .site-nav .btn { margin: 8px 0 0; min-height: 52px; font-size: 1.05rem; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-black { background: var(--black); color: var(--on-dark); }
.section-light { background: var(--mist); }
.section-white { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--char-2) 1px, transparent 1px), linear-gradient(90deg, var(--char-2) 1px, transparent 1px); background-size: 56px 56px; opacity: .55; mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { display: block; }
.hero .lede { margin-bottom: 2rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.6rem; }
.hero-teaming { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.hero-teaming:hover { border-bottom-color: var(--blue); }
.hero-teaming .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--blue); padding: 3px 7px; border-radius: 3px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: end; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.trace { fill: none; stroke: var(--char-3); stroke-width: 2; }
.trace-live { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 10 300; stroke-linecap: round; animation: pulse-run 5.5s linear infinite; }
@keyframes pulse-run { from { stroke-dashoffset: 310; } to { stroke-dashoffset: 0; } }
.node { fill: var(--black); stroke: #5C6267; stroke-width: 2; }
.node-on { fill: var(--blue); stroke: var(--blue); }
.hv-label { font-family: var(--font-mono); font-size: 13px; fill: var(--on-dark-muted); letter-spacing: .06em; text-transform: uppercase; }
.hv-label-strong { fill: #fff; }
.core-ring { fill: none; stroke: #fff; stroke-width: 26; }
.core-dot { fill: #fff; }
.core-spin { fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 4 14; transform-origin: 300px 300px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 380px; order: -1; margin-bottom: -10px; }
}
@media (max-width: 520px) { .hero-visual { max-width: 290px; } .hero-ctas .btn { width: 100%; } }

/* Core message strip */
.message-strip { background: var(--blue); color: var(--ink); }
.message-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.message-strip li { padding: 22px 0; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.05rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; display: flex; align-items: center; gap: 14px; }
.message-strip li + li { padding-left: 28px; border-left: 2px solid rgba(28,28,28,.25); }
.message-strip .n { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; opacity: .7; }
@media (max-width: 760px) { .message-strip ul { grid-template-columns: 1fr; } .message-strip li { padding: 14px 0; } .message-strip li + li { padding-left: 0; border-left: 0; border-top: 2px solid rgba(28,28,28,.2); } }

/* ---------- Service index (homepage) ---------- */
.svc-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; gap: 24px; align-items: center; padding: 30px 8px; color: var(--ink); text-decoration: none; transition: background-color .2s, padding .2s; }
.svc-index a:hover { background: var(--mist); padding-left: 18px; }
.svc-num { font-family: var(--font-mono); font-size: .9rem; color: var(--blue-ink); font-weight: 500; }
.svc-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.12; letter-spacing: -0.01em; }
.svc-desc { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.svc-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.svc-index a:hover .svc-arrow { background: var(--blue); border-color: var(--blue); }
.svc-arrow svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .svc-index a { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 6px 14px; padding: 22px 4px; }
  .svc-desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-arrow { grid-column: 3; grid-row: 1; width: 36px; height: 36px; }
}

/* ---------- Government feature ---------- */
.gov-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.gov-feature h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.workpackages { list-style: none; padding: 0; margin: 0; counter-reset: wp; }
.workpackages li { counter-increment: wp; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.workpackages li:last-child { border-bottom: 1px solid var(--line-dark); }
.workpackages li::before { content: counter(wp, decimal-leading-zero); font-family: var(--font-mono); color: var(--blue); font-size: .9rem; padding-top: 3px; }
.workpackages strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.15rem; margin-bottom: 2px; color: #fff; }
.workpackages span { color: var(--on-dark-muted); font-size: .98rem; }
.note-dark { border-left: 3px solid var(--blue); padding: 4px 0 4px 16px; color: var(--on-dark-muted); font-size: .95rem; margin: 28px 0; }
@media (max-width: 900px) { .gov-feature { grid-template-columns: 1fr; } }

/* ---------- PivotHub showcase ---------- */
.ph-section { background: linear-gradient(180deg, #F2F8F4 0%, #EEF3FA 100%); overflow: hidden; }
.ph-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ph-logo { width: 220px; height: auto; margin-bottom: 18px; }
.ph-badge { display: inline-block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-green); border: 1.5px solid var(--ph-green); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
.ph-section h2 { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.ph-section h2 .ph-accent { color: var(--ph-green); }
.ph-features { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.ph-features li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ph-features li::before { content: ''; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ph-green); box-shadow: inset 0 0 0 5px #E3F1E7; border: 2px solid var(--ph-green); }
.btn-ph { background: var(--ph-green); color: #fff; }
.btn-ph:hover { background: #17612E; }
.browser { border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -20px rgba(16,40,70,.35), 0 12px 24px -12px rgba(16,40,70,.25); overflow: hidden; border: 1px solid #D5DEE7; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #EEF1F4; border-bottom: 1px solid #D5DEE7; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #C9D0D7; display: block; }
.browser-url { flex: 1; background: #fff; border-radius: 6px; padding: 5px 12px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #DCE2E8; }
.browser img { width: 100%; height: auto; }
.ph-stage { position: relative; }
.ph-stage .browser { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; margin-right: -12%; }
.ph-modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ph-modules span { font-size: .85rem; font-weight: 600; padding: 6px 12px; background: #fff; border: 1px solid #CFE0D5; border-radius: 999px; color: #155A2B; }
@media (max-width: 980px) { .ph-grid { grid-template-columns: 1fr; } .ph-stage .browser { transform: none; margin-right: 0; } }

/* ---------- Assessment feature ---------- */
.assess-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0 32px; }
.stat { padding: 18px 16px; }
.stat + .stat { border-left: 2px solid var(--ink); }
.stat b { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: .85rem; color: var(--muted); line-height: 1.3; display: block; }
.stat-free { background: var(--blue); }
.stat-free span { color: var(--ink); }
.dim-list { list-style: none; margin: 0; padding: 0; counter-reset: dim; }
.dim-list li { counter-increment: dim; position: relative; padding: 20px 0 20px 64px; border-bottom: 1px solid var(--line); }
.dim-list li:first-child { border-top: 1px solid var(--line); }
.dim-list li::before { content: counter(dim); position: absolute; left: 0; top: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.dim-list h3 { font-size: 1.15rem; margin: 0 0 4px; }
.dim-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.free-promise { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .95rem; }
.free-promise li { display: flex; gap: 8px; align-items: center; }
.free-promise li::before { content: '✓'; font-weight: 700; color: var(--blue-ink); }
@media (max-width: 900px) { .assess-feature { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px solid var(--ink); } }

/* ---------- How we work ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps li { position: relative; padding: 0 20px 0 0; }
.step-mark { display: flex; align-items: center; margin-bottom: 22px; }
.step-mark b { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; background: var(--ink); position: relative; z-index: 1; }
.step-mark::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-dark) 0 8px, transparent 8px 14px); margin-left: 10px; }
.steps li:last-child .step-mark::after { display: none; }
.steps h3 { color: #fff; margin-bottom: 8px; }
.steps p { color: var(--on-dark-muted); font-size: .97rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 54px 1fr; gap: 0 20px; padding: 0 0 28px; }
  .step-mark { flex-direction: column; margin: 0; grid-row: span 2; align-self: stretch; }
  .step-mark::after { width: 2px; height: auto; flex: 1; margin: 8px 0 0; background: repeating-linear-gradient(180deg, var(--line-dark) 0 8px, transparent 8px 14px); }
  .steps li:last-child .step-mark::after { display: none; }
}

/* ---------- About (homepage) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.principles li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles svg { width: 22px; height: 22px; color: var(--blue-ink); margin-top: 3px; }
.principles strong { display: block; }
.principles span { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: var(--ink); padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.cta-band .eyebrow { color: var(--ink); }
.cta-band h2 { max-width: 18ch; }
.cta-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); }
.cta-paths a { display: block; padding: 24px 24px 24px 0; color: var(--ink); text-decoration: none; border-right: 2px solid rgba(28,28,28,.2); }
.cta-paths a + a { padding-left: 24px; }
.cta-paths a:last-child { border-right: 0; }
.cta-paths b { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-stretch: 112%; font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.cta-paths b::after { content: '→'; transition: transform .15s; }
.cta-paths a:hover b::after { transform: translateX(4px); }
.cta-paths span { font-size: .97rem; }
.cta-paths a:hover { background: rgba(255,255,255,.18); }
@media (max-width: 820px) { .cta-paths { grid-template-columns: 1fr; } .cta-paths a, .cta-paths a + a { padding: 20px 0; border-right: 0; border-bottom: 2px solid rgba(28,28,28,.2); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer h2 { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E6E9EC; text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.site-footer dt { color: var(--on-dark-muted); }
.site-footer dd { margin: 0; color: #E6E9EC; overflow-wrap: anywhere; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--char-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.placeholder { display: inline-block; border: 1.5px dashed currentColor; border-radius: 4px; padding: 0 6px; font-size: .9em; opacity: .85; font-style: italic; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--black); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); border-radius: 50%; border: 56px solid var(--char-2); box-shadow: inset 0 0 0 2px var(--char-3); pointer-events: none; }
.page-hero::before { content: ''; position: absolute; right: 70px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); border-radius: 50%; background: var(--blue); z-index: 1; pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero .lede { max-width: 62ch; }
.page-hero .btn-row { margin-top: 28px; }
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; margin-bottom: 20px; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); }
@media (max-width: 760px) { .page-hero::after { right: -220px; opacity: .6; } .page-hero::before { display: none; } }

/* ---------- Generic content blocks ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 3px; background: var(--blue); box-shadow: inset 0 0 0 4px var(--blue-wash); border: 2px solid var(--blue-ink); }
.section-dark .check-list li::before { box-shadow: inset 0 0 0 4px var(--ink); border-color: var(--blue); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--blue-ink); background: var(--paper); padding: 18px 22px; border-radius: var(--radius); font-size: .97rem; }
.callout p:last-child { margin: 0; }
.callout-warn { border-color: #EBD49A; border-left-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.callout-dark { background: var(--char-2); border-color: var(--char-3); border-left-color: var(--blue); color: var(--on-dark-muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.section-dark .panel { background: var(--char-2); border-color: var(--char-3); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.section-dark .tag-list li { background: var(--char-2); border-color: var(--char-3); color: #E6E9EC; }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.svc-toc p { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.svc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.svc-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; line-height: 1.35; }
.svc-toc a:hover { border-left-color: var(--blue-ink); color: var(--blue-ink); }
.svc-cat { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 2px solid var(--ink); }
.svc-cat:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-cat-head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 24px; }
.svc-cat-head .svc-num { font-size: 1rem; }
.svc-cat-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.svc-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.svc-meta > div { background: var(--mist); border-radius: var(--radius); padding: 20px 22px; }
.svc-meta h3 { font-family: var(--font-mono); font-stretch: 100%; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px; }
.svc-meta p, .svc-meta ul { margin: 0; font-size: .98rem; }
.svc-meta ul { padding-left: 1.1em; }
.svc-offer { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-offer:target { background: var(--blue-wash); box-shadow: -16px 0 0 var(--blue-wash), 16px 0 0 var(--blue-wash); }
.svc-offer h3 { margin: 0; font-size: 1.25rem; }
.svc-offer p { margin: 0 0 8px; color: var(--muted); }
.svc-offer .deliv { font-size: .95rem; color: var(--ink); }
.svc-offer .deliv b { font-weight: 600; }
.svc-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 20px 22px; border: 2px solid var(--ink); border-radius: var(--radius); }
.svc-request p { margin: 0; font-weight: 500; }
@media (max-width: 980px) { .svc-layout { grid-template-columns: 1fr; } .svc-toc { position: static; } .svc-toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .svc-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; font-size: .9rem; } }
@media (max-width: 700px) { .svc-meta, .svc-offer { grid-template-columns: 1fr; } }

/* Feature tiles (AI solutions / PivotHub pages) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tile { background: var(--paper); padding: 28px 26px; }
.tile .k { font-family: var(--font-mono); font-size: .8rem; color: var(--blue-ink); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .98rem; margin: 0 0 .6em; }
.tile ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .95rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

.usecase-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.usecase-table th, .usecase-table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.usecase-table th { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--ink); }
.usecase-table td:first-child { font-weight: 600; width: 28%; }
@media (max-width: 700px) {
  .usecase-table thead { display: none; }
  .usecase-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .usecase-table td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .usecase-table td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Forms ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(0,0,0,.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend, fieldset.field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { display: block; color: var(--muted); font-size: .88rem; margin: -2px 0 8px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #AEB7C0; border-radius: var(--radius); padding: 11px 13px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1C1C' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 3px rgba(55,191,255,.45); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .96rem; line-height: 1.4; }
.choice:hover { border-color: #AEB7C0; }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--blue-ink); flex: none; }
.choice:has(input:checked) { border-color: var(--blue-ink); background: var(--blue-wash); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-ink); flex: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.has-error .choice { border-color: #E7A59F; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 500; margin: 6px 0 0; }
.field-error::before { content: '⚠ '; }
.form-errors { border: 2px solid var(--error); background: #FEF3F2; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; color: var(--error); }
.form-errors:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.form-errors-title { font-weight: 700; margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors a { color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { font-weight: 500; margin: 0; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }
.form-privacy { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.form-success { text-align: left; }
.form-success:focus { outline: none; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.form-success .tick svg { width: 28px; height: 28px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.no-sensitive { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #EBD49A; font-size: .93rem; margin-bottom: 24px; }
.no-sensitive svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* Contact topic cards */
.topic-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.topic-card { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 18px 16px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.topic-card[aria-pressed="true"] { border-color: var(--blue-ink); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.topic-card b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.02rem; margin-bottom: 4px; line-height: 1.2; }
.topic-card span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) { .topic-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .topic-cards { grid-template-columns: 1fr 1fr; } }

.info-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.naics-code { font-family: var(--font-mono); font-weight: 600; color: var(--blue-ink); margin-right: 6px; }

/* ==========================================================
   Assessment
   ========================================================== */
.assess-app { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); background: var(--mist); min-height: 60vh; }
.assess-shell { max-width: 860px; margin: 0 auto; }
.assess-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .assess-intro-grid { grid-template-columns: 1fr; } }
.assess-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); }
.assess-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.assess-card:focus { outline: none; }
.progress-wrap { position: sticky; top: var(--header-h); z-index: 5; background: var(--mist); padding: 14px 0 12px; margin-bottom: 18px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; margin-bottom: 8px; color: var(--muted); }
.progress-meta b { color: var(--ink); font-weight: 600; }
.progress-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.progress-steps span { height: 6px; background: #D3DAE0; border-radius: 3px; }
.progress-steps span.done { background: var(--ink); }
.progress-steps span.current { background: var(--blue); }
.step-head { margin-bottom: 26px; }
.step-head .eyebrow { margin-bottom: .6rem; }
.step-head h2 { margin-bottom: .3em; }
.step-head p { color: var(--muted); margin: 0; }
.q { border-top: 1px solid var(--line); padding: 26px 0 8px; }
.q legend { font-family: var(--font-display); font-stretch: 105%; font-weight: 700; font-size: 1.12rem; line-height: 1.35; margin-bottom: 14px; display: flex; gap: 12px; padding: 0; }
.q-num { flex: none; font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--blue-ink); background: var(--blue-wash); border-radius: 4px; padding: 3px 7px; height: fit-content; margin-top: 1px; }
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .8fr); gap: 8px; }
.scale label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 12px; min-height: 84px; border: 1.5px solid #C7CFD6; border-radius: var(--radius); cursor: pointer; font-size: .9rem; line-height: 1.3; background: #fff; transition: border-color .12s, background-color .12s; }
.scale label:hover { border-color: var(--ink); }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale .pts { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.scale .pts::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8B959F; background: #fff; flex: none; box-sizing: border-box; }
.scale input:checked + .opt-body .pts::before { border: 5px solid var(--ink); }
.scale label:has(input:checked) { border-color: var(--ink); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--ink); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.scale .opt-body { display: flex; flex-direction: column; gap: 6px; }
.scale .unsure-opt { border-style: dashed; background: var(--mist); }
.scale .opt-label { font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  .scale { grid-template-columns: 1fr; gap: 6px; }
  .scale label { min-height: 0; flex-direction: row; align-items: center; padding: 12px 14px; }
  .scale .opt-body { flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; gap: 10px; }
  .scale .pts { flex-direction: row-reverse; }
}
.q.has-error .scale label { border-color: #E7A59F; }
.q .field-error { margin: 10px 0 0; }
.ctx-q { border-top: 1px solid var(--line); padding: 24px 0 6px; }
.ctx-q legend { font-family: var(--font-display); font-stretch: 105%; font-weight: 700; font-size: 1.12rem; margin-bottom: 12px; padding: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-nav .btn { min-width: 150px; }
@media (max-width: 520px) { .step-nav .btn { flex: 1; min-width: 0; } }

.review-dim { border-top: 1px solid var(--line); padding: 20px 0; }
.review-dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.review-dim-head h3 { margin: 0; font-size: 1.1rem; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, auto); gap: 10px; padding: 8px 0; font-size: .94rem; border-bottom: 1px dashed var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list .q-id { font-family: var(--font-mono); color: var(--muted); font-size: .82rem; padding-top: 2px; }
.review-list .ans { font-weight: 600; text-align: right; }
.review-list .ans.unsure { color: var(--warn-ink); }
.review-list .ans.missing { color: var(--error); }
@media (max-width: 600px) { .review-list li { grid-template-columns: 30px 1fr; } .review-list .ans { grid-column: 2; text-align: left; } }

/* Results */
.results-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.score-block { padding: clamp(24px, 4vw, 44px); background: var(--black); display: flex; flex-direction: column; justify-content: center; }
.score-num { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(4rem, 10vw, 6.5rem); line-height: .9; color: var(--blue); letter-spacing: -0.03em; }
.score-num small { font-size: .4em; color: #fff; margin-left: 4px; }
.score-pts { font-family: var(--font-mono); font-size: .9rem; color: var(--on-dark-muted); margin-top: 10px; }
.score-level { display: inline-block; margin-top: 18px; padding: 6px 14px; background: var(--blue); color: var(--ink); border-radius: 999px; font-weight: 700; font-size: .95rem; width: fit-content; }
.score-incomplete .score-num { font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; line-height: 1.1; }
.score-explain { padding: clamp(24px, 4vw, 44px); }
.score-explain h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.score-explain p { color: var(--on-dark-muted); }
.score-explain .fine { font-size: .87rem; border-top: 1px solid var(--char-3); padding-top: 14px; margin: 14px 0 0; }
@media (max-width: 760px) { .results-top { grid-template-columns: 1fr; } }

.flag-box { border: 2px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 24px; color: var(--warn-ink); }
.flag-box h2 { font-size: 1.25rem; color: #4A3300; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.flag-box h2 svg { width: 24px; height: 24px; flex: none; }
.flag-box ul { margin: 10px 0 0; padding-left: 1.2em; }
.flag-box li { margin-bottom: 6px; }
.flag-box .fine { font-size: .88rem; margin: 12px 0 0; }

.r-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); margin-bottom: 24px; }
.r-section > h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 18px; }
.dim-bars { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.dim-bar-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.dim-bar-head b { font-weight: 600; }
.dim-bar-head span { font-family: var(--font-mono); font-size: .88rem; }
.bar { height: 14px; background: #E4E9ED; border-radius: 7px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 7px; transition: width .6s ease; }
.bar.is-partial i { background: repeating-linear-gradient(135deg, #6E7780 0 6px, #8A939B 6px 12px); }
.bar-tick { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .9; }
.dim-note { font-size: .86rem; color: var(--warn-ink); margin: 6px 0 0; }
.legend-note { font-size: .86rem; color: var(--muted); margin: 18px 0 0; }

.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .sp-grid { grid-template-columns: 1fr; } }
.sp-grid .r-section { margin-bottom: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list b { display: block; }
.mini-list span { color: var(--muted); font-size: .92rem; }

.next-steps { margin: 0; padding-left: 1.3em; }
.next-steps li { margin-bottom: 10px; padding-left: 4px; }

.rec { border-top: 1px solid var(--line); padding: 26px 0; }
.rec:first-of-type { border-top: 0; padding-top: 4px; }
.rec-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.rec-rank { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.rec-head h3 { margin: 0; font-size: 1.2rem; flex: 1; min-width: 200px; }
.rec-badge { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--blue); color: var(--ink); padding: 4px 9px; border-radius: 3px; font-weight: 500; }
.rec dl { margin: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 20px; font-size: .97rem; }
.rec dt { font-weight: 600; }
.rec dd { margin: 0; }
@media (max-width: 640px) { .rec dl { grid-template-columns: 1fr; gap: 2px; } .rec dd { margin-bottom: 10px; } }

.results-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 32px; }
.consult { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.consult h2 { color: #fff; }
.consult p { color: var(--on-dark-muted); }
.consult .form-card { margin-top: 24px; }
.summary-preview { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-family: var(--font-mono); font-size: .8rem; white-space: pre-wrap; max-height: 260px; overflow: auto; margin: 10px 0 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); }

.print-only { display: none; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-footer, .skip-link, .no-print, .progress-wrap, .page-hero, .consult, .results-actions, .cta-band { display: none !important; }
  .print-only { display: block; }
  .assess-app { background: #fff; padding: 0; }
  .results-top, .score-block { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .score-explain h2, .score-explain p, .score-pts { color: #000 !important; }
  .score-num { color: #000 !important; }
  .score-level { border: 1px solid #000; background: #fff !important; }
  .r-section, .flag-box { break-inside: avoid; border: 1px solid #999; }
  .rec { break-inside: avoid; }
  .bar { border: 1px solid #666; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; }
}

.contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
