/* Haven public pages: shared design tokens, layout, and components.
   Used by pathway.html, resources and the other public pages. The member app
   keeps its own styles.css. Contrast on every text and background pairing here
   meets WCAG AA at the size it is used. */

:root {
  --teal: #143E4A;
  --teal-7: #0E2C35;
  --teal-3: #26606F;
  --cream: #FBF8F3;
  --cream-2: #F4EEE4;
  --cream-3: #E9E0D1;
  --gold: #B8742A;
  --copper: #9B5520;
  --ink: #1B2328;
  --ink-2: #44535B;
  --ink-3: #6B7A82;
  --line: #DCD3C4;
  --white: #FFFFFF;
  --good: #1F6B4D;
  --bad: #9A2B22;
  --d: Fraunces, Georgia, "Times New Roman", serif;
  --b: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --sh: 0 1px 2px rgba(20,62,74,.06), 0 8px 24px rgba(20,62,74,.07);
  --sh2: 0 2px 4px rgba(20,62,74,.07), 0 18px 48px rgba(20,62,74,.11);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--b);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--d); font-weight: 600; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }
small { font-size: .875rem; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--white); padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
/* A narrow section keeps the standard page gutter and constrains its contents,
   rather than shrinking the container and centring it. Otherwise a narrow
   section and a full width one on the same page start at different left edges,
   which reads as a mistake the whole way down the page. */
.narrow { max-width: 760px; }
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 760px; }
.eyebrow {
  font-size: .745rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin: 0 0 .9rem;
}
.lede { font-size: 1.14rem; color: var(--ink-2); }
.center { text-align: center; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,243,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.hd .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); margin-right: auto; }
.hd .brand img { height: 34px; width: auto; }
.hd .brand b { font-family: var(--d); font-size: 1.16rem; letter-spacing: .055em; font-weight: 600; }
.hd nav { display: flex; align-items: center; gap: 22px; }
.hd nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; margin: 0; line-height: 1.3; white-space: nowrap; }
.hd nav a.navcta { min-height: 0; }
.hd nav a:hover, .hd nav a[aria-current=page] { color: var(--teal); }
@media (max-width: 860px) { .hd nav a.opt { display: none; } }
/* one family of footer logos: keep the real proportions in every container */
.fbrand img { height: auto; width: 150px; max-width: 100%; aspect-ratio: 1200 / 772; object-fit: contain; }
@media (max-width: 560px) {
  .hd nav a[aria-current=page] { display: none; }
  .hd .brand b { display: none; }
  .hd nav { gap: 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--b); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--teal); color: var(--white); }
.btn.primary:hover { background: var(--teal-7); color: var(--white); box-shadow: var(--sh); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--copper); color: #fff; }
.btn.outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn.outline:hover { background: var(--teal); color: var(--white); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--teal); color: var(--teal); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: .9rem; min-height: 40px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- cards and panels ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px; box-shadow: var(--sh);
}
.panel { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tealpanel { background: var(--teal); color: #EAF2F2; border-radius: var(--r); padding: 28px; }
.tealpanel h2, .tealpanel h3 { color: var(--white); }

/* ---------- forms ---------- */
.f { display: block; margin: 0 0 16px; }
.f > span { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.f input, .f select, .f textarea {
  width: 100%; font-family: var(--b); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); min-height: 48px;
}
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--teal-3); outline-offset: 1px; }
.f .note { font-size: .84rem; color: var(--ink-3); margin-top: 5px; display: block; font-weight: 400; }
.opt { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); margin: 0 0 16px; cursor: pointer; }
/* 24px is the WCAG 2.2 minimum target size, and a consent box is the last control
   anyone should have to aim at. */
