/* ============================================
   SimpleACD Pricing Page Styles
   Used on /features route
   ============================================ */

/* --- Container (scoped to pricing) --- */
.pricing-page .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Hero --- */
.pricing-hero {
    text-align: center;
    padding: 140px 0 30px;
    background: #fff;
}
.pricing-hero h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 44px;
    line-height: 53px;
    font-weight: 100;
    color: #333;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-sub {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    color: #999;
    margin-bottom: 4px;
}
.hero-trial {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    color: #999;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 30px 0 60px;
}
.pricing-section .container {
    padding: 0 5%;
}

/* --- Pricing Grid --- */
.pricing-grid {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 48px;
    position: relative;
}

/* --- Controls Column --- */
.pricing-controls {
    width: 270px;
    flex-shrink: 0;
    margin-top: 24px;
    display: flex;
}
.controls-inner {
    flex: 1;
    padding: 15px 12px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.controls-inner h3 {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #585858;
    margin-bottom: 14px;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.toggle-label {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #999;
    line-height: 1.3;
    transition: color 0.2s;
    cursor: pointer;
}
.toggle-label.active {
    color: #fec832;
    font-weight: 700;
}
.toggle-label small {
    font-weight: 400;
}
.toggle-switch {
    position: relative;
    width: 45px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    background: #fec832;
    border: none;
    border-radius: 300px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    outline: none;
}
.toggle-knob {
    position: absolute;
    top: 2px;
    right: 20px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 100%;
    transition: right 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.monthly .toggle-knob {
    right: 3px;
}

/* User Slider */
.user-slider {
    margin-bottom: 10px;
}
.slider-label {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #585858;
    display: block;
    margin-bottom: 10px;
}

.pricing-page input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    margin: 12px 0;
}
.pricing-page input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: transparent;
}
.pricing-page input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    background: #fec832;
    border-radius: 50%;
    cursor: pointer;
    border: 5px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    margin-top: -11px;
}
.pricing-page input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: transparent;
}
.pricing-page input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: #fec832;
    border-radius: 50%;
    cursor: pointer;
    border: 5px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    width: 100%;
}
.tick-label {
    font-family: "Lato", sans-serif;
    font-size: 11px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
    flex: 1;
}
.tick-label.active {
    color: #333;
    font-weight: 700;
}
.contact-note {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.contact-note a {
    color: #fec832;
    font-size: 12px;
}

/* --- Plan Cards --- */
.plan-card {
    width: calc((100% - 270px - 40px) / 4);
    padding: 0;
    position: relative;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Full-card colored background */
.plan-card .plan-header {
    padding: 15px 10px 8px;
    border-radius: 6px 6px 0 0;
    color: #fff;
}
.plan-card .plan-price {
    padding: 8px 10px 8px;
    line-height: 1;
    color: #fff;
}
.plan-card .plan-actions {
    padding: 8px 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 0 0 6px 6px;
    flex-grow: 1;
    justify-content: flex-end;
}
.plan-name {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 5px;
}

/* Plan color fills (all cards same color) */
.plan-card .plan-header,
.plan-card .plan-price,
.plan-card .plan-actions { background-color: #666; }

/* Price text is white on colored cards */
.plan-card .price-from,
.plan-card .price-from-label,
.plan-card .price-amount,
.plan-card .price-cents,
.plan-card .price-period {
    color: #fff;
}

/* Border-radius on first/last sections */
.plan-card .plan-header { border-radius: 6px 6px 0 0; }
.plan-card .plan-actions { border-radius: 0 0 6px 6px; }

/* Not Available overlay */
.plan-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.90);
    z-index: 5;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}
.plan-overlay span {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-card.not-available .plan-overlay {
    display: flex;
}

/* All cards get top margin so badge has room above Enterprise */
.plan-card {
    margin-top: 24px;
}

/* Plan badge - MOST POPULAR (tab above card) */
.plan-card.featured {
    z-index: 2;
}
.plan-badge {
    text-align: center;
    text-transform: uppercase;
    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
    border-radius: 8px 8px 0 0;
    background-color: #fec832;
    color: #fff;
    position: absolute;
    z-index: 1;
    top: -24px;
    left: 0;
    right: 0;
    letter-spacing: 0.5px;
}
/* Connect badge to card header seamlessly */
.plan-card.featured .plan-header {
    border-radius: 0;
}

/* Pricing display */
.price-from {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    vertical-align: top;
    position: relative;
    top: 6px;
}
.price-from-label {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-style: italic;
    vertical-align: bottom;
    position: relative;
    top: 0;
}
.price-amount {
    font-family: "Lato", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 28px;
    transition: all 0.2s;
}
.price-cents {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    vertical-align: top;
    position: relative;
    top: -4px;
    margin-left: 4px;
}
.price-period {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

/* Buttons */
.btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 3px;
    text-decoration: none;
    color: #fff;
    background-color: #fec832;
    transition: background-color 0.2s;
}
.btn-buy:hover {
    background-color: #ff9d2a;
    color: #fff;
}
.btn-buy:active {
    background-color: #eb6321;
}
.btn-trial {
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 0;
    border-radius: 3px;
    text-decoration: none;
    background-color: #fff;
    color: #585858;
    border: none;
    transition: background-color 0.2s;
}
.btn-trial:hover {
    background-color: #f5f5f5;
    color: #585858;
}
.btn-trial:active {
    background-color: #e6e6e6;
}

/* --- Feature Comparison Table --- */
.features-table {
    margin-bottom: 60px;
    overflow-x: auto;
}
.features-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.features-table thead th {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #585858;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 5px;
    text-align: center;
    border-bottom: 1px solid #ebebeb;
}
.features-table thead th:first-child {
    text-align: left;
    padding-left: 10px;
    width: calc(270px + 10px);
}
.features-table tbody tr {
    border-bottom: 1px solid #ebebeb;
}
.features-table tbody td {
    padding: 20px 5px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    border-left: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
}
.features-table tbody td:first-child {
    text-align: left;
    padding-left: 10px;
    border-left: none;
    border-right: none;
}
.feature-name {
    text-align: left;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    color: #585858;
}

/* Check dot */
.check {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fec832;
    border: 1px solid #fec832;
    border-radius: 50px;
}

/* --- Add-ons Section --- */
.addons-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 5%;
}
.addons-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 44px;
    line-height: 53px;
    font-weight: 100;
    color: #333;
    margin-bottom: 40px;
    letter-spacing: -1px;
}
.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.addon-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.addon-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.addon-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #fec832;
}
.addon-icon svg {
    width: 100%;
    height: 100%;
}
.addon-card h3 {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #585858;
    margin-bottom: 12px;
    line-height: 1.3;
}
.addon-price {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #999;
}
.addon-price strong {
    font-size: 16px;
    color: #585858;
}

