/* ═══════════════════════════════════════════════════════════════
   PLANS PAGE — page-specific styles
   prefix: p- for scoped classes; plans-/sis-/med- for named sections
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   Plans Hero
───────────────────────────────────────── */
.plans-hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 52px 40px 28px;
}

.plans-hero-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.65;
    z-index: 0;
}

.plans-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    text-align: center;
}

.plans-title {
    font-family: inherit;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin: 0 0 18px;
}

.plans-title-accent { color: var(--brand); }

.plans-sub {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0 auto 32px;
    max-width: 100%;
    text-align: center;
}

/* Hero layout — single centered column */
.plans-hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Billing toggle */
.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.billing-toggle {
    position: relative;
    display: inline-flex;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}
.toggle-pill {
    position: absolute;
    top: 4px; bottom: 4px;
    width: calc(50% - 4px);
    left: 4px;
    background: var(--brand);
    border-radius: 999px;
    border: none;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 2px 10px rgba(11,116,209,.35);
}
.billing-toggle:has(.tog:last-child.active) .toggle-pill { transform: translateX(100%); }
.tog {
    position: relative;
    z-index: 1;
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s;
    min-width: 90px;
}
.tog.active { color: #fff; }

/* Trust row — 2 × 2 grid, fit-content width so it centers as one block */
.plans-trust-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 40px;
    margin: 16px auto 0;
    width: fit-content;
    max-width: 100%;
}

.plans-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    padding: 0;
}

/* ─────────────────────────────────────────
   Tabs
───────────────────────────────────────── */
.p-sys-tabs-bar {
    background: #0b74d1;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(7, 40, 80, .32);
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-sys-tabs {
    display: inline-flex;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: calc(100vw - 40px);
    gap: 0;
}

.p-sys-tabs::-webkit-scrollbar { display: none; }

.p-sys-tab {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.25px;
    transition: color .18s ease, background .18s ease;
    white-space: nowrap;
}

/* White underline indicator */
.p-sys-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #fff;
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity .22s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p-sys-tab-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    opacity: 0.75;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

/* Hover */
.p-sys-tab:hover {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.09);
}

.p-sys-tab:hover .p-sys-tab-logo {
    opacity: 0.94;
    transform: scale(1.06);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

/* Focus — keyboard accessibility */
.p-sys-tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: -3px;
}

/* Active — strong, immediately obvious */
.p-sys-tab.active {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.15px;
}

.p-sys-tab.active .p-sys-tab-logo {
    opacity: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25)) brightness(1.06);
    transform: scale(1.04);
}

/* Underline slides in with a slight spring when tab becomes active */
.p-sys-tab.active::before {
    opacity: 1;
    transform: scaleX(1);
}

/* ─────────────────────────────────────────
   Pricing Cards
───────────────────────────────────────── */
.p-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.p-plans-section {
    padding: 52px 0 72px;
    background: var(--bg);
    position: relative;
}
.p-plans-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .4;
    pointer-events: none;
}

.p-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
    max-width: 1160px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
}

.p-plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: box-shadow .22s, border-color .22s, transform .22s;
}
.p-plan-card:hover {
    box-shadow: 0 12px 36px rgba(24, 95, 165, .1);
    border-color: rgba(11,116,209,.3);
    transform: translateY(-3px);
}
.p-plan-featured {
    border: 2px solid var(--brand) !important;
    padding-top: 40px;
    background: var(--surface2) !important;
}
.p-plan-open { border: 2px solid var(--brand) !important; box-shadow: 0 10px 38px rgba(24, 95, 165, .14); }

.p-badge-wrap { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
.p-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 13px;
    border: 1px solid;
}
.p-badge--blue   { background: var(--brand-light); color: var(--brand); border-color: rgba(11,116,209,.3); }
.p-badge--green  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.p-badge--red    { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.p-badge--orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.p-plan-header { margin-bottom: 10px; }
.p-plan-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.p-plan-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; min-height: 36px; }

