:root {
    --primary-color: #9333EA;
    --primary-hover: #7E22CE;
    --bg-color: #FAE8FF;
    --text-color: #000000;
    --white: #ffffff;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Header/Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
    z-index: 10;
}

.back-btn:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-btn.hidden {
    display: none !important;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #E9D5FF;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Typography */
h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #000;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 800;
}

.subheadline {
    color: #4B5563;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: center;
}

.highlight {
    color: #8B5CF6;
    font-weight: 800;
}

/* Option Buttons - General */
.option-btn {
    width: 100%;
    background: white;
    border: 2px solid transparent;
    padding: 1rem;
    border-radius: 16px;
    /* Pill shapeish */
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-btn:hover {
    border-color: #D8B4FE;
}

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: #F3E8FF;
}

/* Style A: Letter + Text (Question 1) */
.option-btn.letter-style .letter-box {
    width: 40px;
    height: 40px;
    background: #F3E8FF;
    border: 1px solid #D8B4FE;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-btn.letter-style.selected .letter-box {
    background: var(--primary-color);
    color: white;
}

/* Style B: Image Grid (Question 2) */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #F3E8FF;
}

.option-card img {
    width: 100%;
    height: auto;
    display: block;
}

.option-card p {
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Style C: Icon + Text (Standard) */
.option-btn.icon-style {
    font-weight: 600;
    font-size: 1rem;
}

.option-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Style D: Detailed Options (Icon + Bold Title + Subtext) - Q4 */
.option-btn.detailed {
    display: flex;
    align-items: center;
}

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 700;
    font-size: 1rem;
}

.option-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-left: auto;
}

.option-btn.selected .check-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sliders */
.slider-container {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
}

.toggle-switch {
    background: #F3E8FF;
    display: inline-flex;
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.slider-val-display {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

input[type=range] {
    width: 100%;
    accent-color: var(--primary-color);
}

/* Interstitials */
.interstitial-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.g1-header {
    background: #C4170C;
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.alert-box {
    background: #DC2626;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

.info-box {
    background: #E0F2FE;
    color: #0369A1;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

/* Step List (Commitment) */
.step-item {
    background: #FDE047;
    /* Only step 2 had gold in screenshot? No, they were pink boxes */
    background: #FCE7F3;
    /* Pinkish */
    border: 1px solid #FBCFE8;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.step-title {
    font-weight: 800;
    margin-bottom: 5px;
}

/* Final Sales Page Specifics */
.sales-graph {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.price-box {
    text-align: center;
    margin: 20px 0;
}

.price-strike {
    text-decoration: line-through;
    color: #999;
}

.price-final {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Usage Bars Animation */
.usage-chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    margin: 30px 0;
    padding: 0 10px;
}

.usage-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    position: relative;
}

.usage-bar-wrapper {
    width: 100%;
    height: 180px;
    background: #F3E8FF;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Inner shadow for depth */
}

/* The animated bar inside */
.usage-bar {
    width: 100%;
    background: linear-gradient(180deg, #A855F7 0%, #7E22CE 100%);
    /* Gradient purple */
    border-radius: 20px 20px 0 0;
    /* Rounded top matches wrapper? Or fill from bottom? */
    border-radius: 15px;
    /* Slight roundness */
    width: 80%;
    /* Inner bar slightly narrower if desired, or full? Let's go full width-ish inside wrapper */
    width: 100%;
    margin-bottom: 0;

    /* Animation: height grows from 0 to 100% of its container (which is set by inline style height) */
    /* Actually inline style sets final height. We need animation to define the transition. */
    /* Since inline style is on the element itself, we can use a keyframe that goes from height: 0 to height: inherit? No. */
    /* Better approach: Use a pseudo element or animate max-height? */

    /* Let's use simple CSS transition on mount? */
    /* Because innerHTML replaces content, the elements are new. CSS animations fire on mount. */
    animation: growUp 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    /* Bouncy ease */
    transform-origin: bottom;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.bar-label {
    margin-top: 15px;
    font-weight: 800;
    color: #4B5563;
    font-size: 1rem;
}

.bar-sublabel {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 2px;
}

.bar-percent {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 100%;
    /* Sit on top of the bar */
    margin-bottom: 5px;
    /* Spacing */
    z-index: 5;
    font-weight: 800;
    color: #6B21A8;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;

    /* Let's position it nicely in JS or just fixed % bottom as I did in HTML */
}

/* Footer Fixed */
footer {
    text-align: center;
    padding: 10px;
    font-size: 0.6rem;
    /* 50% smaller than typical 1rem body copy */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Add padding to body to prevent content from being hidden behind footer */
body {
    padding-bottom: 50px;
}

.hero-img {
    width: 50%;
    max-width: 180px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}