:root {
  color-scheme: light;
  --ink: #21304f;
  --muted: #5f6b82;
  --line: #d9dfeb;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --cedar: #996b4d;
  --accent: #2f6f61;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #202b3f;
  color: #f8ead3;
  font-size: 15px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.hero {
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cedar);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 36px 0 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.card,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(31, 42, 61, 0.06);
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 20px;
}

.card.featured {
  border-color: rgba(47, 111, 97, 0.5);
}

.plan-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  margin: 16px 0 4px;
  font-size: 34px;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #202b3f;
  border-radius: 8px;
  background: #202b3f;
  color: #ffffff;
  font-weight: 900;
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.section {
  margin-top: 18px;
  padding: 22px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

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

.table th {
  background: #f4f1eb;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

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

.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 24px;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.status-row.active .status-dot {
  background: var(--accent);
}

.status-row.error .status-dot {
  background: #bd3f3f;
}

.status-message {
  min-height: 48px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5f0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.checkout-code {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #202b3f;
  color: #f8ead3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 12px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

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

  .hero {
    padding-top: 30px;
  }
}
