/* A kijelentkezett felület: kezdő (marketing) oldal + belépés/regisztráció.
   Ugyanaz a design-nyelv, mint a partner-adminban (admin.css): mélyzöld + arany. */

:root {
    --ld-primary: #1f513f;
    --ld-primary-dark: #163b2e;
    --ld-deep: #16241e;
    --ld-accent: #c8a24b;
    --ld-bg: #f4f6f5;
    --ld-text: #23312a;
    --ld-muted: #6d7a73;
}

body.landing {
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

/* ---------- Belépés előtti fejléc ---------- */
.ld-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(22, 36, 30, .08);
}

.ld-topbar .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ld-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: .04em;
    color: var(--ld-primary-dark);
    text-decoration: none;
}

.ld-brand:hover { color: var(--ld-primary); }

.ld-brand .logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--ld-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.ld-topbar .nav-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Gombok ---------- */
.ld-btn {
    display: inline-block;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .12s, box-shadow .12s, background .12s, color .12s;
    cursor: pointer;
}

.ld-btn:hover { transform: translateY(-1px); }

.ld-btn-primary { background: var(--ld-primary); color: #fff; box-shadow: 0 6px 18px rgba(31, 81, 63, .3); }
.ld-btn-primary:hover { background: var(--ld-primary-dark); color: #fff; box-shadow: 0 8px 22px rgba(31, 81, 63, .38); }

.ld-btn-gold { background: var(--ld-accent); color: #fff; box-shadow: 0 6px 18px rgba(200, 162, 75, .35); }
.ld-btn-gold:hover { background: #b3903f; color: #fff; }

.ld-btn-outline { border-color: var(--ld-primary); color: var(--ld-primary); background: transparent; }
.ld-btn-outline:hover { background: var(--ld-primary); color: #fff; }

.ld-btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.ld-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.ld-btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- Hero ---------- */
.ld-hero {
    position: relative;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(200, 162, 75, .22), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(63, 122, 96, .35), transparent 60%),
        linear-gradient(150deg, var(--ld-deep) 0%, #1d3d30 55%, var(--ld-primary) 100%);
    color: #fff;
    overflow: hidden;
}

.ld-hero .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 84px 24px 96px;
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(280px, .95fr);
    gap: 56px;
    align-items: center;
}

.ld-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 20px;
}

.ld-hero h1 .gold { color: var(--ld-accent); }

.ld-hero p.lead-text {
    font-size: 1.08rem;
    line-height: 1.7;
    opacity: .92;
    margin: 0 0 30px;
    max-width: 540px;
}

.ld-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.ld-hero .trust { display: flex; flex-wrap: wrap; gap: 8px; }

.ld-hero .trust span {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .8rem;
}

/* Hero-vizuál: stilizált mini-admin kártyák */
.ld-visual { position: relative; min-height: 420px; }

.ld-card {
    position: absolute;
    background: #fff;
    color: var(--ld-text);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 20, 15, .45);
    padding: 18px;
    animation: ld-float 7s ease-in-out infinite;
}

.ld-card .t { font-weight: 700; color: var(--ld-primary-dark); font-size: .9rem; margin-bottom: 10px; }

.ld-card-cal { top: 0; right: 0; width: min(330px, 88%); }
.ld-card-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.ld-card-cal .c {
    height: 30px;
    border-radius: 6px;
    background: #eef3f0;
    font-size: .62rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d8a83;
}

.ld-card-cal .c.b { background: #fdeef0; color: #a02a3a; font-weight: 700; }
.ld-card-cal .c.p { background: #fff7e6; color: #8a6410; font-weight: 700; }
.ld-card-cal .c.g { background: var(--ld-accent); color: #fff; font-weight: 700; }

.ld-card-book { bottom: 42px; left: 0; width: min(280px, 80%); animation-delay: -3.5s; }

.ld-card-book .row-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f1;
    font-size: .8rem;
}

.ld-card-book .row-line:last-child { border-bottom: none; }
.ld-card-book .ok { color: #1f7a4d; font-weight: 700; }
.ld-card-book .price { margin-left: auto; font-weight: 700; color: var(--ld-primary); }

.ld-card-money { bottom: 0; right: 34px; width: 190px; animation-delay: -1.8s; text-align: center; }
.ld-card-money .big { font-size: 1.4rem; font-weight: 800; color: var(--ld-primary-dark); }
.ld-card-money .s { font-size: .74rem; color: var(--ld-muted); }

@keyframes ld-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Szekciók ---------- */
.ld-section { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }

.ld-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.ld-kicker {
    display: inline-block;
    background: rgba(200, 162, 75, .14);
    color: #96742a;
    border-radius: 999px;
    padding: 5px 15px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ld-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ld-primary-dark); margin: 0 0 12px; }
.ld-section-head p { color: var(--ld-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* Funkció-kártyák */
.ld-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.ld-feature {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(22, 36, 30, .07);
    padding: 28px;
    transition: transform .15s, box-shadow .15s;
}

.ld-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22, 36, 30, .14); }

.ld-feature .ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 81, 63, .12), rgba(200, 162, 75, .16));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.ld-feature h3 { font-size: 1.08rem; font-weight: 700; color: var(--ld-primary-dark); margin: 0 0 8px; }
.ld-feature p { font-size: .9rem; color: var(--ld-muted); line-height: 1.65; margin: 0; }

/* Hogyan működik */
.ld-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: ldstep; }

.ld-step {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(22, 36, 30, .07);
    padding: 30px 26px 26px;
}

.ld-step::before {
    counter-increment: ldstep;
    content: counter(ldstep);
    position: absolute;
    top: -18px;
    left: 24px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(200, 162, 75, .4);
}

.ld-step h3 { font-size: 1rem; font-weight: 700; color: var(--ld-primary-dark); margin: 4px 0 8px; }
.ld-step p { font-size: .88rem; color: var(--ld-muted); line-height: 1.6; margin: 0; }

/* CTA sáv */
.ld-band {
    background: linear-gradient(135deg, var(--ld-primary-dark), var(--ld-primary));
    border-radius: 24px;
    color: #fff;
    text-align: center;
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}

.ld-band::after {
    content: "🏡";
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 180px;
    opacity: .08;
    transform: rotate(-8deg);
}

.ld-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 12px; }
.ld-band p { opacity: .9; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }

