/* Noolka on the web: the app's look — white cards, one electric blue, heavy tight type. */
:root {
  --ink: #0e0e14;
  --secondary: #6b6b78;
  --background: #f4f4f7;
  --surface: #ffffff;
  --fill: #ececf1;
  --blue: #2343ff;
  --blue-deep: #0e1fc2;
  --blue-soft: #e4e9ff;
  --pink: #ff4fa8;
  --cyan: #37d7ff;
  --radius: 28px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f4f7;
    --secondary: #a2a2b0;
    --background: #0b0b12;
    --surface: #17171f;
    --fill: #24242e;
    --blue-soft: #1c2360;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: var(--blue); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* The logo: the round n with its dot, then the wordmark (the sprite's #nulka), as on the home page. */
.logo {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  --logo-n: var(--blue);
  --logo-dot: var(--blue);
}
.logo svg { display: block; height: 27px; width: auto; aspect-ratio: 414.5 / 94; }

.hero {
  background: linear-gradient(160deg, #3d5cff 0%, #1529da 60%, #0b1595 100%);
  color: #fff;
  border-radius: 0 0 36px 36px;
  padding: 24px 0 48px;
  overflow: hidden;
  position: relative;
}
.hero .logo { color: #fff; --logo-n: #fff; --logo-dot: #c6f24e; }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .logo { --logo-n: #4d68ff; --logo-dot: #c6f24e; }
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: var(--cyan); top: -120px; left: -80px; }
.hero::after { width: 280px; height: 280px; background: var(--pink); bottom: -140px; right: -60px; }
.hero .wrap { position: relative; z-index: 1; }

h1 {
  font-weight: 900;
  font-size: clamp(40px, 10vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 24px 0 16px;
}
h2 { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 10px; }
h3 { font-weight: 800; font-size: 19px; margin: 22px 0 6px; }

.lead { font-size: 19px; opacity: 0.85; max-width: 34em; margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button.white { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.button.blue { background: linear-gradient(180deg, #3d5cff, #1529da); color: #fff; box-shadow: 0 10px 30px rgba(35, 67, 255, 0.4); }
.button.glass { background: rgba(255, 255, 255, 0.18); color: #fff; }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  padding: 22px;
  margin: 16px 0;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 28px 0; }
.grid .card { margin: 0; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3d5cff, #1529da);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 900;
  font-size: clamp(34px, 9vw, 48px);
  letter-spacing: 0.18em;
}

.meta { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  display: grid;
  place-items: center;
}

.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--blue); }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 84%, transparent); }

footer { padding: 40px 0 60px; color: var(--secondary); font-size: 14px; }
footer a { color: var(--secondary); margin-right: 16px; }

.qr { width: 180px; height: 180px; background: #fff; border-radius: 22px; padding: 12px; }
.qr canvas, .qr img { width: 100%; height: 100%; image-rendering: pixelated; }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .buttons .button { width: 100%; }
}
