/* ============================================================
   pricing.css — StackViewer Pricing Section + Notify Modal
   Matches landing.css design language (brand gradient
   #D64545 -> #4CAF50, #111 dark, white cards, 12px radius).
   ============================================================ */

/* ----- Pricing Section ----- */
.pricing-section {
    padding: 100px 0;
    background: #fafafa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    border: 1px solid #eee;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Highlighted (Pro) card */
.pricing-card-highlight {
    border-color: #111;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.pricing-card-highlight:hover {
    border-color: #111;
    transform: translateY(-4px);
}

/* Coming-soon badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D64545, #4CAF50);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-badge-muted {
    background: #111;
}

/* Card head: tier name + tagline */
.pricing-card-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.pricing-tier-name {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.pricing-tier-tagline {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
}

/* Price */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 46px;
    margin-bottom: 16px;
}

.pricing-amount {
    font-size: 40px;
    font-weight: 700;
    color: #111;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1;
}

.pricing-amount-soon {
    font-size: 22px;
    color: #888;
    font-family: inherit;
    font-weight: 600;
}

.pricing-period {
    font-size: 14px;
    color: #999;
}

.pricing-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 66px;
}

.pricing-card-desc em {
    color: #111;
    font-style: italic;
    font-weight: 600;
}

/* CTA button */
.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #111;
    transition: all 0.2s;
    margin-bottom: 28px;
}

.pricing-cta-primary {
    background: #111;
    color: #fff;
}

.pricing-cta-primary:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.pricing-cta-notify {
    background: #fff;
    color: #111;
}

.pricing-cta-notify:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

/* Feature list (reuses gradient checkmark like landing feature-list) */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.pricing-features li i {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-footnote {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 40px;
}

/* ----- Notify / Waitlist Modal ----- */
.notify-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notify-modal.is-open {
    display: flex;
}

.notify-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(2px);
}

.notify-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 40px 36px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: notifyPop 0.2s ease-out;
}

@keyframes notifyPop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notify-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.notify-modal-close:hover {
    color: #111;
}

.notify-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.notify-modal-icon i {
    font-size: 28px;
    color: #fff;
}

.notify-modal-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.notify-modal-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.notify-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    transition: border-color 0.2s;
}

.notify-field input:focus {
    outline: none;
    border-color: #111;
}

.notify-field.has-error input {
    border-color: #D64545;
}

.notify-error {
    display: none;
    font-size: 13px;
    color: #D64545;
    margin-top: 6px;
}

.notify-consent {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin: 0 0 14px;
}

.notify-consent a {
    color: #666;
    text-decoration: underline;
}

.notify-field.has-error .notify-error {
    display: block;
}

.notify-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.notify-submit:hover {
    background: #000;
    transform: translateY(-1px);
}

.notify-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.notify-success {
    text-align: center;
    padding: 12px 0 4px;
}

.notify-success i {
    font-size: 44px;
    background: linear-gradient(135deg, #D64545, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notify-success p {
    font-size: 15px;
    color: #444;
    margin-top: 12px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .pricing-card-desc {
        min-height: 0;
    }
    .pricing-section {
        padding: 72px 0;
    }
}

/* ============================================================
   Standalone pricing page: billing toggle, compare table, FAQ
   ============================================================ */

/* ----- Billing toggle ----- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 44px;
}

.pricing-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.pricing-toggle-label.is-active {
    color: #111;
}

.pricing-toggle-save {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.12);
    padding: 3px 8px;
    border-radius: 12px;
}

.pricing-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 20px;
    border: none;
    background: #111;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.pricing-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

/* When annual is active (default), knob is on the right */
.pricing-toggle-switch[aria-checked="false"] .pricing-toggle-knob {
    transform: translateX(24px);
}

.pricing-toggle-switch[aria-checked="true"] .pricing-toggle-knob {
    transform: translateX(0);
}

/* ----- Compare table ----- */
.pricing-compare {
    margin-top: 80px;
}

.pricing-compare-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 36px;
}

.pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 12px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 20px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-table thead th {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    background: #fafafa;
    border-bottom: 2px solid #eee;
}

.pricing-table th.pricing-table-feature,
.pricing-table td:first-child {
    text-align: left;
    color: #444;
    font-weight: 500;
}

.pricing-table .pricing-table-hl {
    background: rgba(17, 17, 17, 0.03);
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.pricing-table thead .pricing-table-hl {
    background: #111;
    color: #fff;
}

.pricing-table-group td {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #888;
    background: #f7f7f7;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Solid colors — the gradient-clipped-to-text trick renders icon-font glyphs
   as fully transparent (empty cell), so use a plain green check / grey cross. */
.pricing-table i.yes {
    color: #4CAF50;
    font-size: 17px;
}

.pricing-table i.no {
    color: #d8d8d8;
    font-size: 15px;
}

/* ----- FAQ ----- */
.pricing-faq {
    margin-top: 80px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.pricing-faq-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.pricing-faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .pricing-compare,
    .pricing-faq {
        margin-top: 56px;
    }
}
