/* =========================================================================
   IQTitle — Design system & site styles
   v4: editorial evolution of the v3 cinematic teal + orange foundation.
   Sharper, more restrained radii; asymmetrical composition; the analyzer as
   an instrument panel rather than a card; running section-index markers;
   editorial list layouts in place of repetitive card grids.
   Fonts: Playfair Display (display/serif), Inter (body), IBM Plex Mono (data)
   ========================================================================= */

:root {
  /* --- Brand palette: deep cinematic teal + vivid orange (unchanged) --- */
  --ink: #f5f2e8;
  --ink-soft: #e3ded0;
  --ink-mute: #b9c8c6;
  --paper: #081f21;
  --paper-2: #0d2b2d;
  --paper-3: #1d4144;
  --surface: #123539;
  --abyss: #051415;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.20);
  --slate: #8aa5a3;
  --slate-soft: #5f7f7d;

  --ember: #ff5a34;
  --ember-dark: #ff7d54;
  --ember-soft: rgba(255, 90, 52, 0.18);
  --ember-ring: rgba(255, 90, 52, 0.35);
  --teal: #4fd1c5;
  --teal-dark: #0f766e;
  --teal-soft: rgba(79, 209, 197, 0.16);

  /* --- Status palette (fixed meaning; never used decoratively) --- */
  --good: #22c55e;
  --good-ink: #4ade80;
  --good-soft: rgba(34, 197, 94, 0.16);
  --warning: #d97706;
  --warning-ink: #fbbf24;
  --warning-soft: rgba(245, 158, 11, 0.16);
  --critical: #ef4444;
  --critical-ink: #f87171;
  --critical-soft: rgba(239, 68, 68, 0.16);

  /* --- Type --- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* --- Radius scale: pulled back from v3's pill-everywhere toward a
     sharper, editorial treatment. Pill kept only for tiny status dots. --- */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-pill: 999px;

  /* --- Elevation (used sparingly now — hairlines do most of the work) --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px -4px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 32px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.4), 0 32px 64px -18px rgba(0, 0, 0, 0.55);

  /* --- Spacing rhythm --- */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  --container: 1180px;
  --container-narrow: 740px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(79, 209, 197, 0.35); text-underline-offset: 2px; }
a:hover { color: var(--ember-dark); text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1em; color: var(--ink-mute); text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-mute); }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--font-mono); background: var(--paper-2); padding: 0.15em 0.4em; border-radius: var(--radius-xs); font-size: 0.9em; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ember-soft); color: var(--ember-dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--abyss); color: var(--ink); padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- layout */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-20) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--ink { background: var(--abyss); color: var(--ink); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ink); }
.section--ink p, .section--ink li { color: #b7c2c0; }
.section--paper2 { background: var(--paper-2); }
.section-divider { border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 0 var(--sp-12); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); max-width: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-dark);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--ember); display: inline-block; }
.section--ink .eyebrow { color: var(--ember); }

/* Running section-index marker — the "distinctive section transition"
   device used between the homepage's major sections, in place of a plain
   eyebrow label. Purely a chrome/navigation element; introduces no new
   claims or content. */
.section-marker {
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-5);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--slate-soft);
}
.section-head--center .section-marker, .cta-band .section-marker { justify-content: center; }
.marker-index { color: var(--ember-dark); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; }
.marker-total { color: var(--slate-soft); margin-left: -6px; }
.marker-rule { flex: 1 1 auto; height: 1px; background: var(--line-strong); min-width: 20px; max-width: 140px; }
.section-head--center .marker-rule, .cta-band .marker-rule { flex: none; width: 40px; }
.marker-label { white-space: nowrap; color: var(--ink-mute); }
.section--ink .marker-label { color: var(--ink-soft); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-16); align-items: center; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; direction: ltr; gap: var(--sp-8); }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.94rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; min-height: 44px;
  letter-spacing: 0.01em;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ember); color: #fff8f4; box-shadow: var(--shadow-sm); border-color: var(--ember); }
