/* Commerce controls layered onto the legacy marketing markup.
   Adds the à-la-carte "buy" column to the Expand Your Protection tables. */

/* The navbar is fixed, so anchor jumps need room or the heading lands under it. */
#pricing {
    scroll-margin-top: 90px;
}

/* ── À-la-carte scan store, under the subscription plans ─────────────────
   Mirrors the .pricing-* type scale and card treatment from site.css so the
   two sections read as one page. */

.scanstore {
    padding-top: 56px;
}

.scanstore-header {
    text-align: center;
}

.scanstore-eyebrow {
    margin-bottom: 12px;
    color: var(--accent-green);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Smaller than the plans heading above it — this is the secondary offer. */
.scanstore-title {
    font-size: clamp(26px, 4vw, 40px) !important;
}

.scanstore-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
    gap: 18px;
    padding: 36px 0 6px;
}

.scanstore-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 18px 20px;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
    transition: transform var(--transition), border-color var(--transition),
        box-shadow var(--transition);
}

.scanstore-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-green);
    box-shadow: var(--shadow-card);
}

.scanstore-card--soon {
    opacity: 0.72;
}

.scanstore-card--soon:hover {
    transform: none;
    border-color: var(--border-card);
    box-shadow: none;
}

.scanstore-cat {
    color: var(--text2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scanstore-name {
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.scanstore-price {
    margin-bottom: 4px;
    color: var(--accent-green);
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.scanstore-btn {
    display: inline-block;
    margin-top: auto;
    padding: 9px 22px;
    border: 1px solid rgba(74, 222, 128, 0.55);
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--accent-green);
    font-family: 'Sora', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.scanstore-btn:hover,
.scanstore-btn:focus-visible {
    background: rgba(74, 222, 128, 0.22);
    border-color: rgba(74, 222, 128, 0.9);
    color: var(--accent-green);
}

.scanstore-soon {
    margin-top: auto;
    padding: 9px 0;
    color: var(--text-dim);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scanstore-note {
    margin: 14px 0 0;
    color: var(--text2);
    font-size: 13px;
    text-align: center;
}

.scanstore-note strong {
    color: var(--text-primary);
}

body.light-mode .scanstore-name,
body.light-mode .scanstore-note strong {
    color: #0a1628;
}

.eyp-table thead th.eyp-th-buy {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.eyp-table tbody td.eyp-td-buy {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.eyp-buy-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.12);
    color: #4ADE80;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.eyp-buy-btn:hover,
.eyp-buy-btn:focus-visible {
    background: rgba(74, 222, 128, 0.22);
    border-color: rgba(74, 222, 128, 0.9);
    color: #4ADE80;
    transform: translateY(-1px);
}

.eyp-buy-soon {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 0.4);
    white-space: nowrap;
}

body.light-mode .eyp-buy-soon {
    color: rgba(10, 22, 40, 0.4);
}

/* ── Mobile: the buy column in the stacked table layout ──
   site.css turns each table row into a labelled block below 640px.
   The desktop width:1% sizing above would collapse this cell to a few
   pixels, so give the call to action the full row width instead. */
@media (max-width: 640px) {
    .eyp-table tbody td.eyp-td-buy {
        width: auto;
        padding-top: 10px;
    }

    .eyp-table tbody td.eyp-td-buy .eyp-buy-btn,
    .eyp-table tbody td.eyp-td-buy .eyp-buy-soon {
        display: block;
        width: 100%;
        padding: 10px 16px;
        text-align: center;
    }
}

/* ── Plans we can't sell yet ────────────────────────────────────────────
   Only Essential is buyable today. Growth and Complete keep their full
   feature list but trade the checkout link for a dead "Coming soon"
   button, matching the scan-store treatment above. */
.pricing-badge-soon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 5px 20px;
    border-radius: 0 0 10px 10px;
    background: rgba(200, 220, 255, 0.14);
    color: rgba(232, 244, 255, 0.82);
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

body.light-mode .pricing-badge-soon {
    background: rgba(10, 22, 40, 0.1);
    color: rgba(10, 22, 40, 0.65);
}

/* Scoped past the per-colour `.pricing-card.<colour> .pricing-cta-btn`
   rules in site.css, which would otherwise paint this like a live button. */
.pricing-cards .pricing-card .pricing-cta-btn--soon {
    background: rgba(200, 220, 255, 0.06);
    border-color: rgba(200, 220, 255, 0.2);
    color: rgba(232, 244, 255, 0.45);
    cursor: default;
}

.pricing-cards .pricing-card .pricing-cta-btn--soon:hover,
.pricing-cards .pricing-card .pricing-cta-btn--soon:active {
    background: rgba(200, 220, 255, 0.06);
    box-shadow: none;
    transform: none;
}

body.light-mode .pricing-cards .pricing-card .pricing-cta-btn--soon {
    background: rgba(10, 22, 40, 0.05);
    border-color: rgba(10, 22, 40, 0.15);
    color: rgba(10, 22, 40, 0.45);
}
