/* ============================================================
   FilaSource Design System v2 — main.css
   Brand: Ink Navy #1C2834 · Source Blue #1C58A0
   Font: Inter 400/500/600/700 · Mono accents for numbers
   Flat design: no gradients, no blur · subtle shadows OK for depth
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* primitive */
  --ink-navy: #1C2834;
  --source-blue: #1C58A0;
  --paper: #FFFFFF;
  --mist: #F4F7FA;
  --line: #DDE5EC;
  --line-strong: #C3CFDA;
  --slate: #51606F;
  --slate-light: #7A8896;
  --navy-deep: #131D27;
  --blue-hover: #164A87;
  --amber: #D4920B;
  --green: #1B8C5A;
  --red-soft: #C0392B;

  /* semantic */
  --bg: var(--paper);
  --bg-alt: var(--mist);
  --bg-dark: var(--ink-navy);
  --text: var(--ink-navy);
  --text-body: #33404D;
  --text-muted: var(--slate);
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,.72);
  --accent: var(--source-blue);
  --border: var(--line);
  --shadow-sm: 0 1px 3px rgba(28,40,52,.06);
  --shadow-md: 0 4px 16px rgba(28,40,52,.08);
  --shadow-lg: 0 8px 32px rgba(28,40,52,.10);

  /* component */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(64px, 9vw, 112px);
  --radius: 8px;
  --btn-radius: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', ui-monospace, 'Cascadia Mono', 'Roboto Mono', Menlo, monospace;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--blue-hover); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p { max-width: 70ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--bg-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: var(--text-on-dark-muted); }
.section--navy .lead { color: var(--text-on-dark-muted); }

/* ---------- Kickers, numbers, misc typography ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--navy .kicker { color: #7FB2E5; }
.section--navy .kicker::before { background: #7FB2E5; }

.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-muted); margin-top: 18px; line-height: 1.6; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }
.section-head .lead { max-width: 62ch; }

.fig-note {
  font-size: 12.5px; color: var(--slate-light); margin-top: 10px;
  font-family: var(--mono); letter-spacing: .02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 12px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--btn-radius); border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--source-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(28,88,160,.18);
}
.btn--primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 4px 16px rgba(28,88,160,.28); }
.btn--ghost { background: transparent; color: var(--ink-navy); border-color: var(--ink-navy); }
.btn--ghost:hover { background: var(--ink-navy); color: #fff; }
.btn--onnavy { background: #fff; color: var(--ink-navy); }
.btn--onnavy:hover { background: var(--mist); color: var(--ink-navy); }
.btn--ghost-onnavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost-onnavy:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--amber { background: var(--amber); color: #fff; }
.btn--amber:hover { background: #B87D09; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link {
  font-weight: 600; font-size: 15px; color: var(--accent);
  border-bottom: 2px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.text-link:hover { border-color: var(--accent); color: var(--blue-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 11px; font-size: 14.5px; font-weight: 500; color: var(--text);
  border-radius: 4px; white-space: nowrap;
}
.nav a:hover { color: var(--accent); background: var(--mist); }
.nav a.is-active { color: var(--accent); font-weight: 600; }
.nav .caret { font-size: 9px; color: var(--slate-light); transform: translateY(1px); }
.nav .dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  box-shadow: var(--shadow-md);
}
.nav li:hover .dropdown, .nav li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 4px; }
.nav .dropdown a small { display: block; font-size: 12px; color: var(--slate-light); font-weight: 400; margin-top: 2px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: #fff; border-radius: 4px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-navy); display: block; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-ctabar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.mobile-ctabar .btn { flex: 1; min-height: 46px; font-size: 14px; padding: 10px 8px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 80px; right: 20px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--source-blue); color: #fff; border: none;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: opacity .3s, transform .3s;
}
.back-to-top:hover { transform: scale(1.1); }

/* ---------- Hero (split) ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero-copy .kicker { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-hook { font-size: clamp(18px, 2.3vw, 22px); font-weight: 600; color: var(--ink-navy); margin-bottom: 14px; }
.hero-copy .lead { margin-top: 0; margin-bottom: 30px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg); }
.hero-media .hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--ink-navy); color: #fff; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  padding: 10px 14px;
}

/* Page hero (inner pages) */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { margin: 14px 0 16px; max-width: 22ch; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-light); }
.breadcrumb a { color: var(--slate); }
.breadcrumb span { margin: 0 8px; color: var(--line-strong); }