.btn-primary:hover { background: var(--ember-dark); border-color: var(--ember-dark); color: #fff8f4; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
.btn-secondary:hover { border-color: var(--ink); background: var(--paper-2); }
.section--ink .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.24); color: var(--ink); }
.section--ink .btn-secondary:hover { background: var(--surface); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; min-height: 50px; }
.btn-sm { padding: 8px 14px; font-size: 0.87rem; min-height: 34px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-flex; }
.btn.is-loading .btn-label-idle { display: none; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: currentColor;
  animation: spin 0.7s linear infinite; flex: none;
}
.btn-secondary .spinner, .btn-ghost .spinner { border-color: rgba(255, 255, 255, 0.22); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 20, 21, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 3px; background: var(--ember); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-wordmark .iq { color: var(--ember-dark); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; margin: 0 14px; padding: 6px 1px;
  border-radius: 0; color: var(--ink-mute); text-decoration: none; font-weight: 500; font-size: 0.78rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.nav-links a:hover { background: none; color: var(--ink); border-color: var(--line-strong); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; background: none; border-color: var(--ember); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; position: relative;
  transition: border-color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.nav-toggle:hover { background: var(--paper-2); border-color: var(--ember); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 65px 0 0 0; background: var(--paper); flex-direction: column;
    align-items: stretch; padding: 10px 20px 28px; gap: 0; overflow-y: auto;
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links a {
    padding: 15px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--paper-2); border-radius: 0;
    margin: 0; font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-weight: 500;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { padding: 9px 15px; font-size: 0.88rem; min-height: 40px; }
}
@media (max-width: 400px) {
  .nav-cta .btn-primary span { display: none; }
  .nav-cta .btn-primary { padding: 10px; }
  .nav-cta .btn-primary svg { width: 19px; height: 19px; }
}

.breadcrumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-soft); margin-bottom: var(--sp-5); }
.breadcrumbs a { color: var(--slate-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ember-dark); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line-strong); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--abyss); color: #a9b8b6; padding: var(--sp-16) 0 var(--sp-6); }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr; gap: var(--sp-8); padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255, 255, 255, 0.09); margin-bottom: var(--sp-8); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--sp-8); } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-bottom: 12px; }
.footer-brand .iq { color: var(--ember-dark); font-weight: 700; }
.footer-tagline { color: #6f8a87; max-width: 300px; font-size: 0.92rem; margin-bottom: 0; }
.footer-col h4 { color: var(--ink); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--sp-4); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #93aba9; text-decoration: none; font-size: 0.92rem; transition: color 0.14s var(--ease); }
.footer-col a:hover { color: var(--ember-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #5c7674; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #5c7674; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
.footer-disclaimer { max-width: 780px; margin: 0 0 var(--sp-5); font-size: 0.81rem; color: #557371; line-height: 1.65; padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-6); box-shadow: none;
  transition: border-color 0.16s var(--ease);
}
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 0.94rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); color: var(--ember-dark); flex: none;
}
.card-icon svg { width: 20px; height: 20px; }
.card--interactive:hover { border-color: var(--line-strong); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: var(--radius-xs); background: var(--paper-2); color: var(--slate); font-weight: 500;
}
.tag--ember { background: var(--ember-soft); color: var(--ember-dark); }
.tag--teal { background: var(--teal-soft); color: var(--teal); }

/* --------------------------------------------------------------- hero */
/* Asymmetric masthead + instrument-panel composition — deliberately not a
   centered eyebrow/h1/lede stack. The analyzer occupies the wider column
   and bleeds upward past the text column's start on desktop. */
.hero { padding: var(--sp-10) 0 var(--sp-6); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(260px, 0.62fr) 1fr; gap: var(--sp-16); align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); } }
.hero-masthead { padding-top: 6px; }
.hero-masthead h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.hero-masthead .lede { font-size: 1.08rem; max-width: 46ch; }
.hero-trust-list { list-style: none; padding: var(--sp-5) 0 0; margin: var(--sp-6) 0 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.87rem; color: var(--slate); border-top: 1px solid var(--line); }
.hero-trust-list li { display: flex; align-items: center; gap: 9px; }
.hero-trust-list svg { width: 15px; height: 15px; color: var(--teal); flex: none; }
.hero-instrument { min-width: 0; }
@media (min-width: 981px) { .hero-instrument { margin-top: calc(-1 * var(--sp-10)); } }

