/* ─────────────────────────────────────────────────────────────────
   WorkDone landing — design tokens + base layout
   Палітра витримана у фіолетово-індіго діапазоні (Tailwind violet/indigo).
   Усі кольори централізовані через CSS-змінні: змінив у :root —
   змінилась уся сторінка. Для затемнень/освітлень використовуємо
   color-mix або явні rgba з фіксованими alpha.
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Базова палітра — як було до редизайну (rgb(113,71,205) / rgb(146,91,255)). */
    --lp-primary: rgb(113, 71, 205);
    --lp-primary-strong: rgb(113, 71, 205);
    --lp-primary-light: rgb(146, 91, 255);
    --lp-primary-soft: rgba(113, 71, 205, .35);
    --lp-accent: #4f7fea;       /* для альтернативного CTA-градієнта */
    --lp-accent-soft: #6e5ad8;

    /* Фон сторінки — оригінальний синьо-сіреневий gradient. */
    --lp-bg-from: #667eea;
    --lp-bg-to:   #764ba2;

    --lp-surface: #FFFFFF;
    --lp-surface-soft: #FAFAFE;

    --lp-text: #1a1230;
    --lp-text-soft: #5a5a72;
    --lp-text-muted: #9aa0b3;

    --lp-border: rgba(113, 71, 205, .14);
    --lp-border-strong: rgba(113, 71, 205, .28);
    --lp-tint: rgba(113, 71, 205, .05);
    --lp-tint-strong: rgba(113, 71, 205, .1);

    --lp-radius-card: 28px;
    --lp-radius-md: 16px;
    --lp-radius-pill: 999px;

    --lp-shadow-card: 0 22px 56px rgba(40, 28, 80, .26);
    --lp-shadow-elev: 0 12px 30px rgba(113, 71, 205, .28);
    --lp-shadow-soft: 0 6px 18px rgba(113, 71, 205, .14);

    --lp-grad-cta: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-light) 100%);
    --lp-grad-cta-alt: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-soft) 100%);
}

/* ─── Page wrapper ─── */
.lp {
    padding: 32px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--lp-bg-from) 0%, var(--lp-bg-to) 100%);
    position: relative;
    overflow: hidden;
    color: var(--lp-text);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lp::before,
.lp::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    animation: lpDrift 22s ease-in-out infinite;
}
.lp::before { top: -45%; right: -15%; width: 760px; height: 760px; }
.lp::after  { bottom: -35%; left: -10%; width: 580px; height: 580px; animation-duration: 17s; animation-direction: reverse; }

@keyframes lpDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, -40px) scale(1.08); }
}

/* ─── Card ─── */
.lp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background: var(--lp-surface);
    padding: 44px 36px 40px;
    border-radius: var(--lp-radius-card);
    box-shadow: var(--lp-shadow-card);
    max-width: 560px;
    margin: 0 auto;
    width: calc(100% - 40px);
}

/* Logo */
.lp-logo {
    display: inline-block;
    height: 50px;
    max-width: 70px;
}

/* ─── Typography ─── */
.lp-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.5px;
    text-align: center;
    max-width: 480px;
    margin: 22px auto 0;
    color: var(--lp-text);
}
.lp-desc {
    text-align: center;
    max-width: 440px;
    margin: 12px auto 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--lp-text-soft);
}

/* ─── Hero badges ─── */
.lp-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--lp-grad-cta);
    color: #fff;
    border-radius: var(--lp-radius-pill);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--lp-shadow-soft);
}
.lp-badge svg { flex-shrink: 0; stroke: #fff; }

/* ─── Trust line ─── */
.lp-trust-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--lp-text-soft);
    line-height: 1.4;
}
.lp-trust-num b {
    font-weight: 800;
    color: var(--lp-primary-strong);
    letter-spacing: -0.2px;
}
.lp-trust-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--lp-border-strong);
    flex-shrink: 0;
}

/* ─── Fine-print under CTAs ─── */
.lp-fineprint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--lp-text-soft);
    text-align: center;
}
.lp-fineprint svg { color: var(--lp-primary); flex-shrink: 0; }

