:root {
  --bg: #0b1020;
  --panel: #121a30;
  --line: #24304f;
  --text: #e8ecf6;
  --muted: #9aa6c3;
  --accent: #4fd1c5;
  --accent-ink: #062a27;
  --error: #f87171;
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --line: #dde3ef;
    --text: #111a2e;
    --muted: #55607a;
    --accent: #0f9488;
    --accent-ink: #ffffff;
    --error: #c62828;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

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

main, .top, footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo.small { font-size: 17px; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 72px 0 64px; }

h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 12px 0 18px;
  max-width: 14em;
}

h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.3px; }
section > h2 { font-size: 30px; margin-bottom: 24px; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.3px; }

.lead { font-size: 20px; color: var(--muted); max-width: 36em; }
.intro { color: var(--muted); max-width: 46em; margin: -12px 0 28px; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

.badge {
  display: inline-block;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.grid, .options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.grid article, .options article, .plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.grid p, .options p, .plan li, .split p { color: var(--muted); }
.grid p { margin: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

.options article { display: flex; flex-direction: column; }
.options p { margin: 0 0 12px; }
.options .how strong { color: var(--text); }
.options .tag {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.options .fit { margin: auto 0 0; color: var(--text); font-size: 15px; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.split h2 { font-size: 30px; margin-top: 0; }

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 16px; color: var(--muted); }
.steps strong { color: var(--text); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  margin: 24px 0 0;
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }
:not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--line);
  color: var(--text);
}
pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 15px;
  line-height: 1.5;
}
.split .code-label { margin: 4px 0 8px; font-size: 15px; }

.contact {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.contact label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.contact .optional { color: var(--muted); font-weight: 400; }
.contact input, .contact select, .contact textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact select:focus, .contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact button { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.contact button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 1.6em; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.error { color: var(--error); }
.hidden { display: none; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.plan h3 { margin: 0; font-size: 18px; }
.plan.featured { border-color: var(--accent); }
.price { font-size: 40px; font-weight: 800; margin: 8px 0 12px; letter-spacing: -1px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; }

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--panel);
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 48px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .top { flex-direction: column; align-items: flex-start; }
}
