:root {
  --brand: #0f4c81;
  --brand-strong: #0b3a64;
  --brand-light: #e8f0f9;
  --accent: #14b8a6;
  --text: #1a2330;
  --muted: #5d6b7d;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --border: #e3e8ef;
  --max: 1100px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--brand-strong); }

code {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: var(--max-narrow);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--brand-light) 0%, #fff 100%);
  padding: 96px 0 80px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--brand-strong);
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, transform 0.05s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover { background: var(--brand-strong); color: #fff; }
.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section.alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: 32px;
  margin: 0 0 16px;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
}
.section h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
}
.section p {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 14px;
}
.section .note {
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 4px 14px;
  margin-top: 24px;
}

/* Steps */
.steps {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
  margin: 24px 0 0;
}
.steps li {
  counter-increment: step;
  padding: 14px 0 14px 56px;
  position: relative;
  border-top: 1px solid var(--border);
  font-size: 17px;
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Scopes */
.scopes {
  padding-left: 22px;
  margin: 16px 0 24px;
}
.scopes li {
  margin: 10px 0;
  font-size: 17px;
}

/* Callout */
.callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 8px;
  margin-top: 28px;
}
.callout h3 {
  margin-top: 0;
  color: var(--brand-strong);
  font-size: 18px;
}
.callout p { font-size: 16px; }
.callout ul { margin-top: 8px; }

/* Grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.card h3 { color: var(--brand-strong); }
.card p { font-size: 15px; margin: 0; color: var(--muted); }

/* Legal pages */
.legal {
  padding: 64px 0 80px;
}
.legal h1 {
  font-size: 40px;
  color: var(--brand-strong);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.legal h2 {
  font-size: 22px;
  color: var(--brand-strong);
  margin: 36px 0 10px;
}
.legal p, .legal li {
  font-size: 16px;
  color: var(--text);
}
.legal ul, .legal ol {
  padding-left: 22px;
}
.legal .muted {
  color: var(--muted);
  font-size: 14px;
}

/* Tables in legal */
.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 14px;
}
.data th, .data td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.data th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0c1623;
  color: #cbd5e1;
  padding: 48px 0 36px;
  margin-top: 0;
}
.foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 32px;
  align-items: center;
}
.foot-brand img { filter: brightness(0) invert(1); opacity: 0.92; }
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-self: end;
}
.foot-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}
.foot-links a:hover { color: #fff; }
.copy {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #94a3b8;
  margin: 8px 0 0;
}

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .legal h1 { font-size: 32px; }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}
