/* TrustedSteer — editorial calm trust theme */
:root {
  --sage: #5B8F7A;
  --sage-deep: #3F6B5A;
  --sage-soft: #E4EEE8;
  --sky: #5A8FA8;
  --sky-soft: #E6F0F4;
  --mist: #F6F8F6;
  --cream: #F9F7F2;
  --ink: #2C3E35;
  --ink-muted: #5A6B62;
  --line: #D5E0D9;
  --white: #ffffff;
  --warn: #8B6B4A;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(44, 62, 53, 0.06);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); margin: 0 0 0.55em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link svg { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.35rem 1.25rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-muted); font-size: 0.95rem; font-weight: 500;
  padding: 0.35rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--sage-deep); }
.nav .nav-cta {
  background: var(--sage); color: #fff; padding: 0.5rem 1rem; border-radius: 999px;
  text-decoration: none;
}
.nav .nav-cta:hover { background: var(--sage-deep); color: #fff; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.45rem 0.65rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; gap: 0.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.25rem; }
  .nav .nav-cta { text-align: center; margin-top: 0.35rem; }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(90, 143, 168, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 5% 80%, rgba(91, 143, 122, 0.14), transparent 50%),
    var(--cream);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600; margin-bottom: 0.75rem;
}
.hero-lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.hero-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* Trust strip */
.trust-strip {
  background: var(--white); border-block: 1px solid var(--line); padding: 1.25rem 0;
}
.trust-list {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.trust-list li {
  display: flex; align-items: center; gap: 0.55rem; color: var(--ink-muted); font-size: 0.92rem;
}
.trust-list .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex-shrink: 0;
}

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-muted); }

.steps {
  display: grid; gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.35rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage-deep); font-weight: 700;
  font-family: var(--font-serif); font-size: 1rem; margin-bottom: 0.85rem;
}
.step p { color: var(--ink-muted); margin: 0; font-size: 0.98rem; }

.benefits {
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) {
  .benefits { grid-template-columns: 1fr 1fr; }
}
.benefit {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.benefit-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--sky-soft);
  display: flex; align-items: center; justify-content: center; color: var(--sky);
}
.benefit p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 720px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 400; color: var(--sage); font-size: 1.25rem; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.2rem 1.15rem; color: var(--ink-muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Lead form */
.lead-section {
  background:
    linear-gradient(160deg, var(--sage-soft) 0%, var(--sky-soft) 100%);
}
.lead-wrap {
  display: grid; gap: 2rem; align-items: start;
}
@media (min-width: 800px) {
  .lead-wrap { grid-template-columns: 1fr 1.1fr; }
}
.form-card {
  background: var(--white); border-radius: 16px; border: 1px solid var(--line);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 520px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-muted); }
.field input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--mist); color: var(--ink);
}
.field input:focus {
  outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); background: #fff;
}
.field input.is-invalid { border-color: #b85c5c; background: #fff8f8; }
.field-error { color: #9a3d3d; font-size: 0.82rem; margin-top: 0.3rem; min-height: 1.1em; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); margin: 0.75rem 0 0; }
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success.is-visible { display: block; }
.form-success .check {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
#lead-form.is-hidden { display: none; }

/* Disclaimer / legal pages */
.disclaimer {
  font-size: 0.9rem; color: var(--ink-muted); border-left: 3px solid var(--sage);
  padding: 0.75rem 1rem; background: var(--white); border-radius: 0 10px 10px 0; margin-top: 1.5rem;
}
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.prose ul { color: var(--ink-muted); }
.prose p { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

/* Partners A–Z */
.partners-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem;
}
.search-field { flex: 1 1 220px; max-width: 420px; }
.search-field input {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--white);
}
.search-field input:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.partner-count { color: var(--ink-muted); font-size: 0.92rem; }

.az-layout {
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) {
  .az-layout { grid-template-columns: 56px 1fr; align-items: start; }
}
.letter-rail {
  display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center;
  padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
@media (min-width: 800px) {
  .letter-rail {
    position: sticky; top: calc(var(--header-h) + 1rem);
    flex-direction: column; align-items: center; max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
  }
}
.letter-rail a {
  width: 1.85rem; height: 1.85rem; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.78rem; font-weight: 600; color: var(--ink-muted);
  border-radius: 6px;
}
.letter-rail a:hover, .letter-rail a.is-active { background: var(--sage-soft); color: var(--sage-deep); }
.letter-rail a.is-disabled { opacity: 0.3; pointer-events: none; }

.partner-groups { display: grid; gap: 1.75rem; }
.letter-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.letter-heading {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--sage-deep);
  border-bottom: 2px solid var(--sage-soft); padding-bottom: 0.35rem; margin-bottom: 0.5rem;
}
.partner-rows { list-style: none; margin: 0; padding: 0; }
.partner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line);
}
.partner-row:last-child { border-bottom: none; }
.partner-name { font-weight: 500; color: var(--ink); }
.partner-tag {
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600;
  color: var(--sky); background: var(--sky-soft); padding: 0.25rem 0.55rem; border-radius: 999px;
  white-space: nowrap;
}
.partners-empty {
  display: none; padding: 2rem; text-align: center; color: var(--ink-muted);
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}
.partners-empty.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--ink); color: #c5d4cb; padding: 2.5rem 0 1.5rem; margin-top: 0;
}
.site-footer a { color: #dce8e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { font-size: 0.92rem; max-width: 28em; }
.footer-brand .logo-link svg text { fill: #e8f0eb; }
.footer-col h3 {
  color: #fff; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem;
  font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
}
.footer-disclaimer { max-width: 52em; opacity: 0.85; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* JSON form embed */
.json-form-slot {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
#bbdForm {
  width: 100%;
  max-width: 100%;
}
