:root {
  --bg: #f7f7fb;
  --bg-2: #eef0fb;
  --fg: #14152b;
  --muted: #5b5d78;
  --line: #e2e4f0;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-fg: #ffffff;
  --ok: #15803d;
  --amazon: #f59e0b;
  --kindle: #2f855a;
  --trello: #c05621;
  --shadow: 0 1px 2px rgba(20, 21, 43, .05), 0 12px 32px -12px rgba(20, 21, 43, .18);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f1a; --bg-2: #151733; --fg: #ecedf7; --muted: #a2a4c0; --line: #262842;
    --card: #171930; --accent: #8b85ff; --accent-2: #b38cff; --accent-fg: #0e0f1a; --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  }
}
* { 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, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; color: var(--fg); letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-size: 16px; box-shadow: 0 4px 12px -4px var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--fg); }
@media (max-width: 560px) { nav a { margin-left: 12px; font-size: 14px; } }

main { padding: 0 0 72px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.section { padding: 72px 0 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* hero */
.hero { padding: 72px 0 24px; background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(800px 400px at 0% 10%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); margin: 0 0 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.trust span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.browsers { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); background: var(--card); text-decoration: none; font-weight: 650; cursor: pointer; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px var(--accent); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }

/* hero visual: three stacked result cards */
.stack { position: relative; min-height: 560px; }
.stack .win { position: absolute; width: 78%; }
.stack .win:nth-child(1) { top: 0; right: 0; transform: rotate(2deg); }
.stack .win:nth-child(2) { top: 130px; left: 0; transform: rotate(-2deg); z-index: 2; }
.stack .win:nth-child(3) { top: 290px; right: 4%; transform: rotate(1deg); z-index: 3; }
@media (max-width: 900px) { .stack { min-height: 0; display: grid; gap: 16px; } .stack .win { position: static; width: 100%; transform: none !important; } }

/* "window" mock */
.win { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.win .bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.win .dots { display: flex; gap: 5px; }
.win .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.win .body { padding: 12px 14px; }
.win table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.win th, .win td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.win th { color: var(--muted); font-weight: 600; }
.win tr:last-child td { border-bottom: 0; }
.win .file { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-family: var(--mono); font-size: 12px; }
.win .file b { font-family: system-ui, sans-serif; font-size: 10px; color: #fff; background: #dc2626; border-radius: 4px; padding: 1px 5px; }
.win pre { margin: 0; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; color: var(--fg); }
.win pre .h { color: var(--accent); font-weight: 700; }
.win pre .q { color: var(--muted); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag.g { background: #dcfce7; color: #166534; } .tag.y { background: #fef3c7; color: #92400e; } .tag.r { background: #fee2e2; color: #991b1b; } .tag.b { background: #e0e7ff; color: #3730a3; }

/* products */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); margin-bottom: 28px; }
.product.flip .info { order: 2; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; padding: 24px; gap: 24px; } .product.flip .info { order: 0; } }
.product .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product .head img { width: 52px; height: 52px; border-radius: 14px; }
.product h3 { font-size: 26px; margin: 0; }
.product .for { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product .tagline { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); }
.ticks li::after { content: "✓"; position: absolute; left: 4px; top: 0; font-size: 12px; font-weight: 900; color: var(--ok); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.price-row .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.price-row .sub { color: var(--muted); font-size: 14px; }
.free-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* steps / privacy / faq */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tile .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 14px; }
.tile .ico { font-size: 26px; margin-bottom: 10px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--bg-2); font-size: 14px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--muted); }
.table-scroll { overflow-x: auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; }
details p { color: var(--muted); margin: 10px 0 0; }

.final { margin-top: 72px; text-align: center; padding: 48px 24px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.final h2 { color: #fff; }
.final p { opacity: .9; margin: 0 0 22px; }
.final .btn { background: #fff; color: #1e1b4b; border-color: transparent; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 18px; }
footer p { margin: 12px 0 0; }

/* legal + checkout pages */
.doc { max-width: 760px; padding-top: 48px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 12px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.lead { color: var(--muted); font-size: 18px; }
.note { font-size: 14px; color: var(--muted); }
.key { font: 600 18px/1.4 var(--mono); background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 16px; word-break: break-all; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
code { font-size: .9em; }
.win .body { overflow-x: auto; }
.demo, .stack, .info { min-width: 0; }
@media (max-width: 560px) { .win th, .win td { padding: 4px; font-size: 11.5px; } .hero { padding-top: 40px; } }
.brand .logo { width: 30px; height: 30px; }
