:root {
  --navy: #0b2347;
  --blue: #086c9e;
  --blue-dark: #075a83;
  --text: #243653;
  --muted: #586982;
  --line: #cad6e4;
  --band: #f3f7fb;
  --success: #23843c;
  --danger: #ba2d35;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.58; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(8,108,158,.3); outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 600; line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(2.65rem, 5.1vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

.layout-wide { margin: 0 auto; max-width: 1440px; padding-left: clamp(24px, 5vw, 76px); padding-right: clamp(24px, 5vw, 76px); }
.layout-reading { margin: 0 auto; max-width: 850px; padding-left: 24px; padding-right: 24px; }
.site-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 76px; padding: 0 clamp(24px, 5vw, 76px); }
.wordmark { color: var(--navy); font-family: var(--serif); font-size: 1.85rem; font-weight: 600; text-decoration: none; }
.site-header nav, .site-footer nav { display: flex; gap: 32px; }
.site-header nav a, .site-footer nav a { color: var(--navy); font-weight: 600; text-decoration: none; }
.site-header nav a[aria-current="page"] { border-bottom: 2px solid var(--blue); padding-bottom: 8px; }

.hero { display: grid; gap: clamp(42px, 6vw, 88px); grid-template-columns: minmax(0, .85fr) minmax(600px, 1.45fr); padding-bottom: 72px; padding-top: 58px; }
.hero-copy > p:first-of-type { font-size: 1.12rem; max-width: 570px; }
.button { background: var(--blue); border: 0; border-radius: 3px; color: white; cursor: pointer; display: inline-block; font: 700 .98rem/1 var(--sans); margin: 12px 0; padding: 16px 22px; text-decoration: none; }
.button:hover { background: var(--blue-dark); color: white; }
.callback-fallback { border: 1px solid var(--line); display: block; font: .78rem/1.4 ui-monospace, Consolas, monospace; min-height: 96px; padding: 10px; resize: vertical; width: 100%; }
.callback-fallback[hidden] { display: none; }
.fine-print { color: var(--muted); font-size: .88rem; }
.purpose-panel { align-self: center; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.purpose-panel > div { padding: 28px 26px; }
.purpose-panel > div + div { border-left: 1px solid var(--line); }
.purpose-panel h2 { font-size: 1.15rem; }
.purpose-panel ul { margin: 0; padding-left: 20px; }
.purpose-panel li { margin-bottom: 10px; }

.band { background: var(--band); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.practices { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); padding-bottom: 42px; padding-top: 42px; }
.practices > div { padding: 0 28px; }
.practices > div:first-child { padding-left: 0; }
.practices > div + div { border-left: 1px solid var(--line); }
.practices h3 { color: var(--blue-dark); font-family: var(--serif); }
.practices p { font-size: .92rem; }

.support { align-items: start; display: grid; gap: 50px; grid-template-columns: 1.15fr .8fr 1fr; padding-bottom: 48px; padding-top: 48px; }
.support > div + div { border-left: 1px solid var(--line); padding-left: 48px; }
.site-footer { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: .88rem; justify-content: space-between; min-height: 76px; padding: 0 clamp(24px, 5vw, 76px); }
.site-footer p { margin: 0; }
.trademark-notice { color: var(--muted); font-size: .72rem; margin-top: 8px !important; max-width: 620px; }

.legal { padding-bottom: 80px; padding-top: 64px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.45rem; margin-top: 42px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal p { font-size: 1.03rem; }

.state-page { align-items: center; background: var(--band); display: flex; min-height: 100vh; padding: 24px; }
.state-card { background: var(--white); border: 1px solid var(--line); margin: auto; max-width: 680px; padding: clamp(32px, 6vw, 64px); width: 100%; }
.state-card h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 40px; }
.state-card h2 { font-size: 1.35rem; margin-top: 32px; }
.state-icon { align-items: center; background: var(--success); border-radius: 50%; color: white; display: flex; font-size: 1.35rem; height: 42px; justify-content: center; margin-top: 42px; width: 42px; }
.state-pending .state-icon { background: var(--muted); }
.state-error { border-color: #e5b6b9; }
.state-error .state-icon { background: var(--danger); }
.state-error .state-icon::before { content: "!"; }
.state-error .state-icon { font-size: 0; }
.state-error .state-icon::before { font-size: 1.35rem; }
.text-link { display: inline-block; font-weight: 700; margin-top: 20px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .purpose-panel { grid-template-columns: 1fr; }
  .purpose-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .practices { grid-template-columns: 1fr 1fr; }
  .practices > div { border-left: 0 !important; border-top: 1px solid var(--line); padding: 24px 0; }
  .practices > .section-intro { border-top: 0; grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; padding-top: 18px; }
  .site-header nav { flex-wrap: wrap; gap: 16px 24px; }
  .hero { padding-bottom: 44px; padding-top: 38px; }
  .practices, .support { grid-template-columns: 1fr; }
  .support > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 24px; padding-top: 24px; }
  .site-footer nav { flex-wrap: wrap; gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
