/* ── Market Research Screener — mid-century airline counter ────────
   Sky-cream ground, dusty-teal horizon band with a climbing prop
   plane, retro-airline extended caps, gate-check question cards with
   a route-code chip, boarding-pass qualified panel, amber standby. */

:root {
  --sky: #f6efdf;
  --sky-deep: #efe5cf;
  --teal: #2a7f7a;
  --teal-deep: #1d5f5b;
  --amber: #d9962f;
  --amber-deep: #b3781d;
  --coral: #d8674b;
  --card: #fffdf6;
  --ink: #29322f;
  --ink-soft: #7d837c;
  --err: #c74630;
  --display: 'Archivo Expanded', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Jost', sans-serif;
}

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

.hidden { display: none !important; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  background-attachment: fixed;
  min-height: 100vh;
}

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

.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 24px; }

main { flex: 1 0 auto; padding-bottom: 60px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 0 24px 8px; }

.horizon {
  position: relative;
  height: 68px;
  margin: 0 auto;
  max-width: 720px;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.horizon::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(246, 239, 223, 0.35);
}

.plane {
  position: absolute;
  width: 58px;
  height: 24px;
  color: var(--sky);
  animation: fly 14s linear infinite;
  top: 30px;
}

@keyframes fly {
  0%   { left: -70px;  top: 42px; }
  100% { left: 105%;   top: 8px; }
}

.kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 26px 0 12px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.6vw, 2.4rem);
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--teal-deep);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.fact-chip {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  padding: 8px 18px;
}

.fact-chip.alt { background: transparent; color: var(--teal-deep); border: 2px solid var(--teal); }

/* ── Gate card ────────────────────────────────────────────────────── */
.gate-card {
  background: var(--card);
  border: 2px solid var(--teal-deep);
  border-radius: 14px;
  padding: 30px 30px 28px;
  margin-top: 26px;
  box-shadow: 8px 8px 0 rgba(29, 95, 91, 0.16);
}

/* route code chips */
.route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.route-chip {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1.5px solid #d9d2bd;
  border-radius: 6px;
  padding: 4px 10px;
  background: #fff;
  transition: all 0.2s ease;
}

.route-chip.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.route-chip.done { color: var(--teal); border-color: var(--teal); }

.route-dash { width: 14px; height: 1.5px; background: #d9d2bd; }

/* question */
.q-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 20px;
  text-align: center;
}

.choices { display: grid; gap: 10px; }

.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e3dcc6;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.choice-btn:hover { border-color: var(--teal); transform: translateX(3px); }

.choice-btn .tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cfc7ad;
  transition: all 0.14s ease;
}

.choice-btn.picked { border-color: var(--teal); background: rgba(42, 127, 122, 0.07); }
.choice-btn.picked .tick { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 4px #fff; }

.extra-area {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e3dcc6;
  border-radius: 10px;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.15s ease;
}

.extra-area:focus { outline: none; border-color: var(--teal); }
.extra-area::placeholder { color: #beb69c; }

.q-actions { margin-top: 20px; text-align: center; }

.skip-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* ── Contact ──────────────────────────────────────────────────────── */
.cleared-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  border: 2.5px double var(--teal);
  border-radius: 6px;
  padding: 6px 14px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
  opacity: 0.9;
}

.gate-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }

.lead { color: var(--ink-soft); margin: 8px 0 22px; }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--teal-deep);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e3dcc6;
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-color: var(--teal); }
input.error { border-color: var(--err); }
input::placeholder { color: #beb69c; }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 10px;
  padding: 16px 30px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  box-shadow: 0 4px 0 var(--teal-deep);
}

.btn:hover:not(:disabled) { transform: translateY(-2px); background: #338f89; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn-block { width: 100%; }

.form-error { color: var(--err); font-weight: 600; text-align: center; margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Boarding pass / standby ──────────────────────────────────────── */
.pass {
  display: flex;
  margin-top: 26px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(29, 95, 91, 0.16);
  border: 2px solid var(--teal-deep);
  background: var(--card);
}

.pass.standby { border-color: var(--amber-deep); box-shadow: 8px 8px 0 rgba(179, 120, 29, 0.18); }

.pass-main { flex: 1; padding: 30px 28px; }

.pass-airline {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.standby-tag { color: var(--amber-deep); }

.pass-main h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.25; }

.pass-copy { color: var(--ink-soft); margin-top: 10px; }

.pass-row { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }

.pass-cell { font-weight: 700; font-size: 0.95rem; }

.pass-cell em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.pass-stub {
  flex: 0 0 74px;
  background: var(--teal);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-stub.amber { background: var(--amber); }

.stub-text {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 30px 20px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .gate-card { padding: 24px 18px 22px; }
  .pass-main { padding: 24px 20px; }
}
