/**
 * OnlySecurity trainer-membership page kit (`.os-m` namespace).
 *
 * Used by the [trainer_memberships_page] shortcode in
 * front-end/onlysecurity-membership.php. Renders the hero / value props
 * / FAQ / CTA chrome around the plan cards, or around the Stripe-hosted
 * pricing table widget ([trainer_pricing_table]) when they fall back.
 *
 * Same 14-token convention as .os-c / .os-a / .os-d / .os-p so the page
 * sits visually alongside the rest of the platform.
 */

/* ============================================================
 * Tokens
 * ============================================================ */
.os-m {
    --os-m-bg: #f7f8fb;
    --os-m-panel: #ffffff;
    --os-m-border: #e5e7eb;
    --os-m-text: #1e293b;
    --os-m-muted: #64748b;
    --os-m-subtle: #94a3b8;
    --os-m-primary: #2F62AF;
    --os-m-primary-soft: rgba(47, 98, 175, 0.10);
    --os-m-gold: #fcb900;
    --os-m-gold-soft: rgba(252, 185, 0, 0.14);
    --os-m-up: #22c55e;
    --os-m-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --os-m-shadow-lg: 0 4px 16px rgba(15, 23, 42, 0.10);

    color: var(--os-m-text);
    font-family: inherit;
}
.os-m a { color: var(--os-m-primary); text-decoration: none; }
.os-m a:hover { text-decoration: underline; }

/* ============================================================
 * Page wrapper
 * ============================================================ */
.os-m-page { padding: 0 24px 80px; max-width: 1500px; margin: 0 auto; }
/* The hero and the growth band run edge to edge; the 100vw they use overhangs by the scrollbar, so clip it on this page only. */
html:has(body.os-m-fullbleed), body.os-m-fullbleed { overflow-x: clip; }
body.os-m-fullbleed #page, body.os-m-fullbleed #content, body.os-m-fullbleed .col-full { overflow: visible !important; }

/* ============================================================
 * Hero
 * ============================================================ */