/* ─── Features (funnel mode, inline list) ─── */
.lp-features {
    display: flex;
    gap: 24px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.lp-feat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-text);
}
.lp-feat-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--lp-tint-strong);
    color: var(--lp-primary-strong);
    flex-shrink: 0;
}
.lp-feat-mark svg { stroke: currentColor; }
.lp-feat span:last-child {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lp-text);
}

/* ─── Promo block (funnel mode, kept as legacy) ─── */
.lp-promo {
    background: linear-gradient(135deg, var(--lp-tint) 0%, var(--lp-tint-strong) 100%);
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    padding: 24px 28px;
    margin-top: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 600px;
}
.lp-promo-icon {
    font-size: 44px;
    margin-bottom: 8px;
    animation: lpBob 2.6s ease-in-out infinite;
}
@keyframes lpBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.lp-promo-heading {
    font-size: 21px;
    font-weight: 700;
    color: var(--lp-primary-strong);
    margin: 0 0 8px;
    line-height: 1.3;
}
.lp-promo-text {
    font-size: 15px;
    color: var(--lp-text-soft);
    margin: 0;
    line-height: 1.55;
}

/* ─── Course-picker buttons ─── */
.lp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
    max-width: 440px;
}
.lp-btn {
    position: relative;
    color: #fff;
    padding: 14px 18px;
    background: var(--lp-grad-cta);
    border-radius: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--lp-shadow-elev);
    overflow: hidden;
    width: 100%;
    text-align: left;
}
.lp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
}
.lp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(113, 71, 205, .42);
}
.lp-btn:hover::before { animation: lpShine .9s ease; }
.lp-btn:active { transform: translateY(0) scale(.99); }
@keyframes lpShine { to { transform: translateX(100%); } }

.lp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    flex-shrink: 0;
}
.lp-btn-icon svg { stroke: #fff; }
.lp-btn-content { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lp-btn-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.2px;
}
.lp-btn-sub {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, .85);
}
.lp-btn-arrow { transition: transform .3s ease; stroke: #fff; flex-shrink: 0; opacity: .9; }
.lp-btn:hover .lp-btn-arrow { transform: translateX(4px); opacity: 1; }
.lp-btn--alt {
    background: var(--lp-grad-cta-alt);
    box-shadow: 0 12px 30px rgba(79, 127, 234, .32);
}
.lp-btn--alt:hover { box-shadow: 0 18px 38px rgba(79, 127, 234, .42); }

/* ─── Trust stats ─── */
.lp-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    background: var(--lp-tint);
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    padding: 16px 10px;
    width: 100%;
    max-width: 560px;
}
.lp-stat { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 0 10px; min-width: 0; }
.lp-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-primary-strong);
    letter-spacing: -0.4px;
    line-height: 1.1;
}
.lp-stat-label {
    font-size: 12px;
    color: var(--lp-text-soft);
    margin-top: 3px;
    text-align: center;
    line-height: 1.3;
}
.lp-stat-sep {
    width: 1px; height: 34px;
    background: var(--lp-border-strong);
    flex-shrink: 0;
}

/* ─── Steps ─── */
.lp-steps { margin-top: 24px; width: 100%; max-width: 560px; }
.lp-steps-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-text);
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: .1px;
}
.lp-steps-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}
.lp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 10px 12px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-width: 0;
}
.lp-step:hover {
    border-color: var(--lp-border-strong);
    box-shadow: var(--lp-shadow-soft);
    transform: translateY(-1px);
}
.lp-step-num {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-grad-cta);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--lp-shadow-soft);
}
.lp-step-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lp-text);
    line-height: 1.3;
    min-width: 0;
}
.lp-step-arrow {
    color: var(--lp-primary-soft);
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

/* ─── Form ─── */
.lp-form-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-top: 24px;
}
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity .4s, transform .4s;
}
.lp-form-wrap.is-sent .lp-form {
    opacity: 0;
    transform: scale(.95);
    pointer-events: none;
    position: absolute;
    inset: 0;
}
.lp-form-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(220, 38, 38, .08);
    color: #b91c1c;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, .2);
}
.lp-form-error[hidden] { display: none; }

