/* ============================================
   PRICING — region + billing toggles, feature
   packs and hardware. Loads after pricing.css.
   ============================================ */

.pp-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 26px;
    margin: 26px auto 8px;
}

.pp-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

.pp-switch button {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 9px 20px;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.pp-switch button[aria-pressed="true"] {
    background: #0070ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 112, 255, 0.28);
}

.pp-flag {
    width: 18px;
    height: auto;
    margin-right: 7px;
    vertical-align: -3px;
}

.pp-save {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.dark-mode .pp-switch {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pp-save {
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
}

/* --- Price rendering inside the existing .pricing-card --- */
.pp-cur {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    opacity: 0.75;
    margin-right: 2px;
}

.pp-per {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    opacity: 0.7;
}

.pp-alt {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.72;
}

/* The plan CTAs are anchors, not <button>. pricing.css sets width:100% but no
   display, which does nothing on an inline <a> — so the "Everything in ..." line
   collided with the button. Give anchor CTAs block layout to match. */
a.cta-button {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

/* --- Trial banner --- */
.pp-trial {
    max-width: 900px;
    margin: 34px auto 0;
    padding: 16px 22px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.05);
    text-align: center;
    font-size: 0.96rem;
    line-height: 1.6;
}

body.dark-mode .pp-trial {
    background: rgba(140, 171, 255, 0.1);
    border-color: rgba(140, 171, 255, 0.3);
}

/* --- Generic section wrapper --- */
.pp-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 72px 20px 0;
}

.pp-section > h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0 0 10px;
}

.pp-section > p.pp-sub {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.8;
}

/* --- Feature packs --- */
.pp-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pp-pack {
    padding: 24px 22px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.015);
}

.pp-pack i {
    font-size: 1.35rem;
    color: #0070ff;
    margin-bottom: 12px;
    display: block;
}

.pp-pack h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.pp-pack .pp-pack-price {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #0070ff;
}

.pp-pack p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.82;
}

body.dark-mode .pp-pack {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .pp-pack i,
body.dark-mode .pp-pack .pp-pack-price {
    color: #8cabff;
}

/* --- Hardware --- */
.pp-hardware {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.pp-hw {
    padding: 26px 24px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    text-align: center;
}

.pp-hw h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.pp-hw .pp-hw-price {
    display: block;
    margin: 10px 0 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0070ff;
}

.pp-hw p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.78;
}

body.dark-mode .pp-hw {
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .pp-hw .pp-hw-price {
    color: #8cabff;
}

/* --- Footnote --- */
.pp-note {
    max-width: 900px;
    margin: 46px auto 0;
    padding: 0 20px;
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.72;
    text-align: center;
}

@media (max-width: 600px) {
    .pp-controls {
        gap: 12px;
    }

    .pp-switch button {
        padding: 8px 14px;
        font-size: 0.88rem;
    }
}