.os-m-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0a1626 0%, #14305c 55%, #2F62AF 100%);
    padding: 88px 24px 96px;
    margin-bottom: 0;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
}
.os-m-hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -8%;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(252,185,0,0.16) 0%, transparent 62%);
    pointer-events: none;
}
.os-m-hero-in {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.os-m-hero-copy { min-width: 0; }
.os-m-eyebrow {
    color: var(--os-m-gold);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
}
.os-m-hero h1 {
    font-size: 56px;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 18px;
    color: #fff;
}
.os-m-hero h1 em { font-style: normal; color: var(--os-m-gold); }
.os-m-hero .strap {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 560px;
}
.os-m-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.os-m-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.os-m-btn.primary { background: var(--os-m-gold); color: #1e293b !important; }
.os-m-btn.primary:hover { background: #ffc93d; text-decoration: none; transform: translateY(-1px); }
.os-m-btn.ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.30);
}
.os-m-btn.ghost:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.os-m-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.os-m-hero-stat {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 22px;
}
.os-m-hero-stat b { display: block; font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.os-m-hero-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

/* ============================================================
 * Status banner (logged-in active subscriber)
 * ============================================================ */
.os-m-status {
    background: var(--os-m-panel);
    border: 1px solid var(--os-m-border);
    border-left: 4px solid var(--os-m-up);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--os-m-shadow);
}
.os-m-status .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: var(--os-m-up);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.os-m-status .body { flex: 1; min-width: 220px; }
.os-m-status .title { font-weight: 700; color: var(--os-m-text); font-size: 15px; }
.os-m-status .meta { color: var(--os-m-muted); font-size: 13px; margin-top: 2px; }
.os-m-status .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.os-m-status .actions a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    background: var(--os-m-primary-soft);
    color: var(--os-m-primary) !important;
    border: 0;
    text-decoration: none;
}
.os-m-status .actions a:hover { background: var(--os-m-primary); color: #fff !important; text-decoration: none; }

/* Status variant: pending / inactive */
.os-m-status.pending { border-left-color: var(--os-m-gold); }
.os-m-status.pending .icon { background: var(--os-m-gold-soft); color: #8a6500; }

/* ============================================================
 * Value props strip. One column per card up to four, from the
 * --os-m-n custom property the page sets from the real card count
 * (the fee plugin adds a card through os_membership_value_props, so
 * the count is not fixed); the narrower breakpoints below turn it into
 * 2 x 2 and then one column.
 * ============================================================ */
.os-m-values {
    display: grid;
    grid-template-columns: repeat(var(--os-m-n, 3), minmax(0, 1fr));
    gap: 18px;
    margin: -48px 0 36px;
    position: relative;
    z-index: 2;
}
.os-m-value {
    position: relative;
    overflow: hidden;
    background: var(--os-m-panel);
    border: 1px solid var(--os-m-border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.os-m-value:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); }
.os-m-value::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--os-m-primary), var(--os-m-gold)); }
.os-m-value .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f0fc, #fff3cf);
    color: var(--os-m-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.os-m-value h3 {
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--os-m-text);
    letter-spacing: -0.01em;
}
.os-m-value p {
    margin: 0;
    color: var(--os-m-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ============================================================
 * Pricing section heading
 * ============================================================ */
.os-m-section-head {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 720px;
}
.os-m-section-head h2 {
    font-size: 32px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--os-m-text);
}
.os-m-growth + .os-m-section-head { margin-top: 72px; }
.os-m-section-head p {
    color: var(--os-m-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
 * Pricing table wrapper, soft panel around Stripe's iframe so
 * it doesn't look hard-pinned to the page background.
 * ============================================================ */
.os-m-pricing {
    background: var(--os-m-panel);
    border: 1px solid var(--os-m-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--os-m-shadow);
    margin-bottom: 36px;
}
.os-m-pricing stripe-pricing-table { display: block; }
/* Our own cards sit straight on the page; the panel stays around Stripe's table. */
.os-m-pricing:has(.os-m-plans) { background: none; border: 0; box-shadow: none; padding: 0; }

/* ============================================================
 * Plan cards (front-end/onlysecurity-membership-offer.php), in
 * place of the Stripe table. The Monthly and Yearly switch is two
 * radio inputs placed before the cards, so these sibling selectors
 * switch the period with no script.
 * ============================================================ */
.os-m-sr,
.os-m-period-input {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.os-m-plans { position: relative; }
/* Where the switch is, so focusing an input on click never scrolls the page. */
.os-m-plans .os-m-period-input { top: 22px; left: 50%; }
.os-m-period {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 44px;
    background: #e9edf4;
    border-radius: 999px;
    padding: 4px;
}
.os-m-period label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--os-m-text);
    cursor: pointer;
    margin: 0;
}
.os-m-save-up {
    background: var(--os-m-gold);
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}
#os-m-period-month:checked ~ .os-m-period label[for="os-m-period-month"],
#os-m-period-year:checked ~ .os-m-period label[for="os-m-period-year"] {
    background: var(--os-m-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(47, 98, 175, 0.4);
}
#os-m-period-month:focus-visible ~ .os-m-period label[for="os-m-period-month"],
#os-m-period-year:focus-visible ~ .os-m-period label[for="os-m-period-year"] {
    outline: 3px solid var(--os-m-gold);
    outline-offset: -3px;
}
.os-m-when-year { display: none; }
#os-m-period-year:checked ~ .os-m-cards .os-m-when-year { display: block; }
#os-m-period-year:checked ~ .os-m-cards .os-m-when-month { display: none; }

/* A staircase: cards sit on one baseline and each repeats the plan below it,
 * so Basic is the shortest and the rows climb. Tier colour is keyed on the
 * heading id the card already carries. */
.os-m-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    padding-top: 20px;
}
.os-m-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid var(--os-m-border);
    border-radius: 20px;
    background: var(--os-m-panel);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}
