/* ==========================================================================
   InfyPress V2 — UI Components
   Buttons, cards, badges, tabs, accordions, forms, terminal, steps, etc.
   All dark-mode-ready via tokens.
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: var(--leading-none);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-fg);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-medium);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-wp-blue {
    background: var(--wp-blue);
    color: #ffffff;
}
.btn-wp-blue:hover {
    opacity: var(--opacity-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    opacity: var(--opacity-hover);
}

/* Sizes */
.btn-sm { padding: 6px 14px; font-size: var(--text-xs); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* States */
.btn-disabled,
.btn:disabled {
    opacity: var(--opacity-disabled);
    pointer-events: none;
}

.btn .material-symbols-outlined {
    font-size: var(--icon-lg);
}

.btn-split {
    width: 100%;
}

.btn-split .btn {
    flex: 1;
}

/* Dark mode: animated green/blue gradient border only, transparent interior.
   Same padding-box/border-box trick as .card-pro-teaser. */
[data-theme="dark"] .btn-primary {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--gradient-border) border-box;
    background-size: 100% 100%, 200% 100%;
    color: #ffffff;
    box-shadow: none;
    animation: gradient-shift var(--duration-gradient) ease infinite;
}

[data-theme="dark"] .btn-primary:hover {
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        linear-gradient(90deg, #066340, #15497f, #066340) border-box;
    background-size: 100% 100%, 200% 100%;
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    [data-theme="dark"] .btn-primary {
        animation: none;
    }
}

/* ==========================================================================
   2. CARDS
   ========================================================================== */

/* --- Pro Teaser Card — animated gradient border on all 4 sides ---
   Two-layer background trick: layer 1 = solid bg clipped to padding-box
   (interior), layer 2 = gradient clipped to border-box (visible only in the
   2px transparent border gap). The dedicated card-gradient-shift keyframe
   shifts only layer 2, leaving the interior static. */
.card-pro-teaser {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--gradient-border) border-box;
    background-size: 100% 100%, 200% 100%;
    animation: card-gradient-shift var(--duration-gradient) ease infinite;
}

.card-pro-teaser:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

@keyframes card-gradient-shift {
    0%   { background-position: 0% 0%, 0% 50%; }
    50%  { background-position: 0% 0%, 100% 50%; }
    100% { background-position: 0% 0%, 0% 50%; }
}

/* Pro-teaser cards use an accented inline link row under the body copy
   ("View Pro Features →" / "Get Pro Version →"). Ported from the v2
   reference's pages/plugin.css so the plugin-features block renders
   correctly on any page without loading the page-level stylesheet. */
.card-link-accent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    margin-top: var(--space-4);
    text-decoration: none;
}

.card-link-accent .material-symbols-outlined {
    font-size: var(--icon-md);
}

/* Source list — detailed research/reference cards nested inside faq-answer
   panels. Used by the trusted-sources-section block for the "Google Official
   Documentation" / "Industry Expert Guidelines" accordion panels. Ported
   from the v2 reference's pages/plugin.css so the block can render without
   loading the page-level stylesheet. */
.source-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.source-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.source-item:hover {
    border-color: var(--border-medium);
}

.source-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.source-date {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin: 0;
}

.source-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
    margin: 0;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-decoration: none;
    width: fit-content;
    transition: all var(--transition-base);
}