.p-plan-pills { display: flex; flex-wrap: wrap; margin-bottom: 4px; }
.p-pill { display: inline-block; font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-light); border-radius: 20px; padding: 3px 10px; margin: 0 4px 6px 0; }
.p-pill-module { color: #6d28d9; background: #f5f3ff; }

.p-card-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0 14px; }

.p-feature-list { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 9px; }
.p-feature-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.p-feat-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
.p-feature-list li:hover .p-feat-check { background: #15803d; color: #fff; transform: scale(1.15); }

.p-feat-more {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .3s cubic-bezier(0.4,0,0.2,1);
}
.p-feat-more.open { grid-template-rows: 1fr; }
.p-feature-list-more { min-height: 0; padding-top: 6px; }

.p-feat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .1px;
    transition: color .18s, opacity .18s;
    opacity: .85;
}
.p-feat-toggle:hover { opacity: 1; color: var(--brand-dark); }

.p-plan-price-block { margin-top: auto; padding-top: 18px; }
.p-price-row { display: flex; align-items: baseline; gap: 2px; margin-bottom: 2px; }
.p-price-cur { font-size: 18px; font-weight: 700; color: var(--brand); align-self: flex-start; margin-top: 8px; }
.p-price-amt { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -1.5px; }
.p-price-per { font-size: 13px; color: var(--text-3); margin-left: 2px; }
.p-price-hint { font-size: 11px; color: var(--text-3); margin: 0 0 12px; }
.p-price-custom { font-size: 26px; font-weight: 700; color: var(--brand); }

.p-plan-cta {
    width: 100%;
    padding: 11px 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.p-cta-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-2); }