/* ------------------------------------------------------------ analyzer */
/* The analyzer is the product's centerpiece: an instrument panel with a
   heavy top rule, not a rounded card sitting inside the hero. */
.analyzer {
  background: var(--abyss); border: 1px solid var(--line); border-top: 4px solid var(--ember);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); overflow: hidden;
}
.analyzer-kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px clamp(20px, 4vw, 36px); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--slate);
}
.analyzer-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); flex: none; }
.analyzer-kicker-label { color: var(--ink-soft); font-weight: 600; }
.analyzer-kicker-note { margin-left: auto; color: var(--slate-soft); font-size: 0.66rem; }
@media (max-width: 560px) { .analyzer-kicker-note { display: none; } }
.analyzer-top { padding: var(--sp-8) clamp(20px, 4vw, 36px) var(--sp-2); }
.analyzer-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-3); gap: 12px; flex-wrap: wrap; }
.analyzer-label label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.char-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate-soft); font-variant-numeric: tabular-nums; }
.char-count.is-warn { color: var(--warning-ink); }
.char-count.is-bad { color: var(--critical-ink); }
.analyzer-input-wrap { position: relative; }
.analyzer textarea {
  width: 100%; resize: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 18px 22px; font-family: var(--font-body); font-size: 1.1rem; line-height: 1.4;
  color: var(--ink); background: var(--paper); min-height: 76px;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.analyzer textarea:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 4px var(--ember-ring); }
.analyzer textarea::placeholder { color: var(--slate-soft); }
.analyzer textarea[aria-invalid="true"] { border-color: var(--critical); }
.analyzer textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(200, 56, 42, 0.14); }
.field-error {
  display: none; align-items: center; gap: 6px; color: var(--critical-ink); font-size: 0.86rem;
  margin-top: var(--sp-2); font-weight: 500;
}
.field-error.is-visible { display: flex; animation: shake 0.32s var(--ease); }
.field-error svg { width: 15px; height: 15px; flex: none; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.analyzer-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); align-items: center; }
.analyzer-examples { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--slate); }
.example-chip {
  font-family: var(--font-mono); font-size: 0.76rem; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 6px 11px; cursor: pointer; color: var(--ink-mute);
  transition: border-color 0.14s var(--ease), color 0.14s var(--ease), background-color 0.14s var(--ease);
}
.example-chip:hover { border-color: var(--ember); color: var(--ember-dark); background: var(--ember-soft); }

.analyzer-empty {
  padding: var(--sp-2) clamp(20px, 4vw, 36px) var(--sp-10); display: flex; gap: var(--sp-4); align-items: flex-start;
  color: var(--slate); font-size: 0.94rem;
}
.analyzer-empty svg { width: 30px; height: 30px; flex: none; color: var(--line-strong); margin-top: 2px; }
.analyzer-empty strong { color: var(--ink-soft); display: block; margin-bottom: 2px; }

.analyzer-report { border-top: 1px solid var(--line); background: var(--paper-2); padding: var(--sp-8) clamp(20px, 4vw, 36px) var(--sp-10); display: none; }
.analyzer-report.is-visible { display: block; animation: fade-up 0.28s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.report-head { display: flex; gap: var(--sp-6); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-8); }
.report-title-block { min-width: 220px; flex: 1; }
.report-title-block .kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-soft); margin-bottom: 6px; }
.report-title-echo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.report-verdict { font-size: 0.98rem; color: var(--ink-mute); margin-top: 6px; margin-bottom: 0; }