.source-link:hover {
    background: var(--bg-elevated, var(--bg-surface));
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.source-link .material-symbols-outlined {
    font-size: var(--icon-sm);
}

.card {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* When a `.card` also has `.card-pro-teaser` we need the animated
   gradient border to win over `.card`'s plain `background: var(--bg-base)`
   + 1px border, which are declared later in source order at equal
   specificity. Combined selector (2 classes) bumps specificity above
   either single-class rule and re-applies the layered background from
   `.card-pro-teaser`. Same trick used for `.pricing-card.card-pro-teaser`
   further down in this file. */
.card.card-pro-teaser,
.card.card-pro-teaser:hover {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--gradient-border) border-box;
    background-size: 100% 100%, 200% 100%;
    position: relative;
}

/* Make the entire pro-teaser card clickable when its primary action is
   an anchor link (plugin-functions pro-upselling card, plugin-features
   pro tab teaser). A zero-size ::after on the anchor stretched across
   the card via `inset: 0` inherits the parent link's click target, so
   clicking anywhere on the card navigates to the anchor's href. Doesn't
   affect the switch-tab teaser (the free-tab pro teaser) — that one is
   a `<div>` wired to tabs.js via `[data-switch-tab]` and is already
   fully clickable through its own click handler. */
.card.card-pro-teaser > a.card-link-accent {
    position: static;
}

.card.card-pro-teaser > a.card-link-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* The base `.card p { flex-grow: 1 }` rule pushes description text to
   fill the remaining height so sibling card bottoms align in a grid.
   On the pro-teaser that behavior shoves the `.card-link-accent` down
   to the very bottom of the card and leaves a visible gap between the
   description and the link. Override so the description hugs its text
   and the link sits immediately below. */
.card.card-pro-teaser > p {
    flex-grow: 0;
}

.card-flat {
    border-color: transparent;
    background: transparent;
    padding: 0;
}
.card-flat:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.card-bordered {
    border-color: var(--border-medium);
}

.card-surface {
    background: var(--bg-surface);
}

.card-icon {
    width: var(--size-12);
    height: var(--size-12);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    margin-bottom: var(--space-6);
}

.card-icon .material-symbols-outlined {
    font-size: var(--icon-2xl);
    color: var(--text-primary);
}

/* Filled plugin icons in the plugin-showcase block. The Material Symbols
   font is loaded with the FILL variation axis (0..1) globally, so we flip
   the axis to 1 here for all plugin card icons inside this section — no
   separate filled font needed. */
.plugin-showcase .card-icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* Filled plugin icons in the mega menu (.mega-menu-icon) and mobile
   submenu (.mobile-menu-icon). Same FILL axis trick as plugin-showcase —
   one CSS rule covers both the rendered <span class="material-symbols-outlined">
   from InfyPress_Mega_Menu_Fields (plugin variants) and the description-
   field fallback, keeping icon treatment consistent everywhere a plugin is
   represented. */
.mega-menu-icon .material-symbols-outlined,
.mobile-menu-icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    flex-grow: 1;
    margin-bottom: var(--space-2);
}

.card p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   3. BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    line-height: var(--leading-none);
    width: fit-content;
}

.badge-default {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.badge-blue {
    background: var(--wp-blue-bg);
    border: 1px solid var(--wp-blue-border);
    color: var(--wp-blue);
}

.badge-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info);
}

