:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --accent: #6366f1;
}

[data-survey="meno"] {
  --accent: #e8826a;
  --bg: #fbf6f1;
}
[data-survey="glp1"] {
  --accent: #6366f1;
  --bg: #f4f6fb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  .container { padding: 20px 16px max(32px, env(safe-area-inset-bottom)); }
  html, body { font-size: 16px; }
}

.progress {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}
.progress > div {
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}

.q-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

h1.q {
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.25;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.opts { display: flex; flex-direction: column; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
  min-height: 60px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(0.99); }
.opt.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.opt input { display: none; }
@media (max-width: 480px) {
  .opt { padding: 14px 16px; min-height: 56px; font-size: 15px; }
}

.opt .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.opt.selected .check {
  border-color: var(--accent);
  background: var(--accent);
}
.opt.selected:not(.multi) .check::after {
  content: '';
  position: absolute;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 4px; left: 8px;
}
.opt.multi .check { border-radius: 7px; }

.other-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  outline: none;
  margin-top: -4px;
  margin-bottom: 4px;
  min-height: 50px;
  -webkit-appearance: none;
  appearance: none;
}
.other-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  flex: 1;
  padding: 16px 22px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 56px;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .btn { min-height: 52px; padding: 14px 18px; font-size: 15px; }
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
  flex: 0 0 auto;
  padding: 16px 18px;
  min-width: 56px;
}

.hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.intro h1 {
  font-size: clamp(24px, 6.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.intro p { color: var(--muted); margin: 0 0 24px; }
.intro .pill {
  display: inline-block;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

input[type=email] {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  outline: none;
  min-height: 56px;
  -webkit-appearance: none;
  appearance: none;
}
input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=email].invalid { border-color: #dc2626; }

.skip {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  margin-top: 12px;
}

.fade-enter { opacity: 0; transform: translateY(8px); }
.fade-enter-active { opacity: 1; transform: translateY(0); transition: all 0.3s ease; }

.helper {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.center { text-align: center; }

.code-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(26px, 8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 22px 16px;
  background: var(--card);
  border: 2px dashed var(--accent);
  border-radius: 16px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}
.code-box:active { transform: scale(0.99); }

.share-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  min-height: 56px;
  touch-action: manipulation;
  transition: transform 0.05s ease, opacity 0.15s ease;
}
.share-btn:active { transform: scale(0.98); }
.share-btn svg { flex-shrink: 0; }
.share-btn.wa { background: #25D366; }
.share-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-btn.em { background: #4b5563; }
.share-btn.fb { background: #1877F2; }
.share-btn.cp { background: var(--accent); grid-column: 1 / -1; }
@media (max-width: 360px) {
  .share-btns { grid-template-columns: 1fr; }
  .share-btn.cp { grid-column: auto; }
}

.celebrate {
  font-size: clamp(44px, 12vw, 64px);
  text-align: center;
  margin: 8px 0 4px;
  animation: pop 0.6s ease;
}
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.bonus {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .bonus { font-size: 14px; padding: 12px 14px; }
}

footer.legal {
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
footer.legal a { color: var(--muted); }
