:root {
  --bg: #131313;
  --surface: #1a1a1a;
  --raised: #1e1e1e;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --accent: #ff7a45;
  --on-accent: #1a0e08;
  --accent-soft: #ffc6ac;
  --link: #ff8a5b;
  --good: #6fcf97;
  --warn: #ff6b6b;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
}

a { color: var(--link); }
a:hover { color: var(--accent-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; gap: 10px; padding: 20px 0; }
.top .name { font-weight: 800; font-size: 20px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 36px; padding: 12px 0 48px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: 40px; }
}
h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.tagline { font-size: 20px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Form ---------- */
.join { margin-top: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.label { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--raised); color: var(--text); font: inherit; font-size: 18px;
}
.input:focus-visible, .btn:focus-visible, .choice input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #232323; color: #d6d6d6; font-size: 16px; cursor: pointer;
}
.choice input:checked + span { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn {
  min-height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 800; font-size: 18px; cursor: pointer;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.fine { font-size: 14px; color: var(--muted); }
.msg { min-height: 1.4em; font-size: 15px; margin: 0; }
.msg.error { color: var(--warn); }
.done { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.done b { font-size: 22px; }
[hidden] { display: none !important; }

/* ---------- Phones ---------- */
.phones { display: flex; gap: 12px; justify-content: center; }
.phone {
  width: min(41vw, 230px); aspect-ratio: 390 / 780; border-radius: 34px; padding: 14px 12px;
  box-shadow: 0 0 0 6px #000, 0 20px 50px rgba(0, 0, 0, 0.5); overflow: hidden; display: flex; flex-direction: column; gap: 8px;
}
.phone.app { background: var(--bg); }
.phone.lock { background: #241a33; color: #fff; align-items: center; padding-top: 26px; }
.p-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; }
.p-hero { background: var(--accent); color: var(--on-accent); border-radius: 18px; padding: 12px; position: relative; }
.p-hero .k { font-size: 11px; font-weight: 700; }
.p-hero .big { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.p-hero .s { font-size: 10px; font-weight: 700; margin-top: 4px; }
.p-hero svg { position: absolute; top: 10px; right: 10px; }
.p-card { background: var(--surface); border-radius: 14px; padding: 10px; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.p-card b { font-size: 16px; }
.p-btn { border-radius: 999px; padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 700; white-space: nowrap; }
.p-btn.primary { background: var(--accent); color: var(--on-accent); }
.p-btn.ghost { background: var(--raised); }
.l-date { font-size: 11px; opacity: 0.9; }
.l-time { font-size: 54px; font-weight: 700; line-height: 1; }
.l-widget { margin-top: 8px; background: rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 8px 10px; width: 80%; }
.l-widget .k { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.85; }
.l-widget .v { font-size: 22px; font-weight: 800; line-height: 1.05; }
.l-widget .s { font-size: 9px; opacity: 0.85; }

/* ---------- Promises ---------- */
.promises { padding: 40px 0; border-top: 1px solid var(--line); }
.promises h2 { font-size: 28px; margin: 0 0 20px; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise-list li { background: var(--surface); border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.promise-list svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* ---------- Privacy page ---------- */
.doc { max-width: 680px; padding-bottom: 48px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
