:root {
  --bg: #fbfbfa; --side: #f5f5f4; --surface: #ffffff; --hover: #ececea; --border: #e5e4e2;
  --text: #1c1b1a; --sub: #6e6b68; --dim: #a09d99; --primary: #1c1b1a; --on-primary: #fafaf9;
  --green: #348258; --red: #be402c; --amber: #b0791e;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616; --side: #1c1c1c; --surface: #202020; --hover: #2a2a2a; --border: #303030;
    --text: #ececec; --sub: #9c9c9c; --dim: #696969; --primary: #ececec; --on-primary: #161616;
    --green: #6ebe8c; --red: #e47864; --amber: #d6aa5a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; }

nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border); }
nav .wrap { display: flex; align-items: center; height: 56px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav .links a { text-decoration: none; color: var(--sub); font-size: 14px; }
nav .links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 8px; font: 600 14px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background .15s, opacity .15s; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: .88; background: var(--primary); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
nav .btn { height: 34px; font-size: 13px; }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 12px; }
.sub { color: var(--sub); }
.dim { color: var(--dim); font-size: 13px; }
.lead { font-size: 18px; color: var(--sub); max-width: 560px; }

.hero { padding: 88px 0 40px; text-align: center; }
.hero .lead { margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.shot { margin: 56px auto 0; max-width: 1000px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 600px; margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.features .num { font-size: 13px; color: var(--dim); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.features p { color: var(--sub); font-size: 14.5px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.gallery figure { margin: 0; }
.gallery .shot { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--sub); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.plan { position: relative; display: block; cursor: pointer; padding: 22px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--dim); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.plan .name { font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.plan .tag { font-size: 12px; font-weight: 500; color: var(--sub); border: 1px solid var(--border); padding: 2px 8px; border-radius: 20px; }
.plan .price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan .per { color: var(--sub); font-size: 14px; margin-top: 8px; }

.buy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--text); }
.field input.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.field .hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.error { color: var(--red); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 40px; color: var(--sub); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; color: var(--text); background: var(--surface); }
.steps b { color: var(--text); font-weight: 600; display: block; }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--sub); margin: 10px 0 0; }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.keybox { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.6; word-break: break-all;
  background: var(--side); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 16px 0 12px; user-select: all; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; }
.status.ok i { background: var(--green); } .status.fail i { background: var(--red); } .status.wait i { background: var(--amber); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--text); border-radius: 50%;
  animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { background: var(--side); border: 1px dashed var(--dim); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--sub); margin-bottom: 18px; }
.rows { margin: 12px 0 20px; } .rows div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rows div span:first-child { color: var(--sub); }
.page { padding: 72px 0 96px; }
.doc h2 { font-size: 20px; margin-top: 32px; } .doc p, .doc li { color: var(--sub); }

@media (max-width: 860px) {
  .features, .plans { grid-template-columns: 1fr; }
  .gallery, .buy { grid-template-columns: 1fr; }
  nav .links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 60px 0; }
}

.compare { width: 100%; border-collapse: collapse; margin: 0 0 40px; font-size: 14.5px; }
.compare th { text-align: left; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); }
.compare td { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--sub); }
.compare td:first-child { color: var(--text); }
.compare th:not(:first-child), .compare td:not(:first-child) { width: 160px; text-align: center; }
@media (max-width: 860px) { .compare th:not(:first-child), .compare td:not(:first-child) { width: 90px; } }
