/* Joshua Stanton website - site styles
   Design tokens live in :root. Change --brand and --accent to recolor the whole site. */

:root {
  --brand: #0f766e;
  --brand-600: #0b5e58;
  --brand-50: #e6f4f1;
  --accent: #1d4ed8;
  --ink: #0b1412;
  --ink-2: #22332f;
  --muted: #56665f;
  --line: #dfe9e6;
  --bg: #ffffff;
  --bg-soft: #f2f7f5;
  --dark: #0a1311;
  --shadow: 0 18px 50px rgba(10, 30, 26, 0.10);
  --header-h: 96px;
}

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

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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.3vw, 40px); }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--muted); }
ul, ol { margin: 0 0 1em; padding-left: 22px; color: var(--ink-2); }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.55); outline-offset: 3px; border-radius: 6px; }

.container { width: min(calc(100% - 32px), 1200px); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 780px); margin-inline: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ico { flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; width: 210px; max-width: 58vw; height: auto; }
/* The logo's letters are black, so it sits on a white tile in the dark footer. */
.footer-logo { display: inline-block; background: #fff; border-radius: 18px; padding: 14px 18px; line-height: 0; }
.footer-logo .brand-logo { width: 220px; max-width: 100%; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-circle-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; flex: none;
}
.icon-circle-btn:hover { color: var(--brand); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; place-items: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 "Poppins", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.panel .btn, .cta .btn, .search .btn { white-space: normal; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.btn-light:hover { color: var(--brand); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }

.link-cta { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); font-weight: 600; text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

/* ---------- shared pieces ---------- */
.lead { font-size: 17px; color: var(--muted); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section { padding: 88px 0; }
.section-tight { padding-top: 48px; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { font-size: 17px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.center-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.center-note { text-align: center; font-size: 14px; color: var(--muted); margin: 24px 0 0; }
.sub-h { margin-top: 64px; margin-bottom: 24px; font-size: clamp(24px, 2.8vw, 32px); }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 18px; }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }

/* placeholder frames: swap these for real photos (see README) */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(155deg, #bfe7e0 0%, #1a9488 55%, #0b5e58 100%);
}
.ph .monogram { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: 0.04em; opacity: 0.95; }
.ph .ph-label { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.ph-tall { width: 100%; aspect-ratio: 4 / 4.8; }
.ph.rounded { border-radius: 26px; }

/* photos: real images that fill the same frames as the placeholders */
.photo { display: block; width: 100%; height: auto; object-fit: cover; }
.mini-photo .mini-img { position: absolute; inset: 0; height: 100%; object-position: 50% 25%; }
.frame-puzzle .frame-img { position: absolute; inset: 0; height: 100%; border-radius: 26px; }
.expert-photo .expert-img { aspect-ratio: 4 / 4.8; border-radius: 26px; }
.about-media .about-img { aspect-ratio: 4 / 5; object-position: 50% 18%; border-radius: 10px 10px 130px 10px; box-shadow: var(--shadow); }

/* today's rates card (home estimator and calculators page) */
.rates-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; margin-top: 36px; box-shadow: var(--shadow); }
.rates-card h3 { margin: 0 0 6px; font-size: 20px; }
.rates-card p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 620px; }
.rates-card .btn { flex: none; }
.rates-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .rates-card { flex-direction: column; align-items: stretch; padding: 22px; }
  .rates-card .btn { width: 100%; text-align: center; }
}
.icon-tile { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(155deg, #1a9488 0%, #0f766e 60%, #0b5e58 100%); }

/* ---------- hero ---------- */
.hero { background: var(--bg-soft); padding: 40px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 3 / 3.9; object-fit: cover; border-radius: 10px 10px 130px 10px; box-shadow: var(--shadow); }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lead { max-width: 540px; }
.search-block { margin-top: 6px; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 14px; font-size: 15px; }
.tab { background: none; border: 0; padding: 4px 0; font: 500 15px/1.4 "Poppins", sans-serif; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.tab-sep { color: #c6d6d1; }
.search {
  display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px 6px 6px 22px; max-width: 580px;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px "Poppins", sans-serif; color: var(--ink); padding: 12px 0; }
.search input::placeholder { color: #9cada8; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22), var(--shadow); }

.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.mini-photo { position: relative; aspect-ratio: 1 / 1.05; border-radius: 16px 16px 70px 16px; overflow: hidden; }
.mini-photo .ph { position: absolute; inset: 0; }
.mini-title { font-size: 16px; margin: 14px 0 2px; }
.mini-sub { font-size: 13px; margin: 0 0 10px; }
.mini-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.mini-stat strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.mini-stat span { font-size: 12px; color: var(--muted); }

/* ---------- program strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; gap: 22px 32px; flex-wrap: wrap; padding: 26px 0; }
.strip h2 { font-size: 18px; margin: 0; max-width: 210px; line-height: 1.35; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.chip:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- puzzle panels (notches are drawn with pseudo-elements) ---------- */
.puzzle {
  position: relative; background: var(--brand); color: #fff; border-radius: 28px;
  padding: 56px 48px 150px; min-height: 360px; --bite: #fff;
}
.puzzle h2 { color: #fff; max-width: 420px; }
.puzzle p { color: rgba(255, 255, 255, 0.88); max-width: 420px; }
.puzzle::before, .puzzle::after { content: ""; position: absolute; background: var(--bite); }
.puzzle::before { top: 0; left: 9%; width: 70px; height: 28px; border-radius: 0 0 14px 14px; }
.puzzle::after { bottom: 0; left: 24%; width: 92px; height: 40px; border-radius: 14px 14px 0 0; }
.puzzle-art { position: absolute; right: 22px; bottom: 0; width: 170px; height: auto; }
.section-soft .puzzle, .section-soft .cta { --bite: var(--bg-soft); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.feature .icon-circle { margin-bottom: 18px; }
.feature h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; }

/* ---------- why / list items ---------- */
.why-list { display: grid; gap: 38px; }
.why-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: start; }
.why-item h3 { font-size: 19px; margin-bottom: 6px; }
.why-item p { margin: 0; font-size: 15px; }
.check-box { width: 30px; height: 30px; background: var(--ink); color: #fff; border-radius: 4px; display: grid; place-items: center; margin-top: 3px; }
.expert-list { display: grid; gap: 30px; }
.expert-list h2 { margin-bottom: 4px; }
.frame-puzzle { position: relative; border: 2px solid var(--brand); border-radius: 28px; aspect-ratio: 4 / 4.3; overflow: hidden; --bite: #fff; }
.frame-puzzle::before, .frame-puzzle::after { content: ""; position: absolute; background: var(--bite); z-index: 2; }
.frame-puzzle::before { top: 0; right: 12%; width: 54px; height: 30px; border-radius: 0 0 14px 14px; }
.frame-puzzle::after { bottom: 0; left: 6%; width: 34px; height: 30px; border-radius: 14px 14px 0 0; }
.frame-puzzle .ph { position: absolute; inset: 0; border-radius: 26px; }
.expert-photo .ph { min-height: 420px; }

/* ---------- carousel + guide cards ---------- */
.carousel-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.is-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.guide-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-art { display: grid; place-items: center; height: 150px; color: #fff; background: linear-gradient(135deg, #0f766e 0%, #5fc4b7 100%); }
.guide-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; }
.guide-body h3 { font-size: 18px; margin: 0; }
.guide-body p { font-size: 14px; margin: 0; flex: 1; }
.guide-meta { font-size: 12px; color: var(--brand); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 14px; margin-top: 10px; text-decoration: none; }
a.more:hover { text-decoration: underline; }

/* ---------- help / program cards ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.help-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; height: 100%; }
.help-card .icon-circle { width: 52px; height: 52px; margin-bottom: 8px; }
.help-card h3 { font-size: 18px; margin: 0; }
.help-card p { font-size: 14px; margin: 0; flex: 1; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin: 0; font-size: 15px; }
.plain-steps { padding-left: 22px; }

/* ---------- commitment cards (home page) ---------- */
.testi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
.testi-card { position: relative; background: var(--dark); color: #fff; border-radius: 26px 26px 26px 92px; padding: 34px 30px 36px; min-height: 300px; }
.testi-card.is-brand { background: var(--brand); border-radius: 26px 26px 92px 26px; min-height: 330px; }
.testi-card .quote-ico { display: block; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.testi-card h3 { color: #fff; font-size: 19px; margin: 0 0 10px; }
.testi-card p { color: rgba(255, 255, 255, 0.92); font-size: 15px; line-height: 1.7; }

/* ---------- CTA block ---------- */
.cta {
  position: relative; background: linear-gradient(115deg, #0f766e 0%, #1d4ed8 100%); color: #fff;
  border-radius: 28px; padding: 64px 48px; text-align: center; overflow: hidden; --bite: #fff;
}
.cta::after { content: ""; position: absolute; right: 0; top: 30%; width: 26px; height: 74px; background: var(--bite); border-radius: 14px 0 0 14px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin: 0 auto; }
.cta .search-block { display: flex; flex-direction: column; align-items: center; }
.cta .tabs { justify-content: center; margin: 24px 0 14px; }
.cta .tab { color: rgba(255, 255, 255, 0.78); }
.cta .tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.cta .tab-sep { color: rgba(255, 255, 255, 0.5); }
.cta .search { background: #fff; width: 100%; }
.cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta .btn-row:empty { display: none; }
.article .cta { margin-top: 48px; }

/* ---------- calculators ---------- */
.calc-stack { display: grid; gap: 28px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.panel h2 { font-size: 26px; margin-bottom: 18px; }
.panel h3 { font-size: 20px; margin-bottom: 14px; }
.panel .lead-form h3 { font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px "Poppins", sans-serif; color: var(--ink); background: #fff;
  border: 1px solid #cfdcd8; border-radius: 12px; padding: 12px 14px; min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: 12px; color: var(--muted); }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #cfdcd8; font-size: 15px; color: var(--ink-2); }
.result-row strong { font-weight: 600; color: var(--ink); text-align: right; }
.result-total { margin-top: 10px; padding: 18px 20px; border-radius: 16px; background: var(--brand-50); border-bottom: 0; }
.result-total strong { color: var(--brand); font-size: 26px; }
.panel .btn { margin-top: 18px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap th { font-weight: 600; color: var(--ink-2); font-size: 13px; }

/* ---------- forms ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-size: 15px; }
.form-status.is-ok { color: #137333; }
.form-status.is-error { color: #b42318; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); font-weight: 500; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0; font-size: 15px; }

/* ---------- page hero, breadcrumbs ---------- */
.page-hero { background: var(--bg-soft); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 14px; }
.page-hero .lead { font-size: 18px; max-width: 700px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- loan programs ---------- */
.program-chips { margin-bottom: 32px; }
.program { scroll-margin-top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 40px; margin-bottom: 24px; }
.program-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 18px; }
.program h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 6px; }
.program .summary { font-size: 16px; margin: 0; }
.program-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 22px; }
.program-cols h3 { font-size: 16px; margin-bottom: 10px; }
.program-cols ul { margin: 0; }
.program-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- articles ---------- */
.article-wrap { padding: 56px 0 40px; }
.article h1 { font-size: clamp(32px, 4.2vw, 48px); }
.article .meta { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.article .lead { font-size: 18px; color: var(--ink-2); }
.article h2 { font-size: 26px; margin: 44px 0 12px; }
.article p, .article li { font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.article ul { padding-left: 22px; }
.callout { background: var(--brand-50); border-radius: 20px; padding: 24px 26px; margin: 36px 0; }
.callout p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- about / partners ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.about-media .ph { min-height: 480px; border-radius: 10px 10px 130px 10px; }
.about-copy h2 { margin-bottom: 18px; }
.about-facts { display: grid; gap: 16px; margin-top: 24px; }
.fact { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.fact .icon-circle { width: 44px; height: 44px; }
.fact a { font-weight: 600; text-decoration: none; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.pillar .icon-circle { width: 48px; height: 48px; margin-bottom: 16px; }
.pillar h3 { font-size: 18px; }
.pillar p { margin: 0; font-size: 15px; }
.community h2 { font-size: 26px; }
.glance { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.glance li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.contact-grid > div:first-child h2 { margin-bottom: 10px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 14px; color: var(--brand); }
.contact-card strong { display: block; color: var(--ink); font-size: 16px; }
.contact-card a { font-size: 16px; font-weight: 600; text-decoration: none; }
.contact-card p { margin: 0; }
.contact-card div { color: var(--muted); font-size: 15px; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 16px; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #c9d7d3; padding: 72px 0 28px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: #b3c6c1; margin: 0 0 12px; }
.footer-brand a { color: #fff; text-decoration: none; }
.foot-small { font-size: 13px; color: #a0b3ae; line-height: 1.7; }
.eho { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; border: 1px solid #1d3431; border-radius: 999px; padding: 8px 14px; margin-top: 6px; }
.site-footer h3 { font-size: 15px; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #c9d7d3; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1d3431; }
.footer-legal p { font-size: 12px; color: #8fa39e; line-height: 1.7; margin: 0 0 8px; }

/* ---------- mobile quick bar ---------- */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 18px;
  }
  .nav.is-open a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; }
  .two-col, .about-grid, .contact-grid, .calc { grid-template-columns: minmax(0, 1fr); }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .testi-card.is-brand { min-height: 300px; }
  .carousel-track { grid-auto-columns: minmax(260px, calc((100% - 24px) / 2)); }
  .expert-photo .ph { min-height: 320px; }
  .puzzle-art { width: 140px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; max-width: 460px; width: 100%; margin: 0 auto; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .program-cols { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .program-top { grid-template-columns: minmax(0, 1fr); }
  .program { padding: 30px 24px; }
  .mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mini-title { font-size: 15px; }
}

@media (max-width: 760px) {
  .mobile-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 8px; padding: 8px;
    border-radius: 999px; background: var(--ink); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  }
  .mobile-bar a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  }
  .mobile-bar a.alt { background: var(--brand); }
  body.has-mobile-bar { padding-bottom: 84px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-tight { padding-top: 36px; }
  .hero { padding: 24px 0 48px; }
  .hero-media img { aspect-ratio: 4 / 4.2; }
  .mini-cards { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .help-grid, .help-grid-3, .help-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .puzzle, .panel { padding: 32px 24px; }
  .puzzle { padding-bottom: 130px; }
  .cta { padding: 44px 22px; }
  .search { padding-left: 16px; }
  .search .btn { padding: 12px 16px; }
  .carousel-track { grid-auto-columns: 84%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .header-actions .btn-primary { display: none; }
  .section-head { margin-bottom: 32px; }
  .strip h2 { max-width: none; }
  .tabs { gap: 8px 12px; }
  .testi-card { padding-bottom: 36px; }
  .about-media .ph { min-height: 360px; }
  .expert-photo .ph { min-height: 280px; }
  .calc-stack { gap: 20px; }
  .result-total strong { font-size: 22px; }
  .article h2 { font-size: 23px; }
  .table-wrap table { font-size: 13px; }
  .table-wrap th, .table-wrap td { padding: 10px 5px; }
  .table-wrap th { font-size: 12px; line-height: 1.3; white-space: normal; }
  :root { --header-h: 84px; }
  .brand-logo { width: 176px; }
}

@media (max-width: 420px) {
  .header-actions .icon-circle-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
