@font-face {
  font-family: Inter;
  src: url("../assets/fonts/e4af272ccee01ff0-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #f97316;
  --accent-dark: #d86107;
  --background: #fdf4ff;
  --surface: #ffffff;
  --surface-soft: #f4eef6;
  --text: #18181b;
  --muted: #6b7280;
  --success: #16a34a;
  --success-dark: #12813d;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(69, 40, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

#app {
  min-height: 100vh;
}

.quiz-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.quiz-shell.offer-shell {
  width: min(100%, 820px);
}

.brand {
  display: flex;
  justify-content: center;
  min-height: 92px;
  margin-bottom: 12px;
}

.brand img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.progress-track {
  width: 100%;
  height: 8px;
  margin: 4px 0 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #f7e5df;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #fb923c);
  transition: width 0.45s ease;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: enter 0.35s ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rich-text {
  color: var(--text);
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text p,
.rich-text ol,
.rich-text ul {
  margin-top: 0;
}

.rich-text h1 {
  margin-bottom: 2px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.05;
}

.rich-text h2 {
  font-size: clamp(25px, 5.7vw, 38px);
  line-height: 1.12;
}

.rich-text h3 {
  font-size: clamp(20px, 4.8vw, 28px);
  line-height: 1.18;
}

.rich-text p,
.rich-text li {
  font-size: 17px;
}

.rich-text p:last-child,
.rich-text ol:last-child,
.rich-text ul:last-child,
.rich-text h1:last-child,
.rich-text h2:last-child,
.rich-text h3:last-child {
  margin-bottom: 0;
}

.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-size-small {
  font-size: 0.86em;
}

.rich-text li[data-list="bullet"] {
  list-style: disc;
}

.spacer {
  flex: 0 0 auto;
}

.media-card {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: auto;
}

.alert-card {
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(69, 40, 74, 0.08);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.option-card {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: 1px solid #e5dfe7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 14px rgba(69, 40, 74, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option-card:hover,
.option-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.14);
  outline: none;
}

.option-card:active {
  transform: scale(0.99);
}

.option-icon {
  flex: 0 0 auto;
  width: 42px;
  font-size: 30px;
  text-align: center;
}

.option-card.has-image {
  display: block;
  padding: 8px;
}

.option-card.has-image img {
  width: 100%;
  border-radius: 13px;
}

.option-label p {
  margin: 0;
}

.primary-button,
.checkout-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #22c55e, var(--success));
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.primary-button:hover,
.checkout-button:hover,
.primary-button:focus-visible,
.checkout-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  outline: none;
}

.pulse {
  animation: pulse 1.7s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 5px;
}

.carousel-slide img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.loading-card {
  padding: 26px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.loading-track {
  height: 14px;
  margin: 22px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfea;
}

.loading-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #fb923c);
}

.loading-percent {
  color: var(--muted);
  font-weight: 700;
}

.video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame.portrait { padding-top: 133.3333%; }
.video-frame.tall { padding-top: 177.7778%; }

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-counter {
  padding: 10px 16px;
  color: #000;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.viewer-counter strong {
  color: #dc2626;
  font-weight: 900;
}

.promo-card {
  padding: 18px;
  color: #fff;
  font-size: 23px;
  line-height: 1.45;
  text-align: center;
  border-radius: var(--radius);
  background: #000;
}

.promo-card .red { color: #ff2d2d; }
.promo-card .yellow { color: #ffd700; }

.price-card {
  padding: 24px 20px;
  text-align: center;
  border: 2px solid #22c55e;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.14);
}

.price-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: var(--success);
}

.price-title p { margin: 0 0 12px; }
.price-before { color: var(--muted); font-size: 17px; text-decoration: line-through; }
.price-value { display: block; color: var(--success-dark); font-size: clamp(42px, 10vw, 64px); font-weight: 900; line-height: 1.05; }
.price-after { color: var(--muted); }

.reveal-hidden {
  display: none !important;
}

.social-toast {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: none;
  max-width: 310px;
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.social-toast.show {
  display: block;
  animation: toast-in 0.35s ease-out;
}

.vsl-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 12px;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #ecfeff 100%);
}

.vsl-brand {
  flex: 0 0 auto;
}

.vsl-card {
  width: min(100%, 448px);
  padding: 20px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(45, 29, 53, 0.14);
  animation: enter 0.35s ease both;
}

.vsl-header {
  margin-bottom: 20px;
  text-align: center;
}

.vsl-header h1 {
  margin: 0 0 10px;
  color: #16131a;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.12;
  font-weight: 800;
}

.vsl-header h2 {
  margin: 0 0 18px;
  color: #16131a;
  font-size: clamp(20px, 5.7vw, 25px);
  line-height: 1.22;
  font-weight: 800;
}

.vsl-header p {
  margin: 0;
  color: #77717a;
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.4;
  font-weight: 700;
}

.vsl-copy-accent,
.vsl-copy-confirm {
  color: #ff9900;
}

.vsl-copy-method {
  display: inline;
  padding: 0 0.12em;
  color: #fff;
  background: #ff9900;
  font-style: italic;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.vsl-copy-confirm {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vsl-video-card {
  width: min(100%, 360px);
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.vsl-viewers {
  margin: 0 0 20px;
  color: #16131a;
  font-size: clamp(16px, 4.6vw, 19px);
  line-height: 1.35;
  text-align: center;
}

.vsl-viewers strong {
  color: #dc2626;
  font-weight: 800;
}

.vsl-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}

.vsl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.vsl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transform: translate(-50%, -50%);
}

.vsl-play[hidden] {
  display: none;
}

.vsl-play span {
  display: flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 0 4px #fff;
  animation: vsl-play-pulse 1.4s ease-in-out infinite;
}

.vsl-play svg {
  width: 48px;
  height: 48px;
  margin-left: 4px;
  fill: currentColor;
}

@keyframes vsl-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.vsl-continuation {
  margin-top: 4px;
  animation: enter 0.35s ease both;
}

.vsl-continuation[hidden] {
  display: none;
}

.vsl-continuation p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.55;
  text-align: center;
}

.vsl-continuation .vsl-continuation-strong {
  margin-bottom: 26px;
  font-weight: 700;
}

.vsl-offer-content {
  width: min(100%, 820px);
  margin-top: 24px;
  padding: 0 6px 40px;
}

.vsl-offer-content[hidden] {
  display: none;
}

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

@media (min-width: 720px) {
  .quiz-shell { padding: 36px 32px 72px; }
  .brand { min-height: 112px; }
  .brand img { width: 120px; height: 120px; }
  .options-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vsl-page { align-items: center; padding: 40px 16px; }
  .vsl-card { padding: 32px 28px; border-radius: 26px; }
  .vsl-header { margin-bottom: 28px; }
  .vsl-video-card { margin-bottom: 28px; border-radius: 18px; }
}

@media (max-width: 480px) {
  .quiz-shell { padding: 18px 12px 44px; }
  .progress-track { margin-bottom: 24px; }
  .rich-text p,
  .rich-text li { font-size: 16px; }
  .alert-card { padding: 17px; }
  .viewer-counter { font-size: 17px; }
  .promo-card { font-size: 21px; padding: 15px 12px; }
  .social-toast { right: 10px; left: 10px; max-width: none; }
}
