/* ---------- Design tokens ---------- */
:root {
  --navy: #0f1f3d;
  --text: #33415c;
  --muted: #5b6b86;
  --blue: #1d5fd1;
  --blue-dark: #164aa6;
  --blue-soft: #e8f0fd;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e3e8f1;
  --footer: #0a1630;
  --success: #17803d;
  --error: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
main[id], section[id] { scroll-margin-top: var(--header-h); }

.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: 16px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.accent { color: var(--blue); }
.lead { max-width: 34em; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.25rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(29, 95, 209, 0.25); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(15, 31, 61, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.wordmark-name { color: var(--navy); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.wordmark-label { color: var(--blue); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--navy); font-size: 0.97rem; font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; }
@media (min-width: 761px) { .site-nav .btn + .btn { margin-left: -1rem; } }

@media (max-width: 760px) {
  /* Without JavaScript the links simply wrap under the wordmark. */
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-bottom: 12px; }

  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    position: relative; display: block; width: 18px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform 0.2s, background-color 0.2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 31, 61, 0.08);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .js .site-nav .btn { margin-top: 14px; }
  .js .site-nav .btn + .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
  background: radial-gradient(1200px 500px at 85% -10%, var(--blue-soft), transparent 60%), var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.apply-note { max-width: 34rem; margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.apply-note a { color: inherit; font-weight: 700; }
.hero-photo { justify-self: center; width: min(360px, 100%); }
.headshot-placeholder,
.headshot { width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; box-shadow: var(--shadow); }
.headshot { height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #f1f1f0; }
.headshot-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%);
}
.headshot-placeholder span { color: rgba(255, 255, 255, 0.9); font-size: 5rem; font-weight: 800; letter-spacing: -0.04em; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { width: min(260px, 70%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  padding: 28px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 18px;
  background: var(--blue-soft); color: var(--blue); border-radius: 12px;
}
.icon svg, .direct-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Why a broker ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.why-item { padding-top: 20px; border-top: 3px solid var(--blue); }
.why-item p { margin: 0; color: var(--muted); }

/* ---------- Reviews ---------- */
.section-dark { background: var(--navy); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8fb3f2; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.review {
  display: flex; flex-direction: column; margin: 0;
  padding: 28px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
}
.review-stars { margin: 0 0 12px; color: #f5b82e; font-size: 1.1rem; letter-spacing: 0.1em; }
.review blockquote { flex: 1; margin: 0 0 20px; color: #d7e0f0; font-size: 1rem; line-height: 1.65; }
.review figcaption { color: #fff; font-weight: 700; }
.review-more { margin-top: 32px; text-align: center; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--blue); }

/* ---------- Calculator ---------- */
.calculator-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.calculator-teaser h2 { margin-bottom: 0.25em; }
.calculator-teaser p:last-child { margin: 0; color: var(--muted); }
.page-intro { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-intro .lead { margin-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--blue); }

/* Flip calculator */
.container-wide { width: min(1400px, 100% - 32px); }
.page-intro-compact { padding: clamp(20px, 3vw, 36px) 0 0; }
.page-intro-compact h1 { margin-bottom: 0.2em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-intro-compact .lead { font-size: 1.05rem; }
.section-tight { padding: 20px 0 clamp(40px, 6vw, 72px); }
.flip-calc {
  padding: clamp(16px, 2.5vw, 28px);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.calc-partner {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.75rem; font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
}
.calc-partner img { width: auto; height: 34px; }
.calc-partner:hover span { color: var(--blue); text-decoration: underline; }
.calc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.calc-mode { display: inline-flex; gap: 4px; margin: 0; padding: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; }
.calc-mode label { position: relative; padding: 0.45rem 1rem; border-radius: 999px; color: var(--muted); font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.calc-mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc-mode label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(15, 31, 61, 0.1); }
.calc-mode label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.calc-group { margin: 0 0 20px; padding: 0; border: 0; }
.calc-group > legend, .calc-more > summary { margin-bottom: 14px; color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.calc-more { padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.calc-more > summary { margin: 0; cursor: pointer; }
.calc-more[open] > summary { margin-bottom: 14px; }
.calc-more h3 { margin: 18px 0 10px; font-size: 0.98rem; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.calc-fields .field { margin-bottom: 14px; }
.calc-fields .field label { font-size: 0.9rem; }
.calc-months, .calc-check { grid-column: 1 / -1; }
.calc-fields .label-row { margin-bottom: 6px; }
.calc-fields .label-row label { display: inline; margin: 0; }
.label-row .info-tip { margin-left: 4px; vertical-align: -3px; }
.info-tip {
  position: relative; display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-size: 0.72rem; font-weight: 800; font-style: italic; font-family: Georgia, serif;
  cursor: help;
}
.info-tip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.info-tip-text {
  position: absolute; bottom: calc(100% + 10px); left: -10px; z-index: 20;
  width: max-content; max-width: min(280px, 80vw); padding: 10px 12px;
  background: var(--navy); color: #fff; border-radius: 10px; box-shadow: var(--shadow);
  font: 500 0.85rem/1.45 var(--font); font-style: normal; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}
.info-tip-text::after { content: ""; position: absolute; top: 100%; left: 14px; border: 6px solid transparent; border-top-color: var(--navy); }
.info-tip:hover .info-tip-text,
.info-tip:focus .info-tip-text { opacity: 1; visibility: visible; transform: none; }
.calc-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (min-width: 1200px) { .calc-more .calc-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-fields .calc-check label { display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 600; cursor: pointer; }
.calc-fields .calc-check input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--blue); }
.calc-note { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }

.calc-results {
  position: sticky; top: calc(var(--header-h) + 16px);
  padding: clamp(18px, 3vw, 28px); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.calc-results h3 { margin: 22px 0 10px; font-size: 0.98rem; }
.calc-placeholder { margin: 0; color: var(--muted); }
.flip-calc .calc-output { display: block; }
.flip-calc .calc-placeholder { display: none; }
.flip-calc.is-empty .calc-output { display: none; }
.flip-calc.is-empty .calc-placeholder { display: block; }
.calc-max { display: none; margin-bottom: 12px; padding: 14px 16px; background: var(--navy); border-radius: 12px; color: #c9d5ea; }
.flip-calc:has(input[value="max"]:checked) .calc-max { display: block; }
.calc-max span { display: block; font-size: 0.85rem; font-weight: 600; }
.calc-max strong { color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.calc-headline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-stat { padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.calc-stat span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.calc-stat strong { color: var(--navy); font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.calc-stat[data-out="profit-card"] strong { color: var(--success); }
.calc-stat.is-loss strong { color: var(--error); }
.calc-facts, .calc-legend { margin: 16px 0 0; }
.calc-facts > div, .calc-legend > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.calc-facts dt, .calc-legend dt { color: var(--muted); }
.calc-facts dd, .calc-legend dd { margin: 0; color: var(--navy); font-weight: 700; text-align: right; }
.calc-chip { padding: 2px 8px; background: #e7f6ec; color: var(--success); border-radius: 999px; font-size: 0.88rem; }
.calc-chip.is-bad { background: #fdecea; color: var(--error); }
.calc-chip.is-warn { background: #fff4e0; color: #8a5300; }
.calc-daily { margin: -4px 0 10px; color: var(--muted); font-size: 0.9rem; }
.calc-daily strong { color: var(--navy); }
.calc-warnings { margin: 14px 0 0; padding: 0; list-style: none; }
.calc-warning { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; }
.calc-warning.error { background: #fdecea; color: var(--error); }
.calc-warning.warn { background: #fff4e0; color: #8a5300; }
.calc-warning.tip { background: var(--blue-soft); color: var(--blue-dark); }
.calc-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: var(--border); }
.calc-bar span { flex: 0 0 0; flex-grow: 0; min-width: 0; }
.seg-1 { background: #0f1f3d; }
.seg-2 { background: #3e5f9a; }
.seg-3 { background: #1d5fd1; }
.seg-4 { background: #7fa6e8; }
.seg-5 { background: #c3d5f5; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: 0; }
.calc-whatif { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.calc-whatif th, .calc-whatif td { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: right; }
.calc-whatif th[scope="row"], .calc-whatif thead th:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.calc-whatif thead th { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.calc-whatif td { color: var(--navy); font-weight: 700; }
.calc-send { width: 100%; margin-top: 22px; text-align: center; }
.calc-save,
.calc-apply { width: 100%; margin-top: 10px; text-align: center; }
.calc-save { cursor: pointer; }

/* Print-only flip report (Save my numbers) */
.calc-report { display: none; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; font-size: 10.5pt; }
  .skip-link, .site-header, .site-footer, .page-intro, .calc-head, .calc-grid, .calc-disclaimer { display: none !important; }
  .section, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .flip-calc.is-empty .calc-report { display: none; }
  .flip-calc:not(.is-empty) .calc-report { display: block; color: var(--text); }
  .calc-report * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc-report p { margin: 0; }
  .calc-report h2 { margin: 18px 0 2px; font-size: 18pt; }
  .calc-report h3 { margin: 14px 0 6px; font-size: 11pt; }
  .report-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 10px; border-bottom: 3px solid var(--navy); color: var(--muted); font-size: 9pt; }
  .report-name { color: var(--navy); font-size: 14pt; font-weight: 800; }
  .report-contact { text-align: right; color: var(--navy); font-weight: 600; }
  .report-meta { color: var(--muted); font-size: 9pt; }
  .report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
  .report-stats div { padding: 8px 10px; background: var(--bg-alt); border-radius: 8px; }
  .report-stats span { display: block; color: var(--muted); font-size: 8.5pt; font-weight: 600; }
  .report-stats strong { color: var(--navy); font-size: 14pt; font-weight: 800; }
  .report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .report-list { margin: 0; }
  .report-list div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
  .report-list dt { color: var(--muted); }
  .report-list dd { margin: 0; color: var(--navy); font-weight: 700; text-align: right; }
  .report-total { border-bottom-color: var(--navy) !important; }
  .report-total dt { color: var(--navy); font-weight: 700; }
  .calc-report .calc-whatif { font-size: 9pt; }
  .calc-report .calc-warning { padding: 6px 10px; font-size: 9pt; }
  .report-next { margin-top: 14px; padding: 10px 12px; background: var(--blue-soft); border-radius: 8px; color: var(--navy); }
  .report-fine { margin-top: 10px !important; color: var(--muted); font-size: 7.5pt; }
  .report-partner { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px !important; color: var(--muted); font-size: 8pt; }
  .report-partner img { width: auto; height: 26px; }
  .calc-report, .report-cols > div { break-inside: avoid; }
}
.calc-next { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }
.calc-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}
@media (max-width: 520px) {
  .calc-fields, .calc-headline { grid-template-columns: 1fr; }
  .calc-months { grid-template-columns: 1fr 1fr; }
  .calc-months > :first-child { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 0.95rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1px solid #cfd8e6; border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 95, 209, 0.15); }
.hidden-field { position: absolute; left: -9999px; }
.form-privacy { margin: -4px 0 18px; color: var(--muted); font-size: 0.88rem; }
.form-status a { color: inherit; font-weight: 700; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-status.success { background: #e7f6ec; color: var(--success); }
.form-status.error { background: #fdecea; color: var(--error); }

.contact-direct { padding: clamp(24px, 4vw, 40px); background: var(--navy); color: #d7e0f0; border-radius: 20px; }
.contact-direct h3 { color: #fff; }
.direct-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.direct-link > span:last-child { overflow-wrap: anywhere; }
.direct-link strong {
  display: block;
  color: #9fb4d8; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.direct-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.08); border-radius: 12px;
  transition: background-color 0.2s;
}
.direct-icon svg { width: 20px; height: 20px; }
.direct-link:hover .direct-icon { background: var(--blue); }
.direct-note { margin: 20px 0 0; font-size: 0.95rem; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Thank-you page ---------- */
.thanks {
  display: grid; place-items: center; min-height: 100vh; padding: 48px 0; text-align: center;
  background: radial-gradient(1200px 500px at 50% -10%, var(--blue-soft), transparent 60%), var(--bg);
}
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks .lead { margin-inline: auto; }

/* ---------- Learn: guide cards ---------- */
.section-join { padding-top: 0; }
.learn-intro { padding-bottom: 0; background: radial-gradient(1000px 420px at 85% -20%, var(--blue-soft), transparent 60%), var(--bg); }
.learn-intro + .section { padding-top: clamp(36px, 5vw, 56px); }
.learn-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.learn-head h2 { margin: 0; }
.learn-all { font-weight: 700; text-decoration: none; }
.learn-all:hover { text-decoration: underline; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  color: inherit; text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
a.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
a.article-card:hover h2, a.article-card:hover h3 { color: var(--blue); }
.article-card-art {
  position: relative; display: grid; place-items: center; min-height: 170px; overflow: hidden;
  background: radial-gradient(420px 220px at 90% 0%, rgba(127, 166, 232, 0.55), transparent 70%), linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
}
.article-card-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.article-card-art svg {
  position: relative; width: 72px; height: 72px;
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.article-card-body h2, .article-card-body h3 { margin-bottom: 0.45em; font-size: 1.3rem; line-height: 1.25; transition: color 0.2s; }
.article-card-body > p:not([class]) { color: var(--muted); }
.article-tag { margin-bottom: 0.6rem; color: var(--blue); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.article-card-meta { display: flex; justify-content: space-between; gap: 12px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.article-card-link { color: var(--blue); font-weight: 700; }
.article-card-suggest { justify-content: center; background: transparent; border: 2px dashed var(--border); }
.article-card-suggest .btn { align-self: flex-start; margin-top: auto; }
.article-card-wide { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; }
.article-card-wide .article-card-art { min-height: 220px; }
@media (max-width: 700px) { .article-card-wide { grid-template-columns: 1fr; } }

/* ---------- Learn: article page ---------- */
.article-narrow { max-width: 760px; }
.article-hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(88px, 10vw, 120px);
  background: radial-gradient(900px 400px at 90% -10%, rgba(127, 166, 232, 0.45), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #16336b 100%);
  color: #c9d5ea;
}
.article-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); }
.article-hero .eyebrow { color: #8fb3f2; }
.article-back { display: inline-block; margin-bottom: 28px; color: #c9d5ea; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.article-back:hover { color: #fff; }
.article-dek { color: #dbe4f3; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }
.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.article-byline img { width: 48px; height: 48px; object-fit: cover; object-position: top; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.article-byline strong { display: block; color: #fff; }
.article-byline span { font-size: 0.9rem; }
.article-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1000px;
  margin: -56px auto 0; padding: 0; list-style: none; overflow: hidden;
  background: var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.article-stats li { padding: 22px 20px; background: #fff; }
.article-stats strong { display: block; color: var(--blue); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.article-stats span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 760px) { .article-stats { grid-template-columns: 1fr 1fr; } }
.prose { padding-top: clamp(40px, 6vw, 64px); font-size: 1.1rem; line-height: 1.75; }
.prose h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.prose > p:first-child::first-letter { float: left; margin: 0.08em 0.12em 0 0; color: var(--blue); font-size: 3.4em; font-weight: 800; line-height: 0.8; }
.article-pull {
  margin: 2em 0 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--blue);
  color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
}
.article-benefits { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.article-benefits > h2 { max-width: 760px; margin: 0 auto 32px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.benefit { padding: 28px; background: var(--bg-alt); border-radius: var(--radius); }
.benefit h3 { margin-bottom: 0.4em; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.article-author {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start;
  padding: 28px; border: 1px solid var(--border); border-radius: 20px;
}
.article-author > img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 50%; }
.article-author .eyebrow { margin-bottom: 0.5rem; }
.article-author p:not(.eyebrow) { color: var(--muted); }
.article-partner { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.article-partner img { width: auto; height: 32px; }
@media (max-width: 560px) { .article-author { grid-template-columns: 1fr; } }
.article-cta {
  margin-top: 32px; padding: clamp(28px, 5vw, 44px); border-radius: 20px; text-align: center;
  background: radial-gradient(600px 260px at 100% 0%, rgba(127, 166, 232, 0.45), transparent 60%), var(--navy);
  color: #c9d5ea;
}
.article-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.article-cta p { max-width: 32em; margin-inline: auto; }
.article-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; }
.article-fine { margin: 24px 0 clamp(48px, 7vw, 80px); color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--footer); color: #aebbd3; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-inner p { margin: 0 0 0.35em; }
.footer-name { color: #fff; font-size: 1.1rem; font-weight: 800; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #dbe4f3; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .article-card { transition: none; }
  .btn:hover, .card:hover, a.article-card:hover { transform: none; }
}