.badge-green {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.badge-sm {
    text-transform: none;
    font-size: var(--text-2xs);
    letter-spacing: normal;
    padding: 3px 8px;
}

.badge .material-symbols-outlined {
    font-size: var(--icon-sm);
}

/* ==========================================================================
   4. TAB BAR (Pill Toggle)
   ========================================================================== */

.tab-bar {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 auto var(--space-12);
}

.tab-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: transparent;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.tab-btn .material-symbols-outlined {
    font-size: var(--icon-lg);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .tab-bar {
        flex-wrap: wrap;
        width: auto;
        border-radius: var(--radius-lg);
    }

    .tab-btn {
        flex: 1;
        min-width: var(--space-30);
        justify-content: center;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   5. FAQ / ACCORDION
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-item.active {
    border-color: var(--border-medium);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
}

.faq-question > .material-symbols-outlined,
.faq-question-right > .material-symbols-outlined {
    font-size: var(--icon-xl);
    color: var(--text-tertiary);
    transition: transform var(--transition-slow);
    flex-shrink: 0;
}

.faq-item.active .faq-question > .material-symbols-outlined,
.faq-item.active .faq-question-right > .material-symbols-outlined {
    transform: rotate(180deg);
}

/* Structured .faq-question layout — wraps an icon+label on the left and
   a badge+chevron on the right. Used by the seo-accordion block's v2
   rewrite; the simpler icon-only faq-section markup still works with
   the generic .faq-question flex rule above. */
.faq-question-left {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    flex: 1 1 auto;
}

.faq-question-left > .material-symbols-outlined {
    font-size: var(--icon-xl);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faq-question-right {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-drawer) ease;
}

.faq-answer-inner {
    padding: 0 var(--space-6) var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.faq-item.active .faq-answer {
    max-height: 1200px;
}

/* ==========================================================================
   6. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--bg-base);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--wp-blue);
    box-shadow: var(--focus-ring);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Override browser autofill background (Chrome, Safari, Firefox) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary);
    background-color: var(--bg-base) !important;
    transition: background-color 0s 9999s;
    caret-color: var(--text-primary);
}

.form-textarea {
    min-height: var(--space-30);
    resize: vertical;
}

/* Custom dropdown arrow for native <select>. Native browser chevron is
   inconsistent across platforms and collides with our form-select padding;
   we hide it with appearance:none and paint our own SVG chevron on the
   right edge. Pattern mirrors the docs filter dropdown. */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: var(--space-10);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    cursor: pointer;
}

.form-select::-ms-expand {
    display: none;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-1);
}

.form-input-error {
    border-color: var(--danger);
}

.form-input-error:focus {
    box-shadow: var(--focus-ring-danger);
}

/* ==========================================================================
   7. TERMINAL / CODE BLOCK
   ========================================================================== */

.terminal-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.terminal-block .material-symbols-outlined {
    font-size: var(--icon-md);
}

.terminal-block-sm {
    font-size: var(--text-xs);
    padding: 4px 8px;
}

/* ==========================================================================
   8. CHECK LIST
   ========================================================================== */

.check-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

/* When the check-list is the last child of its container (e.g. the
   Best Practices Summary cards end with `h3` + `.check-list`), the
   trailing bottom margin produces visible dead space. Collapse it only
   in that case so the seo-accordion's mid-answer check-lists keep
   their spacing before the terminal-blocks that follow. */
.check-list:last-child {
    margin-bottom: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.check-list li .material-symbols-outlined {
    font-size: var(--icon-md);
    color: var(--success);
    flex-shrink: 0;
}

/* Horizontal variant — inline check features (e.g., hero supporting points) */
.check-list-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    margin-bottom: 0;
}

/* ==========================================================================
   9. STEPS
   ========================================================================== */

.step-number {
    width: var(--size-10);
    height: var(--size-10);
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    flex-shrink: 0;
}

/* ==========================================================================
   10. MODEL TAGS
   ========================================================================== */

.model-tag {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    display: inline-flex;
    width: fit-content;
}

.model-tag-free {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}

.model-tag-pro {
    color: var(--wp-blue);
    background: var(--wp-blue-bg);
    border: 1px solid var(--wp-blue-border);
}

/* ==========================================================================
   11. NOTICE / CALLOUT
   ========================================================================== */

.notice {
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.notice .material-symbols-outlined {
    font-size: var(--icon-xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-success .material-symbols-outlined { color: var(--success); }
.notice-warning .material-symbols-outlined { color: var(--warning); }
.notice-danger .material-symbols-outlined { color: var(--danger); }
.notice-info .material-symbols-outlined { color: var(--info); }

.notice p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.notice strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--space-24) 0;
    text-align: center;
}

.cta-section h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-3);
}

.cta-section p.lead {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.cta-trust .material-symbols-outlined {
    font-size: var(--icon-lg);
    color: var(--success);
}

@media (max-width: 768px) {
    .cta-section h2 { font-size: var(--text-3xl); }
}

/* ==========================================================================
   13. INSIGHTS / GALLERY
   ========================================================================== */

.insights-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-16);
}

.insights-feature-reverse {
    direction: rtl;
}

.insights-feature-reverse > * {
    direction: ltr;
}

.insights-main-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.insights-main-image:hover {
    border-color: var(--border-medium);
}

.insights-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insights-thumbs {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.insights-thumb {
    flex: 1;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.insights-thumb.active {
    border-color: var(--accent);
}

.insights-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insights-badge {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.insights-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.insights-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .insights-feature,
    .insights-feature-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ==========================================================================
   14. VIDEO PLACEHOLDER
   ========================================================================== */

.video-placeholder {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-3);
    color: var(--text-tertiary);
    max-width: var(--container-sm);
    margin: var(--space-8) auto 0;
}

.video-placeholder .material-symbols-outlined {
    font-size: var(--icon-4xl);
}

/* ==========================================================================
   15. PRICING
   ========================================================================== */

/* --- Pricing Toggle (Yearly / Lifetime) --- */

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 6px var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-12);
}

.toggle-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-base);
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-medium);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: var(--size-5);
    width: var(--size-5);
    left: 3px;
    bottom: 3px;
    background: var(--bg-base);
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.badge-save {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

/* --- Pricing Tabs (Product Switcher) --- */

.pricing-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 auto var(--space-6);
}