/* Lábléc */
.ld-footer { background: var(--ld-deep); color: #b9c8c0; }

.ld-footer .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
}

.ld-footer a { color: #d9e4de; text-decoration: none; }
.ld-footer a:hover { color: #fff; }

/* ---------- Scroll-animáció ---------- */
[data-ld-anim] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-ld-anim].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-ld-anim] { opacity: 1; transform: none; transition: none; }
    .ld-card { animation: none; }
}

/* ---------- Belépés / regisztráció ---------- */
.ld-auth {
    min-height: calc(100vh - 59px);
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
}

.ld-auth-side {
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(200, 162, 75, .2), transparent 60%),
        linear-gradient(160deg, var(--ld-deep), var(--ld-primary));
    color: #fff;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ld-auth-side h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 14px; }
.ld-auth-side p { opacity: .9; line-height: 1.7; margin: 0 0 26px; max-width: 440px; }

.ld-auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.ld-auth-side li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .9rem;
}

.ld-auth-side li .i { font-size: 18px; }

.ld-auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

.ld-auth-card { width: 100%; max-width: 420px; }

.ld-auth-card .card-inner {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(22, 36, 30, .12);
    padding: 36px 32px;
}

.ld-auth-card h1 { font-size: 1.4rem; font-weight: 800; color: var(--ld-primary-dark); margin: 0 0 4px; }
.ld-auth-card .sub { color: var(--ld-muted); font-size: .9rem; margin-bottom: 24px; }

.ld-auth-card .form-control { border-radius: 10px; padding: 10px 14px; }

.ld-auth-card .form-control:focus {
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 .2rem rgba(31, 81, 63, .15);
}

.ld-auth-card .btn-primary {
    background: var(--ld-primary);
    border-color: var(--ld-primary);
    border-radius: 10px;
    padding: 11px;
    font-weight: 600;
}

.ld-auth-card .btn-primary:hover { background: var(--ld-primary-dark); border-color: var(--ld-primary-dark); }

.ld-auth-card .alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--ld-muted); }
.ld-auth-card .alt a { color: var(--ld-primary); font-weight: 600; text-decoration: none; }

/* ---------- Reszponzív ---------- */
@media (max-width: 991px) {
    .ld-hero .inner { grid-template-columns: 1fr; padding: 56px 20px 64px; gap: 40px; }
    .ld-visual { min-height: 360px; }
    .ld-auth { grid-template-columns: 1fr; }
    .ld-auth-side { padding: 40px 24px; }
    .ld-section { padding: 60px 20px; }
}
