/* billing#154 — Share + WhatsApp buttons on the pricing page plan cards. Plain CSS, no build needed
   (the marketing CSP refuses inline style). Brand teal = tailwind.marketing.config.js 'gradient-brand'. */

.plan-share {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.plan-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.plan-share__btn:hover {
    transform: translateY(-1px);
}

.plan-share__btn:focus-visible {
    outline: 2px solid #00849e;
    outline-offset: 2px;
}

.plan-share__btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Share: brand teal */
.plan-share__btn--share {
    background: rgba(0, 132, 158, 0.1);
    border-color: rgba(0, 132, 158, 0.35);
    color: #006b80;
}

.plan-share__btn--share:hover {
    background: linear-gradient(135deg, #00849e, #005f73);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 132, 158, 0.3);
}

.plan-share__btn--share.is-copied {
    background: #00849e;
    border-color: transparent;
    color: #ffffff;
}

/* WhatsApp: WhatsApp green */
.plan-share__btn--whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.45);
    color: #128c4a;
}

.plan-share__btn--whatsapp:hover {
    background: #25d366;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Dark theme: <html> always has 'dark'; light mode adds 'light' on top (theme-boot.js). */
html.dark:not(.light) .plan-share__btn--share {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.4);
    color: #67e8f9;
}

html.dark:not(.light) .plan-share__btn--whatsapp {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.45);
    color: #4ade80;
}

html.dark:not(.light) .plan-share__btn--share:hover,
html.dark:not(.light) .plan-share__btn--share.is-copied,
html.dark:not(.light) .plan-share__btn--whatsapp:hover {
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .plan-share__btn,
    .plan-share__btn:hover {
        transition: none;
        transform: none;
    }
}

/* billing#161 - the whole plan card opens the order (Clarity: dead clicks on the cards, which lift on hover).
   The Order Now link covers the card; Share / WhatsApp sit above it and keep their own clicks. */
.plan-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.plan-share {
    position: relative;
    z-index: 1;
}
