:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6878;
  --line: rgba(23, 32, 51, 0.12);
  --pink: #db2777;
  --card: #fff;
  --bg:
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.28), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(96, 165, 250, 0.22), transparent 26rem),
    #fff8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

button, input { font: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, 64rem);
  margin: 0 auto;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.top-nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.text-btn:hover { background: rgba(255, 255, 255, 0.7); }

#app {
  width: min(100% - 1.5rem, 64rem);
  margin: 0 auto 3rem;
}

.intro h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede, .status, .fine { color: var(--muted); }

.account {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.8rem 0 1.2rem;
}

.pill {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.pack {
  text-align: left;
  border: 0;
  border-radius: 1.2rem;
  min-height: 8.5rem;
  padding: 0.9rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 30px -22px rgba(23, 32, 51, 0.8);
}

.pack small { opacity: 0.85; }

.pack strong { font-size: 1.05rem; letter-spacing: -0.02em; }

.lock {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}

.card-stage {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.question-card {
  background: var(--card);
  border-radius: 1.6rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  min-height: 16rem;
  display: grid;
  align-content: center;
  box-shadow: 0 24px 50px -32px rgba(23, 32, 51, 0.7);
  border-top: 8px solid var(--accent, var(--pink));
}

.question-card p {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.actions, .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.primary, .secondary, .ghost {
  border-radius: 999px;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.primary { background: var(--ink); color: #fff; }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.ghost { background: transparent; color: var(--muted); }

.primary:disabled, .secondary:disabled { opacity: 0.55; cursor: not-allowed; }

.sheet {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.plans { display: grid; gap: 0.7rem; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  text-align: left;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  cursor: pointer;
}

.plan b { display: block; font-size: 1.15rem; }
.plan span { color: var(--muted); }

.code {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.18em;
  font-weight: 750;
  margin: 0;
}

label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.answers { display: grid; gap: 0.55rem; }
.answer {
  background: #fff;
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
}
.answer b { display: block; font-size: 0.82rem; color: var(--muted); }

.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.9rem;
  padding: 0.7rem 0.85rem;
}
