/* Fraunces (SIL Open Font License; by Undercase Type) self-hosted so no
   visitor data ever reaches a third party. Variable font, weights 600-700. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/static/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --deep: #0a3a44; --teal: #0e7c86; --teal-dark: #0a5960; --lagoon: #17a2b0;
  --sand: #faf6ee; --card: #ffffff; --ink: #22312e; --muted: #5d6b68;
  --line: #e7dfd0; --coral: #e8604c; --coral-dark: #cf4a37; --sun: #f4b942;
  --ok: #1e7d3c; --warn: #b96a00; --bad: #b3261e; --hold: #c25e00;
  --cream: #fdf9f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); background: var(--sand);
  font: 16.5px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;  /* the hero band bleeds 50vw past each edge by design */
}
main { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 3rem; }
a { color: var(--teal); }
h1, h2, h3, .outcome-big, .step-num {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.25; font-weight: 600; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.08rem; font-weight: 600; margin: .2rem 0 .4rem; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.4rem; background: var(--deep); border-bottom: none;
}
.brand { font-weight: 700; text-decoration: none; color: var(--cream); font-size: 1.05rem; }
.site-header nav a { color: #bcd8d4; text-decoration: none; font-size: .9rem; }
.site-header nav a:hover { color: var(--cream); }
.site-footer {
  max-width: 860px; margin: 2.5rem auto 0; padding: 1.2rem 1.25rem 2.2rem;
  font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line);
}
.footer-brand { font-weight: 600; color: var(--teal-dark); }

