/* ==========================================================================
   Bridge2Insights — site styles
   Plain CSS, no build step. Design tokens live in docs/DESIGN.md.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #061224;
  --navy-900: #0a1a2f;
  --navy-800: #10284a;
  --navy-700: #173864;
  --blue-600: #1f6ee0;
  --blue-500: #2d7ff9;
  --blue-400: #5aa0ff;
  --blue-100: #e3eefe;
  --teal-500: #16b3a4;
  --teal-400: #1fc8b8;
  --teal-300: #5ee0d3;
  --teal-100: #dcf7f4;

  /* Neutrals */
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --mist: #f3f6fb;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--mist);
  --bg-dark: var(--navy-900);
  --text: var(--ink);
  --text-muted: var(--slate-500);
  --text-on-dark: #e6edf7;
  --text-on-dark-muted: #a9b8cf;
  --border: var(--slate-200);
  --accent: var(--blue-500);
  --accent-2: var(--teal-400);
  --gradient: linear-gradient(135deg, var(--blue-500) 0%, var(--teal-400) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(45, 127, 249, 0.12), rgba(31, 200, 184, 0.12));

  /* Type */
  --font-heading: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-hero: clamp(2.25rem, 5vw + 0.5rem, 4rem);

  /* Spacing / shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 18, 36, 0.18);
  --container: 1160px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  color: inherit;
}
h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.75rem, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
li + li { margin-top: var(--space-2); }

strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .text-muted { color: var(--text-on-dark-muted); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-lg); color: var(--text-muted); }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow { color: var(--teal-300); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }
.section--dark .lead { color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 600;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--gradient); color: var(--white); box-shadow: 0 6px 18px rgba(45, 127, 249, 0.3); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(45, 127, 249, 0.38); color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--ink); }
.section--dark .btn--outline, .hero .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.section--dark .btn--outline:hover, .hero .btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--ghost { background: transparent; color: var(--blue-600); padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--blue-500); }

.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1rem 1.8rem; font-size: var(--fs-md); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 26, 47, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__links li + li { margin: 0; }
.nav__links a { color: var(--text-on-dark-muted); font-weight: 500; font-size: var(--fs-sm); padding: 0.4rem 0; position: relative; }
.nav__links a:hover { color: var(--white); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--gradient);
}
.nav__cta { display: inline-flex; }
.nav-toggle {
  display: none; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-sm);
  color: var(--white); padding: 0.45rem 0.55rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-4) clamp(16px, 4vw, 32px) var(--space-5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { display: block; padding: 0.75rem 0; font-size: var(--fs-md); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__cta { margin-top: var(--space-4); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--text-on-dark);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(45, 127, 249, 0.35), transparent 60%),
    radial-gradient(45% 45% at 10% 90%, rgba(31, 200, 184, 0.22), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 58ch; color: var(--text-on-dark-muted); font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.3rem); }
.hero--compact { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero--compact h1 { max-width: 22ch; font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; }

.breadcrumb { font-size: var(--fs-xs); color: var(--text-on-dark-muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--text-on-dark-muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span + span::before { content: "/"; margin-inline: 0.5rem; opacity: 0.5; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--slate-300); }
.card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card ul { font-size: var(--fs-sm); color: var(--slate-700); padding-left: 1.1rem; margin-top: var(--space-3); }
.card .card__link { margin-top: auto; padding-top: var(--space-4); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.35rem; }
.card .card__link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card .card__link:hover svg { transform: translateX(3px); }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gradient-soft); color: var(--blue-600); margin-bottom: var(--space-4);
}
.card__icon svg { width: 24px; height: 24px; }

.card--dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); color: var(--text-on-dark); box-shadow: none; }
.card--dark p, .card--dark ul { color: var(--text-on-dark-muted); }
.card--dark .card__icon { background: rgba(255, 255, 255, 0.08); color: var(--teal-300); }
.card--dark:hover { border-color: rgba(255, 255, 255, 0.25); }

.card--feature { border-top: 4px solid transparent; border-image: var(--gradient) 1; border-radius: var(--radius); }

/* Tags / badges */
.tag {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
  background: var(--blue-100); color: var(--blue-600);
}
.tag--teal { background: var(--teal-100); color: var(--teal-500); }
.tag--dark { background: rgba(255, 255, 255, 0.1); color: var(--text-on-dark); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { text-align: left; }
.stat__value { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); }
.section--dark .stat__label { color: var(--text-on-dark-muted); }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-2); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--teal-500); margin-bottom: var(--space-3); letter-spacing: 0.04em;
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 2rem; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .checklist--2col { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 0 var(--space-5); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 0;
  font-family: var(--font-heading); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-500); transition: transform 0.2s ease; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-4); color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testimonial { position: relative; }
