/* ── Tool Hero ───────────────────────────────────────────────────────── */
.tool-hero {
    padding: 140px 0 80px;
    background: var(--white);
    text-align: center;
}

.tool-hero-title {
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
    font-variation-settings: 'wght' 700;
}

.tool-hero-description {
    font-size: 20px;
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.tool-hero-sub {
    font-size: 17px;
    color: var(--amber-dark);
    font-weight: 600;
    margin: 0;
}

/* ── Tool Input Section ──────────────────────────────────────────────── */
.tool-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.06) 0%, var(--light) 50%, rgba(0, 0, 128, 0.04) 100%);
}

.sitemap-input-row {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    align-items: center;
}

.sitemap-input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    font-size: 16.5px;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    min-width: 0;
}

.sitemap-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.sitemap-input::placeholder {
    color: #b0b4b8;
}

.tool-analyze-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 17.6px;
    padding: 13px 32px;
}

.tool-cap-note {
    text-align: center;
    font-size: 13px;
    color: var(--dark);
    opacity: 0.5;
    margin-top: 12px;
}

/* ── Threshold Slider ────────────────────────────────────────────────── */
.threshold-wrap {
    max-width: 700px;
    margin: 20px auto 0;
}

.threshold-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
}

.threshold-input-row {
    position: relative;
    margin-top: 32px;
    margin-bottom: 4px;
}

.threshold-input-row input[type=range] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    height: 4px;
}

.threshold-input-row input[type=range]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
}

.threshold-input-row input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
}

.threshold-val {
    position: absolute;
    top: -28px;
    left: 0;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
}

.threshold-val::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--primary);
}

.threshold-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.progress-bar-wrap {
    max-width: 700px;
    margin: 32px auto 0;
}

.progress-bar-track {
    height: 8px;
    background: rgba(30, 144, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.progress-label {
    text-align: center;
    font-size: 14px;
    color: var(--dark);
    opacity: 0.6;
    margin-top: 10px;
    margin-bottom: 0;
}

.progress-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 6px;
}

/* ── Error Box ───────────────────────────────────────────────────────── */
.tool-error-box {
    display: none;
    max-width: 700px;
    margin: 14px auto 0;
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #b91c1c;
}

/* ── Results Meta ────────────────────────────────────────────────────── */
.results-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    margin: 24px auto 0;
}

.results-meta-pill {
    background: var(--light);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--dark);
    border: 1px solid rgba(0, 0, 128, 0.08);
}

.results-meta-pill b {
    color: var(--primary);
}

/* ── Results Container ───────────────────────────────────────────────── */
.tool-results-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 144, 255, 0.12);
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.tool-hidden {
    display: none;
}

/* ── How It Works ────────────────────────────────────────────────────── */
.how-it-works {
    background: var(--white);
}

.how-it-works .service-icon {
    color: var(--amber);
}

/* ── Identify Section ────────────────────────────────────────────────── */
.identify-section {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.06) 0%, var(--light) 50%, rgba(0, 0, 128, 0.04) 100%);
}

.identify-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}

.identify-icon svg { width: 40px; height: 40px; }

/* ── CTA Booking ─────────────────────────────────────────────────────── */
.cta-booking {
    background: var(--primary);
    padding: 80px 0;
}

.cta-booking-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-booking-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.25;
    font-variation-settings: 'wght' 700;
}

.cta-booking-body {
    font-size: 18px;
    color: var(--white);
    opacity: 0.88;
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-booking-btn {
    background: var(--amber);
    color: var(--primary);
    border-color: var(--amber);
    font-size: 17.6px;
    padding: 12px 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-booking-btn:hover {
    background: var(--amber-dark);
    color: var(--white);
    border-color: var(--amber-dark);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tool-hero-title {
        font-size: 36px;
    }

    .sitemap-input-row {
        flex-direction: column;
    }

    .tool-analyze-btn {
        width: 100%;
        text-align: center;
    }

    .cta-booking-title {
        font-size: 28px;
    }

    .cta-booking-body {
        font-size: 16.5px;
    }
}

@media (max-width: 480px) {
    .tool-hero {
        padding: 120px 0 60px;
    }

    .tool-hero-title {
        font-size: 28px;
    }

    .tool-hero-description {
        font-size: 17.6px;
    }

    .threshold-label-row {
        font-size: 11px;
    }
}
