:root {
    --bg-base: #f8fbfb;
    --bg-surface: #ffffff;
    --bg-accent: #f0fdfa;
    --text-main: #0f2d2a;
    --text-headings: #052e2b;
    --text-dim: #4d6b67;
    
    /* Emerald & Turquoise Palette - derived directly from FaceLift Logo */
    --emerald-dark: #064e47;
    --emerald-primary: #0d9488;
    --emerald-light: #14b8a6;
    --emerald-accent: #2dd4bf;
    --emerald-mint: #99f6e4;
    --emerald-glow: rgba(13, 148, 136, 0.35);

    /* Luxury Metallic & Vibrant Gradients */
    --brand-gradient: linear-gradient(135deg, #0a7066 0%, #0d9488 35%, #2ad5be 70%, #08635a 100%);
    --brand-gradient-hover: linear-gradient(135deg, #0e8579 0%, #10a89a 35%, #3de2cc 70%, #0b7368 100%);
    --brand-metallic: linear-gradient(135deg, #04433d 0%, #0d9488 30%, #30dfc8 60%, #0f766e 85%, #033631 100%);
    --brand-subtle: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(45, 212, 191, 0.14) 100%);
    --gold-gradient: var(--brand-gradient); /* Legacy fallback replaced with brand gradient */

    /* Glassmorphism & Borders */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(13, 148, 136, 0.16);
    --card-hover: rgba(20, 184, 166, 0.08);
    --alert-red: rgba(235, 87, 87, 0.12);
    --alert-red-border: rgba(235, 87, 87, 0.35);
    --success-green: rgba(16, 185, 129, 0.12);
    --success-green-border: rgba(16, 185, 129, 0.35);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Radiant Animated Luxury Ambient Background */
.bg-animated {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 25%, rgba(204, 251, 241, 0.5) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(153, 246, 228, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #ffffff 0%, #f4fbfb 100%);
    z-index: -1;
    animation: rotateBg 45s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Progress Header */
.app-header {
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-header.visible {
    opacity: 1;
    transform: translateY(0);
}

#headerImg {
    width: 100%;
    max-width: 135px;
    margin: 0 auto 15px auto;
    display: block;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

#headerImg:hover {
    transform: scale(1.02);
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 10%;
    background: var(--brand-gradient);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.step-indicator {
    display: none;
    font-size: 0.85rem;
    color: var(--emerald-dark);
    font-weight: 600;
}

/* Steps and Transitions */
.step {
    display: none;
    flex-direction: column;
    animation: fadeInSlide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.step.active {
    display: flex;
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-headings);
    letter-spacing: -0.02em;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 450;
    line-height: 1.45;
}

.highlight-text {
    background: var(--brand-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Options Grid / List */
.options-grid.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Base Option Button */
button {
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.option-card {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.05);
}

.option-card::before, .option-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.option-card > *, .option-row > * {
    position: relative;
    z-index: 1;
}

.option-card:hover, .option-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.18);
    border-color: var(--emerald-primary);
}

.option-card:hover::before, .option-row:hover::before {
    opacity: 0.06;
}

.option-card:active, .option-row:active {
    transform: scale(0.97);
}

.option-card.age-card {
    padding: 2.2rem 1rem;
    min-height: 110px;
    justify-content: center;
    border-radius: 20px;
}

.option-card.age-card .age-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--emerald-dark);
    letter-spacing: -0.02em;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card.age-card:hover .age-number {
    color: var(--emerald-primary);
    transform: scale(1.08);
}

.img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 3px solid rgba(13, 148, 136, 0.25);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
    transition: all 0.3s ease;
}

.option-card:hover .img-wrapper {
    border-color: var(--emerald-accent);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.35);
}

.option-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.option-card span {
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 0.2rem;
    color: var(--emerald-dark);
}

.option-row {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.15rem 1.4rem;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.04);
}

.option-row.compact {
    padding: 1rem;
    justify-content: center;
    font-size: 1.05rem;
}

.option-row:hover {
    color: var(--emerald-dark);
    border-color: var(--emerald-primary);
    transform: translateY(-2px) translateX(3px);
}

.option-row.active-hover, .option-row:active {
    border-color: var(--emerald-primary);
    background: rgba(204, 251, 241, 0.4);
}

.emoji {
    font-size: 1.5rem;
    line-height: 1;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.split-image { flex: 1; }
.split-options { flex: 1; }
.focus-face-wrapper {
    position: relative;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.2);
    border: 2px solid rgba(13, 148, 136, 0.2);
    overflow: hidden;
}

.focus-face-img {
    width: 100%;
    display: block;
}

.circle-marker {
    position: absolute;
    border: 2px dashed var(--emerald-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
    animation: pulseMarker 2s infinite;
    transform: translate(-50%, -50%);
    background: rgba(45, 212, 191, 0.15);
}

@keyframes pulseMarker {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 6px rgba(45, 212, 191, 0.5); }
    50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 16px rgba(45, 212, 191, 0.85); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 6px rgba(45, 212, 191, 0.5); }
}

.cir-left { top: 44%; left: 38%; width: 30px; height: 30px; }
.cir-above { top: 26%; left: 50%; width: 45px; height: 45px; }
.cir-below { top: 68%; left: 50%; width: 45px; height: 45px; }
.cir-between { top: 35%; left: 56%; width: 22px; height: 22px; }

@media (max-width: 480px) {
    .split-layout { flex-direction: column; }
    .split-image { width: 65%; margin: 0 auto; }
}

/* Glass Panels & Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.06);
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--emerald-primary);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.25);
}

.stars {
    font-size: 0.95rem;
    margin-top: 2px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.55;
}

/* Primary Button - Ultra Premium Metallic Emerald Style */
.primary-btn {
    background: var(--brand-gradient);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 1.2rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(4, 52, 48, 0.4);
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
    0%, 60% { left: -60%; }
    100% { left: 140%; }
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.52), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    background: var(--brand-gradient-hover);
}

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

