:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --glow-1: rgba(47, 107, 255, 0.14);
  --glow-2: rgba(16, 185, 129, 0.1);
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #e3e7f0;
  --brand: #2f6bff;
  --brand-ink: #ffffff;
  --good: #047857;
  --good-bg: #e6f6ef;
  --danger: #c2410c;
  --ring: rgba(47, 107, 255, 0.35);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --glow-1: rgba(47, 107, 255, 0.22);
    --glow-2: rgba(16, 185, 129, 0.12);
    --surface: #121a2e;
    --surface-2: #1a2440;
    --text: #e8ecf6;
    --muted: #9aa4bb;
    --border: #243052;
    --brand: #5b8cff;
    --brand-ink: #0b1020;
    --good: #34d399;
    --good-bg: rgba(52, 211, 153, 0.12);
    --danger: #fb923c;
    --ring: rgba(91, 140, 255, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 90% -12%, var(--glow-1), transparent 60%),
    radial-gradient(900px 480px at -12% 108%, var(--glow-2), transparent 60%),
    var(--bg);
}

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

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

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

main {
  flex: 1;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-bg);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
}

/* Waitlist form */
.waitlist .row {
  display: flex;
  gap: 8px;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.waitlist button[type="submit"] {
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.waitlist button[type="submit"]:hover {
  filter: brightness(1.06);
}

.waitlist button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.status.ok {
  color: var(--good);
}

.status.error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Example card */
.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-weight: 700;
}

.card-meta {
  margin: 2px 0 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.badge {
  padding: 3px 10px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.offers {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.offers th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.offers td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.offers .num {
  text-align: right;
  white-space: nowrap;
}

.offers td:first-child {
  display: flex;
  align-items: center;
}

.cc {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  margin-right: 10px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.country {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}

.offers tr.best td {
  background: var(--good-bg);
}

.best-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--good);
}

.total {
  font-weight: 700;
}

.card-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}

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

.features h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.features p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

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

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

/* Text pages (privacy, 404) */
.prose {
  max-width: 720px;
  padding-block: 32px 64px;
}

.prose h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose .updated {
  margin-top: 0;
  font-size: 0.875rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 24px 40px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .waitlist .row {
    flex-direction: column;
  }

  /* In a column, flex: 1 would shrink the field's height to its content. */
  .waitlist input[type="email"] {
    flex: none;
  }

  .waitlist button[type="submit"] {
    width: 100%;
  }

  .offers th:nth-child(3),
  .offers td:nth-child(3) {
    display: none;
  }
}
