/* ============================================================
   Public landing page — extends the panel design system
   (indigo/violet, Heebo). RTL/LTR aware.
   ============================================================ */

:root {
    --landing-ink: #1e1b4b;
    --landing-muted: #6b7280;
    --landing-gradient: linear-gradient(135deg, #6c5ce7 0%, #8b5cf6 55%, #a78bfa 100%);
    --landing-card: #ffffff;
    --landing-bg: #f6f5ff;
}

html[dir="ltr"] { text-align: left; }

body.landing {
    background: var(--landing-bg);
    color: var(--landing-ink);
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing main { flex: 1; }

/* ---------- top bar ---------- */
.topbar {
    background: #fff;
    border-bottom: 1px solid #ece9fb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--landing-ink);
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--landing-gradient);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-links a { color: #4c4a6a; text-decoration: none; font-weight: 500; }
.topbar-links a:hover { color: #6c5ce7; }

.lang-switch {
    position: relative;
}

.lang-switch summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #ddd8f5;
    border-radius: 9px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #4c4a6a;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    background: #fff;
    border: 1px solid #ece9fb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(30, 27, 75, .12);
    padding: 6px;
    margin: 0;
    min-width: 130px;
    z-index: 60;
}

.lang-switch menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #4c4a6a;
    text-decoration: none;
    font-size: 14px;
}

.lang-switch menu a:hover { background: #f3f0ff; color: #6c5ce7; }
.lang-switch menu a.active { background: #efeaff; color: #6c5ce7; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(139, 92, 246, .16), transparent),
        radial-gradient(700px 380px at 10% 110%, rgba(108, 92, 231, .12), transparent);
    padding: 88px 20px 72px;
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: #efeaff;
    color: #6c5ce7;
    font-weight: 700;
    font-size: 13.5px;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}

.hero p.lead {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--landing-muted);
    line-height: 1.7;
    margin: 0 auto 30px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-hero {
    display: inline-block;
    background: var(--landing-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 16.5px;
    padding: 14px 34px;
    border-radius: 13px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(108, 92, 231, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(108, 92, 231, .42); }

.btn-ghost {
    display: inline-block;
    background: #fff;
    color: #6c5ce7;
    font-weight: 700;
    font-size: 16.5px;
    padding: 14px 30px;
    border-radius: 13px;
    text-decoration: none;
    border: 1.5px solid #d9d2f8;
}

.hero-note { color: #8e8aa8; font-size: 14px; }

/* ---------- sections ---------- */
.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 20px;
}

.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 800; margin: 0 0 10px; }
.section-head p { color: var(--landing-muted); font-size: 17px; margin: 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--landing-card);
    border: 1px solid #ece9fb;
    border-radius: 18px;
    padding: 26px 24px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(30, 27, 75, .09);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #f1edff;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 14px;
}

.service-card h3 { font-size: 18.5px; font-weight: 700; margin: 0 0 8px; }
.service-card p { color: var(--landing-muted); line-height: 1.65; margin: 0; font-size: 15px; }

/* ---------- pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.price-card {
    background: #fff;
    border: 1.5px solid #ece9fb;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.price-card.highlight {
    border-color: #8b5cf6;
    box-shadow: 0 18px 40px rgba(108, 92, 231, .16);
    position: relative;
}

.price-name { font-weight: 800; font-size: 19px; margin-bottom: 4px; }

.price-desc { color: var(--landing-muted); font-size: 14px; line-height: 1.55; min-height: 44px; }

.price-amount {
    font-size: 34px;
    font-weight: 800;
    color: #6c5ce7;
    margin: 14px 0 4px;
}

.price-currency { font-size: 15px; color: #8e8aa8; font-weight: 600; }

.price-credits { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }

.price-credits li {
    padding: 6px 0;
    color: #4c4a6a;
    font-size: 14.5px;
    border-bottom: 1px dashed #eeeaff;
}

.price-credits li:last-child { border-bottom: 0; }

.btn-price {
    display: block;
    text-align: center;
    background: var(--landing-gradient);
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 15.5px;
}

.btn-price:hover { opacity: .92; }

.pricing-contact { text-align: center; color: var(--landing-muted); margin-top: 26px; font-size: 15px; }

/* ---------- footer ---------- */
.landing-footer {
    background: #191633;
    color: #b9b5d6;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

.landing-footer .brand { color: #fff; justify-content: center; margin-bottom: 8px; }

/* ---------- auth card (register/verify) ---------- */
.auth-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.auth-card {
    background: #fff;
    border: 1px solid #ece9fb;
    border-radius: 20px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(30, 27, 75, .08);
}

.auth-card h1 { font-size: 25px; font-weight: 800; margin: 0 0 4px; }

.auth-sub { color: var(--landing-muted); margin: 0 0 24px; font-size: 15px; }

.form-section-title {
    font-weight: 800;
    font-size: 15.5px;
    color: #6c5ce7;
    margin: 26px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #efeaff;
}

.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid #ddd8f5;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fbfaff;
}

.field input:focus { outline: none; border-color: #8b5cf6; background: #fff; }

.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2-cols { grid-template-columns: 1fr; } }

/* package radio cards inside the register form */
.package-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

.package-option { position: relative; }

.package-option input { position: absolute; opacity: 0; }

.package-option label {
    display: block;
    border: 1.5px solid #ddd8f5;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    background: #fbfaff;
    transition: border-color .12s ease, background .12s ease;
    height: 100%;
    box-sizing: border-box;
}

.package-option input:checked + label {
    border-color: #6c5ce7;
    background: #f1ecff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .15);
}

.package-option .p-name { font-weight: 800; font-size: 15.5px; }
.package-option .p-price { font-weight: 800; color: #6c5ce7; font-size: 18px; margin: 4px 0; }
.package-option .p-desc { color: var(--landing-muted); font-size: 12.5px; line-height: 1.5; }

.btn-submit {
    width: 100%;
    background: var(--landing-gradient);
    color: #fff;
    border: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 16.5px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 26px;
    box-shadow: 0 10px 24px rgba(108, 92, 231, .3);
}

.btn-submit:hover { opacity: .93; }

.link-muted { color: #6c5ce7; text-decoration: none; font-weight: 600; font-size: 14px; }
.link-muted:hover { text-decoration: underline; }

.alert-landing { border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.6; }
.alert-landing.success { background: #e8f9ef; color: #14713d; border: 1px solid #b7e8ca; }
.alert-landing.error { background: #fdecec; color: #a11d1d; border: 1px solid #f5c2c2; }
.alert-landing.info { background: #eef4ff; color: #1d51a1; border: 1px solid #c4d9f7; }

.verify-email-chip {
    display: inline-block;
    background: #efeaff;
    color: #6c5ce7;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    direction: ltr;
}

.code-input {
    letter-spacing: 8px;
    font-size: 24px !important;
    text-align: center;
    direction: ltr;
}

.done-wrap { text-align: center; padding: 30px 0 10px; }
.done-icon { font-size: 52px; margin-bottom: 10px; }