.shiny-btn {
    font-size: 1.25rem;
    padding: 1.3rem 2.2rem;
    letter-spacing: 1px;
}

.pulse-anim {
    animation: pulseBtn 2.2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(13, 148, 136, 0), inset 0 1px 1px rgba(255, 255, 255, 0.45); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0), inset 0 1px 1px rgba(255, 255, 255, 0.45); }
}

/* Chart Styles */
.chart-container { margin: 2rem 0; }
.chart-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--emerald-dark); }
.chart-visual { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; height: 120px; font-size: 0.75rem; font-weight: 600; margin-bottom: 20px;}
.chart-graph-area { flex: 1; position: relative; height: 150px; }
.line-chart { width: 100%; height: 120px; overflow: visible; }

.chart-labels { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; font-size: 0.8rem; font-weight: 500; color: var(--text-dim); }
.chart-legend { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: 0.95rem; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.emerald, .dot.gold { 
    background: var(--brand-gradient); 
    box-shadow: 0 0 8px rgba(13, 148, 136, 0.6); 
}
.dot.grey, .dot.pink-blue { background: #8b5cf6; }

/* Dynamic Chart Animations */
.chart-glow-bg { position: absolute; border-radius: 50%; filter: blur(35px); opacity: 0.65; pointer-events: none; }
.chart-glow-bg.top-right { top: -30px; right: -30px; width: 130px; height: 130px; background: rgba(13, 148, 136, 0.2); animation: floatGlow 6s ease-in-out infinite alternate; }
.chart-glow-bg.bottom-left { bottom: -20px; left: -20px; width: 110px; height: 110px; background: rgba(45, 212, 191, 0.18); animation: floatGlow 5s ease-in-out infinite alternate-reverse; }

@keyframes floatGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-10px, 10px); }
}

.anim-path-main {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}
.step.active .anim-path-main {
    animation: drawLineMain 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.anim-path-other {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}
.step.active .anim-path-other {
    animation: drawLineOther 1.5s ease-out forwards 0.8s;
}

.step.active .area-botox {
    animation: fadeArea 1s ease-out forwards 1.2s;
}
.step.active .data-points-other .pt-1-other { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s; }
.step.active .data-points-other .pt-2-other { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.1s; }
.step.active .data-points-other .pt-3-other { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.4s; }
.step.active .data-points-other .pt-4-other { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.7s, pulsePointOther 2s infinite 2.2s; }

.step.active .data-points .pt-1 { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s; }
.step.active .data-points .pt-2 { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.9s; }
.step.active .data-points .pt-3 { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.2s; }
.step.active .data-points .pt-4 { animation: popInPoint 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s, pulsePoint 2s infinite 2s; }
.step.active .tooltip-final { animation: popInPoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.8s, floatTooltip 3s ease-in-out infinite 2.3s; }

@keyframes drawLineMain {
    to { stroke-dashoffset: 0; }
}

@keyframes drawLineOther {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeArea {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popInPoint {
    0% { opacity: 0; transform: scale(0.5); transform-origin: center; }
    100% { opacity: 1; transform: scale(1); transform-origin: center; }
}

@keyframes pulsePoint {
    0% { filter: drop-shadow(0 0 2px rgba(13, 148, 136, 0.4)); }
    50% { filter: drop-shadow(0 0 9px rgba(45, 212, 191, 0.95)); }
    100% { filter: drop-shadow(0 0 2px rgba(13, 148, 136, 0.4)); }
}

@keyframes pulsePointOther {
    0% { filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.9)); }
    100% { filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.4)); }
}

