/* =====================================================
   AITA PLATFORM LANDING — Linear-inspired minimal style
   ===================================================== */

/* # Sections */
.pl-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px var(--space-page-x) 0;
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-family: 'Golos Text', sans-serif;
}

.pl-section-tight {
    padding-top: 48px;
}

/* # Section label (small uppercase above title) */
.pl-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin: 0 0 16px 0;
}

/* # Section titles */
.pl-title {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
    max-width: 700px;
}

.pl-title-full {
    max-width: 600px;
}

.pl-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 16px auto 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
}

/* =====================================================
   HERO
   ===================================================== */
.pl-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.pl-hero-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 24px 0;
}

.pl-hero-headline {
    font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 0 24px 0;
    max-width: 800px;
}

.pl-hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 48px 0;
    max-width: 550px;
}

.pl-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.pl-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Golos Text', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.pl-btn-primary {
    background: #ffffff;
    color: #000000;
}

.pl-btn-primary:hover {
    opacity: 0.85;
}

.pl-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pl-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* =====================================================
   FEATURE CARDS (6-grid)
   ===================================================== */
.pl-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
}

.pl-feature-card {
    padding: 36px 32px;
    background: #000000;
    transition: background 0.2s ease;
}

.pl-feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pl-feature-icon {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.pl-feature-name {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.pl-feature-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   FULL PLATFORM — CHIPS LAYOUT
   ===================================================== */
.pl-chips-section {
    margin-top: 64px;
}

.pl-chips-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pl-chips-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    min-width: 140px;
}

.pl-coming-label {
    color: rgba(255, 255, 255, 0.15);
}

.pl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-chip {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Golos Text', sans-serif;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.pl-chip:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.pl-chip-coming {
    opacity: 0.35;
    border-style: dashed;
}

.pl-section-cta {
    text-align: center;
    margin-top: 56px;
}

/* =====================================================
   3 STEPS
   ===================================================== */
.pl-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
}

.pl-step-card {
    padding: 40px 32px;
    background: #000000;
    position: relative;
}

.pl-step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.pl-step-card-1::after {
    background: linear-gradient(160deg, rgba(57, 181, 74, 0.06), transparent 60%);
}

.pl-step-card-2::after {
    background: linear-gradient(160deg, rgba(0, 134, 204, 0.06), transparent 60%);
}

.pl-step-card-3::after {
    background: linear-gradient(160deg, rgba(133, 36, 216, 0.06), transparent 60%);
}

