/*
  QClock marketing landing page.
  Self-contained, dependency-free CSS so the public landing loads fast without
  pulling in Bootstrap/Telerik. The Blazor app keeps its own stylesheets, which
  are injected only when the app actually boots (see wwwroot/index.html).
*/

:root {
    /* QClock landing uses the shared QBM / bisaim corporate blue (aligned with QSalesView). */
    --qc-primary: #1b6ec2;
    --qc-primary-strong: #155a9e;
    --qc-primary-soft: #e8f1fb;
    --qc-accent: #0ea5e9;
    --qc-ink: #16202b;
    --qc-muted: #5a6b7b;
    --qc-line: #dbe5ef;
    --qc-bg: #ffffff;
    --qc-bg-alt: #f3f7fc;
    --qc-radius: 14px;
    --qc-shadow: 0 18px 40px rgba(21, 90, 158, 0.14);
    --qc-maxw: 1140px;
}

* { box-sizing: border-box; }

#qbm-landing {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--qc-ink);
    background: var(--qc-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#qbm-landing img { max-width: 100%; display: block; }
/* No blanket color rule here: an id-specificity `color: inherit` used to override the
   component link colors (.lp-brand, .lp-btn-*), which made the white CTA button's text
   white-on-white and invisible. Each link now keeps its own class color; the only
   classless link (footer) opts into inherit below. */
#qbm-landing a { text-decoration: none; }

.lp-shell { max-width: var(--qc-maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--qc-line);
}
.lp-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 66px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--qc-primary); }
.lp-brand .lp-logo {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--qc-primary); color: #fff;
    display: grid; place-items: center; font-size: 1.15rem;
}
.lp-header-spacer { flex: 1 1 auto; }

/* The login control lives in the top-right of every landing, as requested. */
.lp-actions { display: flex; align-items: center; gap: 10px; }

.lp-lang { display: inline-flex; align-items: center; }
.lp-lang-select {
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qc-ink);
    background-color: #fff;
    border: 1px solid var(--qc-line);
    border-radius: 999px;
    padding: 8px 34px 8px 14px;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6b7b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px;
}
.lp-lang-select:hover { border-color: var(--qc-accent); }
.lp-lang-select:focus-visible { outline: 2px solid var(--qc-primary); outline-offset: 1px; }
/* Dark, fully-opaque option text so every language reads clearly in the open list. */
.lp-lang-select option { color: var(--qc-ink); background: #fff; font-weight: 500; }
html[dir="rtl"] .lp-lang-select { padding: 8px 14px 8px 34px; background-position: left 12px center; }

.lp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 999px; padding: 10px 20px;
    font: inherit; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; white-space: nowrap;
}
.lp-btn-primary { background: var(--qc-primary); color: #fff; box-shadow: 0 8px 20px rgba(21, 90, 158, 0.28); }
.lp-btn-primary:hover { background: var(--qc-primary-strong); }
.lp-btn-ghost { background: #fff; color: var(--qc-primary-strong); border-color: var(--qc-line); }
.lp-btn-ghost:hover { border-color: var(--qc-accent); }
.lp-btn-lg { padding: 13px 26px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.lp-hero { background: linear-gradient(180deg, var(--qc-bg-alt), #fff 70%); padding: 64px 0 40px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lp-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.78rem; font-weight: 700; color: var(--qc-accent);
    background: var(--qc-primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.01em; }
.lp-hero p.lp-lede { font-size: 1.15rem; color: var(--qc-muted); margin: 0 0 28px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Generic figure / screenshot frame ---------- */
.lp-frame {
    border-radius: var(--qc-radius);
    border: 1px solid var(--qc-line);
    background: #fff;
    box-shadow: var(--qc-shadow);
    overflow: hidden;
}
.lp-frame img { width: 100%; height: auto; }
/* Placeholder shown until a real screenshot is dropped into landing/img/. */
.lp-ph {
    aspect-ratio: 16 / 10;
    display: grid; place-items: center; text-align: center;
    color: var(--qc-muted); background:
        repeating-linear-gradient(45deg, #f1f6fc, #f1f6fc 12px, #e9f1fa 12px, #e9f1fa 24px);
    padding: 24px; font-size: 0.92rem;
}
.lp-ph span { max-width: 260px; }

/* ---------- Sections ---------- */
.lp-section { padding: 56px 0; }
.lp-section.alt { background: var(--qc-bg-alt); }
.lp-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; text-align: center; }
.lp-section .lp-sub { color: var(--qc-muted); text-align: center; max-width: 640px; margin: 0 auto 36px; }

.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-feature {
    background: #fff; border: 1px solid var(--qc-line); border-radius: var(--qc-radius);
    padding: 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--qc-shadow); }
.lp-feature .lp-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--qc-primary-soft); color: var(--qc-primary); font-size: 1.4rem; margin-bottom: 14px;
}
.lp-feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.lp-feature p { margin: 0; color: var(--qc-muted); font-size: 0.95rem; }

/* ---------- Screenshot gallery ---------- */
.lp-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-shot figcaption { padding: 12px 4px 0; color: var(--qc-muted); font-size: 0.92rem; text-align: center; }
.lp-shot { margin: 0; }

/* ---------- CTA band ---------- */
.lp-cta { background: linear-gradient(135deg, var(--qc-primary), var(--qc-primary-strong)); color: #fff; text-align: center; }
.lp-cta h2 { color: #fff; }
.lp-cta .lp-sub { color: rgba(255, 255, 255, 0.85); }
.lp-cta .lp-btn-primary { background: #fff; color: var(--qc-primary-strong); }
.lp-cta .lp-btn-primary:hover { background: #eaf3fc; }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--qc-line); padding: 28px 0; color: var(--qc-muted); font-size: 0.92rem; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-footer a { color: inherit; }
.lp-footer a:hover { color: var(--qc-primary); }

/* ---------- RTL ---------- */
html[dir="rtl"] #qbm-landing { text-align: right; }
html[dir="rtl"] .lp-btn-primary { box-shadow: 0 8px 20px rgba(21, 90, 158, 0.28); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .lp-features { grid-template-columns: repeat(2, 1fr); }
    .lp-shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .lp-features { grid-template-columns: 1fr; }
    .lp-brand span.lp-brand-text { display: none; }
    .lp-hero { padding: 40px 0 24px; }
    .lp-lang-select { padding: 7px 30px 7px 12px; font-size: 0.86rem; }
}
