:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --fg: #172033;
  --muted: #56617a;
  --line: #e2e7f0;
  --accent: #1f4fb8;
  --accent-fg: #ffffff;
  --accent-soft: #e8efff;
  --red: #c62828;
  --yellow: #b26a00;
  --green: #2e7d32;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1322;
    --surface: #161d31;
    --fg: #e9eefb;
    --muted: #a3aec7;
    --line: #26304a;
    --accent: #7ea2ff;
    --accent-fg: #0e1322;
    --accent-soft: #1d2947;
    --red: #ff7a7a;
    --yellow: #ffc15e;
    --green: #6fd08c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--fg); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--fg); }
@media (max-width: 720px) { nav { display: none; } }

.btn {
  display: inline-block; padding: 14px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.mock .status { display: flex; gap: 14px; align-items: center; border-left: 6px solid var(--red); padding-left: 14px; margin-bottom: 18px; }
.mock .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--red); flex: none; }
.mock .status strong { color: var(--red); display: block; }
.mock .status span { color: var(--muted); font-size: 14px; }
.mock ul { list-style: none; padding: 0; margin: 0; }
.mock li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 8px; color: #fff; white-space: nowrap; }
.pill.red { background: var(--red); } .pill.yellow { background: var(--yellow); } .pill.green { background: var(--green); }
@media (prefers-color-scheme: dark) { .pill { color: #0e1322; } }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 12px; letter-spacing: -.01em; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .two { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%231f4fb8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.prices .card { display: flex; flex-direction: column; }
.prices .price { font-size: 30px; font-weight: 700; margin: 6px 0 4px; }
.prices .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.prices ul { padding-left: 18px; margin: 12px 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.prices .featured { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 8px; align-self: flex-start; }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; }
.template {
  display: flex; gap: 10px; align-items: stretch; max-width: 640px; margin: 24px auto 0;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 12px; text-align: left;
}
.template code { flex: 1; font: 15px/1.5 inherit; font-family: inherit; color: var(--muted); }
.template button { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 8px; padding: 0 14px; cursor: pointer; font: inherit; font-size: 14px; }
@media (max-width: 560px) { .template { flex-direction: column; } .template button { padding: 8px; } }

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

pre.code {
  position: relative; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  background: #0f1628; color: #e6ecff; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid var(--line);
}
pre.code .c { color: #8a97b8; }
.code-wrap { position: relative; }
.code-wrap pre.code { padding-top: 42px; }
.code-wrap button {
  position: absolute; top: 8px; right: 8px; border: 1px solid #2c3a5c; background: #18223b; color: #cbd6f5;
  border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer;
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.soon { border: 2px dashed var(--accent); }
.badge-soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; }
.free-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 880px) { .free-vs { grid-template-columns: 1fr; } }
.free-vs .card h3 { font-size: 20px; }
.free-vs ul { padding-left: 18px; color: var(--muted); font-size: 15px; margin: 12px 0 18px; }
.free-vs .price { font-size: 26px; font-weight: 700; margin: 4px 0; }
.free-vs .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.lang-switch {
  margin-left: 16px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--accent); }
header.top nav { margin-left: auto; }
.logo-fill { color: var(--accent); }
.run-title { margin: 28px 0 10px; }
.sub.flush { margin: 0; }
.card-title { margin-top: 12px; }
