/* ==========================================================================
   B2B SaaS Organic ARR & Pipeline ROI Calculator Stylesheet
   Theme: High-Tech White & Dark Navy with Electric Orange Highlights
   ========================================================================== */

.tool-page-wrapper {
    background-color: var(--bg-base, #FFFFFF);
    color: var(--text-primary, #090D1A);
    padding-bottom: 80px;
}

/* Tool Hero Section */
.tool-hero-section {
    position: relative;
    padding: 72px 24px 48px;
    background: radial-gradient(circle at 50% 0%, #FFF7ED 0%, #FFFFFF 70%);
    border-bottom: 1px solid #F1F5F9;
    text-align: center;
}

.tool-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.tool-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #FFF4EF;
    border: 1px solid #FFCFA8;
    color: #EA580C;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.tool-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange, #FF6823);
    box-shadow: 0 0 10px rgba(255, 104, 35, 0.6);
}

.tool-hero-title {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #090D1A;
    margin-bottom: 16px;
}

.tool-hero-title span.highlight {
    background: linear-gradient(135deg, #FF6823 0%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.1875rem);
    color: #475569;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 24px;
}

.tool-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.84rem;
    color: #64748B;
    font-weight: 500;
    flex-wrap: wrap;
}

.tool-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-trust-item svg {
    color: #10B981;
}

/* Calculator Grid Section */
.tool-calc-section {
    padding: 48px 24px;
}

.tool-calc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 960px) {
    .tool-calc-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

/* Left Card: Input Sliders Card */
.calc-card-inputs {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.calc-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #090D1A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.calc-card-subtitle {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 28px;
    line-height: 1.5;
}

.calc-input-group {
    margin-bottom: 28px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.calc-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-value-display {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-orange, #FF6823);
    font-feature-settings: "tnum";
    letter-spacing: -0.01em;
}

.calc-hint {
    font-size: 0.8125rem;
    color: #94A3B8;
    margin-top: 6px;
}

/* Custom Range Slider */
.calc-range-slider {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #E2E8F0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calc-range-slider:hover {
    background: #CBD5E1;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-orange, #FF6823);
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 104, 35, 0.4);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(255, 104, 35, 0.6);
}

.calc-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-orange, #FF6823);
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 104, 35, 0.4);
    cursor: grab;
}

/* Right Column: Live Output & Action Card */
.calc-card-results {
    background: #0F172A;
    border-radius: 20px;
    padding: 36px 32px;
    color: #FFFFFF;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.calc-card-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6823 0%, #FF8A4C 100%);
}

.results-header-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FF8A4C;
    margin-bottom: 12px;
}

.results-headline-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.results-headline-label {
    font-size: 0.8125rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-headline-val {
    font-size: clamp(2.2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
}

.results-headline-val span {
    color: #FF8A4C;
}

.results-headline-desc {
    font-size: 0.84rem;
    color: #94A3B8;
    margin-top: 8px;
}

/* 3 Secondary Mini-KPIs */
.results-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 580px) {
    .results-sub-grid {
        grid-template-columns: 1fr;
    }
}

.results-sub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.results-sub-label {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.results-sub-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

/* Primary CTA Button on Results Card */
.btn-calc-generate-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--brand-orange, #FF6823);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 18px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(255, 104, 35, 0.35);
    text-decoration: none;
}

.btn-calc-generate-report:hover {
    background: #E55A1B;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 104, 35, 0.5);
    color: #FFFFFF;
}

.btn-calc-microtext {
    font-size: 0.78rem;
    color: #64748B;
    text-align: center;
    margin-top: 12px;
}

/* Modal Dialog Styles */
.roi-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.roi-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.roi-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    transform: translateY(16px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-modal-backdrop.is-active .roi-modal-card {
    transform: translateY(0);
}

.roi-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: all 0.15s ease;
}

.roi-modal-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.roi-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.roi-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF4EF;
    color: #EA580C;
    border: 1px solid #FFCFA8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.roi-modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #090D1A;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.roi-modal-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    .modal-form-grid {
        grid-template-columns: 1fr;
    }
}

.modal-field {
    margin-bottom: 14px;
}

.modal-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #0F172A;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--brand-orange, #FF6823);
    box-shadow: 0 0 0 3px rgba(255, 104, 35, 0.15);
}

.btn-submit-modal {
    width: 100%;
    background: var(--brand-orange, #FF6823);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 104, 35, 0.25);
    margin-top: 8px;
}

.btn-submit-modal:hover {
    background: #E55A1B;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 104, 35, 0.4);
}

.modal-disclaimer {
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Modal Success State */
.modal-success-box {
    text-align: center;
    padding: 16px 0;
}

.success-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #10B981;
    font-size: 28px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #A7F3D0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    margin-bottom: 20px;
}

.success-arr-badge {
    display: inline-block;
    background: #FFF4EF;
    border: 1px solid #FFCFA8;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #EA580C;
    margin: 16px 0;
}

/* Authoritative Educational Content Styles */
.tool-content-section {
    padding: 48px 24px;
}

.tool-content-container {
    max-width: 880px;
    margin: 0 auto;
}

.tool-article-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

@media (max-width: 640px) {
    .tool-article-card {
        padding: 32px 20px;
    }
}

.tool-prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #090D1A;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tool-prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin-top: 28px;
    margin-bottom: 12px;
}

.tool-prose p {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 18px;
}

.tool-prose ul, .tool-prose ol {
    margin: 18px 0 24px 24px;
    color: #334155;
}

.tool-prose li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.tool-callout-box {
    background: #F8FAFC;
    border-left: 4px solid var(--brand-orange, #FF6823);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}

.tool-callout-box h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #090D1A;
    margin-bottom: 8px;
}

.tool-comparison-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.tool-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.90625rem;
    text-align: left;
}

.tool-comparison-table th {
    background: #0F172A;
    color: #FFFFFF;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
}

.tool-comparison-table tr:last-child td {
    border-bottom: none;
}

.tool-comparison-table tr:nth-child(even) {
    background: #F8FAFC;
}

/* FAQ Accordion Styling */
.tool-faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0;
}

.tool-faq-item:last-child {
    border-bottom: none;
}

.tool-faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #090D1A;
    margin: 0 0 8px;
}

.tool-faq-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
}

/* Spin Keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}