.opt input { margin: 1px 0 0; width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--teal); cursor: pointer; }
.opt { min-height: 26px; }
.hint { font-size: .92rem; color: var(--ink-3); }
.err { color: var(--bad); font-size: .92rem; font-weight: 600; margin: 0 0 12px; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- choice list, used by the Pathway questions ---------- */
.choices { display: grid; gap: 10px; margin: 0 0 8px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-family: var(--b); font-size: 1.02rem; color: var(--ink);
  cursor: pointer; min-height: 60px; transition: border-color .12s ease, box-shadow .12s ease;
}
.choice:hover { border-color: var(--teal-3); box-shadow: var(--sh); }
.choice[aria-pressed=true] { border-color: var(--teal); background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--teal); }
.choice .ck {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; font-size: .8rem;
}
.choice[aria-pressed=true] .ck { background: var(--teal); border-color: var(--teal); color: #fff; }
.choice .sub { display: block; font-size: .86rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- progress ---------- */
.bar { height: 8px; background: var(--cream-3); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .35s ease; }
.bar.gold > i { background: var(--gold); }
.pct { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal); }

/* ---------- step rows ---------- */
.stage { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); margin: 0 0 14px; overflow: hidden; }
.stage > summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer;
  list-style: none; background: var(--cream-2); min-height: 64px;
}
.stage > summary::-webkit-details-marker { display: none; }
.stage > summary:hover { background: var(--cream-3); }
.stage .sno {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.stage .snm { font-family: var(--d); font-size: 1.1rem; font-weight: 600; color: var(--teal); margin-right: auto; }
.stage .scount { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A closed stage needs to look like it opens. */
.stage > summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-left: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.stage[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.stage[open] .sno { background: var(--gold); }
.stage .done-pill { background: var(--good); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

.step { display: flex; gap: 14px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: flex-start; }
.step:first-child { border-top: none; }
.step > .box { flex: 0 0 auto; }
.step .box input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); cursor: pointer; }
.step .bd { min-width: 0; flex: 1 1 auto; }
.step .ti { font-weight: 600; font-size: 1.03rem; color: var(--ink); display: block; cursor: pointer; }
.step.is-done .ti { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.step .why { font-size: .95rem; color: var(--ink-2); margin: 6px 0 0; }
.step .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .86rem; color: var(--ink-3); }
.step .meta b { color: var(--ink-2); font-weight: 600; }
.step .srcl { font-size: .88rem; margin-top: 9px; }
.step .lic { display: inline-block; background: var(--cream-3); color: var(--ink-2); font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }

/* ---------- first step card ---------- */
.first {
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-7) 100%);
  color: #EAF2F2; border-radius: 18px; padding: 30px; box-shadow: var(--sh2);
}
.first .eyebrow { color: #E8C79A; }
.first h3 { color: var(--white); font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.first p { color: #D5E4E6; }
.first .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: #BFD5D8; margin: 14px 0 20px; }
.first .meta b { color: var(--white); }
.first a:not(.btn) { color: #F0D3AC; }
@media (max-width: 560px) { .first { padding: 22px; } }

/* ---------- glossary ---------- */
.term {
  border-bottom: 1.5px dotted var(--gold); cursor: help; position: relative; font-weight: 600; color: var(--teal);
}
.termpop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: min(300px, 78vw);
  background: var(--teal-7); color: #E6EFF0; font-size: .88rem; font-weight: 400; line-height: 1.5;
  padding: 13px 15px; border-radius: 10px; box-shadow: var(--sh2); cursor: auto;
}
.termpop b { display: block; color: var(--white); margin-bottom: 4px; font-weight: 700; }

/* ---------- modal ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(14,44,53,.58);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal {
  background: var(--cream); border-radius: 18px; width: min(560px, 100%);
  box-shadow: var(--sh2); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden;
}
.modal > header { padding: 22px 24px 0; }
.modal .mhead { display: flex; align-items: flex-start; gap: 14px; }
.modal .mhead h3 { margin: 0; flex: 1 1 auto; }
.modal .x {
  flex: 0 0 auto; background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 4px; min-height: 44px; min-width: 44px;
}
.modal .x:hover { color: var(--ink); }
.modal .mbody { padding: 18px 24px; overflow-y: auto; }
.modal > footer { padding: 16px 24px 22px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
.modal > footer .btn { flex: 1 1 auto; }
@media (max-width: 560px) { .modal .mbody, .modal > header, .modal > footer { padding-left: 16px; padding-right: 16px; } }

.done { text-align: center; padding: 10px 0 4px; }
.done .ring {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--good); color: #fff; display: grid; place-items: center; font-size: 1.9rem;
}

/* ---------- the persistent next step bar ---------- */
.nextbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--teal); color: #EAF2F2; padding: 13px 20px;
  box-shadow: 0 -4px 20px rgba(14,44,53,.18);
}
.nextbar .nb-l { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: #E8C79A; flex: 0 0 auto; }
.nextbar .nb-t { flex: 1 1 auto; font-size: .94rem; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nextbar .nb-go { flex: 0 0 auto; font-weight: 700; font-size: .9rem; color: var(--white); border-bottom: 1.5px solid #E8C79A; }
body.has-nextbar { padding-bottom: 60px; }
@media (max-width: 560px) {
  .nextbar { padding: 11px 16px; gap: 10px; }
  .nextbar .nb-l { display: none; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--teal-7); color: #B9CED2; padding: 56px 0 28px; margin-top: 72px; }
.site-foot a { color: #DCE8EA; text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 36px; }
.fgrid h4 { color: var(--white); font-family: var(--b); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; }
.fgrid li { margin: 0 0 9px; font-size: .94rem; }
.fbrand img { margin-bottom: 14px; }
.fbrand p { font-size: .92rem; color: #9FB8BD; }
.letter input[type=email] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #335A64;
  background: #10333C; color: var(--white); font-family: var(--b); font-size: .96rem; min-height: 46px;
}
.letter input[type=email]::placeholder { color: #87A5AB; }
.letter .opt { color: #B9CED2; font-size: .86rem; }
.letter button { margin-top: 10px; }
.letter-msg { font-size: .88rem; margin: 10px 0 0; }
.letter-msg.bad { color: #FFC4BC; font-weight: 600; }
.letter-msg.good { color: #B6E3C8; }
.legalbar { border-top: 1px solid #28535E; margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #93ADB3; }
.legalbar p { margin: 0 0 8px; }
.legalbar nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } .site-foot { padding-top: 44px; } }

/* ---------- utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.sec { padding: 72px 0; }
.sec.tight { padding: 48px 0; }
@media (max-width: 560px) { .sec { padding: 52px 0; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.disclaim { font-size: .86rem; color: var(--ink-3); background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.disclaim b { color: var(--ink-2); }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { padding: 70px 0; text-align: center; color: var(--ink-3); }

/* sign up button in the public header */
.hd nav a.navcta { background: #B8742A; color: #241507; padding: 9px 16px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.hd nav a.navcta:hover { color: #241507; filter: brightness(1.06); }
.depositcard { border: 2px solid #B8742A; border-radius: 18px; padding: 26px 26px 24px; background: linear-gradient(180deg, #FAEDDF, #fff 55%); }
.depositcard h2 { margin: 0 0 8px; }
.depositcard ul { margin: 12px 0 0; padding-left: 20px; }
.depositcard li { margin-bottom: 6px; }

/* Phones zoom in on any field under 16px and stay zoomed. Keep every field at 16px on small screens. */
@media (max-width:900px){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px !important}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.legalbar .made{font-family:var(--d);font-size:1rem;color:inherit;opacity:.9;margin:0 0 6px;letter-spacing:.01em}

html{scroll-padding-top:84px}