.pricing-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: transparent;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid transparent;
    cursor: pointer;
}

.pricing-tab:hover {
    color: var(--text-secondary);
}

.pricing-tab.active {
    background: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.pricing-tab-badge {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.pricing-tab-content {
    display: none;
}

.pricing-tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-wrap: wrap;
        width: auto;
        border-radius: var(--radius-lg);
    }

    .pricing-tab {
        flex: 1;
        min-width: var(--space-25);
        justify-content: center;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   Detailed Feature Comparison table
   Used by blocks/feature-comparison. Ported from the v2 reference's
   docs/design/v2/assets/css/pages/plugin.css so the block renders
   globally without the page-level stylesheet.
   ========================================================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: var(--container-prose);
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table thead th {
    background: var(--bg-surface);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
    padding: var(--space-4) var(--space-4);
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-base);
}

.comparison-table .col-highlight {
    background: rgba(37, 99, 235, 0.03);
}

[data-theme="dark"] .comparison-table .col-highlight {
    background: rgba(37, 99, 235, 0.06);
}

.comparison-table .category-row td {
    background: var(--bg-surface);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.comparison-table .icon-yes {
    color: var(--success);
    font-size: var(--icon-xl);
}

.comparison-table .icon-no {
    color: var(--text-tertiary);
    font-size: var(--icon-xl);
    opacity: var(--opacity-disabled);
}

.comparison-table .feature-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.comparison-table thead th.col-highlight {
    border-bottom-color: var(--wp-blue);
}

.comparison-table .comparison-cta-row td {
    padding: var(--space-5) var(--space-3);
    text-align: center;
    border-top: 2px solid var(--border-medium);
    border-bottom: 0;
    vertical-align: middle;
}

.comparison-table .comparison-cta-row td:first-child {
    border-top: 0;
}

.comparison-table .comparison-cta-row .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: var(--text-xs);
    }
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-2) var(--space-3);
    }
}

/* ==========================================================================
   SEO Scoring System — score cards with animated SVG progress circles
   and a "How We Score" criteria card. Used by blocks/seo-scoring-system.
   Ported from the v2 reference's pages/plugin.css so the block renders
   globally without the page-level stylesheet.
   ========================================================================== */

.score-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.score-card {
    grid-column: span 2;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.score-card:nth-child(4),
.score-card:nth-child(5) {
    grid-column: span 3;
}

.score-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.score-circle-wrap {
    position: relative;
    width: var(--space-30);
    height: var(--space-30);
    margin: 0 auto var(--space-5);
}

.score-circle {
    transform: rotate(-90deg);
    width: var(--space-30);
    height: var(--space-30);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--success);
    font-family: var(--font-mono);
}

.score-label {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.score-weight {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    margin-bottom: var(--space-3);
}

.score-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.scoring-criteria-card {
    width: 100%;
    margin: 0 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
}

.criteria-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.criteria-icon-top {
    width: var(--size-12);
    height: var(--size-12);
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.criteria-icon-top .material-symbols-outlined {
    font-size: var(--icon-2xl);
    color: var(--text-secondary);
}

.scoring-criteria-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.criteria-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: var(--container-hero-lead);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.criteria-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
}

.criteria-number-badge {
    width: var(--space-9);
    height: var(--space-9);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: var(--space-2);
}

.criteria-card h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

.criteria-card-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin: 0 0 var(--space-2);
}

.criteria-card-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin: 0 0 var(--space-2);
}

.criteria-examples {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.criteria-examples li {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.criteria-examples li::before {
    content: '';
    width: var(--space-1);
    height: var(--space-1);
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .score-card { grid-column: span 3; }
    .score-card:nth-child(5) { grid-column: span 6; }
    .criteria-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --- Pricing Cards --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: var(--container-lg);
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.pricing-card-popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-card-popular:hover {
    border-color: var(--accent);
}

/* When combined with .card-pro-teaser the gradient border must win.
   .pricing-card (defined later in this file) overrides both the border
   and the layered background, so we re-declare them here. */
.pricing-card.card-pro-teaser,
.pricing-card.card-pro-teaser:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--gradient-border) border-box;
    background-size: 100% 100%, 200% 100%;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-fg);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.plan-name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.plan-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* --- Price Display --- */

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-6);
}

