:root {
  --bg: #0a0b08;
  --bg-2: #11130d;
  --card: #161910;
  --line: #2c3220;
  --text: #f4f5e8;
  --muted: #9aa086;
  --accent: #d2ff2d;
  --accent-ink: #141806;
  --warn: #ff8a3d;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 9; }

#app {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(12px + var(--safe-t)) calc(20px + var(--safe-r)) calc(28px + var(--safe-b)) calc(20px + var(--safe-l));
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 15px;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}

.install {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
}

.progress-wrap { margin-bottom: 22px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bar {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 8%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 180ms ease;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(30px, 8.2vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 850;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.chip {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice, .cta, .cta-ghost, button.text-btn, .install {
  font: inherit;
  cursor: pointer;
}

.choice {
  width: 100%;
  min-height: 58px;
  text-align: left;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.choice:active, .cta:active { transform: scale(0.99); }

.choice.selected {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  padding: 16px 18px;
}

.cta[disabled] { opacity: 0.45; cursor: not-allowed; }

.cta-ghost {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
}

.text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.stack { margin-top: auto; padding-top: 24px; }

.big-num {
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--accent);
  margin: 8px 0 6px;
}

.big-num span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 8px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 15px;
  margin: 18px 0 24px;
}

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

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.bullets li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

.pay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.pay-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.price {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.fine {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}

label.field {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

label.field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
}

label.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.err {
  color: var(--warn);
  font-size: 14px;
  font-weight: 700;
  margin: -8px 0 14px;
}

.phones {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.phones a { color: var(--text); font-weight: 700; text-decoration: none; }

.ios-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hidden, [hidden] { display: none !important; }

@media (min-width: 480px) {
  body { background: #050604; }
  #app {
    margin: 18px auto;
    min-height: calc(100dvh - 36px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
  }
}

.leaks {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 4px 20px calc(22px + var(--safe-b));
  text-align: center;
}
.leaks-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.leaks-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}
.leaks-nav a {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.leaks-nav a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 480px) {
  .leaks { padding-bottom: 28px; }
}