@keyframes floatTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Loading View */
.loading-view { text-align: center; padding: 2rem 0; }

/* Premium Carousel Card */
.ba-carousel-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1448 / 1086;
    height: auto;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.12);
    display: flex;
    flex-direction: column;
}

.ba-carousel-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-gradient);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.ba-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.ba-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    z-index: 1;
}

.ba-carousel-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.ba-carousel-indicators {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ba-carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
}

.ba-carousel-indicators .indicator.active {
    background: var(--emerald-accent);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
}

.spinner-container { margin-bottom: 2rem; }
.spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(13, 148, 136, 0.15);
    border-top-color: var(--emerald-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-tasks { margin: 2rem 0; text-align: left; }
.task { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 1.1rem; 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border);
    border-radius: 12px; 
    margin-bottom: 0.8rem; 
    opacity: 0.45; 
    transition: all 0.3s ease; 
}
.task.active { 
    opacity: 1; 
    border-color: var(--emerald-primary);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.12);
}
.task-content { flex: 1; display: flex; flex-direction: column; width: 100%; }
.task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.task-text { font-size: 1rem; text-align: left; font-weight: 500; color: var(--text-main); }
.task-pct { font-weight: 700; color: var(--emerald-primary); }
.task-bar-container { width: 100%; height: 7px; background: rgba(13, 148, 136, 0.12); border-radius: 4px; overflow: hidden; }
.task-bar-fill { height: 100%; width: 0%; background: var(--brand-gradient); transition: width 0.1s linear; border-radius: 4px; }

.social-proof-roller {
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.social-proof-roller::before, .social-proof-roller::after {
    content: ''; position: absolute; top: 0; width: 30px; height: 100%; z-index: 2;
}
.social-proof-roller::before { left: 0; background: linear-gradient(to right, var(--bg-base), transparent); }
.social-proof-roller::after { right: 0; background: linear-gradient(to left, var(--bg-base), transparent); }

.roller-track {
    display: flex;
    gap: 1rem;
    animation: scrollTrack 15s linear infinite;
    width: max-content;
}
@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mini-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Diagnosis Grid */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .grid-2-col { grid-template-columns: 1fr; } }
.diagnosis-box { padding: 1.2rem; border-radius: 16px; border: 1.5px solid; }
.diagnosis-box h3 { font-size: 1rem; margin-bottom: 0.8rem; font-weight: 700; }
.diagnosis-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-dim); }
.red-box { background: var(--alert-red); border-color: var(--alert-red-border); }
.red-box h3 { color: #e11d48; }
.green-box { background: var(--success-green); border-color: var(--success-green-border); }
.green-box h3 { color: var(--emerald-primary); }

.alert-box { border-left: 4px solid #e11d48; }
.yellow-box { background: rgba(245, 159, 0, 0.08); border: 1px solid rgba(245, 159, 0, 0.25); border-left: 4px solid #f59f00; color: #1a1a1a; font-size: 0.95rem; line-height: 1.5; }

.level-bar-container p { margin-bottom: 30px; font-weight: 600; color: var(--text-main); }
.level-track { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; position: relative; overflow: visible; }
.level-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10b981, #f59f00, #ef4444); width: 85%; }
.level-marker { position: absolute; right: 5%; top: -25px; font-size: 0.8rem; font-weight: 700; color: #ef4444; background: rgba(239, 68, 68, 0.15); padding: 2px 8px; border-radius: 6px; }

/* Video & VSL */
.video-container { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 20px; box-shadow: 0 12px 35px rgba(13, 148, 136, 0.25); border: 2px solid rgba(13, 148, 136, 0.2); }
.video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.video-placeholder span { font-size: 1.25rem; font-weight: 700; color: var(--emerald-primary); margin-bottom: 0.5rem; }
.video-placeholder p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.2rem; }
.play-btn { 
    width: 64px; height: 64px; 
    border-radius: 50%; 
    background: var(--brand-gradient); 
    border: none; 
    color: #ffffff; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s; 
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}
.play-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.6);
}

.hidden { display: none !important; }
.safe-checkout { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin-top: 1rem; font-weight: 500; }

/* Before & After Slider */
.ba-slider-container { position: relative; width: 100%; margin: 1.5rem 0; }
.ba-slider { position: relative; width: 100%; height: 280px; overflow: hidden; border-radius: 20px; border: 2px solid var(--glass-border); box-shadow: 0 10px 30px rgba(13, 148, 136, 0.12); }
.img-after { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.img-before { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; clip-path: inset(0 50% 0 0); z-index: 2; pointer-events: none; }
.ba-slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; background: #ffffff; border: 3px solid var(--emerald-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; box-shadow: 0 4px 15px rgba(13, 148, 136, 0.45); }
.ba-slider-handle::before { content: ''; position: absolute; top: -300px; bottom: -300px; width: 3px; background: var(--emerald-primary); left: 50%; transform: translateX(-50%); z-index: -1; box-shadow: 0 0 6px rgba(13, 148, 136, 0.5); }
.ba-slider-handle .arrows { font-size: 13px; color: var(--emerald-primary); font-weight: 700; letter-spacing: -2px; }
.ba-slider-input { position: absolute; top:0; left:0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 10; }
.ba-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.85rem; font-weight: 800; color: var(--emerald-primary); text-transform: uppercase; letter-spacing: 1px; }

/* Static Testimonials */
.static-testimonials { width: 100%; text-align: left; }
.mini-testimony-row { display: flex; gap: 1rem; align-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 1rem; border-radius: 14px; margin-bottom: 0.8rem; }
.mini-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--emerald-primary); }
.mt-content strong { font-size: 0.95rem; color: var(--emerald-primary); display: block; margin-bottom: 4px; }
.mt-content p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.4; }