.gauge { position: relative; width: 116px; height: 116px; flex: none; }
.gauge svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--paper-3); stroke-width: 10; }
.gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.7s var(--ease); }
.gauge-value {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-value .num { font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-value .lbl { font-family: var(--font-mono); font-size: 0.64rem; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.status-good { color: var(--good-ink); }
.status-warning { color: var(--warning-ink); }
.status-critical { color: var(--critical-ink); }
.fill-good { stroke: var(--good); }
.fill-warning { stroke: var(--warning); }
.fill-critical { stroke: var(--critical); }
.bg-good { background: var(--good); }
.bg-warning { background: var(--warning); }
.bg-critical { background: var(--critical); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.bg-good { background: var(--good); }
.dot.bg-warning { background: var(--warning); }
.dot.bg-critical { background: var(--critical); }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 600;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 11px; border-radius: var(--radius-xs);
}
.status-chip.status-good { background: var(--good-soft); color: var(--good-ink); }
.status-chip.status-warning { background: var(--warning-soft); color: var(--warning-ink); }
.status-chip.status-critical { background: var(--critical-soft); color: var(--critical-ink); }
.status-chip svg { width: 13px; height: 13px; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; color: var(--slate); margin: var(--sp-3) 0 0; align-items: center; }
.meta-row strong { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }

/* Scorecard: a single panel of factor rows, not a wall of identical cards */
.score-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.score-row { border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: none; }
.score-row-main {
  display: grid; grid-template-columns: 20px 1fr 110px 64px 22px; align-items: center; gap: var(--sp-4);
  padding: 15px var(--sp-5); cursor: pointer; -webkit-tap-highlight-color: transparent;
  width: 100%; text-align: left; background: var(--surface); border: none; border-radius: 0;
  border-left: 2px solid transparent;
  font: inherit; appearance: none; -webkit-appearance: none; color: inherit;
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.score-row-main:hover { background: var(--paper-2); border-left-color: var(--ember); }
.score-row-main .factor-icon { color: var(--slate-soft); flex: none; }
.score-row-main .factor-icon svg { width: 18px; height: 18px; display: block; }
.score-row-name { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.score-row-name .factor-note-inline { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.83rem; color: var(--slate); margin-top: 1px; }
.meter { display: block; height: 4px; border-radius: var(--radius-xs); background: var(--paper-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: var(--radius-xs); transition: width 0.5s var(--ease); }
.score-row-score { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; text-align: right; }
.score-row-chevron { width: 20px; height: 20px; color: var(--slate-soft); transition: transform 0.18s var(--ease); }
.score-row.is-open .score-row-chevron { transform: rotate(180deg); }
.score-row-detail { max-height: 0; overflow: hidden; transition: max-height 0.24s var(--ease); background: var(--paper); }
.score-row.is-open .score-row-detail { max-height: 620px; }
.score-row-detail-inner { padding: 4px var(--sp-5) var(--sp-5) 46px; }
.score-row-detail-inner h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-soft); margin: 14px 0 5px; font-family: var(--font-mono); font-weight: 600; }
.score-row-detail-inner h5:first-child { margin-top: 4px; }
.score-row-detail-inner ul { margin: 0 0 4px; padding-left: 1.1em; }
.score-row-detail-inner li { margin-bottom: 4px; color: var(--ink-mute); font-size: 0.9rem; }
.score-row-detail-inner p { font-size: 0.9rem; margin-bottom: 4px; }
@media (max-width: 560px) {
  .score-row-main { grid-template-columns: 18px 1fr 22px; grid-template-areas: "icon name chevron" "meter meter meter" "score score score"; row-gap: 8px; }
  .score-row-main .factor-icon { grid-area: icon; }
  .score-row-name { grid-area: name; }
  .score-row-chevron { grid-area: chevron; }
  .score-row-main .meter { grid-area: meter; }
  .score-row-score { grid-area: score; text-align: left; }
  .score-row-detail-inner { padding-left: var(--sp-5); }
}

.report-block { margin-top: var(--sp-8); }
.report-block h4 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: 8px; }
.report-block h4 svg { width: 18px; height: 18px; color: var(--slate-soft); }

.weakness-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.weakness-item {
  display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 13px 15px; font-size: 0.91rem;
}
.weakness-item .sev-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.weakness-item .sev-icon svg { width: 14px; height: 14px; }
.weakness-item.sev-critical .sev-icon { background: var(--critical-soft); color: var(--critical-ink); }
.weakness-item.sev-warning .sev-icon { background: var(--warning-soft); color: var(--warning-ink); }
.weakness-item.sev-good .sev-icon { background: var(--good-soft); color: var(--good-ink); }
.weakness-item strong { display: block; margin-bottom: 2px; font-size: 0.93rem; }
.weakness-item p { margin: 0; color: var(--ink-mute); font-size: 0.9rem; }

.alt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.alt-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.alt-item .alt-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.alt-item .alt-icon svg { width: 13px; height: 13px; }
.alt-item .alt-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 3px; font-size: 0.97rem; }
.alt-item .alt-why { font-size: 0.86rem; color: var(--slate); margin: 0; }

.report-footer-actions { margin-top: var(--sp-8); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.disclaimer-note {
  margin-top: var(--sp-6); font-size: 0.82rem; color: var(--slate); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 12px 15px; display: flex; gap: 10px;
}
.disclaimer-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--slate-soft); }
.disclaimer-note p { margin: 0; }

/* --------------------------------------------------------- example strip */
.example-panel { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: none; }
@media (max-width: 780px) { .example-panel { grid-template-columns: 1fr; } }
.example-col { padding: var(--sp-8); }
.example-col + .example-col { border-left: 1px solid var(--line); }
@media (max-width: 780px) { .example-col + .example-col { border-left: none; border-top: 1px solid var(--line); } }
.example-col h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--slate-soft); margin-bottom: var(--sp-3); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.example-col.is-before h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--critical); }
.example-col.is-after h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.example-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: var(--sp-4); line-height: 1.3; }
.example-col.is-after { background: rgba(34, 197, 94, 0.06); }
.mini-scores { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.mini-score { text-align: left; }
.mini-score .n { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }
.mini-score .l { font-size: 0.72rem; color: var(--slate); margin-top: 1px; }
.example-notes { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: 6px; }
.example-notes li { display: flex; gap: 8px; font-size: 0.86rem; color: var(--ink-mute); align-items: flex-start; }
.example-notes li svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.example-col.is-before .example-notes svg { color: var(--critical); }
.example-col.is-after .example-notes svg { color: var(--good); }

/* -------------------------------------------------------------- steps */
/* A vertical, numbered timeline rather than a predictable four-column
   grid of equal cards — asymmetric weight (a narrow numeral column, a
   wide copy column), used on both the homepage and How It Works. */
.steps-row { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 720px; }
.section-head--center + .steps-row, .section-head--center ~ .steps-row { margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto;
  gap: 2px var(--sp-5); align-items: start; padding: var(--sp-6) 0;
  border-bottom: 1px dashed var(--line-strong); position: relative;
}
.step:last-child { border-bottom: none; }
.step:first-child { padding-top: 0; }
.step .step-num {
  grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ember-dark);
  -webkit-text-stroke: 0; display: block; margin-bottom: 0; line-height: 1; opacity: 0.92;
}
.section--ink .step .step-num, .section--paper2 .step .step-num { color: var(--ember); }
.step h3 { grid-column: 2; grid-row: 1; font-size: 1.05rem; margin-bottom: 6px; }
.step p { grid-column: 2; grid-row: 2; font-size: 0.92rem; margin-bottom: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 40px 1fr; gap: 2px var(--sp-3); }
  .step .step-num { font-size: 1.4rem; }
}