.price-currency {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.price-amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-none);
    transition: opacity var(--duration-base) ease;
}

.price-amount.price-changing {
    opacity: 0.4;
}

.price-period {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* --- Price Features --- */

.price-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-grow: 1;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.price-feature .material-symbols-outlined {
    font-size: var(--icon-md);
    color: var(--success);
    flex-shrink: 0;
}

/* --- Pricing Savings (Bundle) --- */

.price-savings {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--success);
    margin-bottom: var(--space-6);
}

.price-savings .material-symbols-outlined {
    font-size: var(--icon-md);
}

/* --- Pricing Guarantee --- */

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.pricing-guarantee span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.pricing-guarantee .material-symbols-outlined {
    font-size: var(--icon-lg);
    color: var(--success);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-6);
    transition: transform var(--duration-slower) ease;
}

.testimonial-card {
    flex: 0 0 calc((100% - var(--space-6) * 2) / 3);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--border-medium);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}

.testimonial-stars .material-symbols-outlined {
    font-size: var(--icon-lg);
    font-variation-settings: 'FILL' 1;
}

.testimonial-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.testimonial-avatar {
    width: var(--size-10);
    height: var(--size-10);
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Navigation */

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.testimonials-btn {
    width: var(--size-10);
    height: var(--size-10);
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonials-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.testimonials-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-dots {
    display: flex;
    gap: var(--space-2);
}

.testimonials-dot {
    width: var(--size-2);
    height: var(--size-2);
    border-radius: 50%;
    background: var(--border-medium);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.testimonials-dot.active {
    background: var(--text-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* Responsive */

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc((100% - var(--space-6)) / 2);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   17. DARK MODE IMAGE HANDLING
   ========================================================================== */

[data-theme="dark"] img:not([data-no-dim]) {
    filter: brightness(0.9);
}

/* ==========================================================================
   18. NEWSLETTER
   ========================================================================== */

.newsletter {
    max-width: var(--container-hero-lead);
    margin: 0 auto;
}

.newsletter .section-header-center {
    margin-bottom: var(--space-8);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.newsletter-form .form-input {
    flex: 1;
    min-width: 0;
}

.newsletter-form .btn {
    flex-shrink: 0;
}

.newsletter-form .btn .newsletter-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: newsletter-spin 0.6s linear infinite;
}

.newsletter-form .btn.is-loading .newsletter-spinner {
    display: inline-block;
}

.newsletter-form .btn.is-loading .btn-label,
.newsletter-form .btn.is-loading .material-symbols-outlined:not(.newsletter-spinner) {
    display: none;
}

@keyframes newsletter-spin {
    to { transform: rotate(360deg); }
}

/* Consent */

.newsletter-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.newsletter-consent .toggle-switch {
    flex-shrink: 0;
}

.newsletter .recaptcha-branding {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-consent label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    line-height: var(--leading-normal);
}

.newsletter-consent label a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.newsletter-consent label a:hover {
    color: var(--text-secondary);
}

/* Error */

.newsletter-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: calc(-1 * var(--space-2));
    margin-bottom: var(--space-3);
    display: none;
}

.newsletter-error.is-visible {
    display: block;
}

/* Success */

.newsletter-success {
    display: none;
    text-align: center;
    padding: var(--space-8) 0;
}

.newsletter-success.is-visible {
    display: block;
}

.newsletter-success-icon {
    width: var(--size-14);
    height: var(--size-14);
    border-radius: 50%;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.newsletter-success-icon .material-symbols-outlined {
    font-size: var(--icon-3xl);
    color: var(--success);
}

.newsletter-success h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.newsletter-success p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* reCAPTCHA branding */

.recaptcha-branding {
    display: none;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-4);
    text-align: center;
    line-height: var(--leading-relaxed);
}

.recaptcha-branding.is-visible {
    display: block;
}

.recaptcha-branding .material-symbols-outlined {
    font-size: var(--icon-sm);
    vertical-align: middle;
    margin-right: 2px;
}

.recaptcha-branding a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recaptcha-branding a:hover {
    color: var(--text-primary);
}

/* Responsive */

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}

/* ==========================================================================
   19. VIDEO DEMO EMBED
   ========================================================================== */

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: var(--container-sm);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.video-embed img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-embed-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-base);
}

.video-embed:hover .video-embed-play {
    background: rgba(0, 0, 0, 0.5);
}

.video-embed-play .material-symbols-outlined {
    font-size: var(--text-7xl);
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-base);
}

