
/* =========================================
   1. HERO ADDON STYLES
   ========================================= */
.hero-addon-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.6); /* Glass effect dark */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px; /* Pill shape */
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: fadeInDown 0.8s ease-out;
}

.hero-addon-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding-right: 1rem;
    margin-right: 0.5rem;
}

.hero-addon-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-addon-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.hero-addon-link:hover {
    color: var(--color-accent);
    transform: translateY(-1px);
}

.hero-addon-icon {
    font-size: 1.1rem;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .hero-addon-container {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 1rem;
        padding: 1rem;
        gap: 0.5rem;
    }
    .hero-addon-title {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        padding-bottom: 0.5rem;
        width: 100%;
    }
}

/* =========================================
   2. PRICING CALCULATOR STYLES
   ========================================= */

/* Container - Increased max-width for desktop */
.pricing-calc-container {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column; /* Mobile First: Stack vertical */
    width: 100%;
    min-height: 650px; /* Desktop height maintenance */
}

@media(min-width: 1024px) {
    .pricing-calc-container {
        flex-direction: row; /* Desktop: Side by side */
    }
}

/* Left Side: Wizard */
.calc-wizard {
    flex: 3; /* 75% width on desktop */
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

@media(min-width: 768px) {
    .calc-wizard {
        padding: 2.5rem;
    }
}

@media(min-width: 1024px) {
    .calc-wizard {
        border-right: 1px solid var(--color-border-light);
        border-bottom: none;
        height: 100%; 
        justify-content: space-between;
    }
}

.wizard-header {
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--color-accent);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 col */
    gap: 1rem;
    width: 100%;
}

@media(min-width: 640px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 cols */
    }
}

@media(min-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 cols */
        gap: 1.5rem;
    }
}

/* Option Card */
.calc-option-label {
    cursor: pointer;
    display: block;
    height: 100%;
    position: relative;
}

.calc-option-input {
    display: none; /* Hide default radio/checkbox */
}