/* Elaborate Testimonial */
.elaborate-testimony { position: relative; }
.highlight-border { border: 1.5px solid var(--emerald-primary); box-shadow: 0 0 25px rgba(13, 148, 136, 0.2); }
.mb-4 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.8rem; }

/* Back Button */
.back-btn {
    position: absolute;
    top: 3.5rem;
    left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--glass-border);
    color: var(--emerald-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}
.back-btn:hover {
    background: var(--brand-gradient);
    color: #ffffff;
    transform: scale(1.08);
    border-color: var(--emerald-primary);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
}

/* Step 0 Styles */
.init-logo {
    width: 100%;
    max-width: 175px;
    margin: 0 auto 1.5rem auto;
    display: block;
    border-radius: 20px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 25px rgba(13, 148, 136, 0.18));
    transition: transform 0.3s ease;
}

.init-logo:hover {
    transform: scale(1.02);
}

.init-title {
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-headings);
    line-height: 1.25;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.init-subtitle {
    font-size: 1.85rem;
    font-weight: 800;
    text-align: center;
    background: var(--brand-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.init-progress-container {
    width: 100%;
    height: 10px;
    background: rgba(13, 148, 136, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.init-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.init-loading-text {
    font-size: 0.95rem;
    color: var(--emerald-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.init-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.init-ba-image {
    width: 85%;
    max-width: 480px;
    height: auto;
    image-rendering: high-quality;
    border-radius: 16px;
    filter: brightness(1.03) contrast(1.02);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.init-testimonials-container {
    width: 100%;
}

.init-testimonial-card {
    background: var(--glass-bg);
    border: 1.5px solid rgba(13, 148, 136, 0.22);
    border-radius: 1.1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.08);
    text-align: left;
    margin-bottom: 1rem;
}

.init-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.init-testimonial-header strong {
    font-size: 1.05rem;
    color: var(--emerald-dark);
}

.init-testimonial-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
    font-style: italic;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Carrossel da etapa 9 — enquadramento aprovado */
#step9 .ba-carousel-img {object-fit:contain;transform:none;}
#step9 .ba-carousel-track{background:#f8fdfc;}
#step9 .ba-carousel-indicators{padding:5px 8px;background:rgba(0,45,43,.35);border-radius:20px;}
#step9 .ba-carousel-card{flex-shrink:0;}
/* Tarja apenas nas duas novas comparações; as fotografias originais não são editadas. */
#step9 .ba-carousel-card { --comparison-footer-height: 34px; }
#step9 .ba-carousel-img.new-comparison { height: calc(100% - var(--comparison-footer-height)); object-fit: contain; object-position: center; }
#step9 .comparison-green-footer { display: none; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: var(--comparison-footer-height); grid-template-columns: 1fr 1fr; align-items: center; color: white; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; background: linear-gradient(105deg,#065d58 0%,#07968f 28%,#0dc6bb 48%,#07635e 68%,#08b4ae 100%); border-top: 1px solid rgba(255,255,255,.7); }
#step9 .ba-carousel-card:has(.new-comparison.active) .comparison-green-footer { display: grid; }
#step9 .comparison-arrow { position:absolute; left:50%; transform:translateX(-50%); font-size:27px; line-height:1; letter-spacing:0; color:#a5fff2; }
#step9 .ba-carousel-img.comparison-3-zoom { width:80%; left:10%; object-fit:cover; object-position:center 45%; transform:none; }
#step9 .comparison-disclaimer{font:12px Arial,sans-serif;color:#4d6b67;text-align:center;margin:4px 0 0;}
#step9 .comparison-disclaimer span{display:none;}
#step9 #baCarouselCard:has(.ba-carousel-img:nth-child(1).active) + .comparison-disclaimer .disclaimer-one{display:inline;}
#step9 #baCarouselCard:has(.ba-carousel-img:nth-child(2).active) + .comparison-disclaimer .disclaimer-two{display:inline;}
#step9 #baCarouselCard:has(.ba-carousel-img:nth-child(3).active) + .comparison-disclaimer .disclaimer-three{display:inline;}



/* Etapa 4: escolha única, sem opção destacada inicialmente. */
#step4 .split-options { width:100%; }
#step4 .split-options .option-row:focus-visible { outline:2px solid #065e56; outline-offset:3px; }
#step8 .chart-illustration-note { text-align:center; color:var(--text-dim); font-size:.72rem; line-height:1.25; margin:0 0 8px; }

/* Layout de altura variável: o espaço que sobra amplia foto/gráfico e separa os elementos.
   Nenhum conteúdo é ocultado; telas excepcionalmente pequenas podem rolar. */
@media (max-width:600px) {
    body:has(:is(#step4,#step5,#step8).active) { min-height:var(--quiz-viewport-height,100dvh); align-items:flex-start; }
    .app-container:has(:is(#step4,#step5,#step8).active) {
        --fit-height:var(--quiz-viewport-height,100dvh);
        --fit-gap:clamp(8px,calc(var(--fit-height)*.019),20px);
        --fit-padding:clamp(10px,calc(var(--fit-height)*.027),24px);
        height:var(--fit-height); min-height:0;
        padding:var(--fit-padding) clamp(16px,5.4vw,27px) max(12px,env(safe-area-inset-bottom));
    }
    .app-container:has(:is(#step4,#step5,#step8).active) .app-header { flex:none; margin-bottom:var(--fit-gap); }
    .app-container:has(:is(#step4,#step8).active) #headerImg { max-width:clamp(75px,calc(var(--fit-height)*.164),150px)!important; margin-bottom:var(--fit-gap)!important; }
    .app-container:has(:is(#step4,#step5,#step8).active) .progress-container { margin-bottom:0; }
    .app-container:has(:is(#step4,#step8).active) .back-btn { top:calc(var(--fit-padding) + 12px); }
    .app-container:has(#step5.active) .back-btn { top:calc(var(--fit-padding) + 12px); }
    :is(#step4,#step5,#step8).active { flex:1 0 0; min-height:0; gap:var(--fit-gap); }
    :is(#step4,#step5,#step8) .step-title { font-size:clamp(1.3rem,calc(var(--fit-height)*.036),1.8rem); line-height:1.14; margin:0; flex:none; }
    #step5 .step-title { padding-inline:28px; }
    :is(#step5,#step8) .step-subtitle { font-size:clamp(.9rem,calc(var(--fit-height)*.022),1.08rem); line-height:1.3; margin:0; flex:none; }

    #step4 .split-layout { flex:1 0 0; min-height:0; flex-direction:column; align-items:stretch; gap:var(--fit-gap); }
    #step4 .split-image { flex:1 0 0; min-height:95px; width:100%; margin:0; display:flex; align-items:center; justify-content:center; container-type:size; }
    #step4 .focus-face-wrapper { width:min(100%,75cqh); max-width:100%; flex:none; }
    #step4 .split-options { flex:none; width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(6px,calc(var(--fit-height)*.012),12px); }
    #step4 .split-options .option-row { width:100%; min-height:clamp(44px,calc(var(--fit-height)*.074),62px); padding:7px 10px; font-size:clamp(.94rem,calc(var(--fit-height)*.024),1.12rem); line-height:1.2; text-align:center; }
    #step4 .split-options .option-row:first-child { grid-column:1/-1; }
    #step5 #btnContinueStep5, #step8 #btnProximaEtapa { flex:none; margin:0; min-height:clamp(48px,calc(var(--fit-height)*.08),66px); padding:10px 12px; font-size:clamp(1rem,calc(var(--fit-height)*.026),1.2rem); line-height:1.25; }
    #step5 .ba-slider-container { flex:1 0 0; min-height:135px; display:flex; flex-direction:column; margin:0; }
    #step5 .ba-slider { flex:1 0 0; min-height:110px; height:auto; }
    #step5 .ba-labels { flex:none; margin-top:8px; }
    #step5 .init-testimonial-card { flex:none; margin:0; padding:clamp(10px,calc(var(--fit-height)*.021),20px); }
    #step5 .init-testimonial-header { margin-bottom:clamp(5px,calc(var(--fit-height)*.012),10px); gap:6px; flex-wrap:wrap; }
    #step5 .init-testimonial-header strong { font-size:clamp(.95rem,calc(var(--fit-height)*.024),1.12rem); }
    #step5 .init-testimonial-text { font-size:clamp(.88rem,calc(var(--fit-height)*.021),1.04rem); line-height:1.4; }
    #step8 .chart-container { flex:1 0 0; min-height:160px; margin:0; padding:clamp(12px,calc(var(--fit-height)*.026),22px)!important; display:flex; flex-direction:column; }
    #step8 .chart-title { flex:none; font-size:clamp(1.03rem,calc(var(--fit-height)*.025),1.3rem); line-height:1.2; margin:0 0 5px; }
    #step8 .chart-visual { flex:1 0 0; min-height:70px; padding:7px 6px 8px; }
    #step8 .chart-graph-area { height:100%; min-height:70px; margin-top:0!important; }
    #step8 .line-chart { display:block; width:100%; height:100%; }
    #step8 .chart-legend { flex:none; margin-top:var(--fit-gap)!important; gap:12px; font-size:clamp(.8rem,calc(var(--fit-height)*.019),.99rem); line-height:1.25; }
    #step8 .legend-item { gap:6px; }
    #step8 .legend-item .dot { flex:0 0 10px; width:10px; height:10px; }
}
@media (max-width:600px) and (max-height:600px) {
    #step4 .split-layout { flex-direction:row; align-items:stretch; }
    #step4 .split-image { flex:1 1 44%; min-width:0; width:auto; }
    #step4 .split-options { flex:1 1 56%; width:auto; grid-template-columns:1fr; align-content:center; }
    #step4 .split-options .option-row { min-height:42px; font-size:.9rem; padding-inline:8px; }
    
}
/* Equilíbrio visual: prioriza a foto da etapa 4 e evita sobreposição da seta na etapa 5. */
@media (max-width:600px) {
    .app-container:has(#step4.active) #headerImg { max-width:clamp(68px,calc(var(--fit-height)*.13),122px)!important; margin-bottom:clamp(6px,calc(var(--fit-height)*.012),12px)!important; }
    .app-container:has(#step4.active) .app-header { margin-bottom:clamp(7px,calc(var(--fit-height)*.013),13px); }
    #step4.active { gap:clamp(7px,calc(var(--fit-height)*.013),14px); }
    #step4 .split-layout { gap:clamp(7px,calc(var(--fit-height)*.013),14px); }
    #step4 .step-title { font-size:clamp(1.25rem,calc(var(--fit-height)*.033),1.7rem); }
    #step4 .split-options .option-row { min-height:clamp(44px,calc(var(--fit-height)*.067),60px); }
    #step4 .cir-left { width:13.4%; height:auto; aspect-ratio:1; }
    #step4 .cir-above, #step4 .cir-below { width:20%; height:auto; aspect-ratio:1; }
    #step4 .cir-between { width:10%; height:auto; aspect-ratio:1; }
    .app-container:has(#step5.active) .app-header { min-height:40px; display:flex; align-items:center; padding-left:48px; }
    .app-container:has(#step5.active) .back-btn { top:var(--fit-padding); }
    #step5 .step-title { padding-inline:0; }
    #step5 .primary-btn, #step8 .primary-btn { animation:none; }
}
@media (max-width:600px) and (max-height:600px) {
    #step4 .split-options .option-row { min-height:42px; }
    .app-container:has(:is(#step4,#step5,#step8).active) { --fit-gap:8px; --fit-padding:10px; }
    .app-container:has(:is(#step4,#step8).active) #headerImg { max-width:75px!important; }
    #step5 .init-testimonial-text { font-size:.88rem; line-height:1.3; }
    #step5 .init-testimonial-card { padding:10px 12px; }
    #step8 .chart-container { padding:12px!important; }
}


/* Nova logo e etapa de idade — identidade aprovada, fonte Inter original. */
#headerImg { max-width:175px; height:auto; }
.init-logo { max-width:205px; height:auto; }
#step1 .step-title { margin-bottom:0; }
#step1 .step-subtitle {
    align-self:center;
    width:100%;
    max-width:94%;
    color:var(--emerald-dark);
    background:linear-gradient(100deg,rgba(20,184,166,.12),rgba(45,212,191,.17));
    border-radius:999px;
    font-size:clamp(1.3rem,6.3vw,1.7rem);
    font-weight:700;
    line-height:1.22;
    padding:.65rem .8rem;
    margin:1.2rem auto 1.5rem;
}
#step1 .options-grid.two-col { gap:14px; }
#step1 .option-card.age-card {
    min-width:0;
    min-height:116px;
    padding:15px 12px;
    gap:8px;
    border-radius:22px;
    border:1px solid rgba(13,148,136,.20);
    border-bottom:2px solid rgba(13,148,136,.29);
    background:linear-gradient(160deg,#fff 0%,#f7fdfa 100%);
    box-shadow:0 7px 18px rgba(13,148,136,.10);
}
#step1 .age-card .age-number {
    font-size:clamp(1.85rem,9.5vw,2.5rem);
    font-weight:750;
    line-height:1.08;
    padding:0;
    white-space:nowrap;
}
#step1 .age-card .age-unit {
    display:block;
    width:100%;
    max-width:88%;
    padding:4px 6px;
    background:rgba(45,212,191,.12);
    border-radius:999px;
    font-size:1.05rem;
    line-height:1.2;
    font-weight:600;
    color:var(--emerald-dark);
}
#step1 .age-card:focus-visible { outline:2px solid var(--emerald-dark); outline-offset:3px; }
.app-container:has(#step1.active) #headerImg {
    max-width:184px!important;
    border-radius:14px;
    mix-blend-mode:normal!important;
    padding:5px;
    background:#fff;
}
@media (max-width:600px) {
    .app-container:has(#step1.active) {
        --age-vh:var(--quiz-viewport-height,100dvh);
        padding:clamp(12px,calc(var(--age-vh)*.028),26px) clamp(14px,4.8vw,24px) 16px;
    }
    .app-container:has(#step1.active) #headerImg {
        max-width:clamp(132px,calc(var(--age-vh)*.225),184px)!important;
        margin-bottom:clamp(10px,calc(var(--age-vh)*.019),16px)!important;
    }
    .app-container:has(#step1.active) .app-header {
        margin-bottom:clamp(16px,calc(var(--age-vh)*.04),30px);
    }
    #step1 .step-title { font-size:clamp(1.38rem,6.8vw,1.82rem); line-height:1.2; }
    #step1 .step-subtitle {
        margin:clamp(13px,calc(var(--age-vh)*.027),23px) auto clamp(16px,calc(var(--age-vh)*.033),29px);
        font-size:clamp(1.25rem,6.3vw,1.65rem);
    }
    #step1 .option-card.age-card {
        min-height:clamp(91px,calc(var(--age-vh)*.148),130px);
        padding:clamp(9px,calc(var(--age-vh)*.018),15px) 9px;
    }
    /* A nova logo é horizontal; estas larguras compensam a proporção sem aumentar a altura anterior. */
    .app-container:has(#step4.active) #headerImg {max-width:clamp(85px,calc(var(--fit-height)*.165),152px)!important;}
    .app-container:has(#step8.active) #headerImg {max-width:clamp(94px,calc(var(--fit-height)*.205),185px)!important;}
}
@media (max-width:600px) and (max-height:600px) {
    .app-container:has(#step1.active) #headerImg {max-width:120px!important; margin-bottom:8px!important;}
    .app-container:has(#step1.active) .app-header {margin-bottom:12px;}
    #step1 .step-title {font-size:clamp(1.18rem,6vw,1.5rem);}
    #step1 .step-subtitle {margin:10px auto 13px;padding:.45rem .7rem;}
    #step1 .options-grid.two-col {gap:9px;}
    #step1 .option-card.age-card {min-height:80px;padding:9px;gap:5px;}
    #step1 .age-card .age-number {font-size:clamp(1.65rem,8.2vw,2.15rem);}
    #step1 .age-card .age-unit {font-size:.95rem;}
    .app-container:has(:is(#step4,#step8).active) #headerImg {max-width:94px!important;}
}


/* Additional advance button on diagnosis step */
.diagnosis-top-advance {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}


/* Step 9 fit adjustments to keep all 3 loading cards visible */
#step9 .loading-view { padding: 0.5rem 0 0.35rem; }
#step9 .spinner-container { margin-bottom: 0.7rem; }
#step9 .spinner { width: 52px; height: 52px; }
#step9 .step-title { font-size: 1.55rem; line-height: 1.12; margin-bottom: 0.5rem; }
#step9 .ba-carousel-card { max-width: 355px; margin: 0.35rem auto 0.55rem auto; }
#step9 .comparison-disclaimer { margin: 0 0 0.55rem; font-size: 11px; }
#step9 .loading-tasks { margin: 0.6rem 0 0; }
#step9 .task { padding: 0.85rem 0.9rem; margin-bottom: 0.6rem; border-radius: 14px; }
#step9 .task-icon { width: 28px; font-size: 0.9rem; }
#step9 .task-text { font-size: 0.95rem; }
#step9 .task-pct { font-size: 0.95rem; }
#step9 .task-header { margin-bottom: 5px; }
#step9 .task-bar-container { height: 6px; }

#step10 .diagnosis-top-advance { margin-top: 0.9rem; }


/* Etapa 9: reserva altura para as três tarefas, reduzindo o carrossel
   apenas quando a altura útil do navegador exigir. Depoimentos seguem abaixo. */
#step9 .loading-first-fold { display: contents; }
@media (max-width: 600px) {
    .app-container:has(#step9.active.loading-in-progress) {
        --loading-vh: var(--quiz-viewport-height, 100dvh);
        --loading-top: clamp(10px, calc(var(--loading-vh) * .022), 22px);
        --loading-bottom: max(12px, env(safe-area-inset-bottom));
        --loading-gap: clamp(6px, calc(var(--loading-vh) * .014), 15px);
        padding: var(--loading-top) clamp(16px, 5.4vw, 27px) var(--loading-bottom);
    }
    .app-container:has(#step9.active.loading-in-progress) .app-header {
        flex: none; margin: 0 0 var(--loading-gap); height: 8px;
    }
    .app-container:has(#step9.active.loading-in-progress) .progress-container { margin: 0; }
    .app-container:has(#step9.active.loading-in-progress) .back-btn {
        top: calc(var(--loading-top) + 8px + var(--loading-gap));
    }
    #step9.loading-in-progress .loading-view { padding: 0; }
    #step9.loading-in-progress .loading-first-fold {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: var(--loading-gap);
        height: calc(var(--loading-vh) - var(--loading-top) - var(--loading-bottom) - 8px - var(--loading-gap));
        min-height: 0;
    }
    #step9.loading-in-progress .spinner-container {
        flex: none; margin: 0; min-height: 42px;
        display: flex !important; align-items: center; justify-content: center;
    }
    #step9.loading-in-progress .spinner {
        width: clamp(36px, calc(var(--loading-vh)*.065), 56px);
        height: clamp(36px, calc(var(--loading-vh)*.065), 56px);
    }
    #step9.loading-in-progress .loading-first-fold > .step-title {
        flex: none; margin: 0; font-size: clamp(1.28rem, 6.6vw, 1.8rem); line-height: 1.13;
    }
    #step9.loading-in-progress .ba-carousel-card {
        flex: 1 1 0; min-height: 80px; max-height: 315px;
        width: 100%; max-width: 420px; height: auto; aspect-ratio: auto; margin: 0 auto;
    }
    #step9.loading-in-progress .ba-carousel-track { flex: 1 1 auto; min-height: 0; }
    #step9.loading-in-progress .comparison-disclaimer {
        flex: none; margin: 0; font-size: 12px; line-height: 1.25;
    }
    #step9.loading-in-progress .loading-tasks {
        display: grid !important; grid-template-columns: minmax(0, 1fr);
        gap: clamp(6px, calc(var(--loading-vh)*.012), 12px);
        flex: none; margin: 0;
    }
    #step9.loading-in-progress .task {
        margin: 0; min-height: clamp(48px, calc(var(--loading-vh)*.082), 72px);
        padding: clamp(8px, calc(var(--loading-vh)*.015), 14px) 12px;
        gap: 9px;
    }
    #step9.loading-in-progress .task-icon { flex: 0 0 20px; width: 20px; }
    #step9.loading-in-progress .task-content { min-width: 0; width: auto; }
    #step9.loading-in-progress .task-header { gap: 5px; align-items: center; }
    #step9.loading-in-progress .task-text { font-size: clamp(.86rem, 3.9vw, 1rem); line-height: 1.2; }
    #step9.loading-in-progress .task-pct { flex: none; white-space: nowrap; font-size: .9rem; }
    /* A etapa continua rolável para ler os depoimentos ou em telas muito pequenas. */
    #step9.loading-in-progress #step9Testimonials { margin-top: 24px; }
}
@media (max-width:600px) and (max-height:500px) {
    #step9.loading-in-progress .loading-first-fold { height: auto; min-height: calc(var(--loading-vh) - 48px); }
    #step9.loading-in-progress .ba-carousel-card { flex: none; aspect-ratio: 4/3; height: auto; }
}
