:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --text: #1c1830;
  --muted: #5d5878;
  --border: #dcd7ee;
  --primary: #5b46d6;
  --primary-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101f;
    --surface: #1b1830;
    --text: #efedfb;
    --muted: #a7a1c4;
    --border: #35305a;
    --primary: #8f7cff;
    --primary-contrast: #12101f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--primary);
}

header,
main,
footer {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  margin: 24px 0 12px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.card h3 {
  margin-top: 0;
}

/* A wide pricing table scrolls sideways on a phone instead of squeezing its columns. */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--muted);
  font-weight: 600;
}

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

footer {
  margin-top: 56px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  margin-right: 16px;
}

ul {
  padding-left: 22px;
}

@media (max-width: 480px) {
  nav a {
    margin-left: 0;
    margin-right: 14px;
  }
}
