:root {
  --navy: #022a62;
  --navy-deep: #01183d;
  --navy-soft: #1a4f8c;
  --red: #920a05;
  --red-deep: #6e0803;
  --green: #3c7a0e;
  --green-deep: #2d5c0a;
  --green-soft: #e8f5d6;
  --green-light: #d5eead;
  --gold: var(--green);
  --gold-deep: var(--green-deep);
  --gold-soft: var(--green-soft);
  --ink: #172033;
  --muted: #5c6b80;
  --line: #e3e8f0;
  --paper: #f5f7fb;
  --white: #ffffff;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --shadow: 0 18px 40px rgba(7, 24, 51, 0.08);
  --header: 86px;
  --wrap: 1120px;
  --serif: "Cinzel", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.is-embed .site-header,
body.is-embed .site-footer,
body.is-embed .page-hero { display: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin: 0 0 0.55em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
p { margin: 0 0 0.9em; }
ul { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero .eyebrow,
.page-hero .eyebrow,
.section-navy .eyebrow { color: var(--green-light); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 42rem; }
.hero .lede, .page-hero .lede { color: rgba(255, 255, 255, 0.86); }
.fine { color: var(--muted); font-size: 0.95rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.header-inner {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand img { width: 74px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.brand-main {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0;
  color: var(--navy);
}
.brand-sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--red);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  min-height: 44px;
  padding: 0 14px;
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}
#site-nav { display: flex; align-items: center; gap: 6px; }
#site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 6px;
}
#site-nav a[aria-current="page"] { color: var(--gold-deep); }
#site-nav a:hover:not(.btn) { background: var(--paper); }
#site-nav .btn { margin-left: 8px; }
#site-nav a.btn-gold,
#site-nav a.btn-gold:hover,
#site-nav a.btn-gold:focus,
#site-nav a.btn-gold:focus-visible,
#site-nav a.btn-gold:active,
#site-nav a.btn-gold:visited,
#site-nav a.btn-gold[aria-current="page"] {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
#site-nav a.btn-gold:hover,
#site-nav a.btn-gold:focus-visible {
  background: var(--red-deep);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}
.btn-gold,
.btn-gold:hover,
.btn-gold:focus,
.btn-gold:focus-visible,
.btn-gold:active,
.btn-gold:visited {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--red-deep);
  color: #ffffff;
}
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0; }

