/* ==========================================================================
   SETLAB - PLANS PAGE
   Plan cards and the price. The trial box is in trial.css.
   Shared pieces (cards, badges, FAQ, buttons) are in blocks.css.
   ========================================================================== */

/* ---------- Plan cards ---------- */

.sl-page .sl-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 14px; /* room for the badges that sit on the top edge */
}

.sl-page .sl-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 34px 22px 24px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    text-align: center;
    transition: border-color var(--sl-transition), transform var(--sl-transition);
}

.sl-page .sl-plan:hover {
    border-color: var(--sl-accent-border);
    transform: translateY(-3px);
}

.sl-page .sl-plan h3 {
    font-size: 18px;
}

.sl-page .sl-plan-featured {
    border-color: var(--sl-accent-border);
    background: linear-gradient(180deg, var(--sl-accent-soft), rgba(255, 255, 255, .015));
    box-shadow: 0 24px 60px rgba(38, 208, 206, .1);
}

/* badge sits on the top edge of the card */
.sl-page .sl-plan p.sl-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    background: var(--sl-bg);
    transform: translateX(-50%);
    white-space: nowrap;
}

.sl-page .sl-plan .wp-block-buttons {
    width: 100%;
    margin-top: auto;
}

.sl-page .sl-plan .wp-block-button {
    width: 100%;
}

.sl-page .sl-plan .wp-block-button__link {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ---------- Price (printed by src/Pricing/PriceShortcode.php) ---------- */

.sl-page .sl-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sl-page .sl-price-amount {
    color: var(--sl-text);
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.sl-page .sl-plan-featured .sl-price-amount {
    color: var(--sl-accent);
}

.sl-page .sl-price-unit {
    color: var(--sl-muted);
    font-size: 14px;
}

/* ---------- What every plan includes ---------- */

.sl-page .sl-included {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
}

.sl-page .sl-included .sl-kicker {
    margin: 0 0 6px;
}

.sl-page .sl-included .sl-checks {
    align-items: center;
}

/* ---------- Trial block slot ---------- */

/* When the trial is not available for this visitor, the shortcode prints nothing: hide the empty slot. */
.sl-page .sl-trial-slot:not(:has(.sl-trial)) {
    display: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 960px) {
    .sl-page .sl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .sl-page .sl-plans { grid-template-columns: minmax(0, 1fr); }
}

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

/* ---------- Plans page v2 (SITE03d): free row, plan details, notes ---------- */

.sl-plans-v2,
.sl-plans-v2 :is(h1, h2, h3, p, li, a, span, strong, summary, .wp-block-button__link) {
    font-family: IRSans, var(--sl-font);
}

.sl-plans-v2 .sl-plans-hero {
    background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(38, 208, 206, .08), transparent 70%);
}

.sl-plans-v2 .sl-free-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-plans-v2 .sl-free-row li {
    padding: 16px 18px;
    border: 1px solid var(--sl-border-soft);
    border-radius: var(--sl-radius-md);
    background: rgba(255, 255, 255, .02);
    color: var(--sl-muted);
    font-size: 14px;
    line-height: 2;
}

.sl-plans-v2 .sl-free-row strong {
    display: block;
    color: var(--sl-success);
    font-size: 15px;
}

.sl-plans-v2 .sl-plan {
    justify-content: flex-start;
}

.sl-plans-v2 .sl-plan .wp-block-buttons {
    margin-top: auto;
}

.sl-plans-v2 p.sl-plan-sub {
    margin-top: -10px;
    color: var(--sl-dim);
    font-size: 13px;
    line-height: 1.9;
}

.sl-plans-v2 .sl-plan-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: start;
}

.sl-plans-v2 .sl-plan-list li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--sl-text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.sl-plans-v2 .sl-plan-list li::before {
    content: "\2713";
    position: absolute;
    inset-inline-start: 0;
    color: var(--sl-accent);
    font-weight: 700;
}

.sl-plans-v2 .sl-plan-life {
    border-color: rgba(78, 230, 177, .35);
}

.sl-plans-v2 .sl-plan-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 22px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-lg);
    background: rgba(255, 255, 255, .02);
    list-style: none;
}

.sl-plans-v2 .sl-plan-notes li {
    color: var(--sl-muted);
    font-size: 14px;
    line-height: 2;
}

.sl-plans-v2 .sl-plan-notes strong {
    color: var(--sl-text);
}

.sl-plans-v2 .sl-plan-notes a {
    color: var(--sl-accent);
}

.sl-plans-v2 p.sl-plan-updated {
    color: var(--sl-dim);
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 960px) {
    .sl-plans-v2 .sl-free-row { grid-template-columns: minmax(0, 1fr); }
}
