* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-family: Poppins, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p {
  margin: 0;
}

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

.page-shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px;
  background: #fff;
}

.xq-main {
  display: flex;
  width: 100%;
  min-width: 320px;
  max-width: 512px;
  flex-direction: column;
  gap: 32px;
}

.header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.header-side {
  display: flex;
  align-items: center;
}

.header-side.right {
  justify-content: flex-end;
}

.back-button {
  border: 0;
  background: transparent;
  color: currentColor;
  padding: 0;
  line-height: 0;
}

.header-logo {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.brand-logo {
  width: 151px;
  max-width: calc(100vw - 80px);
  aspect-ratio: 1254 / 913;
  height: auto;
  object-fit: contain;
}

.progress {
  overflow: hidden;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #ffe4ea;
}

.progress-bar {
  height: 100%;
  border-radius: 999px 0 0 999px;
  background: #e11d48;
  transform-origin: left;
  transition: width 240ms ease;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.align-left {
  text-align: left;
}

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

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

.title-xl {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.result-alert-title .title-xl {
  color: #dc2626;
  font-size: 24px;
  font-weight: 800;
}

.plan-ready-title .title-xl {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-ready-title .muted {
  color: #374151;
  font-weight: 600;
}

.text-base {
  font-size: 16px;
  line-height: 1.55;
}

.text-sm {
  font-size: 14px;
  line-height: 1.45;
}

.muted {
  color: #6b7280;
}

.quiz-grid {
  display: grid;
  gap: 8px;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  display: flex;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--option-border, #e5e7eb);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: var(--option-bg, #f9fafb);
  color: var(--option-text, inherit);
  box-shadow: 0 10px 15px -3px rgba(107, 114, 128, 0.05);
}

.option-card.selected {
  margin-top: 4px;
  border-color: #e11d48;
  border-bottom-width: 1px;
}

.option-card button {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 16px;
  color: inherit;
}

.option-inner {
  display: flex;
  flex: 1;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}

.option-check {
  display: flex;
  flex: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 2px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.option-check svg {
  width: 14px;
  height: 14px;
}

.option-card.selected .option-check {
  border-color: #e11d48;
  background: #e11d48;
  color: #fff;
}

.image-top {
  flex-direction: column;
}

.image-bottom {
  flex-direction: column-reverse;
}

.image-left {
  flex-direction: row;
}

.image-right {
  flex-direction: row-reverse;
}

.option-image {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
}

.option-emoji {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(34px * var(--emoji-scale, 1));
  font-size: calc(24px * var(--emoji-scale, 1));
  line-height: 1;
}

.option-image img {
  width: 100%;
  max-width: 128px;
  height: auto;
}

.option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.button-wrap {
  display: flex;
  justify-content: center;
}

.xq-main.has-fixed-cta {
  padding-bottom: 112px;
}

.button-wrap.is-fixed {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  margin: 0 auto;
  padding: 42px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.96) 54%, rgba(255, 255, 255, 0) 100%);
}

.button-wrap.is-fixed .xq-button {
  width: min(512px, 100%);
  margin: 0 auto;
}

.xq-button {
  width: 100%;
  border: 0;
  border-bottom: 8px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: linear-gradient(to bottom right, rgba(225, 29, 72, 0.75), rgba(225, 29, 72, 0.95));
  color: #fff;
  padding: 20px 18px;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.xq-button:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.media {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.media.w-full img {
  width: 100%;
}

.media.w-52 img {
  width: min(208px, 100%);
  max-width: 100%;
}

.media.w-64 img {
  width: min(256px, 100%);
  max-width: 100%;
}

.media img {
  width: auto;
  height: auto;
  border-radius: 0;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  background: #fff0f0;
  color: #db294d;
  padding: 16px;
  text-align: left;
}

.note-icon {
  display: flex;
  flex: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.note-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.note-copy {
  min-width: 0;
  flex: 1;
}

.note-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(190, 18, 60, 0.08);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.result-head span {
  color: #6b7280;
}

.result-head strong {
  color: #b91c1c;
  font-size: 16px;
}

.result-score {
  color: #111827;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.result-scale {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.result-track {
  position: relative;
  display: grid;
  height: 16px;
  grid-template-columns: 42% 30% 28%;
  overflow: visible;
  border-radius: 999px;
  background: #f3f4f6;
}

.result-zone:first-child {
  border-radius: 999px 0 0 999px;
}

.result-zone:last-child {
  border-radius: 0 999px 999px 0;
}

.result-zone.high {
  background: #ef4444;
}

.result-zone.medium {
  background: #f59e0b;
}

.result-zone.goal {
  background: #22c55e;
}

.result-marker {
  position: absolute;
  top: -9px;
  display: flex;
  width: 18px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 3px solid #111827;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.result-marker span {
  position: absolute;
  top: -30px;
  left: 50%;
  width: max-content;
  max-width: 150px;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
}

.result-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.result-list-icon {
  display: flex;
  flex: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff1f2;
  color: #e11d48;
}

.result-list-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.result-list-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.result-list-copy span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.25;
}

.result-list-copy strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.plan-chart {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.plan-chart-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.plan-chart-levels span {
  padding: 8px 4px;
}

.plan-chart-levels span + span {
  border-left: 1px solid #e5e7eb;
}

.plan-chart-levels span:nth-child(1) {
  background: #fee2e2;
  color: #b91c1c;
}

.plan-chart-levels span:nth-child(2) {
  background: #fef3c7;
  color: #b45309;
}

.plan-chart-levels span:nth-child(3) {
  background: #dcfce7;
  color: #15803d;
}

.plan-chart-grid {
  display: grid;
  min-height: 250px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.plan-chart-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 250px;
  justify-content: flex-end;
  padding: 12px 8px;
  text-align: center;
}

.plan-chart-column + .plan-chart-column {
  border-left: 1px dashed #d1d5db;
}

.plan-chart-column:nth-child(1) {
  background: linear-gradient(to bottom, #fff1f2, #fff);
}

.plan-chart-column:nth-child(2) {
  background: linear-gradient(to bottom, #fffbeb, #fff);
}

.plan-chart-column:nth-child(3) {
  background: linear-gradient(to bottom, #f0fdf4, #fff);
}

.plan-bar-wrap {
  display: flex;
  width: 100%;
  height: 150px;
  align-items: flex-end;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(to top, #f9fafb, #fff);
  padding: 0 10px;
}

.plan-bar {
  display: block;
  width: 100%;
  max-width: 54px;
  min-height: 18px;
  border-radius: 14px 14px 6px 6px;
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.25), 0 10px 16px rgba(15, 23, 42, 0.12);
}

.plan-bar-1 {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.plan-bar-2 {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.plan-bar-3 {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.plan-chart-column strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.plan-chart-column span {
  color: #e11d48;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.plan-chart-column small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
}

.checkout-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.checkout-stat-icon {
  display: flex;
  flex: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--stat-color) 13%, white);
  color: var(--stat-color);
}

.checkout-stat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}

.checkout-stat-copy strong {
  display: block;
  color: var(--stat-color);
  font-size: 24px;
  line-height: 1.1;
}

.checkout-stat-copy div {
  margin-top: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.bonus-card {
  border: 1px solid #fecdd3;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.08);
}

.bonus-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e11d48;
  font-size: 18px;
  font-weight: 800;
}

.bonus-head span {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff1f2;
}

.bonus-head svg {
  width: 19px;
  height: 19px;
}

.bonus-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.bonus-item {
  display: flex;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.bonus-item > span {
  display: flex;
  flex: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #16a34a;
  border-radius: 20px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 46%);
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.14);
}

.pricing-check {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
}

.pricing-check svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.pricing-label {
  color: #6b7280;
  font-size: 14px;
  text-decoration: line-through;
}

.pricing-card h3 {
  margin: 6px 0;
  color: #111827;
  font-size: 20px;
}

.pricing-price {
  color: #16a34a;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.pricing-price p {
  margin: 0;
}

.pricing-subtitle {
  margin-top: 8px;
  color: #374151;
  font-weight: 700;
}

.testimony-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  text-align: left;
}

.testimony-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimony-head img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.testimony-head strong {
  display: block;
  color: #111827;
}

.testimony-head span {
  color: #6b7280;
  font-size: 13px;
}

.testimony-stars {
  margin-top: 10px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.testimony-text {
  margin-top: 8px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.video-embed {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

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

.form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  color: #111827;
}

.audio-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  background: #dcf8c6;
  padding: 12px 14px;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.audio-card::before {
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  background: #dcf8c6;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.audio-avatar {
  overflow: hidden;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: #14b856;
}

.audio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-avatar span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.audio-play {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  padding: 0;
}

.audio-play svg {
  width: 22px;
  height: 22px;
}

.audio-card .pause-icon,
.audio-card.playing .play-icon {
  display: none;
}

.audio-card.playing .pause-icon {
  display: block;
}

.audio-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.audio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #1f2937;
  font-size: 12px;
}

.audio-meta strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-meta span {
  flex: none;
  color: #667781;
  font-variant-numeric: tabular-nums;
}

.audio-wave {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.audio-wave span {
  flex: 1 0 2px;
  max-width: 4px;
  border-radius: 999px;
  background: #7aa891;
  opacity: 0.58;
  transition: background 120ms ease, opacity 120ms ease;
}

.audio-wave span.active {
  background: #128c7e;
  opacity: 1;
}

.loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.loading-meter {
  position: relative;
  display: flex;
  align-items: center;
}

.loading-bar {
  overflow: hidden;
  width: 100%;
  height: 24px;
  border-radius: 999px;
  background: #e5e7eb;
}

.loading-bar div {
  height: 100%;
  border-radius: 999px;
  background: #e11d48;
  animation: loading-fill 10s linear forwards;
}

.loading-percent {
  position: absolute;
  right: 0;
  left: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.footer {
  display: flex;
  justify-content: center;
  padding-bottom: 16px;
}

.footer a {
  color: #9ca3af;
  font-size: 12px;
  text-decoration: none;
}

.fade-in {
  animation: fade-in 320ms ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .xq-main {
    gap: 40px;
    padding-top: 12px;
  }
}
