/* PWA: install → register. Same tokens/spacing scale as the prelander (4 · 8 · 12 · 16 · 24 · 32 · 48). */
:root {
  --bg: #0b0a12; --card: #15121e; --line: rgba(240, 208, 96, .18);
  --gold: #e3bd4f; --gold-2: #f6dc8a; --text: #f6f1e7; --muted: #9d95ae;
  --cta: #ff3d52; --cta-2: #e0263c; --ok: #35d07f; --err: #ff8a97;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, #2a2033 0%, var(--bg) 60%);
  color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
[hidden], .hidden { display: none !important; }
.page { max-width: 440px; margin: 0 auto; padding: 16px 24px 24px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.mark { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mark i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 13px/1 system-ui;
  font-style: normal; color: #241806; background: linear-gradient(145deg, var(--gold-2), var(--gold)); }
.dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dots li { width: 8px; height: 8px; border-radius: 50%; background: #3a3346; transition: width .2s; }
.dots li.on { width: 22px; border-radius: 8px; background: var(--gold); }

.card { margin-top: 24px; padding: 32px 24px 24px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #1b1626, var(--card)); border: 1px solid var(--line); }
h1, h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.app-icon { display: block; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 24px; box-shadow: 0 12px 32px rgba(227, 189, 79, .3); }
.offer { margin: 8px 0 0; font-size: 22px; font-weight: 800; color: var(--gold-2); }

.timer { display: inline-flex; align-items: baseline; gap: 8px; margin: 16px 0 0; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 61, 82, .12); border: 1px solid rgba(255, 61, 82, .35); font-size: 15px; color: #ffd7dc; }
.t-clock { font: 800 20px/1 ui-monospace, "SF Mono", Menlo, monospace; color: #fff; font-variant-numeric: tabular-nums; }
.timer.is-expired { background: rgba(157, 149, 174, .12); border-color: rgba(157, 149, 174, .4); color: var(--muted); }
.timer.is-expired .t-clock { display: none; }
.expired-line { margin: 8px 0 0; font-size: 14px; color: var(--muted); text-wrap: balance; }

.cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin-top: 24px; padding: 0 24px;
  border: 0; border-radius: 16px; background: linear-gradient(180deg, var(--cta), var(--cta-2)); color: #fff; font-size: 20px; font-weight: 800; line-height: 1;
  font-family: inherit; text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 61, 82, .35); }
.cta:disabled { opacity: .7; }
.cta.is-muted { background: #3a3346; box-shadow: none; }
.cta:focus-visible, .linkish:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.linkish { margin-top: 12px; padding: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.status { min-height: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.status:empty { display: none; }
.status.is-error { color: var(--err); }
.status.is-ok { color: var(--ok); }
.trust { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.phone { width: 112px; aspect-ratio: 9 / 18; margin: 24px auto 0; padding: 4px; border-radius: 22px; background: #050407;
  box-shadow: 0 0 0 1px #3a3346, 0 12px 28px rgba(0, 0, 0, .5); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.hint { margin: 16px 0 0; font-size: 16px; color: var(--text); }
.next { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.next b { color: var(--text); }
.terms { margin: 8px 0 0; font-size: 12px; color: #7a7289; }
.terms:empty { display: none; }

.ios-steps { margin: 24px 0 0; padding-left: 24px; text-align: left; display: grid; gap: 12px; font-size: 17px; }
.foot { padding: 16px 24px 24px; font-size: 12px; color: #6a6378; text-align: center; }
.stepno { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.next b { color: var(--gold-2); }
.terms { line-height: 1.45; text-wrap: pretty; }
