@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

/* Brand palette: Midnight #0F1E3D, Azure #2B4F8E, Steel #5D6876, Loop #4A6696 (dark #5C7DBD),
 * Paper #FFFFFF / #EEF1F5. */
:root {
  --bg: #ffffff;
  --surface: #eef1f5;
  --border: #dde2ea;
  --text: #0f1e3d;
  --muted: #5d6876;
  --accent: #2b4f8e;
  --accent-strong: #0f1e3d;
  --accent-soft: #e4eaf4;
  --button: #2b4f8e;
  --button-hover: #0f1e3d;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1429;
    --surface: #0f1e3d;
    --border: #223354;
    --text: #eef1f5;
    --muted: #a5afbe;
    /* Loop dark (#5C7DBD) is under 4.5:1 on this background for body links; one step lighter. */
    --accent: #7d98cc;
    --accent-strong: #a9bce0;
    --accent-soft: #16294d;
    --button: #2b4f8e;
    --button-hover: #4a6696;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-strong);
}

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .brand {
    font-size: 15px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  flex: 1;
}

/* Landing */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px auto 16px;
  max-width: 760px;
  font-size: clamp(32px, 5.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.lede {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.button:hover {
  background: var(--surface);
  color: var(--text);
}

.button.primary {
  background: var(--button);
  border-color: transparent;
  color: #ffffff;
}

.button.primary:hover {
  background: var(--button-hover);
  color: #ffffff;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 680px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal h1 {
  margin: 0 0 4px;
  font-size: 36px;
  letter-spacing: -0.01em;
}

.legal .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 17px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}

.callout p {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 20px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