/* ---------------------------------------------------------------- FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 2px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-q:hover { color: var(--ember-dark); }
.faq-q .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 1px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.faq-q .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.is-open .faq-q { color: var(--ember-dark); }
.faq-item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq-a-inner { padding: 0 2px 20px; max-width: 700px; }
.faq-item.is-open .faq-a { max-height: 800px; }

/* ------------------------------------------------------------- content */
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose > p, .prose > ul, .prose > ol { max-width: 66ch; }
.prose blockquote {
  margin: 1.6em 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--ember);
  font-style: italic; color: var(--ink-soft); max-width: 66ch;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { border-bottom: 2px solid var(--line-strong); }
.prose th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); font-weight: 500; }
/* Editorial drop cap — used sparingly (About page intro paragraph) */
.dropcap::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.5em; line-height: 0.78;
  float: left; padding: 5px 10px 0 0; color: var(--ember-dark);
}
.callout { background: var(--paper-2); border-radius: var(--radius-xs); padding: var(--sp-5) var(--sp-6); margin: 1.7em 0; display: flex; gap: 12px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout--good { background: var(--good-soft); }
.callout--good svg { color: var(--good-ink); }
.callout--warn { background: var(--warning-soft); }
.callout--warn svg { color: var(--warning-ink); }
.title-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: 1.5em 0; }
@media (max-width: 620px) { .title-compare { grid-template-columns: 1fr; } }
.title-compare .weak, .title-compare .strong { padding: 15px 17px; border-radius: var(--radius-xs); font-size: 0.95rem; }
.title-compare .weak { background: var(--critical-soft); border: 1px solid rgba(239, 68, 68, 0.32); }
.title-compare .strong { background: var(--good-soft); border: 1px solid rgba(34, 197, 94, 0.32); }
.title-compare .tag-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; color: var(--slate); font-weight: 500; }