.testimonial blockquote { margin: 0; font-size: var(--fs-md); color: var(--slate-700); }
.testimonial blockquote::before { content: "\201C"; font-family: var(--font-heading); font-size: 3rem; line-height: 0; color: var(--teal-400); display: block; margin: 1.2rem 0 0.4rem; }
.testimonial figcaption { margin-top: var(--space-4); font-size: var(--fs-sm); }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption span { color: var(--text-muted); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-6); align-items: center; }
.logo-strip span {
  font-family: var(--font-heading); font-weight: 600; color: var(--slate-300); font-size: 1.1rem; letter-spacing: 0.02em;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--text-on-dark);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 100% 0%, rgba(45, 127, 249, 0.35), transparent 65%), radial-gradient(40% 60% at 0% 100%, rgba(31, 200, 184, 0.25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: var(--space-3); }
.cta-band p { color: var(--text-on-dark-muted); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--slate-700); }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--slate-300); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .error { display: none; font-size: var(--fs-xs); color: #c0392b; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c0392b; }
.field.is-invalid .error { display: block; }
.form__note { font-size: var(--fs-xs); color: var(--text-muted); }
.form__status { display: none; padding: var(--space-4); border-radius: var(--radius); font-size: var(--fs-sm); }
.form__status.is-success { display: block; background: var(--teal-100); color: #0b6b62; }
.form__status.is-error { display: block; background: #fdecea; color: #9b2c1f; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- Contact info ---------- */
.contact-aside { display: grid; gap: var(--space-5); }
.contact-aside .card { height: auto; }
.contact-aside dl { margin: 0; display: grid; gap: var(--space-3); }
.contact-aside dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.contact-aside dd { margin: 0.15rem 0 0; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card__body { padding: clamp(1.25rem, 2.5vw, 1.5rem); display: flex; flex-direction: column; flex: 1; }
.post-card__cover { aspect-ratio: 16 / 9; background: var(--gradient); display: grid; place-items: center; color: var(--white); }
.post-card__cover svg { width: 42px; height: 42px; opacity: 0.9; }
.post-card__meta { font-size: var(--fs-xs); color: var(--text-muted); display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--text-muted); font-size: var(--fs-sm); }

.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.article__body { font-size: 1.1rem; line-height: 1.75; }
.article__body h2 { font-size: 1.6rem; margin-top: var(--space-7); }
.article__body h3 { font-size: 1.25rem; margin-top: var(--space-6); }
.article__body p, .article__body ul, .article__body ol { margin-bottom: var(--space-5); }
.article__body img { border-radius: var(--radius); margin-block: var(--space-5); }
.article__body blockquote {
  margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--teal-400);
  background: var(--mist); border-radius: 0 var(--radius) var(--radius) 0; color: var(--slate-700);
}
.article__body pre { background: var(--navy-950); color: #e6edf7; padding: var(--space-4) var(--space-5); border-radius: var(--radius); overflow-x: auto; font-size: 0.9rem; }
.article__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.article__body :not(pre) > code { background: var(--mist); padding: 0.1em 0.4em; border-radius: 4px; }
.article__body table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.article__body th, .article__body td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.article__body th { background: var(--mist); }
.article__footer { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.author { display: flex; gap: var(--space-4); align-items: center; }
.author__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: var(--white); font-family: var(--font-heading); font-weight: 700; flex-shrink: 0; }
.author strong { display: block; }
.author span { color: var(--text-muted); font-size: var(--fs-sm); }

.blog-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.blog-filters button {
  font: inherit; font-size: var(--fs-xs); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--slate-300); background: var(--white); color: var(--slate-700); cursor: pointer;
}
.blog-filters button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-block: var(--space-8) var(--space-6); font-size: var(--fs-sm); }
.site-footer .brand { margin-bottom: var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer a { color: var(--text-on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); }

/* ---------- Misc ---------- */
.divider-gradient { height: 3px; background: var(--gradient); border: 0; margin: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.pill-list li { margin: 0; }

.notfound { text-align: center; padding-block: var(--space-9); }
.notfound h1 { font-size: 5rem; }