.tax-note {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    color: #999;
    margin-bottom: 40px;
    padding-left: 5%;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .pricing-controls {
        width: 100%;
        margin-bottom: 8px;
    }
    .controls-inner {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        align-items: center;
        padding: 16px;
    }
    .controls-inner h3 {
        width: 100%;
        margin-bottom: 0;
    }
    .billing-toggle {
        margin-bottom: 0;
    }
    .user-slider {
        margin-bottom: 0;
        flex: 1;
        min-width: 200px;
    }
    .pricing-page input[type="range"] {
        width: 100%;
    }
    .slider-labels {
        width: 100%;
    }
    .plan-card {
        width: 48%;
    }
    .plan-badge {
        position: relative;
        top: 0;
        border-radius: 6px 6px 0 0;
        padding: 7px 0;
    }
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plan-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .pricing-hero h1 {
        font-size: 28px;
        line-height: 36px;
    }
    .controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .billing-toggle {
        justify-content: center;
    }
    .addons-grid {
        grid-template-columns: 1fr;
    }
    .features-table {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 8px;
    }
    .features-table thead th:first-child,
    .features-table tbody td:first-child {
        width: 140px;
    }
    .feature-name {
        font-size: 12px;
    }
    .features-table thead th {
        font-size: 11px;
        padding: 12px 4px;
    }
    .features-table tbody td {
        padding: 12px 4px;
    }
    .addons-section h2 {
        font-size: 28px;
        line-height: 36px;
    }
}