.pl-step-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pl-step-card-1 .pl-step-number {
    background-image: linear-gradient(to right, #39b54a, #4fc85d);
}

.pl-step-card-2 .pl-step-number {
    background-image: linear-gradient(to right, #0086cc, #1a9de6);
}

.pl-step-card-3 .pl-step-number {
    background-image: linear-gradient(to right, #8524d8, #9a3ee8);
}

.pl-step-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.pl-step-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   COMPARE FEATURES TABLE (GitHub-style)
   ===================================================== */
.pl-fc {
    margin-top: 64px;
}

.pl-fc-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Golos Text', sans-serif;
    table-layout: fixed;
}

.pl-fc-feature-col {
    width: 40%;
}

.pl-fc-plan-col {
    width: 20%;
    text-align: center;
    padding: 24px 16px;
    vertical-align: bottom;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pl-fc-plan-col.pl-fc-plan-hl {
    background: rgba(255, 255, 255, 0.03);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px 8px 0 0;
}

.pl-fc-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.pl-fc-plan-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.pl-fc-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Golos Text', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.pl-fc-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.pl-fc-btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.pl-fc-btn-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.85);
}

.pl-fc-btn-row td {
    padding-top: 28px !important;
    padding-bottom: 8px !important;
    border-bottom: none !important;
}

/* Category header */
.pl-fc-cat td {
    padding: 28px 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Feature rows */
.pl-fc-table tbody tr:not(.pl-fc-cat) td {
    padding: 14px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.pl-fc-table tbody tr:not(.pl-fc-cat) td:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding-right: 16px;
}

.pl-fc-table tbody tr:not(.pl-fc-cat) td:not(:first-child) {
    text-align: center;
}

.pl-fc-hl {
    background: rgba(255, 255, 255, 0.03);
}

/* Check / dash */
.pl-fc-yes {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 16px;
}

.pl-fc-no {
    color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

/* Custom CTA */
.pl-fc-cta {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.pl-fc-cta p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
}

.pl-fc-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.pl-fc-cta-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Responsive */
@media (max-width: 768px) {
    .pl-fc {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pl-fc-table {
        min-width: 600px;
    }
}

/* =====================================================
   WHY AITA (compare grid)
   ===================================================== */
.pl-compare-list {
    margin-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pl-compare-row {
    display: grid;
    grid-template-columns: 200px 1fr 24px 1fr;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pl-compare-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.pl-compare-old {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

.pl-compare-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    user-select: none;
}

.pl-compare-new {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* =====================================================
   FAQ
   ===================================================== */
.pl-faq {
    max-width: 700px;
    margin: 64px auto 0;
}

.pl-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pl-faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Golos Text', sans-serif;
    text-align: left;
    padding: 20px 40px 20px 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
}

.pl-faq-question:hover {
    opacity: 0.7;
}

.pl-faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.pl-faq-item.open .pl-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.pl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pl-faq-item.open .pl-faq-answer {
    max-height: 300px;
}

.pl-faq-answer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin: 0;
    padding-bottom: 20px;
}

/* # Contact & Footer — above blobs */
.contact-section,
.footer-section {
    position: relative;
    z-index: 1;
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.pl-form-wrapper {
    max-width: 560px;
    margin: 48px auto 0;
}

#platform-contact-form {
    max-width: 780px;
}

.pl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pl-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.pl-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pl-form-subtitle {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.pl-form-subtitle a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

.pl-select {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Golos Text', sans-serif;
    transition: border-color 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.pl-select:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.pl-select option {
    background: #000000;
    color: #ffffff;
}


/* =====================================================
   MODULE MODALS
   ===================================================== */
.pl-feature-clickable {
    cursor: pointer;
}

.pl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.pl-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pl-modal {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Golos Text', sans-serif;
}

.pl-modal-overlay.open .pl-modal {
    transform: translateY(0);
}

.pl-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 1;
}

.pl-modal-close:hover {
    color: #ffffff;
}

.pl-modal-header {
    padding: 40px 40px 0;
}

.pl-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
}

.pl-modal-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
}

.pl-modal-body {
    padding: 32px 40px 40px;
}

.pl-modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pl-modal-feature h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.pl-modal-feature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin: 0;
}

.pl-modal-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.pl-modal-flow-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .pl-section {
        padding-top: 80px;
    }

    .pl-section-tight {
        padding-top: 32px;
    }

    .pl-hero {
        padding-top: 100px;
        min-height: 100vh;
        padding-bottom: 80px;
        position: relative;
    }

    .pl-hero::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 160px;
        background: linear-gradient(to bottom, transparent, #000);
        pointer-events: none;
        z-index: 0;
    }

    .pl-hero > * {
        position: relative;
        z-index: 1;
    }

    .pl-grid-6 {
        grid-template-columns: 1fr;
    }

    .pl-steps-grid {
        grid-template-columns: 1fr;
    }

    .pl-chips-group {
        flex-direction: column;
        gap: 10px;
    }

    .pl-chips-label {
        min-width: auto;
    }

    .pl-compare-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px 0;
    }

    .pl-compare-arrow {
        display: none;
    }

    .pl-compare-old {
        font-size: 13px;
    }

    .pl-compare-new {
        font-size: 16px;
    }

    .pl-pricing-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pl-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .pl-btn {
        text-align: center;
    }

    .pl-form-row {
        grid-template-columns: 1fr;
    }

    .pl-form-buttons {
        flex-direction: column;
    }

    .pl-calc-body {
        grid-template-columns: 1fr;
    }

    .pl-calc-controls {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 20px;
    }

    .pl-calc-results {
        padding: 20px;
    }

    .pl-calc-header {
        padding: 20px;
    }

    .pl-modal {
        max-height: 90vh;
        border-radius: 16px;
    }

    .pl-modal-header {
        padding: 28px 24px 0;
    }

    .pl-modal-body {
        padding: 24px 24px 28px;
    }

    .pl-modal-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pl-modal-flow {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* AI Cost Calculator */
.pl-calc-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0 auto 32px;
    max-width: 560px;
}

.pl-calc-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.pl-calc-input { display: flex; flex-direction: column; gap: 12px; }

.pl-calc-input-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.pl-calc-input-row label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.pl-calc-input-row output {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.pl-calc-input input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.pl-calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 120ms;
}

.pl-calc-input input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.pl-calc-input input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 0;
}

.pl-calc-range-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.pl-calc-result {
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 14px;
    transition: opacity 150ms;
}

.pl-calc-result[data-loading="true"] { opacity: 0.6; }

.pl-calc-result-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.pl-calc-result-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    /* Reserve height so a transient loading/error never shrinks the line
       and shifts everything below it. 3rem font × ~1 line-height + small
       padding margin for descenders. */
    min-height: 3.25rem;
    transition: opacity 200ms ease;
}

/* Soft loading state — keep the previous value visible, just fade slightly. */
.pl-calc-total-block[data-loading="true"] .pl-calc-result-value {
    opacity: 0.55;
}

.pl-calc-result-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Inline non-disruptive error notice. Sits BELOW the big total and the
   note — auto-dismisses from JS after 3.5s. Compact font, no layout
   reservation when hidden. */
.pl-calc-error {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(251, 191, 36, 0.95);     /* amber-300 — warning, not error */
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
}
.pl-calc-error[hidden] { display: none; }

.pl-calc-cta { text-align: center; }

/* ── Extended calculator: hero, currency toggle, sections, chips ── */

/* Hero: currency toggle (left) + total block (right) */
.pl-calc-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.pl-calc-total-block {
    flex: 1;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 14px;
    transition: opacity 150ms;
}

.pl-calc-total-block[data-loading="true"] { opacity: 0.6; }

/* Currency toggle */
.pl-calc-currency {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.pl-calc-currency-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 140ms, color 140ms, border-color 140ms;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pl-calc-currency-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.pl-calc-currency-btn.active {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
    color: #22c55e;
}

/* Sections within the card */
.pl-calc-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-calc-section-bordered {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.pl-calc-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pl-calc-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.pl-calc-section-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Individual slider control block */
.pl-calc-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Range inputs in .pl-calc-control follow same style as .pl-calc-input */
.pl-calc-control input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.pl-calc-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 120ms;
}

.pl-calc-control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.pl-calc-control input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 0;
}

/* Helper text beneath a slider (per-employee metric, etc.) */
.pl-calc-helper {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    min-height: 1.1em;
}

/* Breakdown chips grid */
.pl-calc-breakdown {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pl-calc-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.pl-calc-chip-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
}

.pl-calc-chip-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Two-column row for calls/minutes sliders */
.pl-calc-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Call stats row */
.pl-calc-call-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pl-calc-call-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.pl-calc-call-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pl-calc-call-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .pl-calc-card { padding: 24px 20px; }
    .pl-calc-result-value { font-size: 2.25rem; }
    .pl-calc-input-row output { font-size: 1.25rem; }

    .pl-calc-hero {
        flex-direction: column;
    }

    .pl-calc-currency {
        flex-direction: row;
        width: 100%;
    }

    .pl-calc-currency-btn {
        flex: 1;
        text-align: center;
    }

    .pl-calc-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .pl-calc-breakdown .pl-calc-chip:last-child {
        grid-column: span 2;
    }

    .pl-calc-row-pair {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pl-calc-call-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pl-calc-call-stats .pl-calc-call-stat:last-child {
        grid-column: span 2;
    }
}
