/* Landing page layout (loads after app.css and reuses its theme variables). */

body.landing { display: block; padding: 0; }

/* Topbar: physically fixed sides regardless of ar/en — brand left, auth RIGHT. */
.lp-top {
    direction: ltr;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bd);
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; }
html[data-theme="dark"] .lp-brand img, html[data-theme="dark"] .hero-mark { filter: brightness(0) invert(1); }
.lp-auth { display: flex; align-items: center; gap: 10px; }

.lp-btn {
    display: inline-block; padding: 9px 18px; border-radius: 9px;
    border: 1px solid var(--bd); background: var(--surface); color: var(--ink);
    font-family: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .15s;
}
.lp-btn:hover { border-color: var(--blue); }
.lp-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.lp-btn.primary:hover { background: var(--blue-dk); }

/* Logged-in chip: avatar (initial) + name */
.who {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--bd); border-radius: 999px;
    padding: 5px 14px 5px 6px; color: var(--ink); text-decoration: none;
    font-weight: 700; font-size: 13.5px; transition: .15s;
}
.who:hover { border-color: var(--blue); }
.who .av {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #7B5CFF);
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.who .who-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero */
.hero { text-align: center; padding: 72px 20px 46px; max-width: 720px; margin: 0 auto; }
.hero-mark { height: 58px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 900; margin-bottom: 14px; }
.hero-sub { color: var(--muted); font-size: 15.5px; line-height: 2; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .lp-btn { padding: 13px 30px; font-size: 15px; border-radius: 11px; }

/* Sections */
.lp-sec { max-width: 980px; margin: 0 auto; padding: 36px 20px; }
.lp-sec h2 { text-align: center; font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.lp-sec-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* Services grid (tiles reuse app.css .tile styles) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.svc-grid .tile { margin-bottom: 0; background: var(--surface); cursor: pointer; }
.svc-grid .tile:hover { border-color: var(--blue); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--bd); border-radius: 14px; padding: 22px; text-align: center; }
.step .n {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--blue-tint); color: var(--blue); font-weight: 900; margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* Footer */
.lp-foot { text-align: center; padding: 34px 20px 46px; color: var(--muted); font-size: 12.5px; }
.lp-foot a { color: inherit; }

/* Move the floating toggles off the topbar on the landing page */
body.landing .theme-fab { top: auto; bottom: 68px; }
body.landing .lang-fab { top: auto; bottom: 16px; }