.os-m-plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12); }
.os-m-plan.os-m-pre { opacity: 0; transform: translateY(24px); }
.os-m-plan h3 { margin: 0 0 12px; font-size: 20px; color: inherit; }
.os-m-plan-keep {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
}
.os-m-plan-keep b { font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.os-m-plan-keep span:not(.os-m-sr) { font-size: 13px; font-weight: 600; }
.os-m-plan[aria-labelledby="os-m-plan-standard"] { border-top: 4px solid #5c93e0; }
.os-m-plan[aria-labelledby="os-m-plan-standard"] .os-m-plan-keep { background: #e8f0fc; color: #1d4a8f; }
.os-m-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 6px;
    font-variant-numeric: tabular-nums;
}
.os-m-plan-now { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: inherit; }
.os-m-plan-was { font-size: 16px; color: var(--os-m-muted); text-decoration-thickness: 2px; }
.os-m-plan-per { font-size: 14px; color: var(--os-m-muted); }
.os-m-plan-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--os-m-gold-soft);
    color: #8a6500;
    font-size: 13px;
    font-weight: 700;
}
.os-m-plan-then,
.os-m-plan-save { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--os-m-muted); }
.os-m-plan-save {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}
.os-m-plan-feat {
    list-style: none;
    margin: 8px 0 22px;
    padding: 16px 0 0;
    border-top: 1px solid var(--os-m-border);
    font-size: 14px;
    display: grid;
    gap: 9px;
}
.os-m-plan-feat li { position: relative; padding-left: 26px; }
.os-m-plan-feat li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #e8f0fc;
    color: var(--os-m-primary);
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.os-m-plan-feat li.is-inherited { color: var(--os-m-muted); }
.os-m-plan-feat li.os-m-plan-plus {
    padding-left: 0;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--os-m-primary);
}
.os-m-plan-feat li.os-m-plan-plus::before { display: none; }
.os-m-plan-cta { margin-top: auto; padding-top: 6px; }
.os-m-plan-cta .os-m-btn { display: block; text-align: center; background: #eef2f8; color: var(--os-m-primary) !important; }
.os-m-plan-cta .os-m-btn:hover { background: var(--os-m-primary); color: #fff !important; transform: none; }
.os-m-plan-unavailable { margin: auto 0 0; padding-top: 6px; font-size: 14px; color: var(--os-m-muted); }

/* Pro, the popular plan: gradient, a gold ring that runs round the edge, and a slow glow. */
.os-m-plan.is-featured {
    z-index: 2;
    border: 0;
    padding-top: 34px;
    color: #fff;
    background: linear-gradient(160deg, #17408a 0%, #2F62AF 55%, #3b78d0 100%);
    box-shadow: 0 26px 60px rgba(47, 98, 175, 0.45);
}
/* The gold glow pulses by opacity on its own layer, which the compositor handles; animating box-shadow repaints the card every frame. */
.os-m-plan.is-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(252, 185, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    animation: os-m-glow 3s ease-in-out infinite;
}
.os-m-plan.is-featured::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #ffd75e, #fcb900, #fff3cf);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes os-m-glow { 50% { opacity: 1; } }
.os-m-plan-pill {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--os-m-gold);
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(252, 185, 0, 0.5);
}
.os-m-plan.is-featured .os-m-plan-pill::before { content: "\2605  "; }
.os-m-plan.is-featured .os-m-plan-keep { background: rgba(255, 255, 255, 0.14); color: #fff; }
.os-m-plan.is-featured .os-m-plan-keep b { font-size: 40px; color: var(--os-m-gold); }
.os-m-plan.is-featured .os-m-plan-per,
.os-m-plan.is-featured .os-m-plan-was,
.os-m-plan.is-featured .os-m-plan-then { color: rgba(255, 255, 255, 0.78); }
.os-m-plan.is-featured .os-m-plan-badge,
.os-m-plan.is-featured .os-m-plan-save { background: var(--os-m-gold); color: #1e293b; }
.os-m-plan.is-featured .os-m-plan-feat { border-top-color: rgba(255, 255, 255, 0.2); }
.os-m-plan.is-featured .os-m-plan-feat li::before { background: var(--os-m-gold); color: #1e293b; }
.os-m-plan.is-featured .os-m-plan-feat li.is-inherited { color: rgba(255, 255, 255, 0.85); }
.os-m-plan.is-featured .os-m-plan-feat li.os-m-plan-plus { color: var(--os-m-gold); }
.os-m-plan.is-featured .os-m-plan-cta .os-m-btn { background: var(--os-m-gold); color: #1e293b !important; box-shadow: 0 6px 18px rgba(252, 185, 0, 0.45); }
.os-m-plan.is-featured .os-m-plan-cta .os-m-btn:hover { background: #ffc93d; }

/* Enterprise: all dark, gold top edge. */
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] {
    color: #fff;
    background: linear-gradient(160deg, #0a1220 0%, #16243d 100%);
    border: 1px solid #243551;
    border-top: 4px solid var(--os-m-gold);
}
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-keep { background: rgba(255, 255, 255, 0.08); color: #fff; }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-keep b { color: var(--os-m-gold); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-per,
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-was,
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-then { color: rgba(255, 255, 255, 0.7); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-save { background: var(--os-m-gold); color: #1e293b; }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-feat { border-top-color: rgba(255, 255, 255, 0.15); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-feat li::before { background: rgba(252, 185, 0, 0.2); color: var(--os-m-gold); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-feat li.is-inherited { color: rgba(255, 255, 255, 0.62); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-feat li.os-m-plan-plus { color: var(--os-m-gold); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-cta .os-m-btn { background: rgba(255, 255, 255, 0.1); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.os-m-plan[aria-labelledby="os-m-plan-enterprise"] .os-m-plan-cta .os-m-btn:hover { background: var(--os-m-gold); color: #1e293b !important; }
.os-m-plans-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--os-m-muted); }
.os-m-pricing-footnote {
    color: var(--os-m-muted);
    font-size: 13px;
    text-align: center;
    margin: 16px 0 0;
}
.os-m-pricing-footnote b { color: var(--os-m-text); }

/* ============================================================
 * Feature comparison matrix, Standard / Pro / Enterprise vs the
 * free Basic baseline. Sits between the Stripe pricing widget and
 * the trust strip; on mobile it collapses to per-tier accordions
 * so we don't horizontal-scroll a 4-column table on phones.
 * ============================================================ */
.os-m-compare {
    background: var(--os-m-panel);
    border: 1px solid var(--os-m-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--os-m-shadow);
    margin-bottom: 36px;
    overflow: hidden;
}
.os-m-compare h2 {
    font-size: 22px;
    margin: 0 0 4px;
    color: var(--os-m-text);
    letter-spacing: -0.01em;
}
.os-m-compare .lede {
    color: var(--os-m-muted);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.55;
}
.os-m-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.os-m-compare-table thead th {
    text-align: center;
    padding: 14px 12px;
    font-size: 14px;
    color: var(--os-m-text);
    font-weight: 700;
    border-bottom: 1px solid var(--os-m-border);
    vertical-align: bottom;
    line-height: 1.3;
}
.os-m-compare-table thead th:first-child {
    text-align: left;
    color: var(--os-m-muted);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.os-m-compare-table thead th .tier-rate {
    display: block;
    font-size: 12px;
    color: var(--os-m-muted);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0;
    text-transform: none;
}
.os-m-compare-table thead th.is-featured {
    color: var(--os-m-primary);
    position: relative;
}
.os-m-compare-table thead th.is-featured::before {
    content: "Most popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--os-m-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.os-m-compare-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--os-m-border);
    text-align: center;
    color: var(--os-m-text);
    line-height: 1.45;
}
.os-m-compare-table tbody td:first-child {
    text-align: left;
    color: var(--os-m-text);
    font-weight: 600;
    width: 38%;
}
.os-m-compare-table tbody td:first-child .row-hint {
    display: block;
    color: var(--os-m-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}
.os-m-compare-table tbody tr:last-child td { border-bottom: 0; }
.os-m-compare-table tbody td.is-featured { background: var(--os-m-primary-soft); }

/* Cell glyphs: ✓ (yes) / · (no) / arbitrary value */
.os-m-compare-cell-yes { color: var(--os-m-up); font-weight: 700; }
.os-m-compare-cell-no  { color: var(--os-m-subtle); }
/* Light mode only: #22c55e and #94a3b8 fall below AA on white. */
:root:not([data-tutor-theme="dark"]) .os-m-compare-cell-yes { color: #166534; }
:root:not([data-tutor-theme="dark"]) .os-m-compare-cell-no { color: #64748b; }
:root:not([data-tutor-theme="dark"]) .os-m-compare-table tbody td.is-featured .os-m-compare-cell-no { color: #5b6a80; }
.os-m-compare-cell-val { color: var(--os-m-text); font-weight: 600; }

/* Section heading row inside the table (group rows by category) */
.os-m-compare-table tr.os-m-compare-group td {
    background: #fafbfd;
    color: var(--os-m-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--os-m-border);
}

/* Mobile: collapse to per-tier accordions instead of horizontal scroll */
.os-m-compare-mobile { display: none; }
.os-m-compare-mobile details {
    border-top: 1px solid var(--os-m-border);
    padding: 14px 0;
}
.os-m-compare-mobile details:first-of-type { border-top: 0; padding-top: 0; }
.os-m-compare-mobile summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: var(--os-m-text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.os-m-compare-mobile summary::-webkit-details-marker { display: none; }
.os-m-compare-mobile summary::after {
    content: "+";
    color: var(--os-m-muted);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}
.os-m-compare-mobile details[open] summary::after { content: "−"; }
.os-m-compare-mobile .tier-rate {
    color: var(--os-m-muted);
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}
.os-m-compare-mobile ul {
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
}
.os-m-compare-mobile ul li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--os-m-border);
    font-size: 14px;
}
.os-m-compare-mobile ul li:first-child { border-top: 0; }
.os-m-compare-mobile ul li .label { color: var(--os-m-text); }
.os-m-compare-mobile ul li .label .row-hint {
    display: block;
    color: var(--os-m-muted);
    font-size: 12px;
    margin-top: 2px;
}
.os-m-compare-mobile ul li .value { color: var(--os-m-text); text-align: right; font-weight: 600; }

@media (max-width: 880px) {
    .os-m-compare { padding: 20px; }
    .os-m-compare-table { display: none; }
    .os-m-compare-mobile { display: block; }
}

/* ============================================================
 * Comparison strip (stats / trust)
 * ============================================================ */
.os-m-trust {
    background: linear-gradient(135deg, #16243d, #1e3a6f);
    border-radius: 18px;
    padding: 36px 32px;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.os-m-trust .stat { text-align: center; }
.os-m-trust .v {
    font-size: 32px;
    font-weight: 800;
    color: var(--os-m-gold);
    letter-spacing: -0.02em;
}
.os-m-trust .l {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
 * FAQ
 * ============================================================ */
.os-m-faq {
    background: var(--os-m-panel);
    border: 1px solid var(--os-m-border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--os-m-shadow);
    margin-bottom: 36px;
}
.os-m-faq h2 {
    font-size: 22px;
    margin: 0 0 18px;
    color: var(--os-m-text);
    letter-spacing: -0.01em;
}
.os-m-faq details {
    border-top: 1px solid var(--os-m-border);
    padding: 16px 0;
}
.os-m-faq details:first-of-type { border-top: 0; padding-top: 0; }
.os-m-faq details:last-of-type { padding-bottom: 0; }
.os-m-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--os-m-text);
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.os-m-faq summary::-webkit-details-marker { display: none; }
.os-m-faq summary::after {
    content: "+";
    color: var(--os-m-muted);
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.15s ease;
}
.os-m-faq details[open] summary::after { content: "−"; }
.os-m-faq details > div {
    color: var(--os-m-text);
    font-size: 14px;
    line-height: 1.65;
    padding: 12px 0 0;
}
.os-m-faq details > div a { color: var(--os-m-primary); }

/* ============================================================
 * Footer CTA
 * ============================================================ */
.os-m-footer-cta {
    background: linear-gradient(135deg, #1e3a6f, #2F62AF);
    border-radius: 18px;
    padding: 40px 36px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.os-m-footer-cta h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #fff;
    letter-spacing: -0.01em;
}
.os-m-footer-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 15px;
    line-height: 1.5;
    max-width: 560px;
}
.os-m-footer-cta .cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
 * Growth band: what you keep from your sales on each plan. Built by
 * assets/js/onlysecurity-membership-growth.js and hidden until it is.
 * ============================================================ */
.os-m-growth {
    position: relative;
    overflow: hidden;
    /* Always laid out, so the page below does not jump when the script builds the chart. */
    min-height: 1180px;
    margin: 72px 0 0;
    padding: 80px 24px;
    color: #fff;
    background: #0d1b2e;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
}
.os-m-growth-in { visibility: hidden; }
.os-m-growth.is-ready .os-m-growth-in { visibility: visible; }
@media (min-width: 1101px) { .os-m-growth { min-height: 835px; } }
@media (max-width: 640px) { .os-m-growth { min-height: 1100px; } }
.os-m-growth::before {
    content: "";
    position: absolute;
    left: -10%; bottom: -40%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(47, 98, 175, 0.45), transparent 65%);
    pointer-events: none;
}
.os-m-growth-in { position: relative; max-width: 1300px; margin: 0 auto; }
.os-m-growth-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.os-m-growth-head h2 { font-size: 38px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; color: #fff; }
.os-m-growth-head p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.os-m-growth-box {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    padding: 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.os-m-growth-cur { display: flex; gap: 4px; margin-bottom: 16px; }
.os-m-growth-cur button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font: 700 12px/1 inherit;
    font-family: inherit;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
}
.os-m-growth-cur button[aria-pressed="true"] { background: var(--os-m-gold); color: #1e293b; border-color: var(--os-m-gold); }
.os-m-growth-ctl label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.os-m-growth-big { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.os-m-growth-range { width: 100%; accent-color: var(--os-m-gold); height: 28px; }
.os-m-growth-ticks { position: relative; height: 18px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.os-m-growth-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.os-m-growth-ticks span:first-child { transform: none; }
.os-m-growth-ticks span:last-child { transform: translateX(-100%); }
.os-m-growth-best {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(252, 185, 0, 0.12);
    border: 1px solid rgba(252, 185, 0, 0.35);
    font-size: 14px;
    color: #ffe08a;
}
.os-m-growth-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.os-m-bar { transform-origin: 50% 100%; transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.5s ease; }
.os-m-bar-trk { height: 270px; display: flex; flex-direction: column; justify-content: flex-end; }
.os-m-bar-amt { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.os-m-bar-amt small { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.os-m-bar-tag {
    display: block;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    margin: 0 auto 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--os-m-gold);
    color: #1e293b;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.os-m-bar-col {
    flex: none;
    min-height: 6px;
    height: 0;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, #5c93e0, #2F62AF);
    transition: height 0.9s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.os-m-bar.is-top .os-m-bar-col { background: linear-gradient(180deg, #ffd75e, #fcb900); }
.os-m-bar-nm { text-align: center; margin-top: 10px; font-weight: 700; font-size: 14px; }
.os-m-bar-nm small { display: block; color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.os-m-bar-be { text-align: center; font-size: 12px; font-weight: 700; margin-top: 8px; color: #7ee2a0; }
.os-m-bar.is-over .os-m-bar-be { color: rgba(255, 255, 255, 0.5); font-weight: 500; }
.os-m-bar:first-child .os-m-bar-be { color: rgba(255, 255, 255, 0.5); font-weight: 500; }
.os-m-bar-fx {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}
.os-m-bar-fx li { position: relative; padding-left: 18px; }
.os-m-bar-fx li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; }
.os-m-bar.is-lit .os-m-bar-fx { color: rgba(255, 255, 255, 0.88); }
.os-m-bar.is-lit .os-m-bar-fx li::before { color: #7ee2a0; }
.os-m-bar.is-top .os-m-bar-fx { color: #fff; }
.os-m-bar.is-top .os-m-bar-fx li::before { color: var(--os-m-gold); }
.os-m-growth-fine { margin: 16px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

@media print { .os-m-plan.os-m-pre { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .os-m-plan, .os-m-bar, .os-m-bar-col, .os-m-value { transition: none; }
    .os-m-plan.is-featured::after { animation: none; }
}

/* ============================================================
 * Mobile
 * ============================================================ */
@media (max-width: 1100px) {
    .os-m-hero-in { grid-template-columns: minmax(0, 1fr); }
    .os-m-hero h1 { font-size: 44px; }
    .os-m-growth-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    .os-m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .os-m-values { grid-template-columns: 1fr 1fr; }
    .os-m-trust  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
    .os-m-page { padding: 0 14px 60px; }
    .os-m-hero { padding: 56px 16px 72px; }
    .os-m-hero h1 { font-size: 36px; }
    .os-m-hero-stats { grid-template-columns: 1fr 1fr; }
    .os-m-hero-stat b { font-size: 28px; }
    .os-m-growth { padding: 56px 16px; }
    .os-m-growth-head h2 { font-size: 30px; }
    .os-m-growth-box { padding: 20px; }
    .os-m-growth-big { font-size: 42px; }
    .os-m-growth-bars { gap: 10px; }
    .os-m-bar-trk { height: 270px; }
    .os-m-bar-amt { font-size: 15px; }
    .os-m-bar-fx { display: none; }
    .os-m-bar-nm { font-size: 12px; }
    .os-m-bar-tag { font-size: 9px; padding: 2px 6px; letter-spacing: 0.02em; }
    .os-m-bar-be { font-size: 11px; }
    .os-m-values { grid-template-columns: 1fr; }
    .os-m-pricing { padding: 20px; }
    .os-m-cards { grid-template-columns: 1fr; gap: 20px; }
    .os-m-period { width: 100%; }
    .os-m-period label { flex: 1 1 50%; padding: 0 12px; }
    .os-m-values { margin-top: -32px; }
    .os-m-trust { padding: 24px; gap: 16px; }
    .os-m-trust .v { font-size: 24px; }
    .os-m-faq { padding: 22px; }
    .os-m-footer-cta { grid-template-columns: 1fr; padding: 28px; }
    .os-m-section-head h2 { font-size: 24px; }
}

/* Learning? line after the footer call to action. */
.os-m-learner-link{text-align:center;margin:18px 0 0}
