:root {
  --purple: #1a0a2e;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --ivory: #f5f0e8;
  --viewport-height: 100svh;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--purple);
  overflow-x: hidden;
  overflow-anchor: none;
}

html { min-height: 100svh; }
* { box-sizing: border-box; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--ivory); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(201,168,76,.35); }

[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: 100%;
  min-height: var(--viewport-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(36px, 8vw, 56px) 20px 60px;
  overflow: hidden;
  background: var(--purple);
}

.app-shell.vsl-mode { padding: 52px 14px 20px; }
.app-content { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.vsl-mode .app-content { max-width: 1080px; }
.lineage-symbol-bg { position: absolute; top: 598px; left: calc(50% + 484px); transform: translate(-50%,-50%); width: 499px; height: 601px; opacity: .06; pointer-events: none; z-index: 0; }
.brand-logo { display: block; width: 118px; max-width: 100%; height: auto; margin: 0 auto clamp(14px,3vw,20px); opacity: 1; }

.diagnostic-banner { position: fixed; inset: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 9px 20px; background: linear-gradient(180deg,var(--gold-light),var(--gold)); color: var(--purple); text-align: center; z-index: 2147483646; }
.diagnostic-banner span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

.quiz-progress { width: 100%; max-width: 210px; margin: 0 auto 20px; }
.progress-text { margin-bottom: 8px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.progress-track { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.progress-segment { display: block; height: 3px; border-radius: 999px; background: rgba(201,168,76,.22); transition: background 300ms ease, box-shadow 300ms ease; }
.progress-segment.complete { background: var(--gold); box-shadow: 0 0 10px rgba(201,168,76,.25); }

.screens { opacity: 1; transition: opacity 300ms ease; }
.screens.fading { opacity: 0; }
.quiz-screen { width: 100%; }
.quiz-title { margin: 0 0 14px; color: var(--ivory); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(22px,5vw,28px); font-weight: 600; line-height: 1.3; text-align: center; }
.quiz-title.compact-title { margin-bottom: 12px; }
.quiz-intro { max-width: 440px; margin: 0 auto 32px; color: rgba(255,255,255,.45); font-size: 14px; line-height: 1.6; text-align: center; }
.title-divider { width: 56px; height: 1px; margin: 0 auto 32px; background: rgba(201,168,76,.3); }
.gender-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; justify-content: center; }
.gender-option, .answer-option { border: 1.5px solid var(--gold); border-radius: 12px; background: rgba(45,26,94,.35); cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.gender-option:hover, .answer-option:hover { background: rgba(201,168,76,.12); }
.gender-option:active, .answer-option:active { transform: scale(.99); }
.gender-option:focus-visible, .answer-option:focus-visible, .gold-cta:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.gender-option { position: relative; min-width: 0; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 18px 22px; overflow: hidden; color: var(--gold); font: 600 17px 'Inter',Arial,sans-serif; text-align: center; }
.gender-option::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%,rgba(201,168,76,.14),transparent 56%); opacity: .8; pointer-events: none; }
.gender-portrait { position: relative; z-index: 1; display: block; width: min(100%,190px); height: 175px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 22px rgba(0,0,0,.22)); transition: transform 220ms ease, filter 220ms ease; }
.gender-option:hover .gender-portrait { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 15px 28px rgba(201,168,76,.18)); }
.gender-label { position: relative; z-index: 1; display: block; width: 100%; padding-top: 14px; border-top: 1px solid rgba(201,168,76,.32); }
.answer-list { display: flex; flex-direction: column; gap: 12px; }
.answer-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; }
.answer-letter { width: 38px; height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 14px; font-weight: 700; }
.answer-text { flex: 1; color: var(--ivory); font: 400 15px 'Inter',Arial,sans-serif; }
.answer-arrow { color: var(--gold); font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.question-form { display: flex; flex-direction: column; width: 100%; max-width: 460px; margin: 0 auto; }
.quiz-input { width: 100%; min-height: 58px; padding: 15px 18px; border: 1.5px solid rgba(201,168,76,.78); border-radius: 12px; background: rgba(45,26,94,.48); color: var(--ivory); font: 500 17px 'Inter',Arial,sans-serif; text-align: left; outline: none; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; color-scheme: dark; }
.quiz-input::placeholder { color: rgba(255,255,255,.34); }
.quiz-input:focus { border-color: var(--gold-light); background: rgba(54,31,108,.58); box-shadow: 0 0 0 3px rgba(201,168,76,.13); }
.quiz-input.invalid { border-color: #e37a7a; box-shadow: 0 0 0 3px rgba(227,122,122,.1); }
.birthday-fields { display: grid; grid-template-columns: minmax(100px,.7fr) minmax(180px,1.3fr); gap: 12px; }
.birthday-field { display: flex; flex-direction: column; gap: 8px; }
.birthday-field label { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.birthday-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg,transparent 50%,var(--gold) 50%),linear-gradient(135deg,var(--gold) 50%,transparent 50%); background-position: calc(100% - 20px) calc(50% - 2px),calc(100% - 14px) calc(50% - 2px); background-size: 6px 6px,6px 6px; background-repeat: no-repeat; }
.initial-form { max-width: 280px; }
.initial-input { height: 82px; padding: 10px; font: 600 38px 'Playfair Display',Georgia,serif; text-align: center; text-transform: uppercase; }
.field-error { margin: 9px 2px 0; color: #f0a0a0; font-size: 12px; line-height: 1.4; text-align: center; }
.continue-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 17px 24px; border: 0; border-radius: 12px; background: linear-gradient(180deg,var(--gold-light),#a07828); color: var(--purple); font: 700 16px 'Inter',Arial,sans-serif; cursor: pointer; box-shadow: 0 6px 24px rgba(201,168,76,.24); transition: transform 180ms ease, filter 180ms ease; }
.continue-button:hover { filter: brightness(1.07); }
.continue-button:active { transform: scale(.99); }
.continue-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.continue-button span { font-size: 22px; line-height: 1; }

@keyframes lineagePulse { 0%,100% { transform: scale(.82); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }
.analysis-screen { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.analysis-symbol { width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; border: 1px solid rgba(201,168,76,.55); border-radius: 50%; box-shadow: 0 0 36px rgba(201,168,76,.12); }
.analysis-symbol img { width: 42px; height: 51px; object-fit: contain; animation: lineagePulse 1.2s ease-in-out infinite; }
.analysis-title { margin: 0 0 12px; color: var(--ivory); font: 600 clamp(24px,5vw,30px)/1.25 'Playfair Display',Georgia,serif; }
.analysis-copy { max-width: 390px; margin: 0; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.55; }
.analysis-dots { display: flex; gap: 7px; margin-top: 24px; }
.analysis-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: lineagePulse 1.2s ease-in-out infinite; }
.analysis-dots span:nth-child(2) { animation-delay: .2s; }
.analysis-dots span:nth-child(3) { animation-delay: .4s; }

.vsl-heading h1 { width: 100%; max-width: 620px; margin: 0 auto 7px; color: var(--ivory); font: 600 clamp(19px,2.1vw,26px)/1.18 'Playfair Display',Georgia,serif; text-align: center; }
.vsl-heading p { max-width: 590px; margin: 0 auto 12px; color: rgba(255,255,255,.55); font-size: clamp(12px,1.15vw,14px); line-height: 1.35; text-align: center; }
.vsl-video-box { position: relative; width: min(340px,calc(100vw - 28px),calc((var(--viewport-height) - 220px) * .5625)); aspect-ratio: 9/16; margin: 0 auto 14px; overflow: hidden; border: 1px solid rgba(201,168,76,.5); border-radius: 10px; background: rgba(255,255,255,.03); }
.vsl-video-box vturb-smartplayer { display: block; width: 100%; height: 100%; margin: 0 auto; }
.vturb-player-placeholder { position: relative; width: 100%; padding: 177.7777777778% 0 0; z-index: 0; background: #000; }

.offer-content { width: 100%; }
.primary-cta { width: 100%; max-width: 620px; margin: 0 auto; }
.gold-cta { display: block; width: 100%; padding: 17px 28px; border: 0; border-radius: 12px; background: linear-gradient(180deg,var(--gold-light) 0%,#a07828 100%); color: var(--purple); font: 700 clamp(15px,3.8vw,18px)/1.25 'Playfair Display',Georgia,serif; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 5px 28px rgba(201,168,76,.33),inset 0 1px rgba(255,255,255,.28); transition: transform 180ms ease,box-shadow 180ms ease,filter 180ms ease; }
.gold-cta:hover { filter: brightness(1.08); box-shadow: 0 7px 32px rgba(201,168,76,.46),inset 0 1px rgba(255,255,255,.32); transform: translateY(-1px); }
.gold-cta:active { transform: scale(.985); }
.secure-line { margin-top: 9px; color: rgba(255,255,255,.46); font-size: 11px; line-height: 1.45; text-align: center; }
.offer-section { position: relative; padding: clamp(64px,8vw,96px) 14px; border-top: 1px solid rgba(201,168,76,.18); }
.offer-section::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 0%,rgba(91,55,158,.14),transparent 46%); }
.section-inner { position: relative; z-index: 1; width: 100%; max-width: 960px; margin: 0 auto; }
.section-inner.narrow { max-width: 780px; }
.section-eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.section-title { max-width: 780px; margin: 0 auto 14px; color: var(--ivory); font: 600 clamp(28px,4.4vw,46px)/1.12 'Playfair Display',Georgia,serif; text-align: center; }
.section-subtitle { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,.56); font-size: clamp(14px,1.7vw,17px); line-height: 1.65; text-align: center; }
.section-copy { color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.75; }
.cta-wrap { width: 100%; max-width: 620px; margin: 34px auto 0; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; max-width: 820px; margin: 38px auto 0; }
.testimonial-card { overflow: hidden; border: 1px solid rgba(201,168,76,.38); border-radius: 16px; background: linear-gradient(180deg,rgba(45,26,94,.55),rgba(24,10,45,.78)); box-shadow: 0 16px 46px rgba(0,0,0,.2); }
.testimonial-shot { display: block; width: 100%; height: auto; background: #151817; }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px 17px; }
.testimonial-focus { color: var(--ivory); font: 600 19px 'Playfair Display',Georgia,serif; }
.testimonial-label { margin-top: 5px; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.guarantee-card { margin-top: 34px; padding: clamp(26px,5vw,48px); border: 1px solid rgba(201,168,76,.42); border-radius: 20px; background: linear-gradient(145deg,rgba(58,32,111,.56),rgba(21,9,40,.78)); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.guarantee-seal { width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 24px 'Playfair Display',Georgia,serif; box-shadow: 0 0 32px rgba(201,168,76,.14); }
.guarantee-copy { max-width: 680px; margin: 0 auto; }
.guarantee-copy p { margin: 0 0 16px; }
.guarantee-copy .guarantee-final { margin-bottom: 0; color: var(--ivory); }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 38px; }
.module-card { padding: 23px; border: 1px solid rgba(201,168,76,.27); border-radius: 14px; background: rgba(45,26,94,.34); }
.module-card.bonus { grid-column: 1/-1; border-color: rgba(201,168,76,.52); background: linear-gradient(135deg,rgba(90,55,153,.38),rgba(45,26,94,.28)); }
.module-number { margin-bottom: 9px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.module-name { margin: 0 0 9px; color: var(--ivory); font: 600 21px/1.25 'Playfair Display',Georgia,serif; }
.module-description { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.65; }
.price-card { max-width: 680px; margin: 42px auto 0; padding: clamp(28px,5vw,48px); border: 1px solid rgba(201,168,76,.52); border-radius: 20px; background: radial-gradient(circle at 50% 0%,rgba(201,168,76,.13),transparent 45%),rgba(18,7,35,.82); text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.old-prices { display: flex; justify-content: center; gap: 18px; color: rgba(255,255,255,.35); font-size: 15px; }
.old-prices span { text-decoration: line-through; }
.today-label { margin-top: 20px; color: rgba(255,255,255,.62); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.price-main { margin-top: 4px; color: var(--gold-light); font: 700 clamp(54px,10vw,78px)/1 'Playfair Display',Georgia,serif; text-shadow: 0 0 32px rgba(201,168,76,.18); }
.installments { margin-top: 8px; color: rgba(255,255,255,.66); font-size: 16px; }
.price-cta { margin-top: 28px; }
.faq-list { margin-top: 36px; border-top: 1px solid rgba(201,168,76,.24); }
.faq-item { border-bottom: 1px solid rgba(201,168,76,.24); }
.faq-item summary { position: relative; padding: 22px 42px 22px 0; color: var(--ivory); font: 600 clamp(17px,2.4vw,21px)/1.35 'Playfair Display',Georgia,serif; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; top: 20px; right: 4px; color: var(--gold); font: 400 24px 'Inter',Arial,sans-serif; transition: transform 180ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 40px 24px 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }

@media (max-width: 720px) {
  .app-shell.quiz-mode { justify-content: center; padding-top: max(24px,env(safe-area-inset-top)); padding-bottom: max(24px,env(safe-area-inset-bottom)); }
  .quiz-mode .app-content { margin-top: auto; margin-bottom: auto; }
  .gender-options { gap: 12px; }
  .gender-option { min-height: 220px; padding: 14px 10px 18px; }
  .gender-portrait { width: min(100%,150px); height: 145px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card.bonus { grid-column: auto; }
  .testimonial-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .offer-section { padding-left: 0; padding-right: 0; }
  .old-prices { flex-direction: column; gap: 4px; }
}

@media (max-width: 720px) and (max-height: 650px) {
  .app-shell.quiz-mode { justify-content: flex-start; }
  .quiz-mode .app-content { margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 390px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .gender-option { min-height: 204px; }
  .gender-portrait { height: 132px; }
  .birthday-fields { grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
  .answer-option { gap: 12px; padding: 15px 14px; }
  .answer-letter { width: 34px; height: 34px; flex-basis: 34px; }
  .answer-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