.hero, .page-hero {
  background:
    radial-gradient(circle at 88% 0%, rgba(60, 122, 14, 0.28), transparent 32%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 58%, #0c3f78);
  color: var(--white);
}
.hero { padding: 72px 0 84px; }
.page-hero { padding: 54px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.hero-mark {
  justify-self: center;
  width: min(420px, 100%);
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.hero-mark img { width: 100%; }

.section { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .lede, .section-navy p { color: rgba(255, 255, 255, 0.88); }
.section h2 { color: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.card-grid, .split, .facts, .people, .support-grid, .steps {
  display: grid;
  gap: 18px;
}
.card-grid { grid-template-columns: repeat(3, 1fr); margin-top: -52px; position: relative; }
.split { grid-template-columns: 1fr 1fr; }
.facts { grid-template-columns: repeat(3, 1fr); }
.people { grid-template-columns: repeat(3, 1fr); }
.support-grid { grid-template-columns: 1fr 1fr; }
.steps { grid-template-columns: repeat(4, 1fr); }

.card, .panel, .fact, .person, .support, .step, .calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h2, .panel h2, .panel h3, .support h3, .step h3 { color: var(--navy); }
.card-grid .card h2 {
  text-align: center;
  font-size: 1.55rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: balance;
}
.card p:last-child, .panel p:last-child, .support p:last-child { margin-bottom: 0; }
.card { border-top: 4px solid var(--gold); display: flex; flex-direction: column; height: 100%; }
.card-grid .btn {
  margin-top: auto;
  align-self: center;
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 56px;
  padding: 12px 22px;
}
.btn.is-soon,
.btn.is-soon:hover,
.btn.is-soon:focus {
  cursor: default;
  pointer-events: none;
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
.card-grid .card > p {
  text-align: center;
}
.panel + .panel { }
.stack { display: grid; gap: 18px; }

.check-list, .plain-list { list-style: none; display: grid; gap: 10px; }
.check-list li, .plain-list li { padding-left: 0; }
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.check-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.2 6.2 11.4 13 4.6' fill='none' stroke='%23ffffff' stroke-width='2'/></svg>") center / 14px no-repeat;
}

.fact { text-align: left; border-top: 4px solid var(--gold); }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.step { background: var(--paper); box-shadow: none; }
.step span {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.portrait {
  height: 180px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(11, 37, 80, 0.04), rgba(11, 37, 80, 0.12)),
    var(--paper);
  border: 1px dashed #c5cedb;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  margin-bottom: 14px;
}
.role { color: var(--navy); font-weight: 700; margin-bottom: 0.4rem; }

.calc-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; }
.calc-card { box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d2e0;
  border-radius: 8px;
  padding: 10px 12px;
  font: 400 1rem var(--sans);
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus {
  outline: 3px solid rgba(212, 164, 55, 0.45);
  border-color: var(--gold-deep);
}
.helper { color: var(--muted); font-size: 0.88rem; }
.consent {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--gold-soft);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}
.consent input { width: 20px; height: 20px; margin-top: 4px; }
.consent-title { display: block; font-weight: 800; color: var(--navy); }
.consent p { margin: 0.35rem 0 0; font-size: 0.95rem; }
.calc-actions { margin-top: 8px; }
.calc-message { min-height: 1.4em; font-weight: 700; }
.calc-message.is-error { color: var(--danger); }
.calc-message.is-success { color: var(--ok); }
.results { margin-top: 18px; }
.results h3 { margin-bottom: 12px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 16px;
}
.result-card h4 {
  margin: 0 0 6px;
  color: var(--green-light);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result-value { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.disclaimer {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 51, 0.62);
  z-index: 40;
  padding: 24px 12px;
}
.modal.is-open { display: grid; place-items: center; }
.modal-card {
  width: min(860px, 100%);
  height: min(78vh, 760px);
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; }
.modal-card iframe { border: 0; flex: 1; width: 100%; background: var(--white); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-family: var(--serif); font-size: 1.4rem; }
.faq details[open] summary::after { content: "-"; }
.faq details p:last-child, .faq details ul:last-child { margin-bottom: 0; }
.faq details .answer { padding: 8px 0 6px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list strong { display: block; color: var(--navy); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { margin-left: 1.1rem; margin-bottom: 0.35rem; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 42px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
.site-footer h2 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.legal-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.92rem; }
.legal-line p { margin: 0 0 0.45rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-inner { position: relative; }
  #site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    box-shadow: var(--shadow);
  }
  #site-nav.is-open { display: flex; }
  #site-nav a { padding: 12px 8px; }
  #site-nav .btn { margin: 8px 0 0; }
  .hero-grid, .card-grid, .split, .facts, .people, .support-grid, .steps, .calc-layout, .contact-grid, .footer-grid, .calc-grid, .result-grid {
    grid-template-columns: 1fr;
  }
  .card-grid { margin-top: 0; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .field.span-2 { grid-column: auto; }
  .hero-mark { width: min(300px, 86%); margin: 12px auto 0; }
  .brand-main { font-size: 0.92rem; }
  .brand-sub { font-size: 0.72rem; }
  .brand img { width: 58px; }
}

@media (max-width: 640px) {
  .btn-row .btn, .calc-actions .btn, .result-grid { width: 100%; }
  .result-grid { grid-template-columns: 1fr; }
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min(400px, calc(100vw - 24px));
  pointer-events: none;
}
.chat-widget > * { pointer-events: auto; }
.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: 700 1rem var(--sans);
  box-shadow: 0 10px 24px rgba(7, 24, 51, 0.28);
  cursor: pointer;
}
.chat-launcher-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--green-light);
}
.chat-launcher-mark svg { width: 22px; height: 22px; }
.chat-panel {
  width: 100%;
  max-height: min(640px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(7, 24, 51, 0.2);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px 10px 14px;
  border-bottom: 3px solid var(--gold);
}
.chat-avatar {
  width: 48px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
}
.chat-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}
.chat-greeting {
  margin: 2px 0 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}
.chat-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover { background: var(--paper); }
.chat-body {
  overflow: auto;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-list { display: grid; gap: 10px; }
.chat-list[hidden],
.chat-answer[hidden] { display: none; }
.chat-pill,
.chat-back {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: 600 1rem var(--sans);
  text-align: center;
  cursor: pointer;
}
.chat-pill:hover,
.chat-back:hover { background: var(--gold-soft); }
.chat-asked {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}
.chat-reply { margin: 0; }
.chat-actions { display: grid; gap: 8px; }
.chat-actions .btn { width: 100%; }
.chat-reminder {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .chat-widget {
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
  }
  .chat-panel { max-height: min(70vh, 560px); }
  .chat-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .chat-launcher { padding: 0; width: 56px; height: 56px; justify-content: center; }
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.headshot { margin: 0; }
.headshot-frame {
  min-height: 340px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(213, 238, 173, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px 24px;
}
.headshot-frame img { width: 148px; height: auto; }
.headshot-frame span {
  color: var(--green-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.story-timeline {
  list-style: none;
  max-width: 740px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
}
.story-timeline li {
  padding-left: 32px;
  border-left: 2px solid var(--green);
}
.story-timeline h2 { font-size: clamp(1.55rem, 2vw, 2rem); }
.story-narrow {
  max-width: 740px;
  margin: 0 auto;
}
.story-narrow h2 { margin-top: 2.6rem; }
.story-narrow h2:first-child { margin-top: 0; }
.pull {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 4px;
  border-top: 3px solid var(--red);
}
.pull p {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.28;
  color: var(--navy);
}
.about-close .wrap { max-width: 740px; }
.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 8px;
}
.about-secondary {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}
.about-secondary:hover { color: var(--green-light); }
@media (max-width: 800px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .headshot-frame { min-height: 240px; }
  .story-timeline { gap: 40px; }
}

@media print {
  .chat-widget { display: none !important; }
}
