:root {
  --navy: #0b1f33;
  --navy-2: #13304d;
  --amber: #f5a524;
  --amber-dark: #c77d00;
  --ink: #1b2733;
  --muted: #4a5868;
  --line: #d9e0e7;
  --bg-alt: #f3f6f9;
  --link: #0b5cad;
  --radius: 10px;
  --max: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--amber); color: var(--navy);
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-block; padding: .75rem 1.35rem; border: 2px solid var(--amber);
  border-radius: var(--radius); background: var(--amber); color: var(--navy);
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.button:hover { background: #ffb940; border-color: #ffb940; }
.button-small { padding: .45rem .95rem; font-size: .95rem; }
.button-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.button-ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { display: block; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  .site-nav { order: 3; width: 100%; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #e8eef4; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
@media (min-width: 52rem) { .hero-inner { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { color: #fff; }
.eyebrow { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.lead { font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.status-note { font-size: .92rem; color: #c3d0dc; max-width: 34rem; }
.hero-art { display: block; width: 100%; border-radius: var(--radius); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #e8eef4; }
.section-dark h2 { color: #fff; }

.feature-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.card { border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 1.4rem 1.4rem .6rem; background: #fff; }
.card p { color: var(--muted); }

.steps {
  list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.steps li { counter-increment: step; position: relative; padding: 3.6rem 1.25rem .5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; top: 1.1rem; left: 1.25rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700;
}
.steps p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: 1.5rem; }
.footer-inner p { margin: 0; }

/* Legal pages */
.legal { padding-block: 2.5rem 4rem; max-width: 50rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { margin-top: 1.6rem; }
.legal blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--amber-dark); background: var(--bg-alt); }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal ul, .legal ol { padding-left: 1.5rem; margin: 0 0 1em; }
.legal li > ul, .legal li > ol { margin: .25em 0; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-alt); padding: .05em .3em; border-radius: 4px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }

/* 404 */
.not-found { padding-block: 5rem; }