.video-embed:hover .video-embed-play .material-symbols-outlined {
    transform: scale(1.1);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed-caption {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ==========================================================================
   20. LIGHTBOX
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.lightbox.is-active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: var(--size-11);
    height: var(--size-11);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close .material-symbols-outlined {
    font-size: var(--icon-2xl);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--size-12);
    height: var(--size-12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-base);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.lightbox-nav .material-symbols-outlined {
    font-size: var(--icon-2xl);
}

.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

.lightbox-counter {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
    .lightbox { padding: var(--space-4); }
    .lightbox-prev { left: var(--space-3); }
    .lightbox-next { right: var(--space-3); }
    .lightbox-nav { width: var(--size-10); height: var(--size-10); }
}

/* ==========================================================================
   20b. BREADCRUMBS (global — used by docs + blog)
   ========================================================================== */

.breadcrumbs {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-base);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--text-sm);
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--text-primary);
}

.breadcrumb-item a .material-symbols-outlined {
    font-size: var(--icon-lg);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: var(--text-base);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        display: none;
    }
}

/* ==========================================================================
   21. SCROLL TO TOP
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: var(--size-11);
    height: var(--size-11);
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.scroll-top .material-symbols-outlined {
    font-size: var(--icon-xl);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: var(--space-6);
        right: var(--space-6);
        width: var(--size-10);
        height: var(--size-10);
    }
}

/* ==========================================================================
   HERO (v2)
   Centered and split variants, powered by the `infypress/hero` block.
   Markup mirrors docs/design/v2/index.html and docs/design/v2/ai-image-seo.html.
   Dark mode is fully token-driven via tokens.css — no per-variant overrides.
   Rules live here (globally enqueued) so the block editor iframe and the
   frontend share the same stylesheet with zero duplication.
   ========================================================================== */

/* --- Centered variant — .hero --- */

.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-sm);
    margin: 0 auto;
    position: relative;
    z-index: var(--z-raised);
}

.hero h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
    font-weight: 700;
}

.hero p.lead {
    margin: 0 auto var(--space-8);
    max-width: 650px;
}

.hero .hero-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.hero .hero-guarantee .material-symbols-outlined {
    font-size: var(--icon-lg);
    color: var(--success);
}

/* --- Split variant — .plugin-hero --- */

.plugin-hero {
    padding: var(--space-30) 0;
    position: relative;
    overflow: hidden;
}

.plugin-hero h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.plugin-hero p.lead {
    margin-bottom: var(--space-8);
    max-width: var(--container-prose);
}

.plugin-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
    align-items: center;
}

/* When no media is set the block omits .plugin-hero-media and the grid
   collapses to a single column so the content isn't left stranded. */
.plugin-hero-grid.plugin-hero-grid--solo {
    grid-template-columns: 1fr;
    max-width: var(--container-md);
}

.plugin-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--container-md);
    position: relative;
    z-index: var(--z-raised);
}

.plugin-hero-media {
    position: relative;
    z-index: var(--z-raised);
}

.plugin-hero .hero-guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.plugin-hero .hero-guarantee .material-symbols-outlined {
    font-size: var(--icon-lg);
    color: var(--success);
}

/* --- Shared media containers --- */

.hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.hero-video iframe,
.hero-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Responsive --- */

@media (max-width: 968px) {
    .plugin-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .plugin-hero {
        padding: var(--space-20) 0;
    }

    .plugin-hero h1 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero .flex {
        flex-direction: column;
        align-items: center;
    }

    .hero .btn {
        width: 100%;
    }

    .plugin-hero h1 {
        font-size: var(--text-3xl);
    }

    .plugin-hero .flex {
        flex-direction: column;
        align-items: stretch;
    }

    .plugin-hero .btn {
        width: 100%;
    }
}

