:root {
    --primary: #A855F7;
    --primary-dark: #9333EA;
    --primary-light: #f4ebff;
    --secondary: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --urgency: #FF6B6B;
    --bg-color: #f0f2f5;
    --success: #28a745;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 6px 12px rgba(168, 85, 247, 0.25);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

#app {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

/* Screens */
.screen {
    width: 100%;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

.screen.active {
    display: flex;
}

.full-height {
    min-height: 100vh;
}

.content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(147, 112, 219, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(147, 112, 219, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(147, 112, 219, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Base Components */
button {
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: var(--radius);
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 0.5rem;
}

.btn-primary:active { transform: scale(0.98); }

.btn-large {
    background-color: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem;
    border-radius: var(--radius);
    width: 100%;
    box-shadow: var(--shadow-hover);
    text-transform: uppercase;
}

/* Quiz Specific */
.quiz-header {
    padding: 0.5rem 1rem;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    min-height: 45px;
}

.back-button {
    background: #f3f0ff;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 3px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.back-button:hover {
    background-color: #e8e2ff;
}

.logo {
    display: none;
}

.progress-bar-container {
    flex: 1;
    background-color: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-content {
    padding: 0.75rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-question {
    font-size: 1.4rem;
    margin: 0.75rem 0;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.main-title .highlight {
    color: #9c27b0;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quiz-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-align: center;
    color: #000;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.top-img {
    width: 60%;
    max-width: 120px;
    margin: 0 auto 0.75rem;
    display: block;
}

.step-img {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    display: block;
}

.info-img {
    margin-bottom: 2rem;
    margin-top: 0.5rem !important;
}

.enlarged-img {
    max-width: 550px !important;
    width: 100%;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Options */
.quiz-option {
    background-color: #f3f0ff;
    border: 1px solid #dcd0ff;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: none;
    margin-bottom: 0;
}

.quiz-option.option-compact {
    padding: 0.5rem 1rem;
    gap: 0.8rem;
}

.option-icon {
    font-size: 1.5rem;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image-container {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.option-img-asset {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.option-text {
    flex: 1;
}

.option-arrow {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9370DB;
    font-size: 0.8rem;
    opacity: 0.6;
}

.option-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #dcd0ff;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.quiz-option.selected .option-checkbox {
    background-color: var(--primary);
    border-color: var(--primary);
}

.quiz-option.selected .option-checkbox::after {
    content: "X";
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
}

.highlight-violet {
    color: var(--primary);
}

.first-step-btn {
    background-color: #f3ebfa;
    border: 1px solid #dcd0ff;
    border-radius: 16px;
    box-shadow: none;
    color: #0b0f19;
}

.quiz-option:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.quiz-option.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

/* Info Slide */
.info-slide-content {
    font-size: 1.35rem;
    text-align: center;
    color: var(--text-dark);
    margin: 1rem 0 0;
    line-height: 1.3;
    font-weight: 600;
}

.info-title {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    color: #000;
    margin-bottom: 0.25rem;
}

.badge-lilac {
    background-color: var(--primary);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 0;
    display: inline;
    font-size: inherit;
}

.small-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Slider Input */
.slider-container {
    margin: 1.5rem 0;
    text-align: center;
    background: #f9f7ff;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #efeaff;
}

.slider-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
}

.slider-unit {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 600;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(147, 112, 219, 0.15);
    flex-shrink: 0;
}

.slider-btn:active {
    transform: scale(0.9);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
}

.bmi-info-card {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    text-align: left;
}

.bmi-info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bmi-info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Loading */
.loading-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Loading Screen Enhancements */
.loading-checklist-vertical {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.check-item-v {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.check-item-v.active {
    opacity: 1;
    color: var(--text-dark);
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.check-item-v.active .check-icon {
    background: var(--primary);
}
.check-item-v.active .check-icon::after {
    content: "✓";
}

.loading-percent-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    text-align: center;
}

.loading-success-msg {
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
    background: #fdfbff;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #efeaff;
    text-align: center;
}

.loading-success-msg h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-bar-container {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
}

.loading-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}
.bmi-summary {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.bmi-score {
    font-size: 1.2rem;
    font-weight: 600;
}

.bmi-score span {
    font-size: 3rem;
    color: var(--primary);
    display: block;
    margin: 0.5rem 0;
}

.bmi-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bmi-gauge {
    position: relative;
    height: 40px;
    margin: 2rem 0;
}

.bmi-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.segment { flex: 1; }
.segment.yellow { background: #FFD93D; }
.segment.green { background: #6BCB77; }
.segment.orange { background: #FF9248; }
.segment.red { background: #FF6B6B; }

.bmi-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 22px;
    background: #333;
    transform: translateX(-50%);
    transition: left 1s ease;
}

.bmi-marker::after {
    content: "▼";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

.bmi-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Sales Page */
.urgency-banner {
    background-color: var(--urgency);
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sales-header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.sales-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sales-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Roller Picker */
.roller-container {
    position: relative;
    margin: 2rem 0;
    width: 100%;
    overflow: hidden;
    background: #fdfbff;
    border-radius: 20px;
    padding: 2rem 0;
    border: 1px solid #efeaff;
}

.roller-viewport {
    width: 100%;
    height: 80px;
    overflow-x: scroll;
    scrollbar-width: none;
    cursor: grab;
    position: relative;
    user-select: none;
    scroll-snap-type: x proximity;
}

.roller-viewport::-webkit-scrollbar { display: none; }

.roller-strip {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 50%; /* Center the first/last items */
    gap: 10px;
}

.ruler-tick {
    width: 2px;
    height: 20px;
    background: #ccc;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.ruler-tick.major {
    height: 40px;
    background: var(--primary);
    position: relative;
}

.ruler-tick.major::after {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.roller-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 60px;
    background: var(--primary);
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.4);
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    text-align: left;
    border: 1px solid #efeaff;
}

/* Premium Silhouette Styles (Option C Precise) */
.silhouette-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.silhouette-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.silhouette-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.silhouette-title { font-size: 0.95rem; font-weight: 800; color: #333; margin-bottom: 0.2rem; }
.silhouette-sub { font-size: 0.8rem; color: #888; margin-bottom: 1rem; }

.body-container {
    height: 180px;
    width: 90px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.body-svg-premium {
    width: 100%;
    height: 100%;
}

.actual-fill { fill: url(#grad-actual); stroke: #ff9a9e; stroke-width: 1.5; }
.goal-fill { fill: url(#grad-goal); stroke: var(--primary); stroke-width: 1.5; }

.diff-center-box {
    background: white;
    padding: 1rem 0.6rem;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    min-width: 65px;
    border: 1px solid #f0f0f0;
}

.diff-arrow { font-size: 1.3rem; margin-bottom: 0.2rem; line-height: 1; }
.diff-val { font-size: 1.1rem; font-weight: 900; color: #222; }

.check-pill {
    background: #f5f5f5;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: #444;
}

.check-pill::before {
    content: "✓";
    color: var(--success);
    font-size: 1.2rem;
}

.live-bmi-box {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px dashed var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bmi-status-final {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

.status-item strong {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.highlight-bmi {
    color: var(--primary) !important;
}

.container {
    padding: 0 1.5rem 2rem;
}

section.how-it-works,
section.program-details,
section.testimonials,
section.offer,
section.faq {
    margin: 3rem 0;
}

section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #ddd;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    background-image: linear-gradient(45deg, #eee 25%, #e5e5e5 25%, #e5e5e5 50%, #eee 50%, #eee 75%, #e5e5e5 75%, #e5e5e5 100%);
    background-size: 20px 20px;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    padding-left: 5px;
}

.benefits-list { list-style: none; }
.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-weight: 600;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.testimonial-img {
    height: auto;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stars { color: #FFD700; margin-bottom: 0.5rem; }

/* Offer */
.offer {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.discount-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--urgency);
    color: white;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.price-now {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.guarantee {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.shield-icon { font-size: 2.5rem; line-height: 1; }
.guarantee h4 { margin-bottom: 5px;}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: white;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: transparent;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--text-light);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 0.9rem;
}
