:root {
    --primary: #ff4d6d;
    /* Vibrant Pink */
    --primary-hover: #d90429;
    --secondary: #ffb703;
    /* Energetic Orange/Yellow */
    --dark-bg: #ffeef2;
    /* Light Pink Background */
    --card-bg: #ffffff;
    /* White Card */
    --text-color: #333333;
    /* Darker Text for Contrast */
    --text-muted: #666666;
    --border-radius: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 100%);
    --card-shadow: 0 10px 30px rgba(255, 77, 109, 0.2);
    /* Softer Pink Shadow */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 77, 109, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 183, 3, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #fff0f3 0%, #ffd6e0 100%);
    contain: content;
    /* Performance hint */
}

#app {
    width: 100%;
    max-width: 800px;
    /* Shoe-card style constraint */
    padding: 20px;
}

/* Animations included specifically for "incredible animations" */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 77, 109, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Buttons */
.btn {
    display: block;
    /* Changed from inline-block to block for margin auto to work */
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    /* Centered with auto margins */
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.6);
}

.btn:active {
    transform: translateY(1px);
}

/* Landing Page */
.landing-container {
    text-align: center;
    padding: 5px 20px;
    /* Reduced top padding */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.benefit-list {
    list-style: none;
    text-align: left;
    margin: 0 auto 20px;
    max-width: 400px;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.benefit-item i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Quiz Container */
.quiz-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px 40px 40px;
    /* Increased top padding to accommodate progress text */
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideInRight 0.5s ease-out;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #ffd6e0;
    /* Light pink for unfilled */
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient);
    /* Strong pink gradient for filled */
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-copy {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #4cc9f0;
    /* Blue for step text */
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight {
    color: var(--primary);
    font-weight: 800;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.question-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: block;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.option-card {
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Horizontal layout only for focus areas selection on mobile */
.focus-areas-view .option-card {
    flex-direction: row;
    gap: 10px;
    padding: 15px;
}

.option-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.option-card:hover img {
    transform: scale(1.05);
}

.option-card:hover {
    background: rgba(255, 77, 109, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.option-card.selected {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

/* Checkbox specific styles */
.checkbox-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.2s;
}

.option-card.selected .checkbox-circle {
    background: white;
    border-color: white;
}

/* Slider Style */
.slider-container {
    margin: 40px 0;
    text-align: center;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.8);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #404040;
    border-radius: 2px;
}

.slider-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 20px;
}

/* Sales Page */
.sales-container {
    animation: fadeIn 0.8s ease;
    text-align: center;
}

.sales-header {
    margin-bottom: 30px;
}

.sales-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #4cc9f0;
    /* Success/Analysis color */
    margin-bottom: 10px;
}

.confirmation-box {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid #4cc9f0;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
    font-size: 0.95rem;
}

.deliverables-box {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    margin: 30px 0;
}

.deliverables-list li {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.deliverables-list li i {
    color: #43aa8b;
    margin-right: 12px;
    font-size: 1.2rem;
}

.price-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 30px;
    margin-top: 40px;
    border: 3px solid #feecf0;
    box-shadow: 0 15px 40px rgba(255, 77, 109, 0.15);
    position: relative;
    overflow: visible;
}

.discount-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    z-index: 10;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.3rem;
    margin-bottom: 5px;
    display: block;
}

.new-price {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #2ecc71;
    display: block;
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.price-display-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    /* Dark gray for stronger visibility */
    font-size: 0.7rem;
    max-width: 80px;
    text-align: center;
    font-weight: 600;
}

.trust-badge i {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #333;
    /* Stronger icon color */
}

.pulse-btn {
    animation: pulse-simple 2s infinite;
}

@keyframes pulse-simple {
    0% {
        transform: scale(1) auto;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    }

    50% {
        transform: scale(1.03) auto;
        box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
    }

    100% {
        transform: scale(1) auto;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    }
}

.guarantee-container {
    margin-top: 80px;
    padding: 10px;
    background: transparent;
    border: none;
}

.guarantee-seal {
    width: 150px;
    height: auto;
    display: block;
    margin: -60px auto 10px;
    /* Pull up to overlap top edge like a badge */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.guarantee-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Results Warning Page Styles */
.results-warning {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.warning-header {
    background: #fff5f5;
    border: 2px solid #ff4d4d;
    padding: 15px;
    border-radius: 12px;
    color: #d63031;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.warning-signals {
    text-align: left;
    margin: 20px 0;
    font-weight: 600;
}

.warning-signals div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.light-green-card {
    background: #f1fcf4;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 15px;
    color: #155724;
    text-align: left;
    margin: 25px 0;
    line-height: 1.5;
}

.testimony-box {
    margin: 30px 0;
    padding: 20px;
    background: #fbfbfb;
    border-radius: 15px;
}

.stars {
    color: #ffb703;
    font-size: 1.2rem;
    margin: 10px 0;
}

.luciene-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.cost-card {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
    color: #c0392b;
}

.cost-card div {
    margin-bottom: 8px;
    font-weight: 600;
}

.testimonials-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-item {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.testimonial-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #333;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

.stars-small {
    color: #ffb703;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.faq-section {
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: left;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* Deliverables Flex Layout */
.deliverables-flex {
    display: flex;
    gap: 30px;
    align-items: center;
}

.deliverables-image {
    flex: 1;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.deliverables-content {
    flex: 2;
}

/* Analysis Progress Bar */
.analysis-progress-container {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.analysis-progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.1s linear;
}

.analysis-percentage {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
}

/* Quiz Back Button */
.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    padding: 10px;
}

.back-btn:hover {
    color: var(--primary);
}

/* Testimonial Header with Avatar */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.small-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

@media (max-width: 768px) {
    #app {
        padding: 10px;
        max-width: 100%;
    }

    .landing-container {
        padding: 10px 15px;
    }

    .hero-title {
        font-size: 1.55rem;
        margin-bottom: 5px;
    }

    .small-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .benefit-list {
        padding: 15px;
        margin-bottom: 10px;
    }

    .quiz-container {
        padding: 45px 15px 20px;
        min-height: auto;
    }

    .focus-areas-view .options-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .focus-areas-view .option-card {
        padding: 10px;
        font-size: 0.9rem;
    }

    .deliverables-flex {
        flex-direction: column-reverse;
        /* Phrases on top, image below */
        gap: 20px;
    }

    .deliverables-image {
        max-width: 100%;
        width: 100%;
    }

    .question-text {
        font-size: 1.6rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 18px;
        font-size: 1rem;
    }

    .slider-value {
        font-size: 2.5rem;
    }

    .sales-title {
        font-size: 1.8rem;
    }

    .new-price {
        font-size: 2.5rem;
    }

    .deliverables-box {
        padding: 20px;
    }

    .btn {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
    }

    /* Trust Badges mobile adjustment */
    .price-display-container {
        gap: 15px;
    }

    .trust-badge {
        font-size: 0.6rem;
    }

    /* Improve touch targets for sliders */
    input[type=range]::-webkit-slider-thumb {
        height: 32px;
        width: 32px;
        margin-top: -14px;
    }

    input[type=range]::-webkit-slider-runnable-track {
        height: 6px;
    }
}

@media (max-width: 380px) {

    /* Small phones (iPhone SE, etc) */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.4rem;
    }
}

/* About Section */
.about-section {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin: 60px 0;
    text-align: left;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-image {
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: #000;
    color: #fff;
    padding: 40px 20px;
    margin: 0 -20px -20px;
    /* Bleed to edges */
    text-align: center;
}

.footer-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

/* Terms Page */
.terms-container {
    background: #fff;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    text-align: left;
    position: relative;
}

.terms-content h1 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

.terms-content h2 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}

.terms-content h3 {
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #444;
}

.terms-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.back-btn-terms {
    background: #f0f0f0;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 150px;
    }

    .about-section {
        padding: 30px 20px;
    }

    .terms-container {
        padding: 25px;
        border-radius: 0;
        margin: 0;
    }
}