:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #1f6fff;
  --accent-2: #4aa3ff;
  --accent-ink: #ffffff;
  --ok: #2fb35b;
  --warn: #c7730a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(16, 40, 90, 0.10);
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0e;
    --bg-alt: #141418;
    --card: #1b1b20;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #3d86ff;
    --accent-2: #69b4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-soon { background: var(--card); color: var(--text); border: 1px solid var(--line); cursor: default; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 26px; filter: drop-shadow(0 16px 30px rgba(31, 111, 255, 0.28)); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 auto 18px; max-width: 14ch; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 40ch; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* App window mock */
.window {
  margin: 56px auto 0; max-width: 900px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.titlebar .title { margin-left: 10px; font-size: 13px; font-weight: 600; }
.titlebar .sub { color: var(--muted); font-weight: 400; margin-left: 6px; }
.titlebar .status { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--bg-alt); padding: 4px 10px; border-radius: 999px; }
.win-body { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; }
.sidebar { background: var(--bg-alt); padding: 14px 10px; font-size: 13px; }
.sidebar .label { color: var(--muted); font-size: 11px; font-weight: 600; margin: 0 8px 6px; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; }
.side-item.on { background: var(--accent); color: #fff; }
.side-item .n { margin-left: auto; opacity: 0.75; font-size: 12px; }
.side-ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--accent-2); }
.side-item.on .side-ico { background: rgba(255,255,255,0.25); }
.main { padding: 18px 20px; }
.main-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.big-ico { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(160deg, var(--accent-2), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 20px; }
.main-head h3 { margin: 0; font-size: 20px; }
.main-head p { margin: 0; color: var(--muted); font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); position: relative; }
.check.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.file { flex: 1; min-width: 0; }
.file b { display: block; font-weight: 600; }
.file span { color: var(--muted); font-size: 12px; }
.size { text-align: right; font-weight: 600; }
.size span { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: var(--bg-alt); border-radius: 12px; font-size: 12px; }
.bar .pill { margin-left: auto; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
@media (max-width: 720px) {
  .win-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

@media (max-width: 860px) { .steps, .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .grid { grid-template-columns: 1fr; } }

.safety { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.safety ul { list-style: none; padding: 0; margin: 0; }
.safety li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.safety li:first-child { border-top: 0; }
.safety li svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.safety li b { display: block; }
.safety li span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 22px; }
.price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .desc { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 15.5px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final img { width: 84px; height: 84px; margin: 0 auto 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Document pages (privacy, terms, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); max-width: none; margin-bottom: 8px; text-align: left; }
.doc .updated { color: var(--muted); margin: 0 0 34px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 26px 0; box-shadow: var(--shadow); }
.contact-card div { flex: 1; min-width: 200px; }
.contact-card b { display: block; font-size: 18px; }
.contact-card span { color: var(--muted); }
