/* ==========================================================================
   Лендинг v1 — автономні стилі
   Усе ізольовано під body.landing-v1, щоб не конфліктувати з темою.
   ========================================================================== */

/* --- Змінні дизайну (міняй кольори тут) --- */
.landing-v1 {
    --lp-bg: #0e0e10;
    --lp-fg: #ffffff;
    --lp-muted: #a1a1aa;
    --lp-accent: #ff2d55;
    --lp-accent-fg: #ffffff;
    --lp-radius: 12px;
    --lp-max-width: 1100px;
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Базовий ресет --- */
.landing-v1 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.landing-v1 {
    background: var(--lp-bg);
    color: var(--lp-fg);
    font-family: var(--lp-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lp-container {
    width: 100%;
    max-width: var(--lp-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HERO --- */
.lp-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.lp-hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.lp-hero__subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--lp-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.lp-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Кнопки --- */
.lp-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--lp-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
}

.lp-btn--primary {
    background: var(--lp-accent);
    color: var(--lp-accent-fg);
}

.lp-btn--ghost {
    background: transparent;
    color: var(--lp-fg);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   ТАРИФИ
   ========================================================================== */
.lp-pricing {
    padding: 80px 0;
}

.lp-pricing__title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.lp-pricing__subtitle {
    text-align: center;
    color: var(--lp-muted);
    margin-bottom: 32px;
}

/* --- Перемикач Місяць / Рік --- */
.lp-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 48px;
    width: fit-content;
    padding: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.lp-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--lp-muted);
    font: inherit;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.lp-switch__btn[aria-pressed="true"] {
    background: var(--lp-fg);
    color: var(--lp-bg);
}

.lp-switch__save {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--lp-accent);
    color: var(--lp-accent-fg);
}

/* Коли активний місячний — ховаємо «вигідніше» на неактивній вкладці не треба,
   але прибираємо акцент, якщо ця вкладка натиснута */
.lp-switch__btn[aria-pressed="true"] .lp-switch__save {
    background: var(--lp-accent);
    color: var(--lp-accent-fg);
}

/* --- Сітка карток --- */
.lp-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

/* Порядок карток: Base зліва, Pro по центру, VIP справа.
   Керується за data-tier (slug тарифу). */
.lp-tier[data-tier="default-product"] { order: 1; }  /* Base */
.lp-tier[data-tier="annual"]          { order: 2; }  /* Pro (виділений) */
.lp-tier[data-tier="vip-moth"]        { order: 3; }  /* VIP */

.lp-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 100%;
    padding: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* --- Виділена (рекомендована) картка --- */
.lp-tier--featured {
    border-color: var(--lp-accent);
    background: rgba(255, 45, 85, 0.08);
    box-shadow: 0 0 0 1px var(--lp-accent), 0 20px 50px rgba(255, 45, 85, 0.15);
}

/* На широкому екрані трохи піднімаємо виділену картку */
@media (min-width: 1040px) {
    .lp-tier--featured {
        transform: scale(1.05);
    }
}

.lp-tier__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--lp-accent);
    color: var(--lp-accent-fg);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
}

.lp-tier__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lp-tier__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
}

.lp-tier__cur {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--lp-muted);
    top: 0;
}

.lp-tier__amount {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.lp-tier__period {
    font-size: 1rem;
    color: var(--lp-muted);
    margin-left: 4px;
}

.lp-tier__desc {
    color: var(--lp-muted);
    margin-bottom: 20px;
}

.lp-tier__benefits {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lp-tier__benefits li {
    position: relative;
    padding-left: 28px;
    color: var(--lp-fg);
}

.lp-tier__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp-accent);
    font-weight: 700;
}

/* Кнопка завжди притиснута до низу картки */
.lp-tier__btn {
    margin-top: auto;
    text-align: center;
}

/* --- Логіка перемикача: показуємо ціни/кнопки активного періоду --- */
.lp-pricing[data-active-price="monthly"] [data-yearly] { display: none; }
.lp-pricing[data-active-price="yearly"]  [data-monthly] { display: none; }