.calc-option-card {
    background: var(--color-bg-primary);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.calc-option-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Checked State */
.calc-option-input:checked + .calc-option-card {
    border-color: var(--color-primary);
    background: rgba(6, 182, 212, 0.08); /* Light primary bg */
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.calc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.calc-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    line-height: 1.3;
}

/* Right Side: Price Preview */
.calc-preview {
    flex: 1; /* 25% width on desktop */
    background: linear-gradient(145deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-top: 1px solid var(--color-border-light);
    min-width: 300px;
}

@media(min-width: 1024px) {
    .calc-preview {
        border-top: none;
        position: sticky; 
        top: 0;
        height: auto; 
        min-height: 100%; 
    }
}

.preview-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-tertiary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price-display {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.price-note {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 0;
    text-align: center;
    opacity: 0.8;
}

/* Navigation Buttons */
.wizard-nav {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Lead Form (Last Step) & Inputs */
.lead-form-container {
    animation: fadeIn 0.5s ease;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Input Styling */
.admin-input {
    width: 100%;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    display: block;
}

.admin-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

label.block {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

/* =========================================
   3. INTERACTIVE TECH MAP STYLES
   ========================================= */
.tech-map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .tech-map-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-map-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Tech Card */
.tech-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    z-index: 1;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.2);
    z-index: 20;
}

/* Fixed Icon Styles */
.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.tech-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
    fill: currentColor;
}

/* Name */
.tech-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.tech-card:hover .tech-name {
    color: var(--color-primary);
    transform: translateY(-5px);
}

/* Info Overlay */
.tech-info {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95); /* Dark overlay */
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10;
}

.tech-card:hover .tech-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tech-desc {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tech-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent, #3b82f6);
    font-weight: 600;
    border: 1px solid currentColor;
    padding: 4px 10px;
    border-radius: 20px;
}

/* =========================================
   4. SITE CHECKER WIDGET (X-RAY THEME)
   ========================================= */
.site-checker-container {
    background: #0f172a; /* Slate-900 */
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Input Section */
.checker-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checker-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.checker-input:focus {
    border-color: #06b6d4; /* Cyan-500 */
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Loading Animation */
.checker-loading {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.scan-radar {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(6, 182, 212, 0.3);
    border-top-color: #06b6d4;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

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

/* Results Layout */
.checker-results {
    display: none; /* Hidden by default */
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.report-url {
    font-weight: 600;
    color: #06b6d4;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Score Gauges */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .scores-grid { grid-template-columns: repeat(4, 1fr); }
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--color) var(--percent), #334155 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 68px;
    height: 68px;
    background: #0f172a;
    border-radius: 50%;
}

.score-number {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    z-index: 2;
}

.score-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Details Section */
.report-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #334155;
}

@media (min-width: 768px) {
    .report-details { grid-template-columns: 1fr 1.5fr; }
}

/* Mobile Mockup */
.mobile-mockup {
    background: #000;
    border-radius: 1.5rem;
    border: 4px solid #334155;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    max-width: 200px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

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

/* Metrics List */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.metric-label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.metric-val {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #38bdf8;
}

/* Score Colors */
.score-good { --color: #22c55e; color: #22c55e; }
.score-avg { --color: #f59e0b; color: #f59e0b; }
.score-poor { --color: #ef4444; color: #ef4444; }

/* CTA Area */
.checker-cta {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 1rem;
    border: 1px dashed #475569;
}

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

@media (max-width: 640px) {
    .checker-input-group { flex-direction: column; }
    .site-checker-container { padding: 1rem; border-radius: 1rem; }
}

/* =========================================
   5. BEFORE & AFTER SLIDER STYLES
   ========================================= */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 4px solid var(--color-border-light);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

/* Images */
.ba-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ba-image-before {
    width: 50%; /* Initial Width */
    border-right: 2px solid var(--color-primary);
    z-index: 2;
}

.ba-image-after {
    width: 100%;
    z-index: 1;
}

/* Slider Handle */
.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--color-primary);
    cursor: ew-resize;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; 
}

.ba-slider-handle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    right: -20px;
}

.ba-slider-button {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    border: 2px solid white;
}

/* Labels */
.ba-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.ba-label.before { left: 20px; }
.ba-label.after { right: 20px; }

/* Mobile Adjustments */
@media (max-width: 640px) {
    .ba-slider-container {
        border-width: 2px;
        border-radius: var(--radius-lg);
    }
    .ba-label {
        font-size: 0.75rem;
        padding: 4px 10px;
        top: 10px;
    }
    .ba-label.before { left: 10px; }
    .ba-label.after { right: 10px; }
}

/* =========================================
   6. CLIENT JOURNEY MAP STYLES
   ========================================= */
.journey-timeline {
    position: relative;
    padding: 2rem 0;
}

/* The Connecting Line */
.journey-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--color-border-light);
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 4px;
}

.journey-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* JS will animate this */
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    transition: height 1s ease-out;
}

/* Grid Layout */
.journey-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* Step Item */
.journey-step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.journey-step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating Layout (Desktop) */
@media (min-width: 768px) {
    .journey-step-item {
        width: 50%;
        margin-left: auto; /* Default Right */
        padding-left: 3rem;
        justify-content: flex-start;
    }
    /* Even items on Left */
    .journey-step-item:nth-child(even) {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: 3rem;
        flex-direction: row-reverse;
    }
    /* Icon on line */
    .journey-icon-wrapper {
        position: absolute;
        left: -2rem; /* Half of width (4rem) */
        top: 50%;
        transform: translateY(-50%);
    }
    .journey-step-item:nth-child(even) .journey-icon-wrapper {
        left: auto;
        right: -2rem;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .journey-line {
        left: 2rem; /* Align line to left */
    }
    .journey-steps-grid {
        gap: 3rem;
    }
    .journey-step-item {
        padding-left: 5rem;
        justify-content: flex-start;
    }
    .journey-icon-wrapper {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/* Icon Circle */
.journey-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); /* Glow */
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step-item:hover .journey-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
    background: var(--color-primary-bg);
}

.journey-icon {
    font-size: 1.75rem;
}

.journey-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-primary);
}

/* Content Box */
.journey-content-box {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.journey-step-item:hover .journey-content-box {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

/* Arrow connector */
.journey-content-box::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-50%) rotate(45deg);
}

@media (min-width: 768px) {
    .journey-step-item:nth-child(odd) .journey-content-box::before {
        left: -7px; /* Point left */
    }
    .journey-step-item:nth-child(even) .journey-content-box::before {
        right: -7px; /* Point right */
        left: auto;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid var(--color-border-light);
        border-top: 1px solid var(--color-border-light);
    }
}

@media (max-width: 767px) {
    .journey-content-box::before {
        display: none; /* Hide arrow on mobile */
    }
}

.journey-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.journey-desc {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.journey-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border-light);
    padding-top: 1rem;
}

.journey-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
}