/* Nelu ED quiz — dark theme, single-tap auto-advance */

.eqz-page {
  --eqz-bg: #0a0a0a;
  --eqz-fg: #f7f6f3;
  --eqz-fg-soft: rgba(247, 246, 243, 0.7);
  --eqz-card: rgba(247, 246, 243, 0.06);
  --eqz-border: rgba(247, 246, 243, 0.15);
  --eqz-border-soft: rgba(247, 246, 243, 0.5);
  --eqz-accent: #f05a00;
  --eqz-accent-bright: #ffd61a;
  --eqz-radius: 18px;
  margin: 0;
  min-height: 100dvh;
  background: var(--eqz-bg);
  color: var(--eqz-fg);
  font-family: var(--font-body);
}

.eqz-page .skip-link:focus {
  background: var(--eqz-fg);
  color: var(--eqz-bg);
}

.eqz-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 36px;
  padding: 0.55rem 1rem;
  background: linear-gradient(100deg, #f05a00 15%, #ffd61a 172%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.eqz-banner strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eqz-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 36px);
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 28px;
  overflow: clip;
}

.eqz-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.eqz-hero-art__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.eqz-hero-art__img--portrait {
  object-position: center 38%;
}

.eqz-hero-art__img--wide {
  object-position: center 46%;
}

.eqz-hero-art__img--end {
  object-position: 82% center;
}

.eqz-page[data-eqz-step="1"] .eqz-hero-art__img[data-eqz-hero="1"],
.eqz-page[data-eqz-step="2"] .eqz-hero-art__img[data-eqz-hero="2"],
.eqz-page[data-eqz-step="3"] .eqz-hero-art__img[data-eqz-hero="3"],
.eqz-page[data-eqz-step="4"] .eqz-hero-art__img[data-eqz-hero="4"] {
  opacity: 1;
}

.eqz-hero-art::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.18) 28%,
    rgba(10, 10, 10, 0.58) 64%,
    var(--eqz-bg) 100%
  );
}

.eqz-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(247, 246, 243, 0.22);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0));
}

.eqz-logo {
  display: block;
  width: 82px;
  line-height: 0;
  grid-column: 1;
}

.eqz-logo img {
  display: block;
  width: 82px;
  height: auto;
  filter: brightness(0) invert(1);
}

.eqz-back {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eqz-fg);
  cursor: pointer;
  grid-column: 2;
  justify-self: start;
}

.eqz-back svg {
  width: 20px;
  height: 20px;
}

.eqz-back[hidden] {
  display: none;
}

.eqz-progress {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  justify-self: end;
  grid-column: 3;
}

.eqz-progress svg {
  width: 46px;
  height: 46px;
  transform: rotate(-90deg);
}

.eqz-progress__track,
.eqz-progress__value {
  fill: none;
  stroke-width: 1.8;
}

.eqz-progress__track {
  stroke: rgba(247, 246, 243, 0.18);
}

.eqz-progress__value {
  stroke: var(--eqz-fg);
  stroke-linecap: round;
  stroke-dasharray: 24.35 97.39;
  transition: stroke-dasharray 0.28s ease;
}

.eqz-progress__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--eqz-fg);
}

.eqz-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 32px 24px 0;
}

.eqz-step {
  display: none;
  animation: eqz-in 0.28s ease both;
}

.eqz-step.is-active {
  display: block;
}

@keyframes eqz-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eqz-card {
  padding: 0;
  background: transparent;
}

.eqz-title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.033em;
  line-height: 1.12;
  color: var(--eqz-fg);
  text-wrap: pretty;
}

.eqz-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--eqz-accent);
}

.eqz-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eqz-choice {
  appearance: none;
  width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  border: 1px solid var(--eqz-border);
  border-radius: var(--eqz-radius);
  background: var(--eqz-card);
  color: var(--eqz-fg);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.eqz-choice:hover {
  border-color: rgba(247, 246, 243, 0.35);
}

.eqz-choice:focus-visible {
  outline: 2px solid var(--eqz-accent);
  outline-offset: 2px;
}

.eqz-choice.is-selected {
  border-color: rgba(240, 90, 0, 0.75);
  background: rgba(240, 90, 0, 0.12);
}

.eqz-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 22px 24px 8px;
}

.eqz-skip {
  color: var(--eqz-fg-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eqz-skip:hover {
  color: var(--eqz-fg);
}

.eqz-page.is-offer-open {
  overflow: hidden;
}

.eqz-offer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.eqz-offer.is-open {
  display: flex;
}

.eqz-offer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.eqz-offer__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 28px 24px 28px;
  border: 1px solid var(--eqz-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #121212;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
  animation: eqz-sheet-in 0.32s ease both;
}

.eqz-offer__close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eqz-fg);
  cursor: pointer;
}

.eqz-offer__close svg {
  width: 18px;
  height: 18px;
}

.eqz-offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 16px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--eqz-accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eqz-offer__badge svg {
  width: 13px;
  height: 13px;
}

.eqz-offer__title {
  margin: 0 0 10px;
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--eqz-fg);
}

.eqz-offer__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--eqz-accent);
}

.eqz-offer__copy {
  margin: 0 0 22px;
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--eqz-fg-soft);
}

.eqz-offer__cta {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--eqz-fg);
  color: var(--eqz-bg);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.eqz-offer__cta:hover {
  transform: translateY(-1px);
}

@keyframes eqz-sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .eqz-page {
    background: #050505;
  }

  .eqz-shell {
    max-width: 520px;
    min-height: calc(100dvh - 84px);
    margin: 24px auto;
    border: 1px solid var(--eqz-border);
    border-radius: 16px;
    background: var(--eqz-bg);
  }

  .eqz-offer {
    align-items: center;
    padding: 24px;
  }

  .eqz-offer__sheet {
    border-radius: 22px;
    border-bottom: 1px solid var(--eqz-border);
    padding: 32px 28px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eqz-step,
  .eqz-choice,
  .eqz-progress__value,
  .eqz-offer__sheet,
  .eqz-offer__cta,
  .eqz-hero-art__img {
    animation: none;
    transition: none;
  }
}