.guide-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--sp-5); align-items: center; font-size: 0.85rem; color: var(--slate); }
.guide-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.toc { background: var(--paper-2); border-radius: var(--radius-sm); padding: var(--sp-5) var(--sp-6); margin: var(--sp-8) 0; }
.toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); color: var(--slate); margin: 0 0 var(--sp-3); font-weight: 500; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; columns: 1; }
.toc li { counter-increment: toc; margin-bottom: 7px; font-size: 0.92rem; }
.toc li::before { content: counter(toc) "."; font-family: var(--font-mono); color: var(--ember-dark); margin-right: 8px; font-weight: 600; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--ember-dark); text-decoration: underline; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: var(--sp-6); } }

.related-guides { margin-top: 3em; padding-top: var(--sp-8); border-top: 1px solid var(--line); }
.related-guides h3 { font-size: 1rem; margin-bottom: var(--sp-4); }
.related-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.related-card {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 4px;
  background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  text-decoration: none; font-size: 0.94rem; font-weight: 600; color: var(--ink);
  transition: background-color 0.14s var(--ease), padding-left 0.14s var(--ease);
}
.related-card:hover { background: var(--paper-2); color: var(--ink); padding-left: 8px; }
.related-card .cat { display: inline-block; flex: none; min-width: 128px; font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-soft); margin-bottom: 0; }
@media (max-width: 560px) { .related-card { flex-direction: column; gap: 4px; } .related-card .cat { min-width: 0; } }

.article-cta { background: var(--abyss); border-radius: var(--radius-sm); padding: var(--sp-8); margin: 2.5em 0; color: var(--ink); text-align: center; }
.article-cta h3 { color: var(--ink); margin-bottom: 6px; }
.article-cta p { color: #b7c2c0; margin-bottom: var(--sp-5); max-width: 480px; margin-inline: auto; }

/* ------------------------------------------------------- editorial index lists
   Replaces repetitive card grids (guides index, homepage resource preview,
   how-it-works factor blocks) with a numbered, hairline-divided list. */
.guide-index-list, .factor-index-list { border-top: 1px solid var(--line); }
.guide-card {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-5); align-items: start;
  padding: var(--sp-6) 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color 0.14s var(--ease);
}
.guide-card:hover { background: var(--paper-2); }
.guide-card-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--paper-3); line-height: 1; transition: color 0.14s var(--ease); }
.guide-card:hover .guide-card-num { color: var(--ember-dark); }
.guide-card-body { display: flex; flex-direction: column; min-width: 0; }
.guide-card .cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ember-dark); margin-bottom: 6px; font-weight: 500; }
.guide-card h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.04rem; }
.guide-card p { font-size: 0.92rem; margin-bottom: 8px; }
.guide-card .read-more { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); display: inline-flex; align-items: center; gap: 5px; }
.guide-card .read-more svg { width: 13px; height: 13px; transition: transform 0.14s var(--ease); }
.guide-card:hover .read-more svg { transform: translateX(3px); }
@media (max-width: 560px) { .guide-card { grid-template-columns: 36px 1fr; gap: var(--sp-3); } .guide-card-num { font-size: 1.2rem; } }

