:root {
  --bg: #f6f5f2; --surface: #ffffff; --fg: #17171c; --muted: #5d5f6b; --line: #e3e1db;
  --brand: #5b3fd6; --brand-ink: #ffffff; --brand-soft: #ece8fd; --accent: #f5a524; --ok: #1f8a4c;
  --radius: 14px; --shadow: 0 10px 30px rgba(20, 16, 50, .10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1016; --surface: #181a22; --fg: #eef0f5; --muted: #a2a7b5; --line: #2a2d38; --brand: #8b74ff; --brand-soft: #231f3d; --shadow: 0 10px 30px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-style: normal; font-size: .95rem; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .top nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; min-height: 44px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn.small { padding: 8px 14px; min-height: 36px; font-size: .92rem; }
.top nav .btn.primary { color: var(--brand-ink); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: .85rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 16px 0; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.fine { font-size: .88rem; color: var(--muted); }
.phones { display: flex; gap: 16px; justify-content: center; }
.phone { border-radius: 28px; border: 8px solid #15151b; background: #15151b; box-shadow: var(--shadow); overflow: hidden; width: 230px; }
.phone.tilt { transform: translateY(36px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 46%; max-width: 220px; }
}

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 10px; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; border-width: 6px; border-radius: 22px; }
.shots figcaption { margin-top: 10px; font-weight: 600; text-align: center; }
.shots figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 6px 0 16px; padding-left: 20px; color: var(--muted); }
.plan .btn { margin-top: auto; }

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

/* final cta + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* prose pages */
.prose { max-width: 760px; padding: 48px 16px 64px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.note { background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; color: var(--fg); }
.flow { display: grid; gap: 14px; margin: 20px 0; }
.flow .card { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.mt { margin-top: 24px; }
.center { margin: 0 auto 8px; }
.plans.single { grid-template-columns: minmax(0, 520px); justify-content: center; }
