:root {
  --bg: #07060f;
  --card: #15132a;
  --border: #2a2650;
  --text: #f4f3ff;
  --muted: #a3a0c8;
  --cyan: #00e5ff;
  --pink: #ff2d95;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #1b1240 0%, var(--bg) 60%); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 1040px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 32px; }
.banner { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 70px rgba(123, 60, 255, .35), 0 0 0 1px rgba(255,255,255,.06); }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.card { background: rgba(21, 19, 42, .9); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -0.01em; }
.download p { color: var(--muted); margin: 0 0 20px; }

.appstore { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border: 1px solid #a6a6a6; border-radius: 12px; padding: 9px 20px 9px 14px; }
.appstore svg { width: 30px; height: 30px; fill: currentColor; }
.appstore span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.appstore:hover { border-color: #fff; }
.appstore.soon { opacity: .6; cursor: default; }
.soon-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 5px; }
input { width: 100%; font: inherit; color: var(--text); background: #0b0a17; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
input:focus { outline: 2px solid var(--cyan); outline-offset: -1px; }
button { width: 100%; margin-top: 6px; font: inherit; font-weight: 800; color: #000; background: var(--cyan); border: 0; border-radius: 10px; padding: 12px; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .6; cursor: default; }
.error { color: #ff6b81; min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }

footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

@media (max-width: 720px) {
  .panels { grid-template-columns: 1fr; }
  .banner { border-radius: 16px; }
  .card { padding: 20px; }
}
.signup { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; } .signup a { color: var(--cyan); font-weight: 700; }
.login .lead { color: var(--muted); margin: 0 0 18px; }
button.apple { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; background: #fff; color: #000; font-size: 17px; font-weight: 700; padding: 13px; }
button.apple + button.apple { background: #000; color: #fff; border: 1px solid #a6a6a6; }
button.apple svg { width: 20px; height: 20px; fill: currentColor; display: block; margin-top: -2px; }
.apple-logo { display: inline-flex; }
.hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; text-align: center; }
.link-card { max-width: 520px; margin: 18px auto 0; text-align: center; }
.link-card .code { font: 800 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--cyan); margin: 10px 0 4px; }
.link-card .ok { color: #3ee08f; font-weight: 700; }
.doc { max-width: 760px; margin: 18px auto 0; }
.doc h1 { margin: 0 0 4px; font-size: 30px; font-weight: 900; font-style: italic; }
.doc h2 { margin: 22px 0 6px; font-size: 19px; }
.doc h3 { margin: 16px 0 4px; font-size: 16px; }
.doc p, .doc li { color: #d9d7f2; }
.doc a, footer a { color: var(--cyan); }
.doc .updated { color: var(--muted); font-size: 13px; margin-top: 0; }