/* ==========================================================================
   STEPS (v2)
   Two layouts powered by the `infypress/steps-grid` block:
   - Horizontal: `.steps-grid` grid of `.step-card` tiles (ai-image-seo.html)
   - Vertical:   `.flex.flex-col.gap-8` list with `.step-number` beside each
                 step (index.html #how-it-works)
   `.step-number` itself lives higher up in components.css; these rules
   cover the two layout containers and the card-specific tweaks.
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    counter-reset: step;
}

.step-card {
    text-align: center;
}

.step-card .step-number {
    margin: 0 auto var(--space-6);
}

.step-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ==========================================================================
   PRICING (v2)
   Centered section with optional product tabs + yearly/lifetime toggle,
   responsive 3-column pricing card grid, popular-card highlight, and a
   trust-signal guarantee row. Powered by the `infypress/pricing-section`
   block. Price switching is driven by the block's own view.js (not the
   global pricing-toggle.js) so Stripe checkout links swap alongside the
   price numbers.
   ========================================================================== */

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 6px var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-12);
}

.toggle-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-base);
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-medium);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: var(--size-5);
    width: var(--size-5);
    left: 3px;
    bottom: 3px;
    background: var(--bg-base);
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.badge-save {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

/* --- Pricing Tabs (Product Switcher) --- */

.pricing-tabs {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 auto var(--space-6);
}

.pricing-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: transparent;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid transparent;
    cursor: pointer;
}

.pricing-tab:hover {
    color: var(--text-secondary);
}

.pricing-tab.active {
    background: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.pricing-tab-badge {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.pricing-tab-content {
    display: none;
}

.pricing-tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-wrap: wrap;
        width: auto;
        border-radius: var(--radius-lg);
    }

    .pricing-tab {
        flex: 1;
        min-width: var(--space-25);
        justify-content: center;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   Detailed Feature Comparison table
   Used by blocks/feature-comparison. Ported from the v2 reference's
   docs/design/v2/assets/css/pages/plugin.css so the block renders
   globally without the page-level stylesheet.
   ========================================================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: var(--container-prose);
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table thead th {
    background: var(--bg-surface);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
    padding: var(--space-4) var(--space-4);
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-base);
}

.comparison-table .col-highlight {
    background: rgba(37, 99, 235, 0.03);
}

[data-theme="dark"] .comparison-table .col-highlight {
    background: rgba(37, 99, 235, 0.06);
}

.comparison-table .category-row td {
    background: var(--bg-surface);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.comparison-table .icon-yes {
    color: var(--success);
    font-size: var(--icon-xl);
}

.comparison-table .icon-no {
    color: var(--text-tertiary);
    font-size: var(--icon-xl);
    opacity: var(--opacity-disabled);
}

.comparison-table .feature-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.comparison-table thead th.col-highlight {
    border-bottom-color: var(--wp-blue);
}

.comparison-table .comparison-cta-row td {
    padding: var(--space-5) var(--space-3);
    text-align: center;
    border-top: 2px solid var(--border-medium);
    border-bottom: 0;
    vertical-align: middle;
}

.comparison-table .comparison-cta-row td:first-child {
    border-top: 0;
}

.comparison-table .comparison-cta-row .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: var(--text-xs);
    }
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-2) var(--space-3);
    }
}

/* ==========================================================================
   SEO Scoring System — score cards with animated SVG progress circles
   and a "How We Score" criteria card. Used by blocks/seo-scoring-system.
   Ported from the v2 reference's pages/plugin.css so the block renders
   globally without the page-level stylesheet.
   ========================================================================== */

.score-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.score-card {
    grid-column: span 2;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.score-card:nth-child(4),
.score-card:nth-child(5) {
    grid-column: span 3;
}

.score-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.score-circle-wrap {
    position: relative;
    width: var(--space-30);
    height: var(--space-30);
    margin: 0 auto var(--space-5);
}

.score-circle {
    transform: rotate(-90deg);
    width: var(--space-30);
    height: var(--space-30);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--success);
    font-family: var(--font-mono);
}

.score-label {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.score-weight {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    margin-bottom: var(--space-3);
}

.score-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.scoring-criteria-card {
    width: 100%;
    margin: 0 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
}

.criteria-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.criteria-icon-top {
    width: var(--size-12);
    height: var(--size-12);
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.criteria-icon-top .material-symbols-outlined {
    font-size: var(--icon-2xl);
    color: var(--text-secondary);
}

.scoring-criteria-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.criteria-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: var(--container-hero-lead);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.criteria-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
}

.criteria-number-badge {
    width: var(--space-9);
    height: var(--space-9);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: var(--space-2);
}

.criteria-card h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

.criteria-card-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin: 0 0 var(--space-2);
}

