/* ==========================================================================
   Autonowork — styles.css
   Clean, modern, responsive B2B site. No frameworks, no external fonts.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #0b1f3a;
  --navy-700: #0b1f3a;
  --navy-600: #5b6b7f;
  --brand: #2563eb;
  --teal-600: #2563eb;
  --teal-500: #1d4ed8;
  --teal-400: #60a5fa;
  --teal-50: #eff6ff;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --ink: #5b6b7f;
  --slate-600: #5b6b7f;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08), 0 12px 28px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 10px 30px rgba(11, 31, 58, 0.14);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 74px;
  --container: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { text-wrap: balance; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--teal-500); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--teal-400); color: var(--navy-900); }
/* ---------- 3. Layout & buttons ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section--soft { background: var(--bg-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}

.section-lede {
  font-size: 1.125rem;
  color: var(--slate-600);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-300);
}
.btn--outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: var(--slate-100);
}

.btn--teal {
  background: var(--accent-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--teal:hover { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.925rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Cards, lists, notes ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
}

.card-title { margin-bottom: 0.5rem; }
.card-text { color: var(--slate-600); font-size: 0.975rem; }
/* ---------- Lists & notes ---------- */

.note {
  padding: 1.15rem 1.35rem;
  border-left: 4px solid var(--teal-500);
  background: var(--teal-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-800);
  font-size: 0.975rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-lockup {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
}
.nav-list a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--slate-600);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-list a:hover { color: var(--navy-900); }
.nav-list a:hover::after { transform: scaleX(1); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(11, 31, 58, 0.10), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--slate-200);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--slate-600);
  max-width: 38rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.9rem 0 1.6rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  list-style: none;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.925rem;
  font-weight: 550;
  color: var(--navy-700);
}
.trust-item svg { color: var(--teal-600); flex-shrink: 0; }

.flow-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  text-align: center;
}
/* Hero visual: workflow card */
.flow-card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem 1.1rem;
}
.flow-card-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--slate-200);
}
.flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}
.flow-dot:first-child { background: #f87171; }
.flow-dot:nth-child(2) { background: #fbbf24; }
.flow-dot:nth-child(3) { background: #34d399; }
.flow-title {
  flex: 1;
  margin-left: 0.55rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.flow-title-row { margin: 0.8rem 0 0.6rem; text-align: center; }
.flow-title-row .flow-title { margin-left: 0; }
.flow-list {
  list-style: none;
  counter-reset: flow;
  display: grid;
  gap: 0.4rem;
}
.flow-item {
  counter-increment: flow;
  position: relative;
  padding: 0.5rem 0.75rem 0.5rem 2.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--navy-800);
}
.flow-item::before {
  content: counter(flow);
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
}
.flow-item { animation: flowStepIn 0.35s ease both; }
@keyframes flowStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-item { animation: none; }
}
.flow-foot {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--slate-500);
  text-align: center;
}
.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.flow-tab {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--bg-soft);
  color: var(--navy-700);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.flow-tab:hover { border-color: var(--teal-400); color: var(--teal-600); }
.flow-tab.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
/* ---------- 6. Problem section ---------- */
.pain-card { padding: 1.65rem; }
.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.95rem;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--navy-700);
}


/* ---------- 6b. Problem section: evidence & capacity blocks ---------- */
.group-label {
  margin: 3rem 0 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
}
/* Bar widths are proportional to growth: 32.4 / 60.7 = 53.4% */
.stat-card { padding: 1.6rem; }
.stat-value {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.stat-label {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--navy-800);
}
.stat-detail {
  margin: 0.55rem 0 0;
  font-size: 0.925rem;
  color: var(--slate-600);
}

.source-note {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--slate-600);
}
.source-note a { color: var(--slate-600); text-decoration: underline; }
.source-note a:hover { color: var(--brand); }

/* Highlighted grant note under Process */
#process-grants {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--navy-800);
  background: #fff7ed;
  border-left: 4px solid var(--accent-500);
  border-radius: var(--radius-sm);
}
#process-grants a { color: var(--accent-600); }
#process-grants a:hover { color: var(--navy-800); }

.pillar-card { padding: 1.75rem; }

.capacity-context {
  max-width: 780px;
  margin: 2.5rem 0 1.75rem;
  font-size: 1rem;
  color: var(--slate-600);
}
.capacity-context strong { color: var(--navy-800); }
.pattern-card { padding: 1.65rem; }
.illustrative-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  background: var(--teal-50);
  color: var(--teal-500);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pattern-note {
  margin: 1.35rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.founder-card {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.85rem;
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.founder-photo {
  width: 180px;
  height: 180px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
}
.founder-copy .card-text { margin-bottom: 1.1rem; }
@media (max-width: 640px) {
  .founder-card { flex-direction: column; text-align: center; }
  .founder-photo { width: 150px; height: 150px; }
}
#evidence-grid, #stories-grid, #pains-grid, #outcomes-grid, #capacity-context {
  transition: opacity 0.16s ease;
}
.content-fade { opacity: 0; }

/* Merged pain -> outcome cards */

/* Collapsible sources */

.capacity-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.source-list {
  margin-top: 3rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--bg);
  border-left: 4px solid var(--teal-500);
}
.sources-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy-800);
}
.sources-summary::-webkit-details-marker { display: none; }
.sources-summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--teal-600);
  border-bottom: 2.5px solid var(--teal-600);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
