/**
 * HT Mega 2026 — Pricing Table Section
 * BEM component: .htm25-pricing
 *
 * All token names match htm25-tokens.css exactly.
 * Design styles applied via: .htm25-style--{bento|glass|dark|aurora|neo}
 * Layouts applied via: .htm25-pricing--{cards|centered}
 * Billing toggle state: .htm25-pricing--annual (toggled by inline JS)
 */

/* ── Base wrapper ─────────────────────────────────────────────── */

.htm25-pricing {
    position: relative;
    overflow: hidden;
    padding-block: var(--htm25-section-py);
    padding-inline: var(--htm25-section-px);
    background-color: var(--htm25-bg-section);
    color: var(--htm25-text-body);
}

.htm25-pricing.htm25-style--glass,
.htm25-pricing.htm25-style--aurora {
    background: var(--htm25-gradient-hero);
}

/* ── Background blobs ─────────────────────────────────────────── */

.htm25-pricing__bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: var(--htm25-z-below, -1);
}

.htm25-pricing__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: htm25-blob-drift 14s ease-in-out infinite alternate;
    will-change: transform;
}

.htm25-style--glass .htm25-pricing__blob--1 {
    width: 480px; height: 480px;
    top: -120px; left: -60px;
    background: radial-gradient(circle, rgba(120,110,255,0.40), transparent 70%);
    animation-duration: 17s;
}
.htm25-style--glass .htm25-pricing__blob--2 {
    width: 400px; height: 400px;
    bottom: -100px; right: -60px;
    background: radial-gradient(circle, rgba(6,182,212,0.30), transparent 70%);
    animation-duration: 21s;
    animation-direction: alternate-reverse;
}

.htm25-style--aurora .htm25-pricing__blob--1 {
    width: 540px; height: 540px;
    top: -160px; right: -80px;
    background: radial-gradient(circle, rgba(255,60,172,0.35), transparent 70%);
    animation-duration: 19s;
}
.htm25-style--aurora .htm25-pricing__blob--2 {
    width: 460px; height: 460px;
    bottom: -120px; left: -60px;
    background: radial-gradient(circle, rgba(43,134,197,0.28), transparent 70%);
    animation-duration: 23s;
    animation-direction: alternate-reverse;
}


/* ── Inner container ──────────────────────────────────────────── */

.htm25-pricing__inner {
    position: relative;
    z-index: var(--htm25-z-base, 0);
    max-width: var(--htm25-container-xl, 1280px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-12, 3rem);
    align-items: center;
}

/* ── Section header ───────────────────────────────────────────── */

.htm25-pricing__header {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-4, 1rem);
    align-items: center;
    text-align: center;
    max-width: 56ch;
}

.htm25-pricing .htm25-pricing__section-label {
    margin: 0;
    font-size: var(--htm25-text-xs);
    font-weight: var(--htm25-weight-semibold);
    letter-spacing: var(--htm25-tracking-wider);
    text-transform: uppercase;
    color: var(--htm25-section-label-color, var(--htm25-accent-primary));
}

.htm25-pricing .htm25-pricing__headline {
    white-space: pre-line;

    margin: 0;
    font-size: var(--htm25-text-3xl);
    font-weight: var(--htm25-weight-bold);
    line-height: var(--htm25-leading-tight);
    letter-spacing: var(--htm25-tracking-tight);
    color: var(--htm25-text-heading);
}