/* ---------- Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--border); background: #fff; }
.trustbar-in { display: flex; flex-wrap: wrap; }
.trust-item {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; font-size: 13.5px; font-weight: 500; color: var(--text);
  border-left: 1px solid var(--border); white-space: nowrap;
}
.trust-item:first-child { border-left: 0; }
.trust-item b { font-family: var(--mono); font-weight: 600; color: var(--accent); letter-spacing: .02em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.card-media { position: relative; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media--sq img { aspect-ratio: 1 / 1; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 18px; }
.card-body p { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.card-index {
  font-family: var(--mono); font-size: 12px; color: var(--slate-light);
  letter-spacing: .14em;
}
.card-link { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 6px; display: inline-block; }
.card-link:hover { color: var(--blue-hover); }

/* Material family color strips on cards */
.card--pla { border-top: 3px solid #E85D3A; }
.card--pla-plus { border-top: 3px solid #C44DFF; }
.card--matte { border-top: 3px solid #6B7B8D; }
.card--petg { border-top: 3px solid #2196F3; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--slate); background: var(--mist); border: 1px solid var(--border);
  border-radius: 3px; padding: 5px 10px; white-space: nowrap;
}
.chip--navy { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.chip--blue { color: var(--source-blue); background: rgba(28,88,160,.07); border-color: rgba(28,88,160,.22); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { margin-bottom: 14px; }
.split-copy .btn-row { margin-top: 24px; }
.split-list { margin: 18px 0 6px; display: grid; gap: 12px; }
.split-list li {
  position: relative; padding-left: 26px; font-size: 15px; color: var(--text-body);
}
.split-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--accent);
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink-navy); padding: clamp(40px, 5vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 2px solid var(--source-blue); padding-left: 20px; }
.stat b {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(26px, 3vw, 36px); color: #fff; letter-spacing: -.01em;
}
.stat span { font-size: 13.5px; color: var(--text-on-dark-muted); display: block; margin-top: 6px; line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { border-top: 3px solid var(--ink-navy); padding: 26px 26px 10px 0; margin-right: 26px; }
.step:last-child { margin-right: 0; }
.step b {
  display: block; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: .12em; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.table-wrap th {
  text-align: left; font-size: 12px; font-family: var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate); background: var(--mist);
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.table-wrap td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-body); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; color: var(--text); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 0; font-weight: 600;
  font-size: 15.5px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px; color: var(--accent);
  flex: 0 0 auto; transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 0 22px; font-size: 14.5px; color: var(--text-muted); max-width: 56ch; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.form-field label em { color: var(--source-blue); font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 14px;
  background: #fff; color: var(--text); min-height: 46px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--source-blue);
  box-shadow: 0 0 0 3px rgba(28,88,160,.12);
}
.form-note { font-size: 12.5px; color: var(--slate-light); margin-top: 14px; }
.form-ok { margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-navy); padding: clamp(48px, 6vw, 80px) 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band .lead { color: var(--text-on-dark-muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-muted); font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding: clamp(48px, 6vw, 72px) 0 48px;
}
.footer-brand img { height: 32px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 13.5px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 12px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-on-dark-muted); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ---------- Catalog (series cards) ---------- */
.series-card .card-media { background: #EDF1F5; }
.series-card .card-media img { aspect-ratio: 1 / 1; }
.series-card .card-body { padding: 18px; gap: 8px; }
.series-card h3 { font-size: 16px; }
.series-card .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Reveal animation (y-translate only) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page-specific helpers ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 28px 0 12px; }
.prose ul { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--accent); }
.callout {
  background: var(--mist); border-left: 3px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; margin: 24px 0;
}
.callout--navy { background: var(--ink-navy); color: var(--text-on-dark-muted); border-left-color: #7FB2E5; }
.callout--warn { background: #FFF8F0; border-left-color: var(--amber); }

/* Pain point banner */
.pain-banner {
  background: linear-gradient(135deg, var(--ink-navy) 0%, #243447 100%);
  padding: clamp(40px, 5vw, 64px) 0;
}
.pain-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); }
.pain-banner p { color: var(--text-on-dark-muted); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.pain-item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 20px;
}
.pain-item h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.pain-item p { font-size: 13.5px; color: var(--text-on-dark-muted); margin: 0; }

/* Client segment cards */
.client-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .3s, box-shadow .3s;
}
.client-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.client-card .client-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--mist); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.client-card h3 { font-size: 17px; margin-bottom: 8px; }
.client-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.client-card .client-cta { font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-split, .split, .two-col { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .step { margin-right: 0; padding-right: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 20px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y: auto; z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; padding: 0 0 8px 14px; min-width: 0; box-shadow: none;
  }
  .nav .dropdown a { border-bottom: 0; padding: 9px 4px; font-size: 14.5px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .mobile-ctabar { display: flex; }
  body { padding-bottom: 76px; }
}
/* 1025–1199px: horizontal nav fits, but only with the primary CTA — hide the
   long ghost CTA here so the header never overflows its container. At ≥1200px
   both CTAs are shown (spacing tightened above keeps them within 1200px). */
@media (max-width: 1199px) {
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .trustbar-in { flex-direction: column; }
  .trust-item { border-left: 0; border-top: 1px solid var(--border); padding: 12px 4px; }
  .trust-item:first-child { border-top: 0; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .pain-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * Contact Form 7 integration — make CF7 output inherit the design
 * system (fields already styled via .form-field input/select/textarea).
 * ------------------------------------------------------------------ */
.wpcf7 { margin: 0; max-width: 100%; }
.wpcf7-form { margin: 0; }
.wpcf7-form p { margin: 0; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.form-field .wpcf7-form-control { width: 100%; }
input[type="submit"].wpcf7-submit {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; width: auto;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  line-height: 1.2; text-align: center;
  border: 2px solid transparent; border-radius: var(--btn-radius);
  background-color: var(--source-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(28,88,160,.18);
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
}
input[type="submit"].wpcf7-submit:hover {
  background-color: var(--blue-hover); color: #fff;
  box-shadow: 0 4px 16px rgba(28,88,160,.28); transform: translateY(-1px);
}
input[type="submit"].wpcf7-submit:focus-visible {
  outline: 3px solid rgba(28,88,160,.35); outline-offset: 2px;
}
.wpcf7-not-valid-tip {
  display: block; font-size: 12.5px; color: var(--red-soft); margin-top: 5px;
}
.wpcf7-response-output {
  font-size: 13.5px; line-height: 1.6; border-radius: var(--radius);
  margin: 18px 0 0 !important; padding: 12px 16px;
}
div.wpcf7-mail-sent-ok {
  border: 1px solid var(--line); background: var(--mist); color: var(--text-body);
}
div.wpcf7-validation-errors, div.wpcf7-spam-blocked, div.wpcf7-mail-sent-ng {
  border: 1px solid var(--red-soft); background: #FDF3F2; color: var(--red-soft);
}
.wpcf7-spinner { display: none; }

/* Required-consent acceptance field (GDPR gate on all lead forms) */
.form-consent { font-size: 14px; line-height: 1.55; }
.form-consent .wpcf7-form-control-wrap { margin-top: 2px; }
.form-consent .wpcf7-list-item {
  display: flex; align-items: flex-start; gap: 10px; margin-left: 0;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto;
  accent-color: var(--source-blue); cursor: pointer;
}
.form-consent .wpcf7-list-item-label {
  font-size: 13.5px; font-weight: 500; color: var(--text-body); cursor: pointer;
}
.form-consent a { color: var(--source-blue); text-decoration: underline; }
.form-consent a:hover { color: var(--blue-hover); }
/* Submit is disabled until consent is checked — make that state legible */
input[type="submit"].wpcf7-submit:disabled,
input[type="submit"].wpcf7-submit[disabled] {
  background-color: #B9C4CF; color: #fff; cursor: not-allowed;
  box-shadow: none; transform: none;
}

