:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #fafaf9;
  --card: #ffffff;
  --accent: #1565c0;
  --accent-ink: #ffffff;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: inherit; }

.top, .hero, .section, footer, .prose {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 72px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

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

.hero { padding: 48px 0 8px; }

.section { padding: 48px 0 8px; }

.section-head {
  max-width: 40rem;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.03em; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.lead, .section-head p, .plan-for, .fine {
  color: var(--muted);
}

.lead {
  max-width: 40rem;
  margin: 18px 0 0;
  font-size: 18px;
}

.section-head p:last-child { margin: 12px 0 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button:hover { background: #0d47a1; }

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button-block { width: 100%; margin-top: 8px; }

.button-quiet {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover { background: #f5f5f4; }

.text-link {
  font-weight: 650;
  color: var(--ink);
}

.cards {
  display: grid;
  gap: 16px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.cards article, .plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.cards h3, .plan h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cards p, .plan p { margin: 0; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-featured { border-color: #93c5fd; box-shadow: inset 0 0 0 1px #93c5fd; }

.plan-tag {
  align-self: flex-start;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e3f2fd;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.price span {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.plan .button { margin-top: auto; }

.fine { margin: 16px 0 0; font-size: 14px; }

.fine a, .prose a, .check a { color: var(--accent); }

.faq { display: grid; gap: 8px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p { margin: 10px 0 0; color: var(--muted); }

.prose { padding: 36px 0 64px; }

.prose h1 {
  max-width: 18ch;
  font-size: clamp(32px, 5vw, 48px);
}

.prose h2 {
  margin-top: 28px;
  font-size: 22px;
}

.prose p { max-width: 42rem; }

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer nav { display: flex; gap: 16px; }
footer a { color: var(--ink); }

dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop { background: rgba(28, 25, 23, 0.48); }

.modal {
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

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

.modal h2 {
  margin: 0;
  font-size: 28px;
}

.modal-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.modal form, .modal-success {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

[hidden] { display: none !important; }

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }

.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.field textarea { min-height: 96px; resize: vertical; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}

.check input { margin-top: 3px; }

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  h1, .prose h1 { max-width: none; }
  footer { flex-direction: column; }
}
