:root {
  --fg: #111; --muted: #777; --line: #e6e6e6; --bg: #fff; --soft: #f6f6f4;
  --accent: #111; --green: #18864b; --red: #c62828; --r: 10px;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: #bbb; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 28px 0 18px; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 36px 0 12px; }
code { font: 14px ui-monospace, Consolas, monospace; background: var(--soft); padding: 2px 6px; border-radius: 5px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 650; text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 4px; background: var(--fg); display: inline-block; }
nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav a { text-decoration: none; color: #444; }
nav a:hover { color: var(--fg); }
.inline { display: inline; margin: 0; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px;
  padding: 10px 18px; font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--fg); border-color: #ccc; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.wide { display: block; width: 100%; text-align: center; }
.btn.red { background: var(--red); border-color: var(--red); }
.link { background: none; border: 0; padding: 0; font: inherit; color: #444; cursor: pointer; text-decoration: underline; text-decoration-color: #bbb; }

.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); margin: 0 0 20px; letter-spacing: -.035em; }
.lead { font-size: 19px; color: #444; max-width: 620px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.green { color: var(--green); }
.red { color: var(--red); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features p { margin: 6px 0 0; color: #555; font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.plan.hot { border-color: var(--fg); }
.pname { font-weight: 600; }
.price { font-size: 32px; font-weight: 650; letter-spacing: -.02em; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 12px 0 20px; color: #555; font-size: 15px; flex: 1; }
.plan li { padding: 3px 0; }
.pick .plan { cursor: pointer; position: relative; }
.pick .plan input { position: absolute; opacity: 0; }
.pick .plan:has(input:checked) { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.how ol { padding-left: 22px; color: #444; }
.how li { padding: 4px 0; }

.card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 16px; }
.card > b { display: block; margin-bottom: 8px; }
.card.narrow { max-width: 400px; margin: 48px auto; }
.card.narrow h1 { margin-top: 0; font-size: 26px; }
.narrow-left { max-width: 420px; }
.card.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.card.secret { background: #fffbe6; border-color: #f0dc8c; }
.card.danger { border-color: #f1c6c6; }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose p { color: #333; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid2 .card, .grid4 .card { margin: 0; }
.grid2 { margin-bottom: 16px; }
.big { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 2px 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.tight { gap: 4px; flex-wrap: nowrap; }

label { display: block; font-size: 14px; color: #444; margin: 0 0 14px; }
label input { margin-top: 5px; }
input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; font: inherit; padding: 9px 12px; border: 1px solid #d4d4d4;
  border-radius: 8px; background: #fff; color: var(--fg); }
.row input { width: auto; flex: 1; min-width: 90px; display: inline-block; }
input:focus { outline: 2px solid #111; outline-offset: -1px; border-color: #111; }
label.check { display: flex; gap: 8px; align-items: center; }
input:disabled { background: var(--soft); color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; background: #eef8f1; color: #155d36; }
.flash.err { background: #fdeeee; color: #8e1f1f; }

table.list { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.list th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
.list td { border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; vertical-align: top; }
.list.small td { padding: 8px 10px 8px 0; }
.kv { border-collapse: collapse; }
.kv td { padding: 5px 16px 5px 0; vertical-align: top; }
.kv td:first-child { color: var(--muted); white-space: nowrap; }
.badge { font-size: 13px; padding: 2px 8px; border-radius: 20px; background: var(--soft); white-space: nowrap; }
.badge.ok { background: #e7f5ec; color: var(--green); }
.badge.err { background: #fdeeee; color: var(--red); }
.badge.wait { background: #fff6dd; color: #8a6500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 20px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--fg); border-color: var(--fg); }
.tabs.sub { border: 0; margin-top: -8px; }
.tabs.sub a { font-size: 14px; padding: 6px 10px; border: 0; border-radius: 6px; }
.tabs.sub a.on { background: var(--soft); }
pre.log { background: #111; color: #ddd; padding: 16px; border-radius: var(--r); font-size: 12.5px; overflow: auto; max-height: 520px; white-space: pre-wrap; word-break: break-all; }
code.copy { cursor: pointer; }
code.copy.done { background: #e7f5ec; }
code.spoiler:not(.show) { color: transparent; text-shadow: 0 0 7px #333; }

.foot { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-top: 48px; padding-bottom: 32px; margin-top: 48px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

@media (max-width: 600px) {
  nav { gap: 12px; font-size: 14px; }
  nav .btn.sm { display: none; }
  .hero { padding: 40px 0 24px; }
  .list th:nth-child(2), .list td:nth-child(2) { display: none; }
  .list.small td:nth-child(2) { display: table-cell; }
}
