:root {
  --ink: #f7f8fb;
  --muted: #a7aab4;
  --paper: #090a0d;
  --card: #111318;
  --line: #272a32;
  --blue: #2962ff;
  --blue-hot: #4f7cff;
  --green: #21c778;
  --danger: #ff6b5e;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(41, 98, 255, .18), transparent 32rem),
    radial-gradient(circle at 85% 90%, rgba(41, 98, 255, .08), transparent 28rem),
    var(--paper);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

button, input { font: inherit; }

.shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 32px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 18px/1 "Barlow Condensed", sans-serif;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 19, 24, .94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.offer { padding: 30px 34px 26px; border-bottom: 1px solid var(--line); }
.eyebrow, .step__count {
  margin: 0 0 9px;
  color: var(--blue-hot);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 { font-family: "Barlow Condensed", sans-serif; letter-spacing: -.015em; }
h1 { margin: 0; font-size: clamp(36px, 8vw, 52px); line-height: .98; }
.offer > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.offer strong { color: var(--ink); }

.progress { height: 3px; background: #1b1d23; }
.progress span { display: block; width: 33%; height: 100%; background: var(--blue); transition: width .28s ease; }

.step { min-height: 330px; padding: 34px; animation: enter .24s ease both; }
.step[hidden] { display: none; }
.step h2 { max-width: 540px; margin: 0 0 24px; font-size: clamp(30px, 6vw, 42px); line-height: 1.02; }
.step__lead, .result p { margin: -12px 0 24px; color: var(--muted); line-height: 1.6; }

.choices { display: grid; gap: 10px; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choices button, .secondary, .submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 14px 17px;
  border: 1px solid #343843;
  border-radius: 12px;
  color: var(--ink);
  background: #181b21;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.choices button::after { content: "→"; color: var(--blue-hot); }
.choices button:hover, .choices button:focus-visible, .secondary:hover, .secondary:focus-visible {
  border-color: var(--blue-hot);
  background: #1d2230;
  transform: translateY(-1px);
  outline: none;
}

.back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 12px;
  cursor: pointer;
}

form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #cfd1d7; font-size: 12px; font-weight: 700; }
input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #343843;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #0d0f13;
}
input:focus { border-color: var(--blue-hot); box-shadow: 0 0 0 3px rgba(41, 98, 255, .15); }
input[aria-invalid="true"] { border-color: var(--danger); }

.consent { grid-template-columns: 18px 1fr; align-items: start; gap: 10px; font-weight: 400; line-height: 1.5; }
.consent input { min-height: auto; margin: 3px 0 0; accent-color: var(--blue); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; color: #ff948b; font-size: 13px; }

.submit {
  justify-content: center;
  gap: 12px;
  border-color: var(--blue);
  background: var(--blue);
  font-weight: 700;
  text-align: center;
}
.submit:hover, .submit:focus-visible { background: var(--blue-hot); transform: translateY(-1px); outline: none; }
.submit[disabled] { opacity: .55; cursor: wait; transform: none; }

.result { display: grid; align-content: center; }
.result__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 50%; color: var(--danger); background: rgba(255, 107, 94, .1); font-size: 24px; }
.result__icon--ok { color: var(--green); background: rgba(33, 199, 120, .1); }
.secondary { justify-content: center; max-width: 280px; }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px 0; color: #777b86; font-size: 10px; }
footer a { color: inherit; }
.footer-links { display: flex; gap: 12px; }
#manage-consent { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

.cookie {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  width: min(calc(100% - 36px), 430px);
  padding: 18px;
  border: 1px solid #3b3f49;
  border-radius: 14px;
  color: var(--ink);
  background: #15171c;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 14px; color: #cfd1d7; font-size: 12px; line-height: 1.55; }
.cookie strong { color: var(--ink); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cookie__actions button { min-height: 42px; border: 1px solid #3b3f49; border-radius: 9px; color: var(--ink); background: #20232a; cursor: pointer; }
.cookie__actions button:last-child { border-color: var(--blue); background: var(--blue); }
.cookie__actions button:hover, .cookie__actions button:focus-visible { border-color: var(--blue-hot); outline: none; }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 680px); padding-top: 18px; }
  .offer, .step { padding: 26px 22px; }
  .step { min-height: 360px; }
  .choices--two { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 5px; }
  .footer-links { flex-wrap: wrap; }
  .cookie { right: 10px; bottom: 10px; width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