/* Base — always clip to text so Elementor gradient/color controls render as text, not a box */
.htm25-pricing .htm25-pricing__headline-accent {
    background-color: var(--htm25-accent-primary);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass + Aurora: gradient text */
.htm25-style--glass .htm25-pricing__headline-accent,
.htm25-style--aurora .htm25-pricing__headline-accent {
    background-color: transparent;
    background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

.htm25-pricing .htm25-pricing__description {
    margin: 0;
    font-size: var(--htm25-text-lg);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
    max-width: 52ch;
}

/* ── Billing toggle ───────────────────────────────────────────── */

.htm25-pricing__toggle-wrap {
    display: flex;
    align-items: center;
    gap: var(--htm25-space-3, 0.75rem);
    flex-wrap: wrap;
    justify-content: center;
}

.htm25-pricing__toggle-label {
    font-size: var(--htm25-text-sm);
    font-weight: var(--htm25-weight-medium);
    color: var(--htm25-text-muted);
    display: flex;
    align-items: center;
    gap: var(--htm25-space-2, 0.5rem);
    transition: color 0.2s ease;
    cursor: default;
}

/* Active label (monthly = default, annual when checked) */
.htm25-pricing__toggle-label--monthly { color: var(--htm25-text-heading); }
.htm25-pricing--annual .htm25-pricing__toggle-label--monthly { color: var(--htm25-text-muted); }
.htm25-pricing--annual .htm25-pricing__toggle-label--annual  { color: var(--htm25-text-heading); }

/* Savings badge pill */
.htm25-pricing__save-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem var(--htm25-space-2, 0.5rem);
    font-size: var(--htm25-text-xs);
    font-weight: var(--htm25-weight-semibold);
    border-radius: var(--htm25-radius-full);
    background: var(--htm25-accent-primary-lt);
    color: var(--htm25-accent-primary);
}

/* Toggle input: visually hidden but accessible */
.htm25-pricing__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.htm25-pricing__toggle-cb {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.htm25-pricing__toggle-track {
    display: flex;
    align-items: center;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: var(--htm25-radius-full);
    background: var(--htm25-bg-subtle, #E4E7EC);
    border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 2px;
}

.htm25-pricing__toggle-cb:checked + .htm25-pricing__toggle-track {
    background: var(--htm25-accent-primary);
    border-color: var(--htm25-accent-primary);
}

.htm25-pricing__toggle-thumb {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: var(--htm25-radius-full);
    background: var(--htm25-bg-section);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.htm25-pricing__toggle-cb:checked + .htm25-pricing__toggle-track .htm25-pricing__toggle-thumb {
    transform: translateX(1.2rem);
}

.htm25-pricing__toggle:focus-within .htm25-pricing__toggle-track {
    outline: 2px solid var(--htm25-accent-primary);
    outline-offset: 2px;
}

/* Neo toggle: rectangular */
.htm25-style--neo .htm25-pricing__toggle-track {
    border-radius: 0;
    border-width: 2px;
}
.htm25-style--neo .htm25-pricing__toggle-thumb {
    border-radius: 0;
}

/* ── Billing price visibility ─────────────────────────────────── */

/* Monthly shown by default, annual hidden */
.htm25-pricing__card-amount--annual { display: none; }

/* Annual toggle: flip visibility */
.htm25-pricing--annual .htm25-pricing__card-amount--monthly { display: none; }
.htm25-pricing--annual .htm25-pricing__card-amount--annual  {
    display: inline;
    animation: htm25-price-fade 0.25s ease;
}

@keyframes htm25-price-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Cards grid ───────────────────────────────────────────────── */

.htm25-pricing__cards {
    display: grid;
    gap: var(--htm25-space-6, 1.5rem);
    width: 100%;
    align-items: start;
}

.htm25-pricing__cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-pricing__cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.htm25-pricing__cards--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Centered/Cards layout: centre the section label (overrides global .htm25-section-label align-self:flex-start) */
.htm25-pricing--centered .htm25-pricing__section-label,
.htm25-pricing--cards .htm25-pricing__section-label {
    align-self: center;
}

/* Centered layout: auto-fill with min card width */
.htm25-pricing--centered .htm25-pricing__cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-items: center;
}

/* Featured card: vertically stretched to stand out */
.htm25-pricing--cards   .htm25-pricing__card--featured,
.htm25-pricing--centered .htm25-pricing__card--featured {
    align-self: stretch;
}

/* ── Individual plan card ─────────────────────────────────────── */

.htm25-pricing__card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--htm25-radius-card);
    background: var(--htm25-bg-card);
    border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
    box-shadow: var(--htm25-shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.htm25-pricing__card:hover {
    box-shadow: var(--htm25-shadow-card-hover);
    transform: translateY(-2px);
}

/* Glass card */
.htm25-style--glass .htm25-pricing__card {
    background: var(--htm25-glass-bg);
    -webkit-backdrop-filter: var(--htm25-glass-blur);
            backdrop-filter: var(--htm25-glass-blur);
}

/* Aurora card */
.htm25-style--aurora .htm25-pricing__card {
    background: var(--htm25-bg-card);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

/* Neo card */
.htm25-style--neo .htm25-pricing__card {
    border-radius: 0;
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--htm25-border-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.htm25-style--neo .htm25-pricing__card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--htm25-border-color);
}

/* ── Featured card enhancements ───────────────────────────────── */

.htm25-pricing__card--featured {
    border-color: var(--htm25-accent-primary);
    box-shadow: 0 0 0 2px var(--htm25-accent-primary), var(--htm25-shadow-card-hover);
}

.htm25-pricing__card--featured:hover {
    box-shadow: 0 0 0 2px var(--htm25-accent-primary), var(--htm25-shadow-lg);
}

/* Glass: featured has glow border */
.htm25-style--glass .htm25-pricing__card--featured {
    border-color: var(--htm25-border-color-glow, rgba(120,110,255,0.40));
    box-shadow: 0 0 0 1px var(--htm25-border-color-glow, rgba(120,110,255,0.40)), var(--htm25-shadow-glow, none);
}

/* Aurora: featured has pink glow */
.htm25-style--aurora .htm25-pricing__card--featured {
    border-color: var(--htm25-accent-primary);
    box-shadow: 0 0 0 1px var(--htm25-accent-primary), var(--htm25-shadow-glow-pink, none);
}

/* Neo: featured has yellow fill header (via .htm25-pricing__card-head below) */
.htm25-style--neo .htm25-pricing__card--featured {
    border-color: var(--htm25-border-color);
    box-shadow: 6px 6px 0 var(--htm25-border-color);
}

/* ── Popular badge ────────────────────────────────────────────── */

.htm25-pricing__card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    padding: var(--htm25-space-1) var(--htm25-space-4);
    font-size: var(--htm25-text-xs);
    font-weight: var(--htm25-weight-semibold);
    letter-spacing: var(--htm25-tracking-wide);
    text-transform: uppercase;
    border-radius: 0 0 var(--htm25-radius-md) var(--htm25-radius-md);
    background: var(--htm25-accent-primary);
    color: var(--htm25-btn-primary-text, #fff);
    z-index: var(--htm25-z-raised, 10);
    white-space: nowrap;
}

/* Neo badge: rectangular */
.htm25-style--neo .htm25-pricing__card-badge {
    border-radius: 0;
    left: var(--htm25-space-6);
    transform: none;
    top: -1px;
}

/* ── Card head (name + price) ─────────────────────────────────── */

.htm25-pricing__card-head {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-3, 0.75rem);
    padding: var(--htm25-space-8, 2rem);
    padding-top: calc( var(--htm25-space-8, 2rem) + 1.25rem ); /* extra space for badge */
}

/* Featured card: coloured header band */
.htm25-pricing__card--featured .htm25-pricing__card-head {
    background: var(--htm25-accent-primary-lt);
}

/* Glass featured: gradient header */
.htm25-style--glass .htm25-pricing__card--featured .htm25-pricing__card-head {
    background: var(--htm25-gradient-card, rgba(255,255,255,0.08));
}

/* Dark featured: subtle lime tint */
.htm25-style--dark .htm25-pricing__card--featured .htm25-pricing__card-head {
    background: var(--htm25-accent-primary-lt);
}

/* Neo featured: yellow header */
.htm25-style--neo .htm25-pricing__card--featured .htm25-pricing__card-head {
    background: var(--htm25-swatch-yellow, #FFE500);
    border-bottom: 2px solid var(--htm25-border-color);
}

/* ── Card icon ────────────────────────────────────────────────── */

.htm25-pricing__card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--htm25-radius-icon, var(--htm25-radius-md));
    background: var(--htm25-accent-primary-lt);
    flex-shrink: 0;
}

.htm25-pricing__card--featured .htm25-pricing__card-icon-wrap {
    background: var(--htm25-bg-card);
}

.htm25-pricing__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--htm25-accent-primary);
    width: 100%;
    height: 100%;
}

