/* Matches the app: the same colours, rounded type and soft cards (src/constants/theme.ts). */
:root {
  --ink: #0b0e2a;
  --ink-soft: #4a4f73;
  --ink-muted: #5f6488;
  --surface: rgba(255, 255, 255, 0.82);
  --inset: rgba(255, 255, 255, 0.6);
  --line: rgba(11, 14, 42, 0.08);
  --accent: #3d5afe;
  --success: #0e8f5f;
  --radius-card: 28px;
  --radius-inset: 22px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background-color: #4c62dc;
  background-image: linear-gradient(165deg, #d3d5e0 0%, #8e9ceb 48%, #4c62dc 100%);
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

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

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 15px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(11, 14, 42, 0.12);
}

.card + .card,
section + section {
  margin-top: 20px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
}

h2 {
  font-size: 28px;
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.lead {
  font-size: 19px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.badge:hover {
  text-decoration: none;
}

/* A drawing of the app's bridge screen. The numbers are only an example. */
.mock {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(11, 14, 42, 0.25);
}

.mock-inset {
  background: var(--inset);
  border-radius: var(--radius-inset);
  padding: 14px 16px;
}

.mock-token {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.mock-token + .mock-token {
  border-top: 1px solid var(--line);
}

.coin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2775ca;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.mock-token strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.mock-token span {
  font-size: 14px;
  color: var(--ink-muted);
}

.mock-amount {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.mock-route {
  border: 2px solid var(--accent);
}

.route-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

.route-head .spacer {
  flex: 1;
}

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.best {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 143, 95, 0.12);
  color: var(--success);
  font-weight: 800;
}

.receive {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 700;
}

.chips {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--line);
}

.chips .more {
  margin-left: auto;
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 800;
}

.mock-button {
  padding: 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-weight: 800;
}

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tile {
  background: var(--inset);
  border-radius: var(--radius-inset);
  padding: 20px;
}

.tile p {
  margin: 0;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--inset);
  font-weight: 700;
}

/* Long text pages: privacy and support */
.doc h2 {
  margin-top: 32px;
  font-size: 22px;
}

.doc h3 {
  margin-top: 20px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-soft);
}

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

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}

.doc th {
  color: var(--ink);
}

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

.note {
  background: var(--inset);
  border-radius: var(--radius-inset);
  padding: 16px 20px;
  margin: 16px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--ink-muted);
  font-size: 14px;
}

details {
  background: var(--inset);
  border-radius: var(--radius-inset);
  padding: 14px 20px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}

details[open] summary {
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .hero,
  .grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .brand {
    font-size: 20px;
  }

  .nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .card {
    padding: 24px 20px;
  }

  .lead {
    font-size: 17px;
  }
}
