:root {
  color-scheme: light;
  --ink: #10213b;
  --muted: #526178;
  --line: #dbe3ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --brand: #2358d4;
  --brand-dark: #173f9b;
  --accent: #e6efff;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--brand-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
a:focus-visible, .button:focus-visible { outline: 3px solid #ffbf47; outline-offset: 4px; }

.site-header, footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand-icon { display: block; width: 48px; height: 48px; border-radius: 13px; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { padding: 104px 0 72px; max-width: 820px; }
.eyebrow, .step-label { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin-top: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 7vw, 5.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; text-decoration: none; }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { color: #fff; background: var(--brand-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--paper); }
.button-full { width: 100%; margin-top: 16px; }

.card-grid, .process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card, .request-card, .detail-card, .process-grid article { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 16px 50px rgba(26, 48, 83, .07); }
.card { padding: 34px; }
.card-number { color: var(--brand); font-weight: 800; }
.card p:not(.card-number) { color: var(--muted); }
.text-link { font-weight: 750; }

.contact-band { margin: 72px 0; padding: 34px 38px; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; }
.contact-band h2 { margin: 0; }
.contact-band a { color: #fff; font-weight: 750; overflow-wrap: anywhere; }
.contact-band .eyebrow { color: #9fbcff; }
.contact-band.compact { margin-top: 32px; }

.document-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(48px, 8vw, 110px); padding: 84px 0; }
.document-summary { align-self: start; position: sticky; top: 30px; }
.document-summary h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.document-summary > p:not(.eyebrow) { color: var(--muted); }
.summary-note { margin-top: 38px; padding: 24px; border-left: 4px solid var(--brand); background: var(--accent); }
.summary-note p { margin-bottom: 0; }
.document-content section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.document-content section:last-child { border-bottom: 0; }
.document-content p, .document-content li { color: #314159; }
.document-content li + li { margin-top: 10px; }

.request-layout { padding: 84px 0 72px; }
.request-intro { max-width: 850px; margin-bottom: 48px; }
.request-intro h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); }
.request-card, .detail-card { padding: clamp(28px, 5vw, 52px); }
.request-card { max-width: 780px; }
.email-fallback { color: var(--muted); font-size: 15px; }
.process-grid { margin: 24px 0; }
.process-grid article { padding: 32px; }
.process-grid p:last-child, .detail-card p { color: var(--muted); }

footer { min-height: 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .hero { padding-top: 72px; }
  .card-grid, .process-grid, .document-layout { grid-template-columns: 1fr; }
  .document-summary { position: static; }
  .contact-band, footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  footer { padding: 28px 0; gap: 4px; }
  footer p { margin: 0; }
}

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