:root {
  --bg: #070c11;
  --surface: #0a1017;
  --surface-2: #0d2830;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(34, 211, 238, 0.4);
  --cyan: #22d3ee;
  --cyan-hi: #3ee0f8;
  --on-cyan: #06131a;
  --text: #ffffff;
  --muted: #8b98a5;
  --muted-hi: #a9b6c2;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
}

.topbar,
.sheet,
.foot { position: relative; z-index: 1; width: 100%; }

.topbar {
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px 8px;
  margin-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b1426;
  color: var(--cyan);
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--cyan); }

.login {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
}

.sheet {
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 20px 20px;
  margin: 10px auto 0;
}

.hero { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.appicon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(180deg, #0e1b30, #0b1426);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.appicon svg { width: 54px; height: 54px; color: var(--cyan); }

.appicon-pill {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
}

h1 {
  margin: 0 0 10px;
  font-size: 27px;
  text-wrap: balance;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 em { font-style: normal; color: var(--cyan); }

.sub {
  margin: 0 auto 20px;
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.banner p { margin: 0; color: #cfe9ef; }
.banner strong { color: var(--text); }

.btn-mini {
  flex: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  color: var(--on-cyan);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary svg { width: 20px; height: 20px; }
.btn-primary:hover { background: var(--cyan-hi); }
.btn-primary:active { transform: translateY(1px); }

.btn-primary.is-done {
  background: #0f2e26;
  color: #6ee7b7;
  box-shadow: none;
  border: 1px solid rgba(110, 231, 183, 0.4);
}

.status {
  min-height: 18px;
  margin: 9px 2px 18px;
  color: var(--muted-hi);
  font-size: 12.5px;
  text-align: center;
}

.benefits {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  text-align: left;
}

.benefits li {
  position: relative;
  padding-left: 26px;
  color: #c6d0d8;
  font-size: 13.5px;
}

.benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.steps {
  margin: 0 0 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.steps[open] { border-color: var(--line-strong); background: var(--surface-2); padding-bottom: 14px; }

.steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
}

.steps summary::-webkit-details-marker { display: none; }

.steps summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted-hi);
  border-bottom: 1.5px solid var(--muted-hi);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.steps[open] summary::after { transform: rotate(-135deg); }

.steps[open] summary { padding-bottom: 10px; }

.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 9px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 27px;
  color: #cfe9ef;
  font-size: 13px;
  line-height: 1.45;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 10.5px;
  font-weight: 800;
}

.steps strong { color: var(--text); }

.steps-note {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted-hi);
  font-size: 11.5px;
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.foot {
  max-width: 430px;
  display: flex;
  justify-content: space-between;
  padding: 14px 4px 0;
  color: #5d6a76;
  font-size: 11px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
  background: rgba(3, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px 18px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.modal h2 { margin: 0 28px 4px 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

.modal-note {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted-hi);
  font-size: 11.5px;
  line-height: 1.45;
}

.modal-note strong { color: var(--cyan); }

.modal-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.modal-steps li {
  position: relative;
  padding-left: 41px;
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: #cfe9ef;
}

.modal-steps strong { color: var(--text); }

.ico {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
}

.modal-steps .is-last .ico {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.ico svg { width: 16px; height: 16px; }

.consent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.consent p { margin: 0; flex: none; color: var(--muted-hi); font-size: 12px; }

.consent-actions { display: flex; align-items: center; gap: 8px; }

#consent-no,
#consent-ok { flex: 1; }

#consent-no {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted-hi);
  padding: 6px 10px;
}

#consent-ok {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}

.consent button {
  flex: none;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: transparent;
  color: var(--muted-hi);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 15px;
  cursor: pointer;
}

@media (max-width: 479px) {
  body { padding-left: 12px; padding-right: 12px; }
  .sheet { border-radius: 20px; padding: 22px 16px 18px; }
  h1 { font-size: 26px; }
}

@media (min-width: 480px) {
  body { padding-top: 12px; }
  .topbar { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
