/* GramTrack presell — quiz only (separate from /gtk/ig funnel) */
:root {
  --ig: linear-gradient(100deg, #ffd600, #ff7a00 27%, #ff0069 66%, #7638fa);
  --bg: linear-gradient(180deg, #f6eef8 0%, #fce8f0 45%, #f3e8ff 100%);
  --bg-solid: #f5eaf5;
  --ink: #111827;
  --muted: #6b7280;
  --max: 430px;
  --font: Inter, system-ui, -apple-system, sans-serif;
}

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

.hidden { display: none !important; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  background-color: var(--bg-solid);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

.ps-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.brand-header.compact { margin-bottom: 14px; gap: 10px; }
.brand-logo { border-radius: 8px; flex-shrink: 0; width: 28px; height: 28px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.brand-gram { color: var(--ink); }
.brand-detect {
  background: linear-gradient(90deg, #ffd600, #ff7a00 40%, #ff0069 75%, #7638fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-gradient-text {
  background: var(--ig);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-modal {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 32px;
  padding: 22px 20px;
  box-shadow: 0 16px 40px rgba(80, 30, 100, 0.18);
}

.quiz-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 0 auto 16px;
}
.quiz-progress .pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  flex: 0 0 auto;
}
.quiz-progress .pill.active,
.quiz-progress .pill.done {
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd600, #ff7a00 40%, #ff0069 75%, #7638fa);
}

.quiz-pane.hidden { display: none !important; }
.quiz-head {
  text-align: center;
  margin: 0 0 16px;
}
.quiz-head h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827;
}
.quiz-head p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.quiz-opt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1.5px solid #f9a8d4;
  border-radius: 14px;
  padding: 15px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  color: #111827;
  background: #ffffff;
  transition: border-color .18s ease, background .18s ease;
}
.quiz-opt::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 140% at 0% 50%,
    rgba(192, 132, 252, 0.22) 0%,
    rgba(244, 114, 182, 0.12) 32%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.quiz-opt.on::before {
  animation: checkBgPulse 2.8s ease-in-out infinite;
  opacity: 1;
}
.quiz-opt > * { position: relative; z-index: 1; }
.quiz-opt .chk {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #f9a8d4;
  flex: none;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: all .18s ease;
}
.quiz-opt .chk svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .18s ease, transform .18s ease;
}
.quiz-opt.on {
  border-color: #ec4899;
  background: #ffffff;
}
.quiz-opt.on .chk {
  background: linear-gradient(135deg, #ffd600, #ff7a00 40%, #ff0069 75%, #7638fa);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 0, 105, 0.28);
}
.quiz-opt.on .chk svg { opacity: 1; transform: scale(1); }

@keyframes checkBgPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.quiz-big {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  padding: 18px;
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  width: 100%;
  background: linear-gradient(100deg, #ffd600, #ff7a00 27%, #ff0069 66%, #7638fa);
  box-shadow: 0 16px 36px rgba(255,0,105,.24), 0 8px 20px rgba(255,122,0,.16);
  transition: transform .12s ease;
}
.quiz-big:active { transform: scale(.98); }
.quiz-big::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 42%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translate(-160%) skew(-22deg);
  animation: quizShimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes quizShimmer {
  0%, 55% { transform: translate(-160%) skew(-22deg); }
  100% { transform: translate(320%) skew(-22deg); }
}
.quiz-big.alt { background: linear-gradient(100deg,#7638fa,#d62976 55%,#ff0069); }
.quiz-big.gender-opt {
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 17px;
}
.gender-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
}
.gender-ic svg { width: 21px; height: 21px; display: block; }
.gender-txt { font-size: 17px; }
.gender-chev { margin-left: auto; opacity: .7; }
.gender-chev svg { width: 18px; height: 18px; display: block; }

.quiz-info {
  background: #f3eef8;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.quiz-info b { font-size: 14px; color: #111827; }
.quiz-info p {
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.5;
  color: #6b7280;
}

.btn-secondary {
  width: 100%;
  margin-top: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(214, 41, 118, 0.08);
}
.btn-secondary:active { transform: scale(0.97); }
.quiz-skip { width: 100%; margin: 0 0 8px; }

.step-badge {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 7px 16px;
  border-radius: 999px;
}