/* ── Plan name ────────────────────────────────────────────────── */

.htm25-pricing .htm25-pricing__card-name {
    margin: 0;
    font-size: var(--htm25-text-lg);
    font-weight: var(--htm25-weight-semibold);
    line-height: var(--htm25-leading-snug);
    color: var(--htm25-text-heading);
}

/* ── Price ────────────────────────────────────────────────────── */

.htm25-pricing__card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: var(--htm25-space-1, 0.25rem);
}

.htm25-pricing__card-currency {
    font-size: var(--htm25-text-xl);
    font-weight: var(--htm25-weight-semibold);
    color: var(--htm25-text-heading);
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.25em;
}

.htm25-pricing__card-amount--monthly,
.htm25-pricing__card-amount--annual {
    font-size: var(--htm25-text-5xl);
    font-weight: var(--htm25-weight-black, var(--htm25-weight-bold));
    line-height: 1;
    letter-spacing: var(--htm25-tracking-tight);
    color: var(--htm25-text-heading);
}

.htm25-pricing__card-period {
    font-size: var(--htm25-text-sm);
    font-weight: var(--htm25-weight-regular);
    color: var(--htm25-text-muted);
    align-self: flex-end;
    padding-bottom: 0.25em;
}

/* ── Tagline ──────────────────────────────────────────────────── */