.lp-field {
    position: relative;
    display: flex;
    align-items: center;
}
.lp-field--area { align-items: flex-start; }
.lp-field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-text-muted);
    pointer-events: none;
    z-index: 1;
    transition: color .2s;
}
.lp-field--area .lp-field-icon { top: 18px; transform: none; }
.lp-field-icon svg { stroke: currentColor; }

.lp-input,
.lp-textarea {
    width: 100%;
    border: 1.5px solid var(--lp-border);
    color: var(--lp-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    background: var(--lp-surface);
}
.lp-input    { padding: 14px 18px 14px 46px; border-radius: var(--lp-radius-pill); }
.lp-textarea { padding: 14px 18px 14px 46px; border-radius: 18px; resize: vertical; min-height: 96px; }

.lp-input::placeholder,
.lp-textarea::placeholder { color: var(--lp-text-muted); }

.lp-input:hover,
.lp-textarea:hover { border-color: var(--lp-border-strong); }

.lp-input:focus,
.lp-textarea:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 4px rgba(113, 71, 205, .14);
    background: var(--lp-surface);
}
.lp-field:focus-within .lp-field-icon { color: var(--lp-primary); }

.lp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 38px;
    background: var(--lp-grad-cta);
    color: #fff;
    border: none;
    border-radius: var(--lp-radius-pill);
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    box-shadow: var(--lp-shadow-elev);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}
.lp-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
    transform: translateX(-100%);
}
.lp-submit:hover::after { animation: lpShine .8s ease; }
.lp-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(113, 71, 205, .42); }
.lp-submit:active { transform: translateY(0) scale(.98); }
.lp-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.lp-submit-arrow { font-size: 18px; transition: transform .3s; display: inline-flex; }
.lp-submit:hover .lp-submit-arrow { transform: translateX(4px); }

/* ─── Success state ─── */
.lp-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    animation: lpFadeUp .5s ease;
}
.lp-form-wrap.is-sent .lp-success { display: flex; }
@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-success-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-grad-cta);
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: var(--lp-shadow-elev);
}
.lp-success-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-primary-strong);
    margin: 0 0 8px;
}
.lp-success-text {
    font-size: 15px;
    color: var(--lp-text-soft);
    margin: 0;
    line-height: 1.55;
    max-width: 340px;
}

/* ─── Features (moderation pills) ─── */
.lp-features--mod {
    margin-top: 22px;
    gap: 8px;
}
.lp-features--mod .lp-feat {
    background: var(--lp-tint);
    padding: 7px 14px;
    border-radius: var(--lp-radius-pill);
    border: 1px solid var(--lp-border);
    transition: background .2s, border-color .2s, transform .2s;
    font-size: 13px;
}
.lp-features--mod .lp-feat:hover {
    background: var(--lp-tint-strong);
    border-color: var(--lp-border-strong);
    transform: translateY(-1px);
}
.lp-features--mod .lp-feat-mark {
    width: 20px; height: 20px;
    background: transparent;
}
.lp-features--mod .lp-feat span:last-child {
    font-size: 13.5px;
    font-weight: 600;
}

/* ─── Contacts ─── */
.lp-contacts {
    margin-top: 28px;
    width: 100%;
    max-width: 560px;
    border-top: 1px solid var(--lp-border);
    padding-top: 22px;
}
.lp-contacts-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-text-soft);
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: .2px;
}
.lp-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lp-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 16px 10px;
    background: var(--lp-tint);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
}
.lp-contact-card:hover {
    background: var(--lp-tint-strong);
    border-color: var(--lp-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-soft);
}
.lp-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--lp-grad-cta);
    color: #fff;
    margin-bottom: 8px;
    box-shadow: var(--lp-shadow-soft);
}
.lp-contact-icon svg { stroke: #fff; }
.lp-contact-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}
.lp-contact-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
    word-break: break-all;
}
a.lp-contact-card:hover .lp-contact-value { color: var(--lp-primary-strong); }

/* ── Responsive ── */
@media (max-width: 1190px) {
    .lp-card { padding: 38px 28px; }
    .lp-heading { font-size: 28px; }
    .lp-promo-heading { font-size: 19px; }
}