.factor-index-row { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-5); padding: var(--sp-6) 4px; border-bottom: 1px solid var(--line); }
.factor-index-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--paper-3); line-height: 1; }
.factor-index-row h3 { margin-bottom: 6px; font-size: 1.04rem; }
.factor-index-row p { margin-bottom: 0; font-size: 0.92rem; }
@media (max-width: 560px) { .factor-index-row { grid-template-columns: 36px 1fr; gap: var(--sp-3); } .factor-index-num { font-size: 1.2rem; } }

.category-filter { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: var(--sp-10); row-gap: 10px; }
.category-filter a {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 4px 2px; margin-right: 22px; border-radius: 0;
  border: none; border-bottom: 2px solid transparent; color: var(--ink-mute); text-decoration: none; background: none;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.category-filter a:hover, .category-filter a.is-active { border-color: var(--ember); color: var(--ink); background: none; }

/* ------------------------------------------------------- factor list (home) */
.factor-list { display: block; background: none; border: none; border-radius: 0; border-top: 1px solid var(--line); }
.factor-row { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4); align-items: start; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.factor-num { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: var(--ember-dark); padding-top: 3px; }
.factor-row h3 { font-size: 0.97rem; margin-bottom: 3px; }
.factor-row p { font-size: 0.87rem; margin-bottom: 0; }

/* -------------------------------------------------------- example list (home) */
.example-list { display: grid; gap: var(--sp-6); max-width: var(--container-narrow); margin: 0 auto; }
.example-list-item p.why { font-size: 0.92rem; margin: 10px 2px 0; }
.example-list-item .tag { margin-bottom: 10px; }

/* ------------------------------------------------------------------ misc */
.cta-band { text-align: center; }
.cta-band .btn { margin: 0 6px; }
.page-hero { padding: var(--sp-12) 0 var(--sp-2); }
.page-hero p.lede { max-width: 680px; font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: var(--sp-4); }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--ink); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 18px;
  font-family: var(--font-body); font-size: 0.98rem; background: var(--surface); color: var(--ink);
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 4px var(--ember-ring); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--slate-soft); }
.form-row select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7f7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 16px; padding-right: 44px; }
.form-hint { font-size: 0.81rem; color: var(--slate); margin-top: -4px; }
.form-note { font-size: 0.85rem; color: var(--slate); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-8); box-shadow: none; }

/* Contact form success/error state — revealed with plain CSS :target
   (the PHP handler redirects to #sent or #error), no JavaScript needed. */
.form-status {
  display: none; margin-bottom: var(--sp-5); padding: 13px 15px; border-radius: var(--radius-xs);
  font-size: 0.92rem; border: 1px solid transparent; scroll-margin-top: 90px;
}
.form-status:target { display: block; animation: fade-up 0.28s var(--ease); }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status--success { background: var(--good-soft); border-color: rgba(34, 197, 94, 0.32); color: var(--ink); }
.form-status--success strong { color: var(--good-ink); }
.form-status--error { background: var(--critical-soft); border-color: rgba(239, 68, 68, 0.32); color: var(--ink); }
.form-status--error strong { color: var(--critical-ink); }

.error-404 { text-align: center; padding: var(--sp-20) 0; }
.error-404 .code { font-family: var(--font-mono); font-size: 4.5rem; font-weight: 600; color: var(--ember); line-height: 1; }

.stat-inline { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); }
.stat-inline .num { font-size: 1.3rem; font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

@media (max-width: 620px) {
  .section { padding: var(--sp-12) 0; }
  .report-head { flex-direction: column; align-items: flex-start; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
}
