/* ==========================================================================
 * GFunnel — Pricing page skin (/pricing, gf_pricing.php).
 *
 * Layers on top of the homepage design system (template/css/gf_home.css):
 * reuses its tokens (--gfh-*), nav, hero, buttons, section heads and CTA.
 * This file owns only the pricing-specific pieces:
 *   - the Workspace / Software / Service type switcher panels
 *   - plan cards (with "most popular" treatment)
 *   - the compare-features table
 *   - the FAQ accordion
 * ========================================================================== */

/* --- type switcher (reuses .gfh-hero-tabs pill group from gf_home) -------- */
.gfp-switch { margin-bottom: 8px; }
.gfp-switch-note { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 2px; }

/* A "panel" is one pricing type's content (cards + compare + faq). Only the
   active panel is shown; the switcher toggles [data-gfp-panel] visibility. */
.gfp-panel { display: none; }
.gfp-panel.gfp-active { display: block; }

/* --- plan cards ---------------------------------------------------------- */
.gfp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}
.gfp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--gfh-card);
    border: 1px solid var(--gfh-line);
    border-radius: 18px;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gfp-card:hover { border-color: #CBD5E1; box-shadow: var(--gfh-shadow-lg); transform: translateY(-3px); }
.gfp-card.gfp-featured {
    border-color: var(--gfh-orange);
    box-shadow: 0 24px 60px -30px rgba(249, 115, 22, .5);
}
.gfp-card.gfp-featured:hover { border-color: var(--gfh-orange); }
.gfp-badge {
    position: absolute; top: -11px; left: 26px;
    font-family: var(--gfh-font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: var(--gfh-orange); border-radius: 999px; padding: 4px 10px;
}
.gfp-name { font-family: var(--gfh-font-head); font-size: 21px; font-weight: 800; color: var(--gfh-ink); }
.gfp-tagline { font-size: 13px; color: var(--gfh-muted); margin-bottom: 18px; min-height: 18px; }
.gfp-price {
    font-family: var(--gfh-font-head); font-size: 32px; font-weight: 800;
    color: var(--gfh-ink); letter-spacing: -.02em; margin-bottom: 20px;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.gfp-price span { font-family: var(--gfh-font-body); font-size: 13px; font-weight: 600; color: var(--gfh-muted); }
.gfp-card .gfh-btn { width: 100%; justify-content: center; margin-bottom: 22px; }
.gfh-btn-ghost { background: var(--gfh-bg); color: var(--gfh-ink); border: 1px solid var(--gfh-line); }
.gfh-btn-ghost:hover { border-color: var(--gfh-orange); color: var(--gfh-orange-600); }
.gfp-feats-head {
    font-family: var(--gfh-font-mono); font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gfh-muted);
    margin-bottom: 12px;
}
.gfp-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.gfp-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--gfh-slate); line-height: 1.4; }
.gfp-feats svg { flex: 0 0 auto; margin-top: 2px; color: #14b8a6; }
.gfp-note { text-align: center; color: var(--gfh-muted); font-size: 13px; margin-top: 28px; }

/* --- compare-features table ---------------------------------------------- */
.gfp-compare { max-width: 1000px; margin: 0 auto; overflow-x: auto; }
.gfp-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.gfp-table th, .gfp-table td {
    padding: 15px 16px; text-align: left; font-size: 14px;
    border-bottom: 1px solid var(--gfh-line);
}
.gfp-table thead th {
    font-family: var(--gfh-font-head); font-weight: 800; font-size: 15px;
    color: var(--gfh-ink); vertical-align: bottom;
}
.gfp-table thead th span { display: block; font-family: var(--gfh-font-body); font-size: 12px; font-weight: 600; color: var(--gfh-muted); margin-top: 2px; }
.gfp-table td:first-child, .gfp-table th:first-child { color: var(--gfh-slate); font-weight: 600; }
.gfp-table tbody tr:hover { background: rgba(249, 115, 22, .03); }
.gfp-table td:not(:first-child), .gfp-table th:not(:first-child) { text-align: center; }
.gfp-yes { color: #14b8a6; }
.gfp-no { color: var(--gfh-line-2); }
.gfp-cellval { color: var(--gfh-ink); font-weight: 600; }
.gfp-rowgroup td {
    font-family: var(--gfh-font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--gfh-orange-600);
    background: var(--gfh-orange-soft); border-bottom: 0; padding-top: 22px;
}

/* --- FAQ accordion ------------------------------------------------------- */
.gfp-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.gfp-faq-item { border: 1px solid var(--gfh-line); border-radius: 14px; background: var(--gfh-card); overflow: hidden; transition: border-color .15s ease; }
.gfp-faq-item.gfp-open { border-color: var(--gfh-orange); }
.gfp-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: transparent; border: 0; cursor: pointer; text-align: left;
    padding: 18px 22px; font-family: var(--gfh-font-head); font-weight: 700; font-size: 16px; color: var(--gfh-ink);
}
.gfp-faq-q svg { flex: 0 0 auto; color: var(--gfh-muted); transition: transform .2s ease, color .2s ease; }
.gfp-faq-item.gfp-open .gfp-faq-q svg { transform: rotate(180deg); color: var(--gfh-orange-600); }
.gfp-faq-a { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.gfp-faq-a-in { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--gfh-slate); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
    .gfp-grid { grid-template-columns: 1fr; max-width: 440px; }
}