@media (max-width: 760px) {
    .lp::before { width: 500px; height: 500px; }
    .lp::after  { width: 400px; height: 400px; }
    .lp-card { padding: 32px 22px 30px; border-radius: 24px; }
    .lp-heading { font-size: 24px; line-height: 1.22; }
    .lp-desc { font-size: 14.5px; }
    .lp-trust-line { font-size: 13px; gap: 6px 12px; }
    .lp-features { gap: 14px; margin-top: 24px; }
    .lp-feat span:last-child { font-size: 13.5px; }
    .lp-promo { padding: 20px; margin-top: 24px; }
    .lp-promo-icon { font-size: 38px; }
    .lp-promo-heading { font-size: 18px; }
    .lp-promo-text { font-size: 14.5px; }
    .lp-btn-title { font-size: 16px; }
    .lp-btn-sub { font-size: 12px; }
    .lp-stats { padding: 16px 8px; }
    .lp-stat-num { font-size: 22px; }
    .lp-stat-label { font-size: 11px; }
    .lp-step { padding: 10px 12px; }
    .lp-step-text { font-size: 12px; }
    .lp-step-arrow { font-size: 16px; }
}

@media (max-width: 480px) {
    .lp { padding: 18px 0; }
    .lp::before { width: 320px; height: 320px; top: -28%; right: -30%; }
    .lp::after  { width: 260px; height: 260px; bottom: -18%; left: -22%; }
    .lp-card { padding: 26px 16px 26px; border-radius: 22px; box-shadow: 0 16px 40px rgba(40, 28, 80, .26); }
    .lp-logo { height: 42px; max-width: 56px; }
    .lp-heading { font-size: 22px; margin-top: 16px; }
    .lp-desc { font-size: 14px; margin-top: 10px; }
    .lp-badges { gap: 6px; margin-top: 16px; }
    .lp-badge { padding: 6px 12px; font-size: 12px; }
    .lp-trust-line { margin-top: 14px; gap: 4px 16px; font-size: 13px; }
    .lp-trust-dot { display: none; }
    .lp-actions { gap: 8px; }
    .lp-btn { padding: 12px 14px; gap: 12px; }
    .lp-btn-icon { width: 38px; height: 38px; border-radius: 10px; }
    .lp-btn-icon svg { width: 18px; height: 18px; }
    .lp-btn-title { font-size: 15px; }
    .lp-btn-sub { font-size: 11.5px; }
    .lp-fineprint { font-size: 11.5px; }
    .lp-features { flex-direction: column; gap: 10px; margin-top: 20px; }
    .lp-feat { justify-content: center; }
    .lp-promo { padding: 20px 15px; margin-top: 20px; border-radius: 16px; }
    .lp-promo-icon { font-size: 32px; margin-bottom: 6px; }
    .lp-promo-heading { font-size: 16px; margin-bottom: 6px; }
    .lp-promo-text { font-size: 13.5px; }
    .lp-stats { flex-direction: column; gap: 12px; padding: 16px 12px; }
    .lp-stat-sep { width: 60px; height: 1px; }
    .lp-stat-num { font-size: 22px; }
    .lp-steps-row { flex-direction: column; gap: 6px; }
    .lp-step-arrow { transform: rotate(90deg); font-size: 16px; }
    .lp-step { padding: 10px 14px; }
    .lp-form-wrap { margin-top: 22px; }
    .lp-input    { padding: 13px 16px 13px 42px; font-size: 14px; }
    .lp-textarea { padding: 13px 16px 13px 42px; font-size: 14px; }
    .lp-field-icon { left: 14px; width: 16px; height: 16px; }
    .lp-field-icon svg { width: 16px; height: 16px; }
    .lp-submit { padding: 15px 28px; font-size: 15px; }
    .lp-features--mod { gap: 8px; }
    .lp-features--mod .lp-feat { padding: 6px 12px; font-size: 13px; }
    .lp-contacts { margin-top: 20px; padding-top: 18px; }
    .lp-contacts-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lp-contact-card { padding: 12px 8px; }
    .lp-contact-icon { width: 32px; height: 32px; }
    .lp-contact-icon svg { width: 18px; height: 18px; }
    .lp-contact-value { font-size: 11.5px; }
    .lp-success-icon { width: 52px; height: 52px; font-size: 24px; }
    .lp-success-heading { font-size: 19px; }
    .lp-success-text { font-size: 14px; }
}
