﻿:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #f6fafb;
  --line: rgba(15, 63, 74, 0.16);
  --text: #172227;
  --muted: #4d626b;
  --primary: #0f3f4a;
  --primary-strong: #082d35;
  --accent: #d7a766;
  --accent-dark: #bf8f52;
  --success: #18a957;
  --warning: #d0802f;
  --shadow: 0 10px 28px rgba(10, 39, 47, 0.08);
}
* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 60%, #edf2f7 100%);
}

.quiz-page {
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  place-items: center;
}

body.exit-modal-open {
  overflow: hidden;
}

.quiz-card {
  width: min(1240px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f4f8f9;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.quiz-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.step-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#stepTitle {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--primary-strong);
}

.step-subtitle {
  margin: 0.3rem auto 0;
  color: var(--muted);
  max-width: 620px;
}

.stepper {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.stepper-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  color: #8493a1;
  font-size: 0.8rem;
  font-weight: 700;
}

.stepper-item::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -52%;
  width: 100%;
  height: 2px;
  background: #dde6ed;
  z-index: 0;
}

.stepper-item:last-child::after {
  display: none;
}

.stepper-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #d0dbe5;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.stepper-item.is-active,
.stepper-item.is-done {
  color: #344a5a;
}

.stepper-item.is-active .stepper-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.stepper-item.is-done .stepper-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.stepper-item.is-done .stepper-dot::before {
  content: "✓";
}

.stepper-item.is-done .stepper-dot {
  font-size: 0;
}

.stepper-item.is-done::after {
  background: var(--success);
}

.quiz-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.quiz-main,
.quiz-side {
  min-width: 0;
}

.step-content {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
}

