/* Shared styles for the public pages (download, pricing). */
@font-face { font-family: Geist; src: url(src/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(src/fonts/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --bg: #f6f6f4; --surface: #fff; --text: #16171a; --muted: #585c65; --line: #d9d9d4; --accent: #2b2b31; --dot: #b87a38; --mark-1: #d6a458; --mark-2: #a8712f; --mark-3: #6f4520; --code: #f0f0ec; --accent-bg: #3d3d45; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0c0d10; --surface: #16181c; --text: #f2f3f5; --muted: #a9aeb8; --line: #2e3137; --accent: #e4e4e8; --accent-bg: #55555e; --on-accent: #ffffff; --dot: #e3b574; --mark-1: #f4d292; --mark-2: #c98f4f; --mark-3: #8a5829; --code: #1d2025; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0c0d10; --surface: #16181c; --text: #f2f3f5; --muted: #a9aeb8; --line: #2e3137; --accent: #e4e4e8; --accent-bg: #55555e; --on-accent: #ffffff; --dot: #e3b574; --mark-1: #f4d292; --mark-2: #c98f4f; --mark-3: #8a5829; --code: #1d2025; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Geist, system-ui, sans-serif; }
a { color: inherit; }
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 16px 64px; }
header { display: flex; align-items: center; gap: 10px; font-weight: 650; }
header svg { width: 22px; height: 22px; }
header nav { margin-left: auto; display: flex; gap: 18px; font-weight: 500; font-size: 14px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--text); }
.dot { color: var(--dot); }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin: 56px 0 10px; }
.lede { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 28px; }
.primary { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 3px; background: var(--accent-bg); color: var(--on-accent, #fff); text-decoration: none; font-weight: 600; }
.primary small { font-weight: 450; }
.ver { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.card.me { border-color: var(--accent); }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.card p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.card .first-open { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; }
.card a.f { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.card a.f span { color: var(--muted); font-size: 12.5px; }
.card a.f:hover b { color: var(--accent); }
.cmd { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; padding: 10px 12px; border-radius: 3px; background: var(--code); font: 12.5px/1.4 'Geist Mono', ui-monospace, monospace; overflow-x: auto; }
.cmd code { flex: 1; white-space: nowrap; }
.cmd button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 3px; padding: 4px 9px; font: inherit; font-family: Geist, system-ui, sans-serif; cursor: pointer; }
.notes { margin-top: 44px; color: var(--muted); font-size: 13.5px; }
.notes h3 { color: var(--text); font-size: 14px; margin: 18px 0 4px; }
footer { margin-top: 56px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
/* pricing */
.toggle { display: inline-flex; padding: 3px; border-radius: 3px; background: var(--code); margin: 8px 0 20px; }
.toggle button { border: none; background: none; color: var(--muted); font: 550 13px Geist, system-ui, sans-serif; padding: 7px 14px; border-radius: 3px; cursor: pointer; }
.toggle button.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.plan.featured { border-color: var(--accent); box-shadow: inset 0 2px 0 var(--dot); }
.plan h2 { font-size: 16px; margin: 0; display: flex; gap: 8px; align-items: center; }
.plan .tag { font-size: 11px; font-weight: 650; color: var(--on-accent, #fff); background: var(--accent-bg); padding: 2px 8px; border-radius: 4px; }
.plan .price { margin: 12px 0 2px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price span { font-size: 13px; font-weight: 450; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan .blurb { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; flex: 1; }
.plan li { padding: 4px 0 4px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.btn { display: block; width: 100%; padding: 11px 14px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px Geist, system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--on-accent, #fff); }
.btn:disabled { opacity: .6; cursor: default; }
.own { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.own h2 { margin: 0 0 4px; font-size: 18px; }
.own p { margin: 0; color: var(--muted); font-size: 14px; }
.own .btn { width: auto; padding: 11px 18px; white-space: nowrap; }
@media (max-width: 560px) { .own { grid-template-columns: 1fr; } }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 44px; }
.promise div { font-size: 13.5px; color: var(--muted); }
.promise b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.status { margin-top: 16px; min-height: 20px; font-size: 14px; }
.status.ok { color: #1f9d55; }
.status.err { color: #d64545; }
/* Cloud sync sizes */
.wordmark { letter-spacing: .22em; font-size: 13px; }
.includes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; font-size: 14px; }
.includes li { padding: 4px 0 4px 22px; position: relative; }
.includes li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.plans.sizes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.plan.size .price { font-size: 28px; }
.plan.size .blurb { margin-bottom: 16px; }
.plan.size h2 { flex-wrap: wrap; white-space: nowrap; }
.plan.size .tag { font-size: 10px; padding: 1px 7px; }
.plan.size .price { white-space: nowrap; }
.plan.size .price span { display: block; margin: 2px 0 0; }

/* Launch: Cloud sync opens later (src/launch.js) */
.cloud-later [data-cloud], html:not(.cloud-later) [data-cloud-later] { display: none !important; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