/* ---------- hero ---------- */
.hero-band {
  background:
    radial-gradient(90rem 30rem at 85% -10%, rgba(244,185,66,.24), transparent 55%),
    linear-gradient(163deg, var(--deep) 0%, #0d6472 52%, var(--lagoon) 100%);
  color: var(--cream);
  text-align: center;
  margin: 0 -50vw 2.4rem; padding: 3.4rem 50vw 4.6rem;  /* full-bleed band */
  position: relative;
}
.hero-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 64" preserveAspectRatio="none"><path d="M0,34 C240,64 480,4 720,26 C960,48 1200,10 1440,34 L1440,64 L0,64 Z" fill="%23faf6ee"/></svg>') bottom / 100% 44px no-repeat;
}
.hero-band h1 { margin: .4rem auto .9rem; max-width: 720px; }
.hero-band h1 em { font-style: italic; color: var(--sun); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  font-weight: 700; color: #9fd6d2; margin: 0;
}
.hero-band .sub { max-width: 640px; margin: 0 auto 1.6rem; color: #e6f2ef; font-size: 1.04rem; }
.trust-row { margin: 1rem 0 0; font-size: .84rem; color: #cfe7e3; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .55rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--teal-dark);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: #cfc4ad; }
.btn-primary, .btn-cta {
  background: var(--coral); border-color: var(--coral); color: #fff;
  box-shadow: 0 3px 14px rgba(232, 96, 76, .35);
}
.btn-primary:hover, .btn-cta:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn-big, .btn-cta { font-size: 1.08rem; padding: .85rem 1.7rem; border-radius: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- outcome contrast ---------- */
.outcomes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: -3.4rem 0 1rem; position: relative; z-index: 2;
}
.outcome {
  background: var(--card); border-radius: 14px; padding: 1.1rem 1.3rem;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10, 58, 68, .08);
}
.outcome p { margin: .15rem 0; }
.outcome-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.outcome-big { font-size: 1.5rem; font-weight: 700; }
.outcome-good { border-top: 4px solid var(--ok); }
.outcome-good .outcome-label, .outcome-good .outcome-big { color: var(--ok); }
.outcome-bad { border-top: 4px solid var(--bad); }
.outcome-bad .outcome-label, .outcome-bad .outcome-big { color: var(--bad); }

/* ---------- steps ---------- */
.steps h2, .programs h2, .trust h2, .faq h2, .checker-section h2 { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.2rem 1rem;
}
.step p { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.step-num {
  display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center;
  justify-content: center; border-radius: 50%; background: var(--coral);
  color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem;
}

/* ---------- checker / form ---------- */
.checker-section { scroll-margin-top: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.35rem; margin: 1rem 0;
}
.form { box-shadow: 0 12px 34px rgba(10, 58, 68, .07); }
.form fieldset { border: none; border-top: 1px solid var(--line); padding: 1rem 0 .9rem; margin: 0; }
.form fieldset:first-of-type { border-top: none; }
.form legend {
  font-weight: 700; padding-right: .75rem; font-size: 1.02rem;
  font-family: "Fraunces", Georgia, serif;
}
.form label { display: block; margin: .55rem 0; font-weight: 500; }
.form input[type=date], .form input[type=text], .form input[type=number], .form select {
  display: block; width: 100%; max-width: 340px; margin-top: .3rem;
  padding: .55rem .65rem; border: 1px solid #cdc3ac; border-radius: 9px;
  font: inherit; background: #fff;
}
.form input:focus, .form select:focus { border-color: var(--teal); }
.form .check input { width: auto; display: inline; margin-right: .4rem; }
.hint { font-size: .85rem; color: var(--muted); }

.check-row { position: relative; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.check-row .check { margin: .55rem 0 .2rem; }
.info-tip summary {
  list-style: none; cursor: pointer; font-size: .8rem; font-weight: 600;
  color: var(--teal); border: 1px solid var(--line); border-radius: 999px;
  padding: .05rem .55rem; background: #fff; user-select: none;
}
.info-tip summary::-webkit-details-marker { display: none; }
.info-tip[open] summary { background: var(--teal); color: #fff; border-color: var(--teal); }
.info-pop {
  position: absolute; left: 0; top: 100%; z-index: 20;
  width: min(360px, 88vw); margin-top: .4rem; padding: .75rem .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(35, 49, 47, .14); font-size: .87rem; font-weight: 400;
}

/* ---------- programs table ---------- */
.programs p { max-width: 640px; margin: .3rem auto 1rem; text-align: center; color: var(--muted); }
.fee-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: .95rem;
}
.fee-table th, .fee-table td { padding: .8rem .9rem; text-align: left; vertical-align: top; }
.fee-table thead th {
  background: var(--deep); color: var(--cream); font-weight: 600; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.fee-table tbody tr + tr td { border-top: 1px solid var(--line); }
.fee-table td:last-child { font-weight: 700; white-space: nowrap; }
.pill {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.pill-good { background: #e2f3e6; color: var(--ok); }
.pill-mid { background: #fdf0dd; color: var(--warn); }
.pill-bad { background: #fbe3e1; color: var(--bad); }

/* ---------- trust & faq ---------- */
.trust ul { max-width: 680px; margin: 0 auto; padding-left: 1.1rem; }
.trust li { margin: .55rem 0; }
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem 1rem; margin: .5rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .1rem; top: 50%; transform: translateY(-52%);
  color: var(--coral); font-weight: 700; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 .2rem; color: var(--muted); font-size: .94rem; }
.faq-cta { text-align: center; margin: 1.6rem 0 0; }

/* ---------- banners / statuses (result & plan pages) ---------- */
.banner { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; background: #eee; }
.banner-DAR { background: #e2f3e6; color: var(--ok); }
.banner-5DOL { background: #fdf0dd; color: var(--warn); }
.banner-HOLD { background: #fcebd9; color: var(--hold); }
.banner-Q120, .banner-PROHIBITED { background: #fbe3e1; color: var(--bad); }
.banner-INCOMPLETE, .banner-OUT_OF_SCOPE { background: #edeae2; color: #4d5a56; }

.issues ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.issues li { margin: .35rem 0; }
.rule {
  display: inline-block; font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--teal-dark); border-radius: 5px; padding: .05rem .4rem;
  margin-right: .35rem; vertical-align: middle;
}

/* ---------- timeline & kits (plan page) ---------- */
.timeline { list-style: none; margin: 1.25rem 0; padding: 0; }
.milestone {
  display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: .95rem 1.15rem; margin: .6rem 0;
}
.milestone.due { border-color: var(--warn); box-shadow: 0 0 0 2px #f7dcb2; }
.milestone.done { opacity: .62; }
.m-date {
  min-width: 4.2rem; text-align: center; color: var(--teal-dark);
  font-size: .8rem; line-height: 1.3; padding-top: .15rem;
}
.m-date strong { font-size: 1.05rem; font-family: "Fraunces", Georgia, serif; }
.m-body h3 { margin: 0 0 .3rem; }
.m-body p { margin: .2rem 0; font-size: .92rem; }
.m-meta { color: var(--muted); font-size: .8rem !important; }

.kit { margin-top: .5rem; }
.kit summary {
  list-style: none; cursor: pointer; display: inline-block; font-size: .82rem;
  font-weight: 600; color: var(--teal-dark); background: #eef6f5;
  border: 1px solid #cfe3e0; border-radius: 999px; padding: .2rem .7rem; user-select: none;
}
.kit summary::-webkit-details-marker { display: none; }
.kit[open] summary { background: var(--teal); border-color: var(--teal); color: #fff; }
.kit-body {
  border-left: 3px solid var(--teal); background: #f6faf9;
  border-radius: 0 8px 8px 0; margin-top: .5rem; padding: .6rem .8rem;
}
.kit-body p { margin: .3rem 0; font-size: .88rem; }
.kit-say { background: #fff; border: 1px dashed #b9d2ce; border-radius: 8px; padding: .45rem .6rem; }
.kit-gotchas { margin: .35rem 0 .1rem; padding-left: 1.05rem; font-size: .84rem; color: #46554f; }
.kit-gotchas li { margin: .25rem 0; }
.budget { background: #fdf8ec; border-color: #ecdfc0; font-size: .92rem; }

/* ---------- paywall & misc ---------- */
.paywall .locked-list {
  list-style: none; padding: 0; color: #9aa5a1; font-size: .9rem; column-count: 2;
}
.preview { border-color: var(--teal); }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }

/* ---------- responsive & print ---------- */
@media (max-width: 640px) {
  .outcomes { grid-template-columns: 1fr; margin-top: -2.6rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .paywall .locked-list { column-count: 1; }
  .fee-table { font-size: .88rem; }
  .fee-table th, .fee-table td { padding: .6rem .6rem; }
}
@media print {
  .site-header, .site-footer, .toolbar, .btn, .hero-band, .faq-cta { display: none !important; }
  body { background: #fff; }
  .milestone { break-inside: avoid; }
  .kit[open] summary { color: var(--teal-dark); background: #fff; }
  .kit-body { background: #fff; }
}