.htm25-pricing .htm25-pricing__card-tagline {
    margin: 0;
    font-size: var(--htm25-text-sm);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
}

/* ── Divider ──────────────────────────────────────────────────── */

.htm25-pricing__card-divider {
    border: none;
    border-top: var(--htm25-border-width) solid var(--htm25-border-color);
    margin: 0;
}

/* ── Feature list ─────────────────────────────────────────────── */

.htm25-pricing .htm25-pricing__card-features {
    list-style: none;
    margin: 0;
    padding: var(--htm25-space-6, 1.5rem) var(--htm25-space-8, 2rem);
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-3, 0.75rem);
    flex: 1; /* push CTA to bottom */
}

.htm25-pricing__card-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--htm25-space-3, 0.75rem);
    font-size: var(--htm25-text-sm);
    line-height: var(--htm25-leading-snug);
    color: var(--htm25-text-body);
}

.htm25-pricing__card-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: var(--htm25-radius-full);
    background: var(--htm25-accent-primary-lt);
    color: var(--htm25-accent-primary);
    margin-top: 0.1em;
}

/* Dark style: lime check */
.htm25-style--dark .htm25-pricing__card-feature-check {
    background: var(--htm25-accent-primary-lt);
    color: var(--htm25-accent-primary);
}

/* Neo: square check */
.htm25-style--neo .htm25-pricing__card-feature-check {
    border-radius: 0;
    border: 1px solid var(--htm25-border-color);
    background: var(--htm25-swatch-yellow, #FFE500);
    color: var(--htm25-swatch-black, #000);
}

/* ── CTA wrap ─────────────────────────────────────────────────── */

.htm25-pricing__card-cta-wrap {
    padding: 0 var(--htm25-space-8, 2rem) var(--htm25-space-8, 2rem);
    margin-top: auto;
}

.htm25-pricing__card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--htm25-btn-py) var(--htm25-btn-px);
    font-size: var(--htm25-btn-font-size, var(--htm25-text-sm));
    font-weight: var(--htm25-btn-font-weight, var(--htm25-weight-semibold));
    line-height: 1;
    text-decoration: none;
    border-radius: var(--htm25-btn-radius);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Primary CTA (featured plan) */
.htm25-pricing__card-cta.htm25-btn--primary {
    background: var(--htm25-btn-primary-bg);
    color: var(--htm25-btn-primary-text);
    border: none;
}

.htm25-pricing__card-cta.htm25-btn--primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: var(--htm25-shadow-btn);
}

/* Outline CTA */
.htm25-pricing__card-cta.htm25-btn--outline {
    background: transparent;
    color: var(--htm25-btn-outline-text);
    border: var(--htm25-btn-border-width, 1px) solid var(--htm25-btn-outline-border);
}

.htm25-pricing__card-cta.htm25-btn--outline:hover {
    background: var(--htm25-btn-outline-bg-hover);
}

/* Neo CTA overrides */
.htm25-style--neo .htm25-pricing__card-cta {
    border-width: 2px;
    border-color: var(--htm25-border-color);
}
.htm25-style--neo .htm25-pricing__card-cta.htm25-btn--primary {
    box-shadow: 3px 3px 0 var(--htm25-border-color);
}
.htm25-style--neo .htm25-pricing__card-cta.htm25-btn--primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--htm25-border-color);
    opacity: 1;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .htm25-pricing__cards--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .htm25-pricing__cards--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .htm25-pricing__cards--cols-2,
    .htm25-pricing__cards--cols-3,
    .htm25-pricing__cards--cols-4 {
        grid-template-columns: 1fr;
    }

    .htm25-pricing--centered .htm25-pricing__cards {
        grid-template-columns: 1fr;
    }

    .htm25-pricing__card--featured {
        order: -1; /* featured card first on mobile */
    }
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .htm25-pricing__blob { animation: none; }

    .htm25-pricing__card,
    .htm25-pricing__card-cta,
    .htm25-pricing__toggle-track,
    .htm25-pricing__toggle-thumb,
    .htm25-pricing__toggle-label {
        transition: none;
    }

    @keyframes htm25-price-fade {
        from { opacity: 1; transform: none; }
        to   { opacity: 1; transform: none; }
    }
}
