:root {
  /* AiQlick brand tokens (from aiqlick-website-v2 landing page) */
  --bg-gradient: linear-gradient(180deg, #e6edf5 0%, #dce6f0 52%, #d1ddea 100%);
  --surface: #fff;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(242, 250, 255, 0.62));
  --glass-strong: linear-gradient(160deg, #f7fcff, #e6f5fd);
  --text: #1f2937;
  --muted: #4b5563;
  --navy: #0e3a63;
  --blue: #1068b0;
  --blue-hover: #0c5591;
  --sky: #32abe2;
  --blue-rgb: 16, 104, 176;
  --error: #b42318;
  --error-bg: #fdecea;

  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --radius: 10px;
  --hub: clamp(120px, 18vh, 184px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #dce6f0 var(--bg-gradient) fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; cursor: pointer; }

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Chrome ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: rgba(var(--blue-rgb), 0.15);
  z-index: 10;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.4s var(--ease);
}

.brand {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 5;
}
.brand img { display: block; height: 52px; width: auto; }

.lang {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5;
  display: flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(50, 171, 226, 0.4), 0 10px 24px -16px rgba(16, 104, 176, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lang__btn {
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang__btn:hover { background: rgba(var(--blue-rgb), 0.1); }
.lang__btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.lang__btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 5;
}
.nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  border: 0;
  background: var(--blue);
  color: #fff;
  transition: background 0.15s var(--ease);
}
.nav__btn:hover:not(:disabled) { background: var(--blue-hover); }
.nav__btn:disabled { opacity: 0.45; cursor: default; }
.nav[hidden] { display: none; }

/* ---------- Stage & slide transitions ---------- */

.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Logo hub (from the landing page gateway) ---------- */

.hub {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(16px, 3vh, 32px);
  pointer-events: none;
}
.hub__core {
  width: var(--hub);
  height: var(--hub);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.55) 52%, rgba(255, 255, 255, 0) 70%);
  animation: hub-fade 0.6s ease 0.06s both, hub-pop 1s cubic-bezier(0.3, 1.5, 0.5, 1) 0.06s both;
}
.hub__logo { width: 64%; height: auto; display: block; filter: drop-shadow(0 8px 18px rgba(47, 111, 159, 0.25)); }
.hub__headline {
  margin: -6px 0 0;
  padding: 0 16px;
  font-size: clamp(20px, min(2.4vw, 3.6vh), 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--text);
  animation: hub-fade 0.8s ease 0.5s both;
}
.hub__headline .accent {
  background: linear-gradient(95deg, var(--blue) 0%, #1a7bc4 55%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The logo ball as the full stop, blinking like the landing page's cursor. */
.hub__headline .ball {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: radial-gradient(circle at 56% 42%, #3cc3f2 0%, #00a2e5 32%, #0084cd 66%, #0069b3 100%);
  box-shadow: 0 0 0.22em rgba(0, 162, 229, 0.55);
  animation: ball-blink 1.06s steps(1, end) infinite;
}
@keyframes ball-blink {
  0% { opacity: 1; transform: scale(1.15); }
  50% { opacity: 0.12; transform: scale(1); }
}
@keyframes hub-fade { from { opacity: 0; } }
@keyframes hub-pop { from { transform: scale(0.6); } }

.slides {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.slide {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 88px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.slide.enter-from-below { transform: translateY(60px); opacity: 0; }
.slide.enter-from-above { transform: translateY(-60px); opacity: 0; }
.slide.leave-up { transform: translateY(-60px); opacity: 0; }
.slide.leave-down { transform: translateY(60px); opacity: 0; }

.question {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.question:focus { outline: none; }

.question__num {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 1.9rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 500;
}

.question__body { min-width: 0; }

.question__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.question__title .req { color: var(--navy); margin-left: 2px; }

.question__desc {
  margin: 8px 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--muted);
}

.question__input { margin-top: 32px; }

/* ---------- Text input ---------- */

.text-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(var(--blue-rgb), 0.35);
  background: transparent;
  padding: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.75rem;
  color: var(--blue);
  outline: none;
  border-radius: 0;
  transition: border-color 0.15s var(--ease);
}
.text-input::placeholder { color: rgba(var(--blue-rgb), 0.35); }
.text-input:focus { border-bottom: 2px solid var(--blue); padding-bottom: 7px; }

/* ---------- Choices ---------- */

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  width: max-content;
  min-width: 260px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  text-align: left;
  font-size: 1.125rem;
  color: var(--navy);
  background: var(--glass);
  border: 1px solid rgba(50, 171, 226, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -24px rgba(16, 104, 176, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.choice:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(16, 104, 176, 0.6); }
.choice:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.choice__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(var(--blue-rgb), 0.45);
  border-radius: 6px;
}
.choice__label { flex: 1; line-height: 1.35; }
/* Two-line option: bold title with a quieter description underneath (first question). */
.choice__title { display: block; font-weight: 700; color: var(--navy); }
.choice__hint { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }
.choice:has(.choice__hint) { padding-top: 10px; padding-bottom: 10px; }
/* Tick boxes: the key badge turns into a checkbox-style square. */
.choices--multi .choice__key { border-radius: 4px; }
.choice__check { flex: none; width: 18px; height: 18px; color: var(--blue); visibility: hidden; }

.choice[aria-checked="true"] {
  background: var(--glass-strong);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 16px 34px -22px rgba(50, 171, 226, 0.8);
}
.choice[aria-checked="true"] .choice__key { background: var(--blue); color: #fff; border-color: var(--blue); }
.choice[aria-checked="true"] .choice__check { visibility: visible; }
.choice.blink { animation: blink 0.36s steps(2, jump-none) 1; }
@keyframes blink { 50% { background: rgba(255, 255, 255, 0.5); } }

/* ---------- Actions / errors ---------- */

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(16, 104, 176, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.15s var(--ease), transform 0.2s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--blue-hover); }
.btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn svg { width: 18px; height: 18px; }

.hint { font-size: 0.8125rem; color: var(--muted); }
.hint b { font-weight: 600; }

.error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.9375rem;
  animation: pop 0.2s var(--ease);
}
.error svg { width: 16px; height: 16px; flex: none; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px 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); } }

/* ---------- Thank-you screen ---------- */

.thanks {
  width: 100%;
  max-width: 600px;
  padding: 40px 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(50, 171, 226, 0.42), 0 24px 60px -36px rgba(50, 171, 226, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.thanks h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}
.thanks p { margin: 12px 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--muted); }

.follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--blue-rgb), 0.15);
}
.follow__text { font-size: 1rem; font-weight: 500; color: var(--navy); }
.btn--linkedin { background: #0a66c2; box-shadow: 0 10px 24px -14px rgba(10, 102, 194, 0.9); }
.btn--linkedin:hover:not(:disabled) { background: #004182; }
.btn--linkedin svg { width: 20px; height: 20px; }

.link { color: var(--blue); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.link:hover { color: var(--blue-hover); text-decoration: underline; }

.noscript { padding: 120px 24px; text-align: center; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  :root { --hub: 108px; }
  .brand { display: none; } /* the hub carries the logo on phones */
  .lang { top: 12px; right: 12px; }
  .lang__btn { min-width: 40px; height: 30px; padding: 0 10px; }
  .hub__headline { font-size: 19px; }
  .slide { padding: 16px 16px 88px; align-items: flex-start; }
  .question { grid-template-columns: 1fr; row-gap: 4px; }
  .question__num { height: auto; font-size: 0.9375rem; }
  .question__title { font-size: 1.25rem; }
  .question__desc { font-size: 1rem; }
  .text-input { font-size: 1.375rem; }
  .choices { width: 100%; min-width: 0; }
  .choice { font-size: 1rem; }
  .hint { display: none; }
  .nav { right: 16px; bottom: 16px; }
  .thanks { padding: 28px 20px 24px; border-radius: 20px; }
  .thanks h1 { font-size: 1.5rem; }
  .thanks p { font-size: 1rem; }
  .btn--linkedin { width: 100%; justify-content: center; }
}

@media (max-height: 700px) { :root { --hub: 96px; } }

@media (hover: none) { .hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .slide, .progress__bar { transition: none; }
  .choice.blink, .error, .hub__core, .hub__headline, .hub__headline .ball { animation: none; }
}
