/* JaGigs survey: the app's look (black, charcoal, JaGigs yellow, Outfit). */
:root {
  --black: #000000;
  --charcoal: #1d1d1b;
  --gray: #2a2a27;
  --light: #d9d9d9;
  --yellow: #f9b233;
  --yellow-deep: #e89a12;
  --white: #ffffff;
  --red: #ff6b6b;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background photo, darkened so the card is always readable. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .85) 100%),
    url('background.jpg') 20% 30% / cover no-repeat; /* keeps the photo's jG logo in view */
}
@media (min-width: 900px) {
  .backdrop {
    background:
      radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .85) 70%),
      url('background.jpg') center / cover no-repeat;
  }
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- brand ----------
   On phones the background photo shows the big jG logo itself, so the small
   header logo only appears on wider screens (where the photo is cropped). */
.brand { display: none; align-items: center; gap: 10px; }
@media (min-width: 700px) { .brand { display: flex; } }
.logo {
  position: relative;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}
.logo-g { margin-left: 1px; }
.logo-dot {
  position: absolute;
  top: -7px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(249, 178, 51, .8);
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .3px; opacity: .9; }

/* ---------- card ---------- */
.card {
  margin-top: auto;
  background: rgba(29, 29, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(249, 178, 51, .22);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  animation: rise .35s ease both;
}
@media (min-width: 700px) {
  .shell { justify-content: center; }
  .card { margin-top: 0; padding: 36px 36px; }
}
.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card.slide { animation: slide .28s ease both; }
@keyframes slide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}
h1 { margin: 0 0 12px; font-size: clamp(26px, 6.4vw, 36px); line-height: 1.15; font-weight: 800; }
h2 { margin: 0 0 6px; font-size: clamp(20px, 5vw, 26px); line-height: 1.3; font-weight: 700; }
.lead { margin: 0 0 18px; color: var(--light); font-size: 16px; }
.hint { margin: 0 0 14px; color: var(--light); opacity: .8; font-size: 14px; }
.hint:empty { display: none; }
.small { color: var(--light); font-size: 14px; opacity: .85; }

.facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.facts li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 30px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}
.facts span { color: var(--yellow); font-weight: 800; }

/* ---------- progress ---------- */
.progress {
  height: 6px; border-radius: 6px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow));
  border-radius: 6px;
  transition: width .35s ease;
}

/* ---------- options ---------- */
.options { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 560px) {
  .options.multi { grid-template-columns: 1fr 1fr; }
}
.option {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35);
  color: var(--white);
  font: inherit; font-size: 16px; text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: rgba(249, 178, 51, .55); }
.option:active { transform: scale(.985); }
.option:focus-visible { outline: 3px solid rgba(249, 178, 51, .6); outline-offset: 2px; }
.option .mark {
  flex: 0 0 24px; height: 24px;
  border: 2px solid rgba(255, 255, 255, .45);
  display: grid; place-items: center;
  transition: all .15s;
}
.option .mark.round { border-radius: 50%; }
.option .mark.square { border-radius: 7px; }
.option .key {
  margin-left: auto; flex: 0 0 auto;
  font-size: 12px; color: rgba(255, 255, 255, .4);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; padding: 1px 7px;
}
@media (hover: none) { .option .key { display: none; } }
.option[aria-checked="true"] {
  border-color: var(--yellow);
  background: rgba(249, 178, 51, .14);
}
.option[aria-checked="true"] .mark {
  border-color: var(--yellow);
  background: var(--yellow);
}
.option[aria-checked="true"] .mark::after {
  content: '';
  width: 6px; height: 11px;
  border: solid var(--black); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- buttons ---------- */
.nav { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 30px; border: 0;
  font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform .08s, opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(249, 178, 51, .6); outline-offset: 3px; }
.btn.primary { background: var(--yellow); color: var(--black); box-shadow: 0 8px 24px rgba(249, 178, 51, .3); }
.btn.primary:hover { background: #ffc252; }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
#screen-intro .btn, #screen-done .btn { width: 100%; }
.nav .btn.primary { flex: 1; }
@media (min-width: 560px) {
  #screen-intro .btn, #screen-done .btn { width: auto; }
}

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .4);
  color: #ffd0d0;
  font-size: 14px;
}

.done-icon { font-size: 48px; margin-bottom: 6px; }

.foot { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
