/* Public website: tokens from docs/DESIGN.md §1 (same as the app), light by default, dark follows the system. */
:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --border: #DDE3EA;
  --text: #0F1419; --muted: #5C6873; --accent: #2F6FE8; --accentSoft: #2F6FE81A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F14; --surface: #131A22; --border: #243040;
    --text: #E9EEF3; --muted: #8793A0; --accent: #4F8CFF; --accentSoft: #4F8CFF26;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 8px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 650; margin: 40px 0 14px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.pre { white-space: pre-line; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
nav a:hover, nav a.on { color: var(--text); background: var(--surface); text-decoration: none; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.card > b { display: block; font-size: 17px; margin-bottom: 6px; }
.card + .card { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.grid .card + .card { margin-top: 0; }
.feat b { display: block; margin-bottom: 4px; }
.feat span { color: var(--muted); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; border: 1px solid var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.card form { margin: 14px 0; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.badge { display: inline-block; background: var(--accentSoft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.pill { background: var(--accentSoft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }

.hero { padding: 32px 0 36px; }
.hero h1 { font-size: 40px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 0; }
.steps li::before { content: counter(s); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accentSoft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.price { display: flex; flex-direction: column; gap: 2px; }
.price b { font-size: 24px; margin: 2px 0; }

.faq details { padding: 14px 20px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 20px 0 20px; align-items: start; }
.platforms .card + .card { margin-top: 0; }
.platform.mine { border-color: var(--accent); }
.ptitle { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ptitle b { font-size: 18px; }
.howto { margin-top: 14px; color: var(--muted); font-size: 15px; }
.platform .btn { margin-top: 4px; }

.note { background: var(--accentSoft); border-radius: 12px; padding: 12px 16px; max-width: 640px; }
.narrow { max-width: 460px; margin: 0 auto; }
.key { font-size: 30px; font-weight: 700; letter-spacing: 2px; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.doc { max-width: 680px; }
.doc li { color: var(--text); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 32px; color: var(--muted); font-size: 14px; background: linear-gradient(var(--border), var(--border)) 16px 0 / calc(100% - 32px) 1px no-repeat; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  h1, .hero h1 { font-size: 28px; }
  .hero { padding: 16px 0 24px; }
  .cta .btn { flex: 1 1 100%; }
  .platform .btn { width: 100%; }
  nav a { padding: 6px 8px; }
}
