/* Pricing table (all pages with #pricing): plan comparison with an annual/monthly toggle. The root carries
   data-period (annual|monthly) and data-plan (the plan shown on small screens); scripts/pricing-table.js sets them. */

.vgp-section {
    position: relative;
    overflow: hidden;
    padding: 100px 24px 0;
    background: #fefefc;
    scroll-margin-top: 96px;
}

.vgp {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: clamp(200px, 26vw, 340px);
    color: #1e1e1e;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vgp[data-period="annual"] [data-show="monthly"],
.vgp[data-period="monthly"] [data-show="annual"] { display: none; }

.vgp button { font: inherit; }

.vgp-art {
    position: absolute;
    bottom: -60px;
    left: 50%;
    z-index: 0;
    width: min(980px, 120%);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
}

.vgp > :not(.vgp-art) { position: relative; z-index: 1; }

/* Header and toggle */
.vgp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    text-align: center;
}

.vgp-title {
    margin: 0;
    color: #000;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.vgp-title em {
    font-style: normal;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ff9000;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.vgp-subtitle {
    max-width: 560px;
    margin: 0;
    color: #5a5a5a;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-wrap: pretty;
}

.vgp-period {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.vgp-toggle {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50px;
    background: #f5f5f5;
}

.vgp-toggle button {
    padding: 12px 28px;
    border: 0;
    border-radius: 50px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.vgp-toggle button[aria-pressed="true"] { background: #1e1e1e; color: #fff; }

.vgp-toggle button:focus-visible,
.vgp-tabs button:focus-visible,
.vgp-switch:focus-visible,
.vgp-cta:focus-visible {
    outline: 2px solid #ff9000;
    outline-offset: 2px;
}

.vgp-save {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ff9000;
    font: 700 22px/1 Caveat, cursive;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}

.vgp-save > span { transform: rotate(-3deg); }

.vgp-save-arrow {
    width: 50px;
    height: 22px;
    flex-shrink: 0;
    fill: #ff9000;
    transform: scaleX(-1);
}

.vgp-cancel {
    margin: 0;
    color: #6b7280;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
}

/* Plan tabs: small screens only */
.vgp-tabs { display: none; }

/* Comparison table: rows are four cells (label + one per plan); the AI-Powered Realtor column is highlighted. */
.vgp-table {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
}

.vgp-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 24px;
    border-top: 1px solid #f1f1f1;
    font-size: 15px;
}

.vgp-cell[data-col="pro"] {
    border-top-color: #f3e6cf;
    background: #fff6e8;
}

.vgp-cell.is-head {
    padding: 32px 24px 28px;
    border-top: 0;
}

.vgp-cell.is-head[data-col="pro"] { background: #ffb350; }
.vgp-cell.is-note { justify-content: flex-end; }

.vgp-note,
.vgp-cell small {
    margin: 0;
    color: #6b7280;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.vgp-badge-slot { height: 26px; }

.vgp-popular {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background: #1e1e1e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.vgp-cell h3 {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.vgp-sub {
    min-height: 40px;
    margin: 0;
    color: #5a5a5a;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.vgp-cell.is-head[data-col="pro"] .vgp-sub { color: rgba(0, 0, 0, 0.72); }

.vgp-properties {
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 50px;
    background: #f5f5f5;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
}

.vgp-cell.is-head[data-col="pro"] .vgp-properties { background: #fff; }

.vgp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0 0;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
}

.vgp-price s {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.vgp-price small {
    color: #6b7280;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.vgp-cell.is-head[data-col="pro"] .vgp-price s,
.vgp-cell.is-head[data-col="pro"] .vgp-price small { color: rgba(0, 0, 0, 0.6); }

.vgp-billed {
    margin: 0 0 18px;
    color: #6b7280;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
}

.vgp-cell.is-head[data-col="pro"] .vgp-billed { color: rgba(0, 0, 0, 0.68); }

.vgp-cta {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 16px;
    border: 1px solid rgba(30, 30, 30, 0.12);
    border-radius: 50px;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vgp-cta:hover {
    border-color: #ff9000;
    background: #ff9000;
    box-shadow: -4px 6px 75px rgba(255, 144, 0, 0.5);
    transform: translateY(-2px);
}

.vgp-cell.is-head[data-col="pro"] .vgp-cta {
    border: 0;
    background: #1e1e1e;
    color: #fff;
}

.vgp-cell.is-head[data-col="pro"] .vgp-cta:hover {
    background: #000;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.vgp-cell.is-group {
    padding: 28px 24px 8px;
    border-top-color: #ececec;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.vgp-cell.is-group-fill { border-top-color: #ececec; }
.vgp-cell.is-group-fill[data-col="pro"] { border-top-color: #f3e6cf; }

.vgp-cell.is-label strong {
    font-size: 15px;
    font-weight: 500;
}

.vgp-value {
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.vgp-text { font-size: 14px; font-weight: 500; }

.vgp-cell small { color: #5a5a5a; }
.vgp-cell.is-label small { color: #6b7280; }

.vgp-premium {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #ffb350;
    color: #000;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: 2px;
}

.vgp-none { color: #9ca3af; font-size: 16px; }

.vgp-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vgp-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: #1e1e1e;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vgp-check.is-accent { stroke: #ff9000; stroke-width: 1.8; }

.vgp-switch {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #ff9000;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.vgp-cell.is-included {
    justify-content: center;
    padding: 20px 24px 24px;
    border-top-color: #ececec;
}

.vgp-cell.is-included[data-col="pro"] { border-top-color: #f3e6cf; }

.vgp-more {
    margin: 28px 0 0;
    color: #5a5a5a;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    text-align: center;
}

.vgp-more a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #ff9000;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (max-width: 1100px) {
    .vgp-cell { padding-right: 16px; padding-left: 16px; }
    .vgp-cell.is-head { padding: 28px 16px 24px; }
    .vgp-cell.is-included { padding-right: 16px; padding-left: 16px; }
    .vgp-price { font-size: 24px; }
}

/* Small screens: the table shows one plan at a time, picked with the tabs above it. */
@media (max-width: 860px) {
    .vgp-section { padding: 72px 16px 0; }
    .vgp-save { position: static; transform: none; margin-left: 8px; font-size: 18px; }
    .vgp-save-arrow { display: none; }
    .vgp-toggle { flex-wrap: wrap; justify-content: center; }
    .vgp-toggle button { padding: 10px 20px; }
    .vgp-period { margin-bottom: 28px; }

    .vgp-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 14px;
    }

    .vgp-tabs button {
        min-height: 52px;
        padding: 8px 6px;
        border: 1px solid #e3e3e3;
        border-radius: 14px;
        background: #fff;
        color: #1e1e1e;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
    }

    .vgp-tabs button[aria-pressed="true"] { border-color: #ffb350; background: #ffb350; }

    .vgp-table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .vgp[data-plan="starter"] .vgp-cell:is([data-col="pro"], [data-col="team"]),
    .vgp[data-plan="pro"] .vgp-cell:is([data-col="starter"], [data-col="team"]),
    .vgp[data-plan="team"] .vgp-cell:is([data-col="starter"], [data-col="pro"]),
    .vgp-cell.is-group-fill,
    .vgp-cell.is-note { display: none; }
    .vgp-cell.is-head,
    .vgp-cell.is-group { grid-column: 1 / -1; }
    .vgp-cell.is-head .vgp-cta { margin-top: 0; }
}

.vgp-infinity { font-size: 26px; line-height: 0.9; }
