:root {
  --navy: #12334a;
  --navy-deep: #092538;
  --blue: #1e6fb8;
  --blue-soft: #e9f4fb;
  --teal: #087c72;
  --teal-soft: #e6f5f2;
  --amber: #f5b942;
  --amber-soft: #fff5d2;
  --ink: #17212b;
  --muted: #5d6c77;
  --line: #d6e1e8;
  --canvas: #eef4f7;
  --shadow: 0 18px 50px rgba(16, 50, 73, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--navy-deep); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { color: var(--navy); background: white; border-bottom: 1px solid rgba(18, 51, 74, .12); }
.header-inner { width: min(980px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 12px 12px 12px 4px; font-size: 14px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--navy); font-size: 14px; font-weight: 800; }
.back-link { padding: 9px 13px; color: white; background: var(--blue); border-radius: 9px; text-decoration: none; }
main { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 60px; }
.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: end; }
.eyebrow, .panel-kicker, .summary-label { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.page-intro > div > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 18px; }
.demo-alert { display: flex; gap: 10px; padding: 16px; color: #5d4300; background: var(--amber-soft); border: 1px solid #e5ca68; border-radius: 12px; }
.demo-alert > span { align-self: flex-start; padding: 4px 7px; color: white; background: #876300; border-radius: 6px; font-size: 11px; font-weight: 900; }
.demo-alert p { margin: 0; font-size: 13px; }
.demo-alert strong { display: block; }
.tracking-card { margin-top: 26px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.budget-summary { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 24px 28px; color: white; background: var(--navy); }
.summary-label { color: #86d4ff; }
.budget-summary h2 { margin: 0; font-size: 27px; }
.budget-summary p:last-child { margin: 4px 0 0; color: #d6e5ed; }
.summary-total { text-align: right; }
.summary-total span, .summary-total strong { display: block; }
.summary-total span { color: #bcd5e2; font-size: 12px; text-transform: uppercase; }
.summary-total strong { color: var(--amber); font-size: 26px; }
.budget-parties { margin: 0; padding: 18px 28px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; background: #f6f9fa; border-bottom: 1px solid var(--line); }
.budget-parties div { min-width: 0; }
.budget-parties dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.budget-parties dd { margin: 3px 0 0; color: var(--navy); font-weight: 800; overflow-wrap: anywhere; }
.budget-parties dd span { display: block; color: #805d00; font-size: 11px; }
.progress-list { margin: 0; padding: 22px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; border-bottom: 1px solid var(--line); }
.progress-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress-list li > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: #edf2f5; border-radius: 50%; font-size: 13px; font-weight: 900; }
.progress-list strong, .progress-list small { display: block; }
.progress-list strong { color: var(--navy); font-size: 14px; }
.progress-list small { font-size: 12px; }
.progress-list li.current > span { color: white; background: var(--blue); }
.progress-list li.complete > span { color: white; background: var(--teal); }
.action-panel { margin: 28px; padding: 24px; background: white; border: 1px solid #b9ceda; border-radius: 13px; }
.action-panel h3 { margin: 0; color: var(--navy); font-size: 25px; }
.action-panel > p:not(.panel-kicker) { margin: 9px 0 0; color: var(--muted); }
.confirmation-check { margin: 20px 0 15px; padding: 13px 14px; display: flex; gap: 11px; align-items: flex-start; color: var(--navy); background: var(--blue-soft); border-radius: 9px; font-weight: 750; cursor: pointer; }
.confirmation-check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--teal); }
.primary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; font-weight: 850; text-decoration: none; }
.primary-button:hover { background: #185d9b; }
.primary-button:disabled { color: #71808a; background: #e3e8eb; border-color: #d0d9de; cursor: not-allowed; }
.success-line { display: flex; gap: 9px; align-items: center; color: #236259 !important; font-weight: 800; }
.success-line span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; }
.privacy-note { margin: 0 28px 28px; padding: 17px 19px; color: #24574e; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 10px; }
.privacy-note strong { display: block; }
.privacy-note p { margin: 4px 0 0; font-size: 14px; }
.site-footer { width: min(980px, calc(100% - 32px)); margin: 0 auto 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer strong { color: var(--navy); }
.site-footer p { margin: 2px 0 0; }
.site-footer > div:last-child { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(30,111,184,.3); outline-offset: 3px; }

@media (max-width: 760px) {
  .page-intro { grid-template-columns: 1fr; }
  .budget-parties, .progress-list { grid-template-columns: 1fr; }
  .budget-summary { align-items: flex-start; flex-direction: column; }
  .summary-total { text-align: left; }
}

@media (max-width: 560px) {
  .header-inner, main, .site-footer { width: min(100% - 20px, 980px); }
  .brand small, nav > a:first-child { display: none; }
  main { padding-top: 28px; }
  h1 { font-size: 39px; }
  .budget-summary, .budget-parties, .progress-list { padding-left: 19px; padding-right: 19px; }
  .action-panel { margin: 18px; padding: 19px; }
  .privacy-note { margin: 0 18px 18px; }
  .primary-button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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