:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b70;
  --line: #e6e6e9;
  --panel: #f6f6f7;
  --red: #dc2626;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* ── header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav a.btn, .nav a.btn:hover { color: #fff; }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .brand small { display: none; } }

/* ── buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--fg); background: var(--fg); color: #fff;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.secondary:hover { background: var(--panel); opacity: 1; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; cursor: default; }

/* Download buttons: black two-line pills like store badges. */
.dl-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.06s ease, box-shadow 0.15s ease;
}
.dl-btn:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 32px rgba(0, 0, 0, 0.26); }
.dl-btn:active { transform: scale(0.98); }
.dl-btn svg { width: 30px; height: 30px; flex: none; }
.dl-btn span { display: flex; flex-direction: column; line-height: 1.05; }
.dl-btn small { font-size: 11px; opacity: 0.8; letter-spacing: 0.01em; }
.dl-btn strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* ── hero ───────────────────────────────── */
.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hero .icon { width: 108px; height: 108px; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; max-width: 820px; margin: 0 auto; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.cta .btn { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* macOS window frame around screenshots */
.window {
  margin: 48px auto 0; max-width: 1040px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.window .bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #ececee; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; background: #d4d4d8; }
.window .bar i:nth-child(1) { background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }

/* ── sections ───────────────────────────── */
section { padding: 72px 0; }
section.alt { background: var(--panel); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.step img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border-bottom: 1px solid var(--line); }
.step div { padding: 18px 20px 22px; }
.step b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 10px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; max-width: 860px; margin: 0 auto; }
.feature { display: flex; gap: 14px; }
.feature svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.price-card {
  max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}
.price-card h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.price-card li { padding: 8px 0 8px 28px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(-45deg); }
.price-card .btn { width: 100%; height: 52px; border-radius: 14px; }

.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ── footer ─────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ── simple pages (thanks, key, download, legal) ── */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.page .lead { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card + .card { margin-top: 16px; }
/* Mac and Windows side by side; the visitor's own system first (site.js). */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-grid + .card, .card + .dl-grid { margin-top: 16px; }
.install-head { font-size: 22px; margin: 36px 0 14px; }
.dl-grid .card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.dl-grid h2 { margin-bottom: 4px; }
.dl-grid .sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.os-windows .dl-grid .win { order: -1; }

.key-box {
  font: 600 clamp(20px, 4.4vw, 30px)/1.2 var(--mono); letter-spacing: 0.04em;
  background: var(--panel); border: 1px dashed #c9c9cf; border-radius: 12px;
  padding: 20px; text-align: center; user-select: all; word-break: break-all;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
ol.how { padding-left: 22px; margin: 12px 0 0; }
ol.how li { margin: 8px 0; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.error { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }

label.field { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  font: 16px var(--font); background: #fff; color: var(--fg);
}
input.input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }

.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: #333; }
.legal p + p { margin-top: 10px; }

.hidden { display: none !important; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
