/* calculator-app.css - Distinct from standard landing CSS */

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 0; /* prevent flex child from overflowing */
}

/* Background Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.2;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: -50px;
    right: -100px;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: 50px;
    left: -50px;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, 30px);
    }
}

.app-header {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
}

/* Progress Bar */
.progress-container {
    padding: 0.75rem 1.5rem;
    position: relative;
    background: transparent;
}

.progress-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: 0%;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e1e2d;
    border: 2px solid var(--bg-color);
    transition: all 0.4s;
}

.step-dot.active {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    transform: scale(1.3);
}

.step-dot.completed {
    background: #8b5cf6;
}

/* View Slider - Horizontal swiping effect */
.view-slider {
    flex: 1;
    display: flex;
    width: 500%;
    /* 5 Views */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 0; /* prevent flex overflow */
}

.app-view {
    width: 100vw;
    height: 100%;
    overflow-y: auto;
    /* Hide scrollbar for app native feel */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-view::-webkit-scrollbar {
    display: none;
}

.view-content {
    padding: 0.5rem 1rem 4.5rem;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.view-header {
    margin-bottom: 1rem;
}

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

.view-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.view-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Intro Step */
.intro-content {
    justify-content: center;
    text-align: center;
}

.badge-mini {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.intro-headline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.intro-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.intro-visual {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.intro-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Step 1: Goal/Challenge */
.choice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-body);
}

.choice-card:active {
    transform: scale(0.98);
}

.choice-card i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    width: 24px;
    text-align: center;
    transition: color 0.3s;
}

.choice-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.radio-circle .fill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s;
}

.choice-card.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.choice-card.active i {
    color: #3b82f6;
}

.choice-card.active .radio-circle {
    border-color: #3b82f6;
}

.choice-card.active .radio-circle .fill {
    background: #3b82f6;
}

/* Step 2: Roles */
.roles-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.role-card:active {
    transform: scale(0.98);
}

.role-card i.fa-solid {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    width: 24px;
    text-align: center;
    transition: color 0.3s;
}

.role-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.r-title {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

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

.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.check-circle i {
    font-size: 0.65rem;
    color: transparent;
    transition: all 0.3s;
}

/* Active Role State */
.role-card.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.role-card.active i.fa-solid:not(.check-circle i) {
    color: #a855f7;
}

.role-card.active .check-circle {
    background: #6366f1;
    border-color: #6366f1;
}

.role-card.active .check-circle i {
    color: white;
}

/* Step 2: Hours */
.hours-selector {
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 0;
}

.large-hours-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

#app-hours-val {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
}

.hours-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

input[type=range].styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin: 1rem 0;
}

input[type=range].styled-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: none;
}

input[type=range].styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: white;
    margin-top: -11px;
    box-shadow: 0 0 12px #3b82f6;
    border: 3px solid #3b82f6;
    cursor: pointer;
}

input[type=range].styled-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    border: 3px solid #6366f1;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding: 0 5px;
}

/* Step 3: Final Dashboard */
.dashboard-content {
    justify-content: center;
    padding-top: 0;
}

.final-dashboard {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.np-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dash-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-price {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
}

.dash-price .sub {
    font-size: 1.5rem;
}

.dash-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -1.5rem 2rem;
}

.comparison-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-col i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.stat-col span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-val {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-col.bad i {
    color: #ef4444;
}

.stat-col.bad .stat-val {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.stat-col.good i {
    color: #10b981;
}

.stat-col.good .stat-val {
    color: #10b981;
}

.guarantee-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* App Footer Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem 1rem;
    background: linear-gradient(to top, var(--bg-color) 80%, transparent);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.nav-btn {
    flex: 1;
    padding: 1.1rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.cta-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Social Proof Marquee */
.hero-social-proof {
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-social-proof::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.trusted-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.logo-marquee {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 1rem 0;
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 80s linear infinite;
}

.proof-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    filter: invert(1) brightness(2) grayscale(100%);
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 5rem;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .proof-logo {
        height: 35px;
        margin-right: 3rem;
    }
}

/* Compact layout for mobile screens to prevent overflow */
@media (max-height: 750px) {
    .view-content {
        padding: 0.5rem 1rem 3.5rem;
    }

    .view-header {
        margin-bottom: 0.5rem;
    }

    .view-header h2 {
        font-size: 1.25rem;
    }

    .view-header p {
        font-size: 0.8rem;
    }

    /* Intro */
    .badge-mini {
        margin-bottom: 1rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    .intro-headline {
        font-size: 1.5rem;
    }

    .intro-sub {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .intro-visual {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .intro-icon {
        font-size: 1.8rem;
    }

    .hero-social-proof {
        gap: 1rem;
    }

    /* Roles & Choices */
    .role-card {
        padding: 0.6rem 0.85rem;
    }

    .r-title {
        font-size: 0.85rem;
    }

    .r-desc {
        font-size: 0.7rem;
    }

    .choice-card {
        padding: 0.75rem 1rem;
    }

    .choice-text {
        font-size: 0.85rem;
    }

    /* Hours */
    .hours-selector {
        padding: 1rem 1rem;
    }

    .large-hours-display {
        margin-bottom: 1rem;
    }

    #app-hours-val {
        font-size: 3rem;
    }

    /* Dashboard */
    .dashboard-content {
        padding-bottom: 1rem !important;
    }

    .final-dashboard {
        padding: 1rem 1rem !important;
    }

    .np-price-container {
        margin-bottom: 1rem !important;
        gap: 0.25rem;
    }

    .dash-price {
        font-size: 2.8rem !important;
    }

    .dash-price .sub {
        font-size: 1.1rem;
    }

    .dash-divider {
        margin-bottom: 1rem !important;
    }

    .comparison-stats {
        margin-bottom: 1rem !important;
        gap: 0.5rem;
    }

    .stat-col i {
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }

    .guarantee-text {
        margin-top: 0.5rem !important;
        font-size: 0.7rem;
    }

    /* Footer */
    .app-footer {
        padding: 0.5rem 1rem 0.75rem;
    }

    .nav-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* Compact form inside dashboard */
    .dashboard-content .contact-form {
        gap: 0.75rem;
    }

    .dashboard-content .form-group label {
        font-size: 0.8rem;
        margin-left: 0.35rem;
    }

    .dashboard-content .form-group input {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .dashboard-content .form-group {
        gap: 0.3rem;
    }

    .dashboard-content .recaptcha-legal {
        font-size: 0.6rem;
        margin-top: -0.25rem;
    }
}

/* Extra compact for very short screens (e.g. iPhone SE, or landscape) */
@media (max-height: 670px) {
    .view-content {
        padding: 0.25rem 1rem 3rem;
    }

    .intro-headline {
        font-size: 1.3rem;
    }

    .intro-visual {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .badge-mini {
        margin-bottom: 0.75rem;
    }

    .intro-sub {
        margin-bottom: 0.75rem;
    }

    .role-card {
        padding: 0.5rem 0.75rem;
    }

    .roles-scroll {
        gap: 0.35rem;
    }

    .dash-price {
        font-size: 2.4rem !important;
    }

    #app-hours-val {
        font-size: 2.5rem;
    }
}