.p-cta-outline:hover { background: var(--surface2); border-color: var(--brand); color: var(--brand); }
.p-cta-solid { background: var(--brand); border: 1.5px solid transparent; color: #fff; transition: all .25s cubic-bezier(0.4,0,0.2,1); }
.p-cta-solid:hover { background: var(--surface); color: var(--brand); border-color: var(--brand); box-shadow: 0 6px 20px rgba(24,95,165,.2); transform: translateY(-1px) scale(1.02); }

/* Price Panel */
.p-price-panel {
    margin-top: 20px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    animation: ppIn .22s ease;
}

.p-pp-title { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 8px; }
.p-pp-line { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.p-pp-line:last-of-type { border-bottom: none; }
.p-pp-label { display: flex; align-items: center; gap: 6px; flex: 1; }
.p-pp-amt { font-weight: 700; color: var(--text); white-space: nowrap; }
.p-pp-onetime .p-pp-amt { color: #92400e; }
.p-pp-badge-onetime { font-size: 9px; font-weight: 700; background: #fef3c7; color: #92400e; border-radius: 8px; padding: 1px 6px; }
.p-pp-free { display: flex; align-items: flex-start; gap: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 7px 10px; font-size: 11px; color: #166534; margin-bottom: 8px; line-height: 1.5; }
.p-pp-free-list { color: #15803d; font-weight: 700; }

.p-pp-addon { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s; }
.p-pp-addon:hover { border-color: var(--brand); }
.p-pp-addon-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.p-pp-addon-name { font-size: 12px; font-weight: 700; color: var(--text); }
.p-pp-tag { display: inline-block; font-size: 9px; font-weight: 700; border-radius: 8px; padding: 1px 6px; width: fit-content; }
.p-tag-mo   { background: #ede9fe; color: #5b21b6; }
.p-tag-once { background: #fef3c7; color: #92400e; }
.p-tag-custom { background: var(--surface2); color: var(--text-2); }
.p-pp-addon-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.p-pp-addon-price { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.p-pp-price-dash { color: var(--border); font-style: italic; }

.p-pp-bonus-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.p-pp-bonus-item { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--text-2); line-height: 1.55; }

.p-pp-checkout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0;
    background: var(--brand);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s cubic-bezier(0.4,0,0.2,1);
}
.p-pp-checkout-btn:hover { background: var(--surface); color: var(--brand); border-color: var(--brand); box-shadow: 0 4px 16px rgba(24,95,165,.2); }

/* Packages */
.p-packages-grid { align-items: stretch; }
.p-package-card { min-height: 100%; }
.p-package-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.p-pkg-block { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.p-pkg-label { font-size: 10px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.p-pkg-block p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.p-pkg-win { background: #f0fdf4; border-color: #bbf7d0; }
.p-pkg-win .p-pkg-label { color: #15803d; }

.p-footnote { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 28px; }

/* Packages coming-soon state */
.p-packages-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 72px;
    max-width: 560px;
    margin: 0 auto;
}
.p-packages-coming-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-light);
    border: 1px solid rgba(11,116,209,.18);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.p-packages-coming-title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
    margin: 0 0 12px;
}
.p-packages-coming-sub {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

/* States */
.p-loading-state, .p-empty-state { text-align: center; padding: 80px 0; color: var(--text-2); }
.p-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 16px; }
.p-empty-icon { font-size: 36px; margin-bottom: 12px; }
.p-empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.p-btn-retry { margin-top: 16px; padding: 9px 24px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--text-2); transition: background .15s; }
.p-btn-retry:hover { background: var(--surface2); }

/* Comparison Table */
.p-comparison-section { padding: 64px 0 72px; background: var(--surface); border-top: 1px solid var(--border); }
.p-section-eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.p-section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.5px; }
.p-section-sub { font-size: 14px; color: var(--text-2); margin-bottom: 36px; }
.p-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(13,24,41,.06); }
.p-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.p-table thead tr { background: var(--surface2); border-bottom: 2px solid var(--border); }
.p-table th { padding: 16px 18px; text-align: center; font-weight: 700; color: var(--text); font-size: 14px; }
.p-feat-col { text-align: left !important; color: var(--text-2); font-size: 12px; font-weight: 700; }
.p-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.p-table tbody tr:hover { background: var(--surface2); }
.p-table tbody tr:last-child { border-bottom: none; }
.p-table td { padding: 13px 18px; text-align: center; color: var(--text-2); vertical-align: middle; }
.p-feat-label { text-align: left !important; color: var(--text-2); font-weight: 600; font-size: 13px; }
.p-plan-col { font-size: 14px; }
.p-featured-col { background: var(--brand-light); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.p-tbl-badge { display: block; font-size: 10px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 8px; padding: 1px 8px; margin: 4px auto 0; width: fit-content; }
.p-tbl-price { font-size: 17px; font-weight: 800; color: var(--text); }
.p-tbl-custom { font-size: 13px; color: var(--text-3); font-style: italic; }
.p-tbl-check { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #15803d; align-items: center; justify-content: center; }
.p-tbl-dash { color: var(--border); font-size: 18px; }
.p-price-row-tbl td { padding-top: 18px; padding-bottom: 18px; background: var(--surface2); }
.p-price-row-tbl td.p-featured-col { background: var(--brand-light); }
.p-cta-row-tbl td { padding: 16px 18px; background: var(--surface2); }
.p-tbl-cta { padding: 9px 18px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .18s; white-space: nowrap; }
.p-tbl-cta-solid { background: var(--brand); color: #fff; border: 1.5px solid transparent; }
.p-tbl-cta-solid:hover { background: var(--surface); color: var(--brand); border-color: var(--brand); box-shadow: 0 4px 12px rgba(24,95,165,.2); }
.p-tbl-cta-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--border); }
.p-tbl-cta-ghost:hover { border-color: var(--brand); background: var(--brand-light); }

/* ERP diff table */
.p-erp-diff-wrap { max-width: 1160px; margin: 36px auto 0; }
.p-erp-diff-title { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: var(--text); text-align: center; margin-bottom: 20px; }
.p-erp-diff-table .p-feat-col { min-width: 180px; }
.p-erp-diff-val { font-size: 13px; color: var(--text-2); font-weight: 600; }
.p-erp-diff-unlim { font-size: 12px; font-weight: 700; color: #15803d; background: #f0fdf4; border-radius: 8px; padding: 2px 8px; }

/* ─────────────────────────────────────────
   Contact Information
───────────────────────────────────────── */
.p-faq-section { padding: 64px 0 72px; background: var(--surface2); border-top: 1px solid var(--border); }
.p-faq-empty { text-align: center; color: var(--text-2); margin-top: 16px; }

.p-faq-category-tabs { max-width: 900px; margin: 34px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.p-faq-category-pill { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .22s; }
.p-faq-category-pill:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.p-faq-category-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(24, 95, 165, .22); }

.p-faq-selected-label { max-width: 900px; margin: 24px auto 0; color: var(--text); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.p-faq-close-category { border: none; background: transparent; color: var(--brand); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1; transition: background .18s, color .18s; }
.p-faq-close-category:hover { background: var(--brand-light); color: var(--text); }

.p-faq-list { max-width: 900px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 14px; }
.p-faq-fade { animation: pFaqIn .3s ease both; }

.p-faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.p-faq-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.07); border-color: rgba(11,116,209,.3); }
.p-faq-card.open { border-color: var(--brand); }

.p-faq-q { width: 100%; border: none; background: transparent; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; cursor: pointer; font-family: inherit; }
.p-faq-q-text { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.5; }
.p-faq-icon-wrap { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s, background .25s, color .25s; }
.p-faq-icon { font-size: 22px; line-height: 1; transform: translateY(-1px); }
.p-faq-card.open .p-faq-icon-wrap { transform: rotate(45deg); background: var(--brand); color: #fff; }

.p-faq-ans-wrap { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .26s ease; }
.p-faq-ans-wrap.show { grid-template-rows: 1fr; }
.p-faq-ans { min-height: 0; padding: 0 24px 22px; font-size: 15px; color: var(--text-2); line-height: 1.7; }

.p-faq-footer { margin-top: 28px; text-align: center; color: var(--text-2); font-size: 15px; }
.p-faq-footer a { color: var(--brand); text-decoration: none; font-weight: 700; }
.p-faq-footer a:hover { text-decoration: underline; }

/* Bottom CTA */
.p-cta-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 84px;
    background: #0d1829;
    text-align: center;
    color: #fff;
    isolation: isolate;
}
.p-cta-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}
.p-cta-inner { position: relative; z-index: 1; }
.p-cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; margin-bottom: 16px; display: block; }
.p-cta-title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; letter-spacing: -.5px; }
.p-cta-sub { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 32px; }
.p-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.p-cta-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: #fff;
    color: #0d1829;
    font-size: 14px; font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    transition: background .18s, transform .18s;
}
.p-cta-btn-primary:hover { background: #eff6ff; transform: translateY(-1px); }
.p-cta-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px; font-weight: 700;
    border-radius: 9px;
    border: 1.5px solid rgba(255,255,255,.25);
    text-decoration: none;
    transition: border-color .18s, background .18s;
}
.p-cta-btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.p-cta-note { font-size: 12px; color: #64748b; }

/* ─────────────────────────────────────────
   School Plans
───────────────────────────────────────── */
.sis-mascot {
    position: absolute;
    left: calc((100% - 66px) / 4 + 22px);
    top: 0;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.32));
    animation: sisMascotIn 1.0s both;
    will-change: transform, opacity;
}

.sis-section-outer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 52px;
    max-width: 1480px;
    margin: 0 auto;
}

