/* Pricing Page — layout & components only (fonts from site styles) */

:root {
    --primary: #d26f46;
    --primary-dark: #f25f2b;
    --secondary: #f25f2b;
    --text-main: #333333;
    --text-muted: #777777;
    --card-border: #e4e5f0;
}

.pricing-tabs-shell {
    padding: 80px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(242, 107, 39, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(93, 135, 255, 0.16), transparent 55%),
        #f6f7fb;
}

.pricing-tabs-shell .container {
    max-width: 1140px;
    margin: 0 auto;
}

.pricing-tabs-header-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-tabs-header {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}

.pricing-tab-button {
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.pricing-tab-button.active {
    background: linear-gradient(135deg, #f26b27, #ff9b4b);
    color: #ffffff;
    transform: translateY(-1px);
}

.pricing-tab-button:not(.active):hover {
    background: rgba(15, 23, 42, 0.03);
}

.pricing-video-cta-wrap {
    text-align: center;
    margin: 0 0 28px;
}

.pricing-video-cta-wrap[hidden] {
    display: none !important;
}

.pricing-video-cta-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 14px;
}

.pricing-video-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
}

.pricing-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: none;
    border-radius: 16px;
    padding: 15px 22px;
    min-width: min(100%, 280px);
    max-width: 360px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #f26b27, #ff9b4b);
    box-shadow: 0 12px 28px rgba(242, 107, 39, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pricing-video-btn--alt {
    background: linear-gradient(135deg, #1e3a5f, #3d6b9e);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.28);
}

.pricing-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(242, 107, 39, 0.45);
    filter: brightness(1.03);
}

.pricing-video-btn--alt:hover {
    box-shadow: 0 16px 36px rgba(30, 58, 95, 0.38);
}

.pricing-video-btn:active {
    transform: translateY(0);
}

.pricing-video-btn-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.pricing-video-btn-icon svg {
    margin-left: 2px;
}

.pricing-video-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pricing-video-btn-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.pricing-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.pricing-video-modal[hidden] {
    display: none !important;
}

.pricing-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.pricing-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(800px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.pricing-video-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #374151;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pricing-video-modal-close:hover {
    background: rgba(242, 107, 39, 0.12);
    color: #f26b27;
}

.pricing-video-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 40px 10px 0;
    padding-right: 8px;
}

.pricing-video-modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.pricing-video-modal-player {
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.pricing-video-modal-player video {
    display: block;
    width: 100%;
    max-height: min(56vh, 420px);
    background: #000000;
}

body.pricing-video-modal-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .pricing-video-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .pricing-video-btn {
        width: 100%;
        max-width: 340px;
        padding: 13px 18px;
        font-size: 15px;
    }

    .pricing-video-modal-dialog {
        padding: 22px 18px 18px;
    }

    .pricing-video-modal-title {
        font-size: 18px;
    }
}

.pricing-tabs-body {
    margin-top: 10px;
}

.pricing-section {
    padding: 0;
    background: transparent;
}

.pricing-panel {
    position: relative;
    background: #ffffff;
    border-radius: 26px;
    padding: 36px 32px 40px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.pricing-panel::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 107, 39, 0.2), transparent 70%);
    pointer-events: none;
}

.pricing-heading {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-heading h2 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-heading p {
    font-size: 14px;
    color: #555555;
    max-width: 520px;
    margin: 0 auto;
}

.customer-cta {
    text-align: center;
    margin-top: 28px;
    padding-top: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pricing-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    border-color: rgba(242, 107, 39, 0.7);
}

.pricing-card-best {
    border-color: var(--primary);
    box-shadow: 0 22px 64px rgba(242, 107, 39, 0.40);
    transform: translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: 8px;
    left: 0;
    padding: 3px 10px;
    background: #ff4f4f;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 0 20px 20px 0;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.pricing-title {
    font-size: 18px;
    font-weight: 600;
    color: #243b53;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.per-analysis-hint {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
    min-height: 28px;
    line-height: 1.35;
}

.plan-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0 12px;
}

.pricing-secondary {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-price-usd {
    font-weight: 600;
    color: #111827;
}

.pricing-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 13px;
    color: #333333;
    text-align: left;
}

.pricing-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid var(--primary);
}

.pricing-list li strong {
    color: var(--primary);
}

.pricing-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Analysis type picker */
.analysis-type-picker {
    max-width: 560px;
    margin: 0 auto 20px;
    text-align: center;
}

.analysis-type-picker-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 10px;
}

.analysis-type-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.analysis-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 108px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analysis-type-option.active {
    border-color: var(--secondary);
    background: rgba(242, 95, 43, 0.08);
    box-shadow: 0 4px 14px rgba(255, 110, 37, 0.15);
}

.analysis-type-option .icon {
    font-size: 18px;
    line-height: 1;
}

.analysis-type-option .label {
    font-size: 12px;
    font-weight: 700;
    color: #243b53;
}

.analysis-type-option .type-hint {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.25;
    text-align: center;
    max-width: 110px;
}

.type-price-tag {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

/* Graphologist */
.graphologist-section {
    background: transparent;
    padding: 12px 0 10px;
}

.graphologist-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 8px 0;
}

.graphologist-panel {
    background: #ffffff;
    border-radius: 26px;
    padding: 32px 28px 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.graphologist-heading {
    text-align: center;
    margin-bottom: 20px;
}

.graphologist-heading h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.graphologist-heading p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(242, 107, 39, 0.12), rgba(255, 155, 75, 0.08));
    border: 1px solid rgba(242, 107, 39, 0.25);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: center;
}

.welcome-banner h3 {
    font-size: 15px;
    color: #111827;
    margin-bottom: 6px;
}

.welcome-banner p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.graphologist-subplans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 22px;
}

.graphologist-subplan-card {
    flex: 1 1 280px;
    max-width: calc(33.333% - 14px);
}

@media (max-width: 768px) {
    .graphologist-subplan-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.graphologist-subplan-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 18px;
    background: linear-gradient(145deg, #ffffff, #fff9f5);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.graphologist-subplan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    border-color: rgba(242, 107, 39, 0.7);
}

.graphologist-subplan-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.subplan-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.subplan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.subplan-price-secondary {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.subplan-limits {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.subplan-limits::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.graphologist-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.graphologist-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    line-height: 1.5;
}

.pricing-get-started {
    display: inline-block;
    text-align: center;
}

.plans-loading,
.plans-error,
.pricing-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

.plans-error {
    color: #b91c1c;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: pricing-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes pricing-spin {
    to {
        transform: rotate(360deg);
    }
}
