:root {
  --paper: #f2eaf7;
  --ink: #3d2a46;
  --accent: #6f3d7c;
  --card-a: #7a4689;
  --card-b: #5e3269;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2a1a32;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.help {
  color: #6d5a76;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.help:hover {
  text-decoration: underline;
}

.card {
  position: relative;
  padding: 36px 36px 28px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--card-a), var(--card-b));
  color: #ffffff;
  box-shadow: 0 24px 50px -28px rgba(80, 30, 90, 0.55);
}

.card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 64px rgba(255, 255, 255, 0.035),
    0 0 0 128px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.card-copy,
.qr {
  position: relative;
  z-index: 1;
  min-width: 0;
}

h1 {
  margin: 0;
  font-stretch: 94%;
  font-weight: 560;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 12px 0 0;
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(42, 16, 52, 0.38);
}

.toggle button {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.toggle button[aria-selected="true"] {
  background: #ffffff;
  color: var(--accent);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}

.panels {
  min-width: 0;
}

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

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

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.step h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.step-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.step-h h2 {
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 650;
}

.step p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.step-btn .arrow {
  font-size: 18px;
  line-height: 1;
}

.step-btn:hover {
  background: #f6eef8;
}

.important {
  margin-top: 14px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: rgba(28, 10, 36, 0.28);
}

.important-k {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.important ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.important li {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.stuck {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

.stuck a {
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 3px;
}

.qr {
  margin: 0;
  padding: 16px 16px 12px;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.qr img {
  width: 168px;
  height: 168px;
}

.qr figcaption {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: #5c4d64;
  font-size: 13px;
  line-height: 1.35;
}

.qr b {
  color: #2c2233;
  font-size: 14px;
}

.join {
  margin: 22px 0 0;
  text-align: center;
  color: #5c4a66;
  font-size: 15.5px;
}

.join a {
  color: #5a3470;
  font-weight: 750;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .page {
    width: min(480px, calc(100% - 28px));
    padding-top: 20px;
  }

  .card {
    padding: 26px 18px 22px;
    border-radius: 26px;
  }

  .work {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toggle {
    display: flex;
    width: 100%;
  }

  .toggle button {
    flex: 1;
  }

  .step-btn {
    width: min(100%, 280px);
  }

  .qr {
    display: none;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 32px;
  }

  .step-btn {
    width: 100%;
  }
}