details.source-list[open] .sources-summary::after { transform: rotate(-135deg); }
.sources-summary .sources-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-50);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
details.source-list ul { margin: 0.25rem 1.35rem 0.5rem; }
details.source-list .source-note { margin: 0.75rem 1.35rem 1.25rem; }
.source-list ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.source-list a { text-decoration: underline; color: var(--slate-600); }
.source-list a:hover { color: var(--brand); }
@media (max-width: 640px) {
  .group-label { margin-top: 2.25rem; }
  .capacity-cta .btn { width: 100%; }
}

/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 1.65rem 1.35rem;
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.95rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: 50%;
  font-weight: 750;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.925rem; color: var(--slate-600); margin: 0; }
.step-duration {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-600);
}
/* ---------- Why Autonowork ---------- */
.why-card { padding: 1.85rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  background: var(--teal-50);
  color: var(--teal-600);
  border-radius: 10px;
  font-weight: 750;
}
.dont-do {
  margin-top: 2.5rem;
  padding: 1.85rem 2rem;
  background: var(--navy-900);
  color: var(--slate-300);
  border-radius: var(--radius);
}
.dont-do h3 { color: #fff; margin-bottom: 0.75rem; text-align: center; }
.dont-do ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  list-style: none;
}
.dont-do li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.875rem;
}
.dont-do li::before {
  content: "✕";
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-400);
}

/* ---------- Contact & lead form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info .section-head {
  margin: 0 0 1.75rem;
  text-align: left;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 0.95rem;
  margin: 1.5rem 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 550;
  color: var(--navy-800);
}
.contact-list svg { color: var(--teal-600); flex-shrink: 0; }

.form-card {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.35rem);
}
.form-card form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy-800);
}
.form-group .optional { font-weight: 500; color: var(--slate-500); }
.field {
  font: inherit;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.field:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field[aria-invalid="true"] { border-color: #dc2626; }
/* Message box: fills available space, auto-grows with content up to the
   cap (then scrolls internally). No user resize handle — see script.js. */
.form-group--grow { display: flex; flex-direction: column; flex: 1 1 auto; }
#f-automate {
  flex: 1 1 auto;
  min-height: 9rem;
  max-height: 16rem;
  resize: none;
  overflow-y: auto;
}
.form-submit { width: 100%; margin-top: 1.25rem; }
.form-error {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.825rem;
  color: #b91c1c;
}
.form-error.is-visible { display: block; }
/* Honeypot: off-screen for people, visible to bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--teal-50);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
}
.form-success.is-visible { display: block; }
/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 650;
  color: var(--navy-900);
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--teal-600);
  border-bottom: 2.5px solid var(--teal-600);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(-135deg); }
.faq-question:hover { color: var(--teal-600); }
.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--slate-600);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: var(--teal-400); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p {
  margin-top: 0.75rem;
  max-width: 30ch;
  color: var(--slate-400);
}
.footer-brand p:first-child { margin-top: 0; }
.footer-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}
.footer-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.footer-bottom a { color: var(--slate-400); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Smooth anchor offset for the sticky header ---------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Orphan cards span the full row so grids stay symmetrical at every breakpoint */
@media (min-width: 641px) {
  .grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .grid-3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* A full-width service card breathes better with two list columns */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-list a::after { display: none; }
  .nav-cta { width: 100%; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Accessibility & motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header, .nav-toggle, .hero-cta, .form-card { display: none !important; }
  body { color: #000; }
}

.flow-tabs.is-attention {
  outline: 2px dashed var(--teal-500);
  outline-offset: 6px;
  border-radius: 14px;
  animation: tabs-pulse 1.6s ease-in-out infinite;
}
@keyframes tabs-pulse {
  50% { outline-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-tabs.is-attention { animation: none; }
}

/* Back-to-picker links in synced section headings */
.label-back {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
.label-back:hover { color: var(--brand); }
#sme-picker:focus { outline: none; }

/* ---------- Articles ---------- */
.article { max-width: 46rem; }
.article h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.5em;
}
.article .lead { margin-bottom: 1.75em; }
.article-body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  margin-top: 2.25em;
}
.article-body h3 {
  font-size: 1.1rem;
  margin-top: 1.75em;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.55em;
  text-wrap: pretty;
}
.article-body li::marker {
  color: var(--brand);
  font-weight: 700;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--slate-200);
  margin: 2.5em 0;
}
.article-back { margin-bottom: 1.25rem; }
.article-back a { font-weight: 600; }
.article-more {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5em;
}
.article-more p { margin-bottom: 0.6em; }
.article-more ul {
  margin: 0;
  padding-left: 1.25rem;
}
.article-more li { margin-bottom: 0.4em; }
.article-more li::marker { color: var(--brand); }
.article-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.75em 0 2em;
}
.article-list li {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.article-list a {
  font-weight: 700;
  color: var(--navy-900);
}
.article-list a:hover { color: var(--brand); }
.article-list span {
  display: block;
  margin-top: 0.25rem;
}