.criteria-card-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin: 0 0 var(--space-2);
}

.criteria-examples {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.criteria-examples li {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.criteria-examples li::before {
    content: '';
    width: var(--space-1);
    height: var(--space-1);
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .score-card { grid-column: span 3; }
    .score-card:nth-child(5) { grid-column: span 6; }
    .criteria-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --- Pricing Cards --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: var(--container-lg);
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.pricing-card-popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-card-popular:hover {
    border-color: var(--accent);
}

/* When combined with .card-pro-teaser the gradient border must win.
   .pricing-card (defined later in this file) overrides both the border
   and the layered background, so we re-declare them here. */
.pricing-card.card-pro-teaser,
.pricing-card.card-pro-teaser:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        var(--gradient-border) border-box;
    background-size: 100% 100%, 200% 100%;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-fg);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.plan-name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.plan-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* --- Price Display --- */

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-6);
}

.price-currency {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.price-amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-none);
    transition: opacity var(--duration-base) ease;
}

.price-amount.price-changing {
    opacity: 0.4;
}

.price-period {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* --- Price Features --- */

.price-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-grow: 1;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.price-feature .material-symbols-outlined {
    font-size: var(--icon-md);
    color: var(--success);
    flex-shrink: 0;
}

/* --- Pricing Savings (Bundle) --- */

.price-savings {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--success);
    margin-bottom: var(--space-6);
}

.price-savings .material-symbols-outlined {
    font-size: var(--icon-md);
}

/* --- Pricing Guarantee --- */

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.pricing-guarantee span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.pricing-guarantee .material-symbols-outlined {
    font-size: var(--icon-lg);
    color: var(--success);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Google reCAPTCHA v3 badge — hidden by default.

   Google requires either the floating badge OR an inline disclosure near
   the form. We render the disclosure via .recaptcha-branding on support,
   ticket-lookup, and auth forms, so the badge is redundant. !important is
   required to override reCAPTCHA's inline styles.
   ========================================================================== */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* ==========================================================================
   LOGOUT CONFIRMATION MODAL
   Rendered globally from footer.php via template-parts/logout-modal.php
   when the user is logged in. Uses its own class namespace (.logout-modal*)
   to avoid colliding with the existing .lightbox rules (image gallery +
   account-scoped modal variants). Full light + dark support via tokens.
   Handler: assets/js/logout.js.
   ========================================================================== */

.logout-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 9999);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity 180ms ease;
}

.logout-modal.is-open {
    display: flex;
    opacity: 1;
}

.logout-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .logout-modal-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.logout-modal-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.96);
    transition: transform 180ms ease;
}

.logout-modal.is-open .logout-modal-panel {
    transform: scale(1);
}

.logout-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.logout-modal-title {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.logout-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.logout-modal-close:hover {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}

.logout-modal-body {
    padding: var(--space-8) var(--space-6) var(--space-4);
    text-align: center;
}

.logout-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-tertiary);
}

.logout-modal-icon .material-symbols-outlined {
    font-size: var(--icon-3xl, 32px);
}

.logout-modal-message {
    margin: 0 0 var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.logout-modal-submessage {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.logout-modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.logout-modal-actions .btn {
    min-width: 120px;
    justify-content: center;
}

#logout-modal-confirm.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Suppress background page scroll while the modal is open. */
body.has-modal-open {
    overflow: hidden;
}

/* Mobile tighten-up */
@media (max-width: 480px) {
    .logout-modal {
        padding: var(--space-4);
    }

    .logout-modal-actions {
        flex-direction: column-reverse;
    }

    .logout-modal-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Filled icons — "Plugin Features Tabs" block (aka "Complete SEO
   Optimization Suite"). Covers the plugin icons in the tab-switcher row
   and each feature card's .card-icon inside the active tab panel. Uses
   Gutenberg's auto-generated block wrapper class so no block rebuild is
   required. Same FILL variation-axis trick as plugin-showcase.
   ========================================================================== */

.wp-block-infypress-plugin-features-tabs .tab-btn .material-symbols-outlined,
.wp-block-infypress-plugin-features-tabs .card-icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}
