:root {
    --primary: #9b4dca;
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --bg-color: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.text-purple {
    color: var(--primary);
    font-weight: 700;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
    padding: 0.75rem 2rem;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Main Container to mimic mobile app width on desktop */
.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    text-align: center;
    padding: 1rem 0;
}

.logo-img {
    width: 130px;
    height: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0px 4px 10px rgba(236, 72, 153, 0.2));
}

/* Progress Bar */
.progress-wrapper {
    margin: 1rem 0 1.5rem 0;
    width: 100%;
}

.progress-bar-bg {
    background-color: #f3f4f6;
    height: 6px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--primary-gradient);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

/* Typography */
.title {
    font-size: 1.25rem;
    /* Adjusted for mobile view, matches images */
    font-weight: 700;
    text-align: center;
    color: #111827;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.primary-btn {
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.39);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Cards & Images */
.image-card {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.main-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

/* List Options - Radio Style */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
}

.option-row:hover,
.option-row:has(input:checked) {
    border-color: var(--primary);
    background-color: #faf5ff;
    /* very light purple */
    box-shadow: 0 1px 3px rgba(168, 85, 247, 0.1);
}

.option-row input {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.option-row input:checked+.custom-radio {
    border-color: var(--primary);
    background-color: var(--primary);
}

.option-row input:checked+.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.icon {
    font-size: 1.25rem;
}

.label {
    font-weight: 500;
    color: var(--text-main);
}

/* Grid Options (Checkboxes & Image Cards) */
.grid-options {
    display: grid;
    gap: 0.75rem;
}

.grid-options.half {
    grid-template-columns: 1fr 1fr;
}

/* Grid Options (Checkbox cards from image 4) */
.grid-option {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    /* Tighter padding for grid */
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.grid-option.selected,
.grid-option:hover {
    border-color: var(--primary);
    background-color: #faf5ff;
}

.checkbox-container {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.checkbox-container input {
    display: none;
}

.custom-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    /* Image 4 shows square checkboxes */
    background-color: white;
    transition: var(--transition);
}

input[type="checkbox"]:checked+.custom-checkbox {
    background-color: var(--primary);
    border-color: var(--primary);
    position: relative;
}

input[type="checkbox"]:checked+.custom-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Layout for icon and label in checkbox grid */
.grid-option .icon-label-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Image 4 left aligns icon and label? Actually it looks left-aligned in Image 4. Wait, let me check. */
    align-items: flex-start;
    padding-top: 1rem;
    gap: 0.5rem;
}

.icon-top {
    font-size: 1.5rem;
}

.label-bottom {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}


/* Image Options */
.image-option {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1/1;
    /* Square cards */
    transition: var(--transition);
}

.image-option:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
}

.option-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-option .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.image-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Styling for descriptions inside option rows */
.label-wrapper {
    display: flex;
    flex-direction: column;
}

.description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* Text Input Styling (Step 7) */
.input-container {
    width: 100%;
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Utils */
.centered-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Number Picker */
.picker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.picker-display {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.picker-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.picker-unit {
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 0.25rem;
    color: var(--text-muted);
}

.picker-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.picker-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: #faf5ff;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.picker-btn:hover {
    background-color: #f3e8ff;
}

.picker-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Goal Feedback Pill */
.goal-feedback {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    /* Pill shape */
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto 1.5rem auto;
    display: table;
}

/* Info Steps (Como Usar) */
.steps-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: white;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.bg-orange {
    background-color: #ffedd5;
    color: #ea580c;
}

.bg-purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

.bg-green {
    background-color: #dcfce7;
    color: #16a34a;
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.step-action {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf5ff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

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

.timeline-item .icon {
    font-size: 1.25rem;
}

.timeline-item .time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.25rem;
}

.timeline-item .desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-line {
    flex-grow: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 20px;
}

.green-btn {
    background-color: #22c55e;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
}

.green-btn:hover {
    background-color: #16a34a;
}

/* Analysis Result */
.imc-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: white;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.imc-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.imc-status {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.text-pink {
    color: #ec4899;
}

.alert-box {
    background-color: #fef2f2;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.alert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.alert-list {
    list-style: none;
    font-size: 0.85rem;
    color: #7f1d1d;
}

.highlight-promo {
    background: white;
    border: 1px solid #e9d5ff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.05);
}

.semi-bold {
    font-weight: 600;
}

.testimonial-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
}

.testimonial-img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonial-footer {
    padding: 1rem;
    text-align: center;
}

.testimonial-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
}

.testimonial-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Promise */
.promise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-icon {
    font-size: 4rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Loading Screen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 6px solid #f3e8ff;
    border-top: 6px solid #9333ea;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

.loading-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.loading-progress-bar-bg {
    width: 100%;
    max-width: 300px;
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.loading-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c084fc, #ec4899);
    transition: width 0.3s ease;
}

.loading-percentage {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Checkout */
.checkout-container {
    padding-bottom: 2rem;
}

.checkout-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.checkout-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
}

.border-purple {
    border-color: #c084fc;
}

.card-header {
    padding: 1rem;
    text-align: center;
}

.bg-pink {
    background: #ec4899;
}

.bg-purple {
    background: linear-gradient(90deg, #c084fc, #ec4899);
}

.text-white {
    color: white;
}

.card-body {
    padding: 1.25rem;
}

.text-sm {
    font-size: 0.9rem;
}

.uppercase {
    text-transform: uppercase;
}

/* Timeline Vertical */
.timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 20px;
    width: 2px;
    background: #e9d5ff;
    z-index: 0;
}

.t-row {
    display: flex;
    align-items: center;
    z-index: 1;
}

.t-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e9d5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    margin-right: 12px;
}

.t-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.t-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.t-desc {
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Checklist & Bonuses */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
}

.chk-icon {
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.5rem;
}

.bonus-box {
    background: #fdf4ff;
    border: 1px dashed #f17eb8;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bonus-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9d174d;
}

.text-green {
    color: #16a34a;
}

.guarantee-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--border-radius);
}

.green-cta {
    background-color: #22c55e;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.green-cta:hover {
    background-color: #16a34a;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Welcome Screen */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
}

.bowl-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: inline-block;
    border: 1px solid var(--border-color);
}

.bowl-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* Explanation Screen */
.explanation-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explanation-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
}

.explanation-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

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

.flow-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.flow-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.flow-arrow {
    font-size: 1rem;
    color: #cbd5e1;
}

.info-box-yellow {
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-radius: var(--border-radius);
    padding: 1rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-main);
    line-height: 1.4;
}

.gradient-btn {
    background: linear-gradient(90deg, #c084fc, #ec4899);
    border: none;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(192, 132, 252, 0.39);
}

.gradient-btn:hover {
    background: linear-gradient(90deg, #a855f7, #db2777);
    box-shadow: 0 6px 20px 0 rgba(192, 132, 252, 0.5);
    color: white;
}

.font-bold {
    font-weight: 700;
}

/* Historias de Transformacao */
.historia-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 5rem;
    /* space for sticky button if needed */
}

.historia-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.historia-img {
    width: 100%;
    height: auto;
    display: block;
}

.historia-footer {
    padding: 1rem;
    text-align: center;
}

.historia-quote {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.historia-author {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-historias {
    padding: 1rem;
    font-size: 1.05rem;
}