.step-content.hidden {
  display: none;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.field-label {
  display: block;
  margin: 0.8rem 0 0.44rem;
  font-weight: 700;
}

.field-label span {
  color: var(--accent-dark);
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfdae5;
  border-radius: 11px;
  padding: 0.72rem 0.82rem;
  font: inherit;
  color: inherit;
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(161, 40, 95, 0.26);
  outline-offset: 1px;
}

.field-error {
  min-height: 1.15rem;
  margin: 0.34rem 0 0;
  color: #b42338;
  font-size: 0.85rem;
  font-weight: 700;
}

.counter {
  margin: 0.36rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.48rem;
}

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

.chip {
  border: 1px solid #d0dbe5;
  border-radius: 999px;
  background: #f8fafc;
  color: #304654;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.switch-row {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  font-weight: 700;
  color: #415767;
}

.switch-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.tip-box {
  margin-top: 0.78rem;
  border-radius: 12px;
  border: 1px solid #d8e3f0;
  background: #f3f7fd;
  padding: 0.72rem;
}

.tip-box p {
  margin: 0;
  color: #445b6c;
  line-height: 1.36;
}

.tip-box p + p {
  margin-top: 0.48rem;
}

.quiz-side .panel,
.final-layout .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.quiz-side .panel {
  position: static;
}

.panel h3 {
  margin: 0;
  font-size: 1.3rem;
}

.plan-panel {
  background: linear-gradient(155deg, #ffffff, #f5fafb);
}

.selected-plan {
  border: 1px solid rgba(215, 167, 102, 0.75);
  box-shadow:
    0 0 0 2px rgba(215, 167, 102, 0.2),
    0 8px 14px rgba(12, 41, 49, 0.07);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.plan-badge {
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  background: rgba(215, 167, 102, 0.2);
  color: #6c4f27;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-price {
  margin: 0.18rem 0 0.18rem;
  font-size: 2.04rem;
  line-height: 1;
  font-weight: 700;
  color: var(--primary-strong);
}

.plan-delivery {
  margin: 0 0 0.44rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: #365b64;
  font-size: 0.91rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.43rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.selected-label {
  margin: 0.45rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #1e4b58;
}

.selected-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8f63;
}

.offer-card {
  margin-top: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(155deg, #c99a5d, #b78342);
  color: #fff;
  padding: 0.7rem;
  text-align: center;
}

.offer-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.offer-discount {
  margin: 0.24rem 0;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
}

.offer-timer {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.offer-timer strong {
  font-size: 1rem;
}

.mini-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e4ebf2;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #405767;
}

.mini-row strong {
  text-align: right;
  color: #1f313e;
}

.scarcity-note {
  margin: 0.8rem 0 0;
  border-radius: 999px;
  border: 1px solid #eedbc6;
  background: #fff8ef;
  color: #7a5c3f;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.78rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}

.scarcity-note strong,
.exit-spots strong {
  color: #b85f33;
  display: inline-block;
  margin: 0 0.18rem;
}

.scarcity-note strong.is-dropping,
.exit-spots strong.is-dropping {
  animation: spotsDropPulseStrong 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scarcity-note.is-dropping,
.exit-spots.is-dropping {
  animation: scarcityFlash 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes spotsDropPulseStrong {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(2px) scale(0.92); }
  58% { transform: translateY(-1px) scale(1.22); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes scarcityFlash {
  0% { background: #fff8ef; }
  45% { background: #fff1e1; }
  100% { background: #fff8ef; }
}

.totals {
  margin-top: 0.7rem;
  border-radius: 11px;
  border: 1px solid #d7e2eb;
  background: #f4f8fc;
  padding: 0.5rem 0.66rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #243846;
}

.totals strong {
  font-size: 1.9rem;
  line-height: 1;
}

.quiz-footer {
  margin-top: 0.72rem;
  display: flex;
  gap: 0.6rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  padding: 0.58rem 0.9rem;
}

.btn-back {
  background: #ebf1f6;
  color: #3f5868;
}

.btn-next {
  margin-left: auto;
  min-width: 150px;
  color: #2f1f0b;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.error-message {
  min-height: 1.2rem;
  margin: 0.64rem 0 0;
  color: #b42338;
  font-weight: 700;
}

.helper-link {
  margin: 0.5rem 0 0;
  text-align: center;
}

.helper-link a {
  color: #6f8090;
  font-size: 0.86rem;
  text-decoration: none;
  opacity: 0.9;
}

.helper-link a:hover,
.helper-link a:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

/* Step 6 */
.quiz-card.final-stage .quiz-side,
.quiz-card.final-stage .stepper,
.quiz-card.final-stage .quiz-footer {
  display: none;
}

.quiz-card.final-stage .quiz-header {
  display: none;
}

.quiz-card.final-stage .helper-link {
  display: none;
}

.final-hero {
  text-align: center;
  margin-bottom: 0.84rem;
}

.final-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.35vw, 2.3rem);
  color: #222f3a;
}

.final-subtitle {
  margin: 0.35rem 0 0;
  color: #5f717f;
}

.promo-strip {
  margin-top: 0.52rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-badge {
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
}

.promo-timer {
  border-radius: 999px;
  border: 1px solid #e6d9c9;
  background: #fff;
  color: #3f5565;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.24rem 0.58rem;
}

.promo-timer strong {
  color: var(--accent-dark);
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 0.8rem;
}

.final-left,
.final-right {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.price-line {
  margin-top: 0.62rem;
  padding-top: 0.62rem;
  border-top: 1px dashed #d7e2eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.price-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.off-badge {
  font-style: normal;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
}

.price-stack {
  display: grid;
  justify-items: end;
}

.price-stack small {
  color: #8a9aa6;
  text-decoration: line-through;
}

.price-stack strong {
  color: #203544;
  font-size: 1.95rem;
  line-height: 1;
}

.ghost-btn {
  margin-top: 0.68rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d4dfe8;
  background: #f5f9fc;
  color: #395366;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  cursor: pointer;
}

.info-panel p {
  margin: 0.5rem 0 0;
  color: #4b6171;
}

.contact-panel p {
  margin: 0.4rem 0 0;
  color: #5a6d7c;
}

.checkout-btn {
  margin-top: 0.72rem;
  width: 100%;
  border: 0;
  border-radius: 11px;
  min-height: 48px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(150deg, #0f5160, #0b3d49);
  box-shadow: 0 10px 18px rgba(9, 52, 62, 0.25);
}

.prompt-line {
  margin: 0.62rem 0 0;
  color: #425869;
  font-size: 0.9rem;
  line-height: 1.35;
}

.prompt-line span {
  color: #203342;
}

.secure-note {
  margin: 0.44rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #4f6677;
}

.secure-note.muted {
  opacity: 0.86;
}

/* Exit modal */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.exit-modal.hidden {
  display: none;
}

.exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 30, 0.66);
  backdrop-filter: blur(3px);
}

.exit-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid #e5d5c2;
  border-radius: 18px;
  background: linear-gradient(155deg, #fffaf3, #ffffff);
  box-shadow: 0 28px 58px rgba(10, 27, 33, 0.28);
  padding: 1.25rem 1.2rem 1.1rem;
}

.exit-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border: 1px solid #e4d9ce;
  border-radius: 999px;
  background: #fff;
  color: #715f4c;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.exit-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exit-modal-card h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  color: #2d2a24;
  line-height: 1.1;
}

.exit-modal-card h2 strong {
  color: var(--accent-dark);
}

.exit-copy {
  margin: 0.7rem 0 0;
  color: #564b42;
  font-size: 1rem;
  line-height: 1.42;
}

.exit-spots {
  margin: 0.7rem 0 0;
  color: #6a594c;
  font-size: 0.92rem;
}

.exit-actions {
  display: grid;
  margin-top: 0.9rem;
}

.exit-cta-primary {
  border: 0;
  border-radius: 11px;
  min-height: 46px;
  color: #fff;
  background: linear-gradient(150deg, #0f5160, #0b3d49);
  box-shadow: 0 10px 18px rgba(9, 52, 62, 0.26);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Social proof */
.social-proof-wrap {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 980;
  pointer-events: none;
}

.social-proof-wrap.hidden {
  display: none;
}

.social-proof-toast {
  width: min(380px, calc(100vw - 1.5rem));
  border-radius: 16px;
  border: 1px solid rgba(15, 63, 74, 0.18);
  background: linear-gradient(155deg, #ffffff, #edf6f9);
  box-shadow: 0 16px 34px rgba(9, 35, 42, 0.24);
  padding: 0.76rem 0.8rem;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}

.social-proof-wrap.is-visible .social-proof-toast {
  opacity: 1;
  transform: translateY(0);
}

.social-proof-head {
  display: flex;
  align-items: center;
  gap: 0.36rem;
}

.social-proof-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: linear-gradient(140deg, #ffe8c9, #fff5e8);
  border: 1px solid #edcfaa;
}

.social-proof-title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d07d36;
}

.social-proof-text {
  margin: 0.28rem 0 0;
  font-size: 0.94rem;
  color: #244852;
  line-height: 1.34;
}

.social-proof-text strong {
  font-weight: 800;
  color: #123944;
}

.social-proof-meta {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.social-proof-style {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.73rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #d67e35, #be5c2b);
  box-shadow: 0 6px 12px rgba(190, 92, 43, 0.26);
}

.social-proof-place {
  font-size: 0.74rem;
  font-weight: 700;
  color: #5d747b;
}

@media (max-width: 1080px) {
  .quiz-shell,
  .final-layout {
    grid-template-columns: 1fr;
  }

  .quiz-side .panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .stepper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .stepper-item span:last-child {
    display: none;
  }

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

  .quiz-footer {
    flex-wrap: wrap;
  }

  .btn-back,
  .btn-next {
    width: 100%;
  }

  .social-proof-wrap {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .social-proof-toast {
    width: 100%;
  }
}

/* Restored final checkout styling from previous stable version */
.quiz-card.final-stage {
  width: min(1220px, 100%);
  background: #f5f1eb;
  border: 0;
  box-shadow: none;
  padding: 0.2rem 0.2rem 0.8rem;
}

.quiz-card.final-stage .final-hero {
  margin: 0.15rem 0 0.85rem;
}

.quiz-card.final-stage .final-title {
  font-size: clamp(2rem, 2.45vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2a2a2a;
}

.quiz-card.final-stage .final-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: #575757;
}

.quiz-card.final-stage .final-layout {
  grid-template-columns: minmax(0, 1.58fr) minmax(365px, 0.92fr);
  gap: 0.95rem;
}

.quiz-card.final-stage .panel {
  border: 1px solid #e4d9ce;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
  padding: 0.84rem;
}

.quiz-card.final-stage .panel h3 {
  font-size: 1.02rem;
  color: #2f2a24;
}

.quiz-card.final-stage .mini-row {
  border-bottom: 1px solid #ede3d8;
  color: #4c4c4c;
  font-size: 0.95rem;
}

.quiz-card.final-stage .price-line {
  border-top: 1px solid #ece2d8;
  color: #2f2a24;
}

.quiz-card.final-stage .off-badge {
  background: #f07f2f;
  color: #fff;
  font-size: 0.69rem;
  padding: 0.17rem 0.46rem;
}

.quiz-card.final-stage .price-stack small {
  color: #9f8f82;
}

.quiz-card.final-stage .price-stack strong {
  color: #cc8241;
}

.quiz-card.final-stage .ghost-btn {
  background: #f5f0ea;
  border: 1px solid #e4d9ce;
  color: #4f453c;
}

.quiz-card.final-stage .selected-plan {
  border: 1.5px solid #d39863;
  box-shadow: none;
}

.quiz-card.final-stage .plan-badge {
  background: #d9a47a;
  color: #fff;
}

.quiz-card.final-stage .plan-price,
.quiz-card.final-stage .totals strong {
  color: #cc8241;
}

.quiz-card.final-stage .benefit-list li {
  color: #5d5348;
}

.quiz-card.final-stage .benefit-list li::before {
  background: #cf8a4f;
}

.quiz-card.final-stage .info-panel {
  background: #fffaf3;
}

.quiz-card.final-stage .guarantee-panel {
  background: #edf8f1;
  border-color: #b6e2c5;
}

.quiz-card.final-stage .guarantee-panel h3,
.quiz-card.final-stage .receive-panel h3,
.quiz-card.final-stage .trust-panel h3 {
  margin-bottom: 0.56rem;
}

.quiz-card.final-stage .receive-panel,
.quiz-card.final-stage .trust-panel,
.quiz-card.final-stage .compact-summary,
.quiz-card.final-stage .demos-panel {
  background: #fff;
}

.quiz-card.final-stage .demos-panel {
  background: linear-gradient(155deg, #fffaf3, #fff);
  border-radius: 20px;
  padding: 0.9rem;
}

.checkout-demo-list {
  margin-top: 0.56rem;
  display: grid;
  gap: 0.7rem;
}

.checkout-demo-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.checkout-demo-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "play copy time"
    "play wave time";
  align-items: center;
  column-gap: 0.78rem;
  row-gap: 0.28rem;
  width: 100%;
  border: 1px solid #ead9c9;
  border-radius: 22px;
  background: #fffdfa;
  padding: 0.64rem 0.82rem;
}

.checkout-demo-player audio {
  display: none;
}

.demo-play-btn {
  grid-area: play;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  color: #bc936d;
  background: #f3efeb;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.demo-play-btn.is-playing {
  color: #fff;
  background: linear-gradient(150deg, #b9854b, #a56f36);
}

.demo-play-btn:hover {
  transform: translateY(-1px);
}

.demo-play-btn:focus,
.demo-play-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(185, 133, 75, 0.22);
}

.demo-copy {
  grid-area: copy;
}

.demo-copy strong {
  display: block;
  color: #2f2a24;
  font-size: 1.02rem;
  line-height: 1.2;
}

.demo-copy small {
  display: block;
  margin-top: 0.12rem;
  color: #78695a;
  font-size: 0.9rem;
  line-height: 1.2;
}

.demo-wave {
  --progress: 0%;
  grid-area: wave;
  position: relative;
  width: min(100%, 460px);
  height: 20px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  justify-self: start;
}

.demo-wave::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #545454;
}

.demo-wave::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 6px;
  width: var(--progress);
  transform: translateY(-50%);
  border-radius: 999px;
  background: #bb844d;
}

.demo-wave span {
  display: none;
}

.demo-wave:focus,
.demo-wave:focus-visible {
  outline: 0;
  box-shadow: none;
}

.demo-time {
  grid-area: time;
  justify-self: end;
  align-self: center;
  text-align: right;
  font-size: 0.84rem;
  font-weight: 500;
  color: #8a7765;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 78px;
}

@media (max-width: 680px) {
  .quiz-card.final-stage .demos-panel {
    border-radius: 18px;
    padding: 0.8rem;
  }

  .checkout-demo-player {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "play copy"
      "wave wave"
      "time time";
    row-gap: 0.36rem;
  }

  .demo-wave {
    width: 100%;
  }

  .demo-time {
    justify-self: end;
    margin-top: 0.08rem;
  }
}

.quiz-legal {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.78rem;
  color: #8d8479;
  letter-spacing: 0.01em;
}

.mobile-final-cta {
  display: none;
}

@media (max-width: 920px) {
  .quiz-card.final-stage {
    padding-bottom: 6.2rem;
  }

  .is-final-step .mobile-final-cta {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: calc(0.58rem + env(safe-area-inset-bottom, 0px));
    z-index: 65;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.52rem 0.58rem;
    border-radius: 14px;
    border: 1px solid #e5d8cb;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: 0 10px 26px rgba(51, 35, 15, 0.16);
    backdrop-filter: blur(2px);
  }

  .mobile-final-cta__price {
    display: grid;
    gap: 0.02rem;
    line-height: 1.05;
  }

  .mobile-final-cta__price span {
    font-size: 0.74rem;
    color: #8b7d6f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
  }

  .mobile-final-cta__price strong {
    font-size: 1.28rem;
    color: #cc8241;
    font-weight: 800;
  }

  .mobile-final-cta__prices {
    display: inline-flex;
    align-items: baseline;
    gap: 0.38rem;
    line-height: 1;
  }

  .mobile-final-cta__price small {
    font-size: 0.74rem;
    color: #a59688;
    text-decoration: line-through;
    text-decoration-thickness: 1.3px;
    line-height: 1;
  }

  .mobile-final-cta__btn {
    border: 0;
    border-radius: 10px;
    min-height: 42px;
    padding: 0.66rem 1.05rem;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #1bc27a, #0ea867);
    box-shadow: 0 8px 16px rgba(16, 160, 101, 0.26);
    cursor: pointer;
  }

  .mobile-final-cta__btn:focus,
  .mobile-final-cta__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 168, 103, 0.24), 0 8px 16px rgba(16, 160, 101, 0.26);
  }
}

.quiz-card.final-stage .mini-row {
  margin-top: 0;
  padding: 0.42rem 0;
  border-top: 0;
  border-bottom: 1px solid #ede3d8;
}

.quiz-card.final-stage .mini-row + .mini-row {
  margin-top: 0;
}

.quiz-card.final-stage .compact-summary .mini-row:last-of-type {
  border-bottom: 1px solid #ede3d8;
}

.quiz-card.final-stage .summary-panel .mini-row:last-of-type {
  border-bottom: 0;
}

.quiz-card.final-stage .scarcity-row {
  margin-top: 1.05rem;
  display: flex;
  justify-content: center;
}

.quiz-card.final-stage .contact-panel p,
.quiz-card.final-stage .secure-note {
  color: #6f6f6f;
}

.quiz-card.final-stage .secure-note:first-of-type {
  display: inline-flex;
  margin: 0.5rem auto 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f7d50;
  background: #e8f7ee;
}

.quiz-card.final-stage .contact-panel input {
  background: #f6f2ec;
  border: 1px solid #e2d7cc;
}

.quiz-card.final-stage .checkout-btn {
  background: linear-gradient(180deg, #1bc27a, #0ea867);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 800;
  border-radius: 11px;
  min-height: 48px;
  box-shadow: 0 7px 14px rgba(18, 170, 104, 0.28);
}

.quiz-card.final-stage .checkout-btn:hover,
.quiz-card.final-stage .checkout-btn:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .quiz-card.final-stage .final-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .quiz-card.final-stage .final-title {
    font-size: 1.5rem;
    line-height: 1.14;
    letter-spacing: -0.01em;
  }
}






