/* ==========================================================================
   Valuto — traveller quiz. Builds on ../styles.css (tokens, buttons, fields).
   ========================================================================== */

.qz-body { min-height: 100vh; display: flex; flex-direction: column; }

.qz-head {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.qz {
  flex: 1;
  width: min(640px, 100% - 2 * 16px);
  margin-inline: auto;
  padding: clamp(32px, 8vh, 96px) 0 64px;
}
.qz-screen[hidden] { display: none; }
.qz-screen { animation: qz-in 420ms var(--ease-out) both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .qz-screen { animation: none; } }

/* ----- Intro ----- */
.qz-title {
  margin-top: 14px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 9vw, 84px); line-height: 0.98; letter-spacing: -0.02em;
}
.qz-title em { color: var(--accent); }
.qz-lede { margin-top: 20px; max-width: 520px; font-size: 18px; color: var(--cream-soft); }

.qz-start { margin-top: 40px; }
.qz-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.qz-label span { font-weight: 400; color: var(--cream-dim); }
.qz-start__row { display: flex; gap: 10px; flex-wrap: wrap; }
.qz-start__row input {
  flex: 1 1 220px; height: 54px; padding: 0 18px;
  background: rgba(243, 237, 225, 0.06); color: var(--cream);
  border: 1px solid var(--teal-line); border-radius: 999px;
}
.qz-start__row input::placeholder { color: var(--cream-dim); }
.qz-start__row input:focus { outline: none; border-color: var(--cream-soft); }
.qz-start__row .btn { flex: 0 0 auto; }

/* ----- Questions ----- */
.qz-progress { display: flex; align-items: center; gap: 14px; }
.qz-progress__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--cream-soft); }
.qz-progress__bar { flex: 1; height: 3px; background: var(--teal-line); border-radius: 2px; overflow: hidden; }
.qz-progress__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 400ms var(--ease-out); }

.qz-question {
  margin-top: 28px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 6.4vw, 54px); line-height: 1.05; letter-spacing: -0.015em;
}
.qz-question:focus { outline: none; }

.qz-options { margin-top: 32px; display: grid; gap: 12px; }
.qz-option {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 18px 20px; text-align: left;
  background: var(--paper-lift); color: var(--ink);
  border-radius: 8px; font-size: 17px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.qz-option__key {
  flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft);
  border: 1px dashed var(--paper-line); border-radius: 4px;
}
.qz-option:active { transform: scale(0.98); }
.qz-option.is-picked { background: var(--accent); color: #fff; }
.qz-option.is-picked .qz-option__key { color: #fff; border-color: rgba(255,255,255,.5); }
@media (hover: hover) and (pointer: fine) {
  .qz-option:hover { background: #fff; transform: translateX(4px); }
  .qz-option.is-picked:hover { background: var(--accent); }
}

.qz-back {
  margin-top: 24px; font-size: 15px; color: var(--cream-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.qz-back[hidden] { display: none; }

/* ----- Result card (mirrored by the canvas image in quiz.js) ----- */
.qz-card {
  position: relative;
  padding: 30px 30px 26px;
  background: var(--paper-lift); color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
  text-align: center;
}
.qz-card::before, .qz-card::after { /* ticket notches */
  content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--teal-deep);
}
.qz-card::before { left: -11px; }
.qz-card::after { right: -11px; }

.qz-card__head {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-faint);
  padding-bottom: 16px; border-bottom: 1.5px dashed var(--paper-line);
}
.qz-card__who { margin-top: 26px; font-size: 18px; color: var(--ink-soft); }
.qz-card__who b { color: var(--ink); font-weight: 600; }
.qz-card__type {
  margin-top: 4px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(40px, 8vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--teal);
}
.qz-card__type:focus { outline: none; }
.qz-card__desc { margin: 18px auto 0; max-width: 460px; font-size: 17px; color: var(--ink-soft); }
.qz-card__vibe { margin-top: 20px; display: grid; gap: 2px; }
.qz-card__vibe span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.qz-card__vibe i { font-family: var(--f-display); font-size: 26px; line-height: 1.2; color: var(--ink); }

.qz-card__fees {
  margin-top: 24px; padding-top: 18px;
  border-top: 1.5px dashed var(--paper-line);
  font-family: var(--f-mono); font-size: 14px; text-align: left;
}
.qz-card__fees-head { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.qz-card__fee-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.qz-card__fee-row b { font-weight: 500; }
.qz-card__fee-row--card b { color: var(--accent-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.qz-card__fee-row--valuto b { color: var(--teal); font-weight: 600; }
.qz-card__foot {
  margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed var(--paper-line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-faint);
}

.qz-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--cream-dim); }

.qz-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ----- Waitlist ----- */
.qz-join {
  margin-top: 56px; padding: 32px 28px;
  background: var(--paper); color: var(--ink); border-radius: 8px;
}
.qz-join[hidden] { display: none; }
.qz-join__title {
  margin-top: 10px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 6vw, 44px); line-height: 1.05; letter-spacing: -0.015em;
}
.qz-join__title em { color: var(--teal); }
.qz-join__lede { margin-top: 12px; color: var(--ink-soft); }
.qz-join__form { margin-top: 24px; display: grid; gap: 18px; }
.qz-join__done h4 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.qz-join__done h4 em { color: var(--teal); }
.qz-join__done p { margin-top: 10px; color: var(--ink-soft); }

.qz-foot {
  padding: 24px 16px 32px; text-align: center;
  font-size: 13px; color: var(--cream-dim);
}
.qz-foot a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .qz-card { padding: 24px 20px 22px; }
  .qz-join { padding: 26px 18px; }
  .qz-actions .btn { flex: 1 1 auto; }
  .qz-start__row .btn { width: 100%; }
}