.sis-plans-grid {
    flex: 1;
    min-width: 0;
    max-width: 1160px;
    margin: 0;
}

.sis-phone-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    animation: sisPhoneIn 0.88s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.sis-phone-device {
    position: relative;
    width: 224px;
    animation: sisPhoneFloat 5.5s ease-in-out infinite;
    animation-delay: 0.9s;
    filter:
        drop-shadow(0 0 26px rgba(11, 116, 209, 0.32))
        drop-shadow(0 22px 50px rgba(0, 0, 0, 0.28));
}

.sis-phone-frame {
    position: relative;
    width: 224px;
    min-height: 464px;
    background: linear-gradient(160deg, #1e2a40 0%, #0d1829 58%, #132038 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 0 0 2px #06101f,
        0 0 0 3.5px rgba(11, 116, 209, 0.38);
    animation: sisFrameGlow 3.8s ease-in-out infinite alternate;
    animation-delay: 0.9s;
}

.sis-btn { position: absolute; background: linear-gradient(180deg, #1e2e4a, #0d1829); border-radius: 3px; }
.sis-btn-pwr { right: -4px; top: 112px; width: 4px; height: 52px; }
.sis-btn-vup { left:  -4px; top:  88px; width: 4px; height: 34px; }
.sis-btn-vdn { left:  -4px; top: 134px; width: 4px; height: 34px; }

.sis-phone-island {
    display: block;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 20px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.sis-phone-screen {
    width: 100%;
    min-height: 444px;
    background: #eef2fb;
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sis-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 46px 16px 7px; background: #1e3a6e; }
.sis-status-time { font-size: 10px; font-weight: 700; color: white; letter-spacing: 0.4px; }

.sis-app-hdr { background: #1e3a6e; padding: 8px 14px 18px; display: flex; align-items: center; gap: 9px; }
.sis-app-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.28); }
.sis-app-hdr-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sis-app-hdr-text b { font-size: 12px; font-weight: 800; color: #fff; line-height: 1.3; }
.sis-app-hdr-text span { font-size: 9px; color: rgba(255,255,255,0.6); }
.sis-notif-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #f87171; flex-shrink: 0; }

.sis-app-body { flex: 1; padding: 12px 10px 8px; background: #eef2fb; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }

.sis-stats-row { display: flex; gap: 7px; }
.sis-stat { flex: 1; background: #fff; border-radius: 10px; padding: 9px 6px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.sis-stat-n { font-size: 14px; font-weight: 800; color: #1e3a6e; line-height: 1; }
.sis-stat-l { font-size: 7px; color: #64748b; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }

.sis-att-card { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.sis-att-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sis-att-label { font-size: 9px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.3px; }
.sis-att-pct { font-size: 12px; font-weight: 800; color: #1e3a6e; }
.sis-att-track { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.sis-att-fill { height: 100%; background: linear-gradient(90deg, #0b74d1, #3b9ddd); border-radius: 3px; }

.sis-menu { display: flex; flex-direction: column; gap: 5px; }
.sis-menu-item { background: #fff; border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.sis-menu-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sis-icon-b { background: #dbeafe; color: #1e3a6e; }
.sis-icon-g { background: #dcfce7; color: #166534; }
.sis-icon-p { background: #ede9fe; color: #5b21b6; }
.sis-menu-lbl { flex: 1; font-size: 10px; font-weight: 700; color: #334155; }

.sis-tab-bar { display: flex; background: #fff; border-top: 1px solid #e2e8f0; padding: 8px 0 14px; }
.sis-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #94a3b8; font-size: 7px; font-weight: 600; }
.sis-tab-active { color: #0b74d1; }
.sis-home-bar { display: block; width: 88px; height: 4px; background: rgba(255,255,255,0.28); border-radius: 3px; margin: 7px auto 5px; }

.sis-phone-cap { margin-top: 18px; }
.sis-phone-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    border: 1px solid rgba(11,116,209,0.22);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
}

/* ─────────────────────────────────────────
   Medical Plans
───────────────────────────────────────── */
.med-section-outer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 52px;
    max-width: 1480px;
    margin: 0 auto;
}

.med-plans-grid { flex: 1; min-width: 0; max-width: 1160px; margin: 0 auto; }

.med-phone-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    animation: sisPhoneIn 0.88s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.med-phone-device {
    position: relative;
    width: 224px;
    animation: sisPhoneFloat 5.5s ease-in-out infinite;
    animation-delay: 0.9s;
    filter:
        drop-shadow(0 0 26px rgba(13, 148, 136, 0.32))
        drop-shadow(0 22px 50px rgba(0, 0, 0, 0.28));
}

.med-phone-frame {
    position: relative;
    width: 224px;
    min-height: 464px;
    background: linear-gradient(160deg, #1a3a38 0%, #0c2826 58%, #102e2b 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 0 0 2px #061412,
        0 0 0 3.5px rgba(13, 148, 136, 0.38);
    animation: medFrameGlow 3.8s ease-in-out infinite alternate;
    animation-delay: 0.9s;
}

.med-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 46px 16px 7px; background: #134e4a; }
.med-app-hdr { background: #134e4a; padding: 8px 14px 18px; display: flex; align-items: center; gap: 9px; }
.med-app-icon { width: 36px; height: 36px; border-radius: 10px; background: #0f766e; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.28); }

.med-stat-n { font-size: 14px; font-weight: 800; color: #0f766e; line-height: 1; }
.med-att-pct { font-size: 12px; font-weight: 800; color: #0f766e; }
.med-att-fill { height: 100%; background: linear-gradient(90deg, #0d9488, #2dd4bf); border-radius: 3px; }

.med-icon-b { background: #ccfbf1; color: #0f766e; }
.med-icon-g { background: #d1fae5; color: #065f46; }
.med-icon-p { background: #e0f2fe; color: #0369a1; }
.med-tab-active { color: #0d9488; }

.med-phone-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdfa;
    border: 1px solid rgba(13,148,136,0.22);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #0f766e;
}

/* ─────────────────────────────────────────
   Mobile Plans
───────────────────────────────────────── */
.p-pill-mobile { color: #15803d; background: #f0fdf4; }

/* ─────────────────────────────────────────
   Responsive Design
───────────────────────────────────────── */
@media (max-width: 1240px) {
    .sis-section-outer { gap: 32px; }
    .sis-phone-device  { width: 196px; }
    .sis-phone-frame   { width: 196px; min-height: 410px; }
    .sis-phone-screen  { min-height: 390px; }
    .med-section-outer { gap: 32px; }
    .med-phone-device  { width: 196px; }
    .med-phone-frame   { width: 196px; min-height: 410px; }
}

@media (max-width: 1080px) {
    .sis-mascot        { display: none; }
    .sis-phone-wrap    { display: none; }
    .sis-section-outer { display: block; }
    .sis-plans-grid    { max-width: 1160px; margin: 0 auto; }
    .med-phone-wrap    { display: none; }
    .med-section-outer { display: block; }
    .med-plans-grid    { max-width: 1160px; margin: 0 auto; }
}

@media (max-width: 900px) {
    .plans-trust-item   { font-size: 12px; }
    .p-sys-tab          { padding: 13px 17px; gap: 10px; font-size: 13px; }
    .p-sys-tab-logo     { height: 24px; width: 24px; }
    .plans-hero         { padding: 44px 20px 24px; }
}

@media (max-width: 860px) {
    .p-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
}

@media (max-width: 560px) {
    .plans-hero            { padding: 40px 16px 20px; }
    .plans-title           { font-size: 26px; letter-spacing: -.5px; }
    .plans-trust-row       { grid-template-columns: auto; gap: 8px; }
    .p-plans-grid         { grid-template-columns: 1fr; max-width: 440px; }
    .p-comparison-section { padding: 44px 0 52px; }
    .p-faq-category-tabs  { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .p-faq-category-pill  { white-space: nowrap; font-size: 13px; padding: 8px 14px; }
    .p-faq-q              { padding: 18px; }
    .p-faq-q-text         { font-size: 15px; }
    .p-faq-ans            { padding: 0 18px 18px; font-size: 14px; }
    .p-cta-title          { font-size: 24px; }
    .p-cta-actions        { flex-direction: column; align-items: center; }
    .p-cta-btn-primary,
    .p-cta-btn-ghost      { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes heroVideoIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sisMascotIn {
    0% {
        opacity: 0;
        transform: translate(calc(-50% - 340px), calc(-50% + 12px)) scale(0.62) rotate(-14deg);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    18% {
        opacity: 1;
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    40% {
        transform: translate(calc(-50% - 140px), calc(-50% - 18px)) scale(0.97) rotate(-2deg);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    64% {
        transform: translate(calc(-50% - 16px), calc(-50% - 5px)) scale(1.05) rotate(1.5deg);
        animation-timing-function: cubic-bezier(0.6, 0, 1, 1);
    }
    76% {
        transform: translate(calc(-50% + 7px), calc(-50% + 9px)) scale(1.13, 0.86) rotate(2deg);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
    88% {
        transform: translate(calc(-50% - 3px), calc(-50% - 7px)) scale(0.94, 1.07) rotate(-0.5deg);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes sisPhoneIn {
    from { opacity: 0; transform: translateY(52px) scale(0.84); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes sisPhoneFloat {
    0%,  100% { transform: translateY(0px); }
    50%        { transform: translateY(-14px); }
}

@keyframes sisFrameGlow {
    from {
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.08),
            0 0 0 2px #06101f,
            0 0 0 3.5px rgba(11, 116, 209, 0.32);
    }
    to {
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.12),
            0 0 0 2px #06101f,
            0 0 0 3.5px rgba(11, 116, 209, 0.68),
            0 0 32px rgba(11, 116, 209, 0.2);
    }
}

@keyframes medFrameGlow {
    from {
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.08),
            0 0 0 2px #061412,
            0 0 0 3.5px rgba(13, 148, 136, 0.32);
    }
    to {
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.12),
            0 0 0 2px #061412,
            0 0 0 3.5px rgba(13, 148, 136, 0.68),
            0 0 32px rgba(13, 148, 136, 0.2);
    }
}

@keyframes ppIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pFaqIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   Dark Mode Overrides
───────────────────────────────────────── */
[data-theme="dark"] .p-badge--green   { background: rgba(21,128,61,.18);  color: #4ade80; border-color: rgba(74,222,128,.25); }
[data-theme="dark"] .p-badge--red     { background: rgba(190,18,60,.18);  color: #f87171; border-color: rgba(248,113,113,.25); }
[data-theme="dark"] .p-badge--orange  { background: rgba(194,65,12,.18);  color: #fb923c; border-color: rgba(251,146,60,.25); }
[data-theme="dark"] .p-pill-module    { color: #c4b5fd; background: rgba(109,40,217,.18); }
[data-theme="dark"] .p-pill-mobile    { color: #4ade80; background: rgba(21,128,61,.18); }
[data-theme="dark"] .p-feat-check     { background: rgba(21,128,61,.2);   color: #4ade80; }
[data-theme="dark"] .p-feature-list li:hover .p-feat-check { background: #22c55e; color: #0c1220; }
[data-theme="dark"] .p-tbl-check      { background: rgba(21,128,61,.2);   color: #4ade80; }
[data-theme="dark"] .p-pp-free        { background: rgba(21,128,61,.12);  border-color: rgba(74,222,128,.2); color: #86efac; }
[data-theme="dark"] .p-pp-free-list   { color: #4ade80; }
[data-theme="dark"] .p-pp-badge-onetime { background: rgba(146,64,14,.22); color: #fbbf24; }
[data-theme="dark"] .p-pp-onetime .p-pp-amt { color: #fbbf24; }
[data-theme="dark"] .p-tag-mo         { background: rgba(109,40,217,.22); color: #a78bfa; }
[data-theme="dark"] .p-tag-once       { background: rgba(146,64,14,.22);  color: #fbbf24; }
[data-theme="dark"] .p-pkg-win        { background: rgba(21,128,61,.12);  border-color: rgba(74,222,128,.2); }
[data-theme="dark"] .p-pkg-win .p-pkg-label { color: #4ade80; }
[data-theme="dark"] .p-erp-diff-unlim { color: #4ade80; background: rgba(21,128,61,.18); }
[data-theme="dark"] .p-pp-free polyline      { stroke: #4ade80; }
[data-theme="dark"] .p-pp-bonus-item polyline { stroke: #93c5fd; }
[data-theme="dark"] .plans-trust-item circle,
[data-theme="dark"] .plans-trust-item path   { stroke: #4ade80; }
[data-theme="dark"] .med-phone-badge-pill    { background: rgba(13,148,136,.18); color: #2dd4bf; border-color: rgba(45,212,191,.2); }
