/*
 * Public landing page (resources/views/@site/landing/*). Prefix: lp-.
 * Fixed Crew Sync palette from the logo (navy + the diamond's pink), not the tenant's
 * brandColors(): this page is the product's, whoever is signed in.
 * Layout uses logical properties; <html dir> is rtl for Arabic and ltr for English.
 */

@font-face { font-family: "DIN Next LT Arabic"; src: url("../../fonts/DINNextLTArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN Next LT Arabic"; src: url("../../fonts/DINNextLTArabic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DIN Next LT Arabic"; src: url("../../fonts/DINNextLTArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DIN Next LT Arabic"; src: url("../../fonts/DINNextLTArabic-Heavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --lp-navy: #131955;
    --lp-blue: #2563eb;
    --lp-pink: #e8295f;
    --lp-green: #16a34a;
    --lp-paper: #fbfbf8;
    --lp-surface: #ffffff;
    --lp-ink: #10143a;
    --lp-ink-2: #3d4263;
    --lp-muted: #6c7190;
    --lp-faint: #9aa0bc;
    --lp-line: #e3e6ef;
    --lp-line-2: #eff0f5;
    --lp-wash: #eef1f9;
    --lp-font: "DIN Next LT Arabic", "Segoe UI", Tahoma, sans-serif;
    --lp-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --lp-radius: 16px;
}

body.lp-body { background: var(--lp-paper); color: var(--lp-ink-2); font-family: var(--lp-font); }
.lp-container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.lp-mono { font-family: var(--lp-mono); font-weight: 500; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.lp-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 251, 248, .92);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.lp-nav.is-scrolled { border-bottom-color: var(--lp-line); }
.lp-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.lp-logo img { display: block; width: 118px; height: auto; }
.lp-links { display: flex; gap: 30px; }
.lp-links a { color: var(--lp-ink-2); font-size: 15px; font-weight: 500; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.lp-links a:hover, .lp-links a.is-active { color: var(--lp-navy); border-bottom-color: var(--lp-pink); }
.lp-nav-end { display: flex; align-items: center; gap: 12px; }
.lp-lang { display: flex; border: 1px solid var(--lp-line); border-radius: 9px; overflow: hidden; background: var(--lp-surface); }
.lp-lang a { padding: 6px 12px; font: 600 13px var(--lp-font); color: var(--lp-muted); text-decoration: none; line-height: 1.4; }
.lp-lang a[aria-current="true"] { background: var(--lp-navy); color: #fff; }
.lp-lang a:hover:not([aria-current]) { color: var(--lp-navy); }
.lp-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--lp-line); border-radius: 9px; background: var(--lp-surface); padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.lp-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--lp-navy); transition: transform .2s, opacity .2s; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lp-nav a:focus-visible, .lp-burger:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }

/* ---------- Hero ---------- */
.lp-hero { padding-block: 44px 56px; }
.lp-hero-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; }
.lp-h1 {
    margin: 0; color: var(--lp-ink);
    font: 800 clamp(40px, 6.2vw, 84px)/1.05 var(--lp-font);
    letter-spacing: -.01em; text-wrap: balance;
}
.lp-h1 span { color: var(--lp-pink); }
.lp-hero-sub { margin: 0; font-size: 18px; line-height: 1.75; color: #4b5073; max-width: 46ch; }
.lp-proof { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-proof li { font-size: 13.5px; font-weight: 500; color: var(--lp-ink-2); background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 999px; padding: 4px 13px; }

.lp-board { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 40px; }
.lp-card { position: relative; overflow: hidden; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
.lp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--lp-muted); }
.lp-card-head strong { color: var(--lp-navy); font-size: 17px; }

/* timeline */
.lp-tl { padding: 18px 20px 20px; }
.lp-tl-grid { position: relative; height: 262px; margin-top: 12px; --who: 15%; }
.lp-hours { position: absolute; inset-block-start: 0; inset-inline: var(--who) 0; height: 18px; font: 500 11px var(--lp-mono); color: var(--lp-faint); }
.lp-hours span { position: absolute; inset-inline-start: calc(var(--s) * 1%); transform: translateX(50%); }
[dir="ltr"] .lp-hours span { transform: translateX(-50%); }
.lp-rows { position: absolute; inset-block: 26px 0; inset-inline: 0; display: grid; grid-auto-rows: 1fr; }
.lp-row { position: relative; border-top: 1px solid var(--lp-line-2); }
.lp-who { position: absolute; inset-block-start: 8px; inset-inline-start: 0; width: var(--who); font-size: 14px; font-weight: 500; color: var(--lp-ink); line-height: 1.3; }
.lp-who small { display: block; font-size: 12px; font-weight: 400; color: var(--lp-faint); }
.lp-lane { position: absolute; inset-block: 8px; inset-inline: var(--who) 0; }
.lp-bar {
    position: absolute; inset-block: 3px;
    inset-inline-start: calc(var(--s) * 1%); width: calc(var(--w) * 1%);
    display: flex; align-items: center; padding-inline: 10px; overflow: hidden; white-space: nowrap;
    border-radius: 8px; background: var(--lp-wash); border: 1px solid #d9dfef;
    font-size: 12.5px; font-weight: 500; color: var(--lp-navy);
    transition: border-color .3s;
}
.lp-bar.is-night { background: #f1effa; border-color: #ddd7f2; }
.lp-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--fill, 0%); background: rgba(22, 163, 74, .14); }
.lp-bar span { position: relative; }
.lp-bar.is-on { border-color: rgba(22, 163, 74, .55); }
.lp-tick { position: absolute; inset-block: -2px; inset-inline-start: calc(var(--s) * 1%); width: 3px; margin-inline-start: -1px; border-radius: 3px; background: var(--lp-green); transform: scaleY(0); transition: transform .25s; }
.lp-tick.is-on { transform: scaleY(1); }
.lp-now {
    position: absolute; inset-block: 20px 0; width: 2px; z-index: 3;
    inset-inline-start: calc(var(--who) + (100% - var(--who)) * var(--now) / 100);
    margin-inline-start: -1px; background: var(--lp-pink);
}
.lp-now::before { content: ""; position: absolute; top: -5px; inset-inline-start: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-pink); }

/* map */
.lp-map { display: flex; flex-direction: column; min-height: 338px; background: #f6f8fc; }
.lp-map-stage { position: relative; flex: 1; min-height: 190px; margin-top: 44px; }
.lp-map-grid { position: absolute; inset: 0; background-image: linear-gradient(#e6e9f3 1px, transparent 1px), linear-gradient(90deg, #e6e9f3 1px, transparent 1px); background-size: 26px 26px; }
.lp-map-head { position: absolute; inset-block-start: 16px; inset-inline: 18px; z-index: 4; }
.lp-map-head strong { font-size: 24px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.lp-zone {
    position: absolute; inset-inline-start: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
    width: calc(var(--size) * 1%); aspect-ratio: 1; translate: 50% -50%;
    border-radius: 50%; border: 1.5px dashed rgba(37, 99, 235, .45);
    background: radial-gradient(circle, rgba(37, 99, 235, .09), rgba(37, 99, 235, .02) 70%);
}
[dir="ltr"] .lp-zone { translate: -50% -50%; }
.lp-zone b { position: absolute; bottom: 100%; left: 50%; translate: -50% -4px; font-size: 12px; font-weight: 600; color: var(--lp-navy); white-space: nowrap; }
.lp-zone::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(37, 99, 235, .3); animation: lp-ping 3.2s ease-out infinite; }
@keyframes lp-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.lp-dot {
    --x: var(--x0); --y: var(--y0);
    position: absolute; inset-inline-start: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 2;
    width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: #b3b8cd;
    transition: left 1.2s cubic-bezier(.3, .7, .2, 1), right 1.2s cubic-bezier(.3, .7, .2, 1), top 1.2s cubic-bezier(.3, .7, .2, 1), background-color .3s 1s, box-shadow .3s 1s;
}
.lp-dot.is-in { --x: var(--x1); --y: var(--y1); background: var(--lp-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.lp-toast {
    position: absolute; inset-block-start: 56px; inset-inline-end: 16px; z-index: 6;
    display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px);
    background: var(--lp-ink); color: #fff; border-radius: 10px; padding: 7px 12px; font-size: 13px;
    opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.lp-toast.is-shown { opacity: 1; transform: none; }
.lp-toast i { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #22c55e; }
.lp-feed { position: relative; z-index: 4; display: grid; gap: 5px; min-height: 74px; align-content: end; padding: 10px 14px 12px; border-top: 1px solid var(--lp-line); background: rgba(255, 255, 255, .7); }
.lp-feed > div { display: flex; align-items: center; gap: 8px; background: var(--lp-surface); border: 1px solid var(--lp-line-2); border-radius: 9px; padding: 5px 10px; font-size: 12.5px; color: var(--lp-ink); animation: lp-in .35s ease; }
.lp-feed span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-feed em { font-style: normal; color: var(--lp-blue); font-size: 12px; }
.lp-feed time { font: 500 12px var(--lp-mono); color: var(--lp-green); }
@keyframes lp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Numbers ---------- */
.lp-numbers { border-block: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-numbers-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-number { padding: 30px 28px; border-inline-start: 1px solid var(--lp-line); display: flex; flex-direction: column; gap: 2px; }
.lp-number:first-child { border-inline-start: 0; padding-inline-start: 0; }
.lp-count { font: 800 clamp(30px, 3.6vw, 44px)/1.1 var(--lp-font); color: var(--lp-navy); font-variant-numeric: tabular-nums; }
.lp-number span { font-size: 15px; color: var(--lp-muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 991.98px) {
    .lp-hero-top, .lp-board { grid-template-columns: 1fr; }
    .lp-hero-top { gap: 18px; }
    .lp-numbers-row { grid-template-columns: repeat(2, 1fr); }
    .lp-number:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .lp-number:nth-child(n+3) { border-top: 1px solid var(--lp-line); }
}
@media (max-width: 767.98px) {
    .lp-burger { display: flex; }
    .lp-links {
        position: absolute; inset-block-start: 100%; inset-inline: 0;
        flex-direction: column; gap: 0; padding: 8px 20px 16px;
        background: var(--lp-paper); border-bottom: 1px solid var(--lp-line);
        display: none;
    }
    .lp-links.is-open { display: flex; }
    .lp-links a { padding-block: 12px; border-bottom: 1px solid var(--lp-line-2); }
    .lp-hero { padding-block: 28px 40px; }
    .lp-hero-sub { font-size: 16px; }
    .lp-tl { padding: 14px; }
    .lp-tl-grid { --who: 20%; height: 250px; }
    .lp-bar { font-size: 11px; padding-inline: 6px; }
    .lp-map { min-height: 280px; }
    .lp-number { padding: 20px 16px; }
    .lp-count { font-size: 28px; white-space: nowrap; }
    .lp-hours .is-minor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-zone::after, .lp-feed > div { animation: none; }
    .lp-dot, .lp-tick, .lp-toast, .lp-nav { transition: none; }
}

/* The day's last hour label sits flush with the lane's end instead of hanging past it. */
.lp-hours span:last-child { transform: translateX(100%); }
[dir="ltr"] .lp-hours span:last-child { transform: translateX(-100%); }

/* =====================================================================
 * Shared section frame
 * ===================================================================== */
.lp-section { padding-block: 96px; scroll-margin-top: 72px; }
.lp-hero { scroll-margin-top: 72px; }
.lp-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--lp-pink); }
.lp-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lp-h2 { margin: 0; font: 800 clamp(30px, 3.8vw, 48px)/1.15 var(--lp-font); color: var(--lp-ink); letter-spacing: -.01em; text-wrap: balance; }
.lp-lead { margin: 0; font-size: 18px; line-height: 1.75; color: #4b5073; max-width: 58ch; }
.lp-empty { color: var(--lp-muted); }

/* ---------- How it works ---------- */
.lp-how { background: var(--lp-surface); border-bottom: 1px solid var(--lp-line); }
.lp-how-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-step {
    position: relative; width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: start;
    padding: 18px 20px; border: 1px solid transparent; border-radius: 14px; background: transparent;
    font: inherit; color: inherit; cursor: pointer; overflow: hidden; transition: background-color .25s, border-color .25s;
}
.lp-step:hover { background: var(--lp-paper); }
.lp-step.is-active { background: var(--lp-paper); border-color: var(--lp-line); }
.lp-step:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.lp-step-n {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font: 700 15px var(--lp-mono); color: var(--lp-muted); background: var(--lp-wash); transition: background-color .25s, color .25s;
}
.lp-step.is-active .lp-step-n { background: var(--lp-navy); color: #fff; }
.lp-step-t { display: flex; flex-direction: column; gap: 4px; }
.lp-step-t strong { font-size: 18px; font-weight: 700; color: var(--lp-ink); }
.lp-step-t span { font-size: 15px; line-height: 1.7; color: var(--lp-muted); }
.lp-step-bar { position: absolute; inset-block-end: 0; inset-inline-start: 0; height: 2px; width: 0; background: var(--lp-pink); }
.lp-step.is-active.is-timing .lp-step-bar { width: 100%; transition: width var(--lp-step-ms, 2600ms) linear; }

.lp-how-stage { position: relative; display: flex; justify-content: flex-start; padding-block: 12px; padding-inline-start: 48px; }
.lp-phone {
    position: relative; width: 270px; aspect-ratio: 9 / 18.5; border-radius: 38px; overflow: hidden;
    background: #fff; border: 9px solid #0b0e2a; box-shadow: 0 30px 60px rgba(16, 20, 58, .18);
}
.lp-phone-notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 84px; height: 20px; border-radius: 12px; background: #0b0e2a; z-index: 5; }
.lp-phone-map {
    position: absolute; inset: 0 0 34% 0; background: #e8eef7;
    background-image: linear-gradient(#d8e0ee 1px, transparent 1px), linear-gradient(90deg, #d8e0ee 1px, transparent 1px); background-size: 18px 18px;
}
.lp-phone-ring { position: absolute; top: 52%; left: 50%; width: 64%; aspect-ratio: 1; translate: -50% -50%; scale: 0; border-radius: 50%; border: 2px dashed var(--lp-blue); background: rgba(37, 99, 235, .1); transition: scale .6s cubic-bezier(.3, 1.4, .5, 1); }
.lp-phone-pin { position: absolute; top: 52%; left: 50%; width: 22px; height: 22px; margin: -30px 0 0 -11px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--lp-pink); box-shadow: 0 4px 10px rgba(232, 41, 95, .35); translate: 0 -40px; opacity: 0; transition: translate .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.lp-phone-pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.lp-phone-chip { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.lp-phone-dist { top: 18%; background: #fff; color: var(--lp-navy); font-family: var(--lp-mono); }
.lp-phone-in { bottom: 8%; background: #dcfce7; color: #166534; }
.lp-phone-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(16, 20, 58, .82); color: #fff; opacity: 0; transition: opacity .35s; }
.lp-phone-face svg { width: 84px; }
.lp-phone-face i { position: absolute; left: 30%; right: 30%; height: 2px; top: 36%; background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.lp-phone-face small { font-size: 12px; }
.lp-phone-sheet { position: absolute; inset: 66% 0 0 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.lp-phone-sheet small { font-size: 12px; color: var(--lp-muted); }
.lp-phone-sheet strong { font-size: 24px; color: var(--lp-ink); }
.lp-phone-btn { position: relative; margin-top: auto; height: 40px; border-radius: 12px; background: var(--lp-navy); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; overflow: hidden; }
.lp-phone-btn::before { content: ""; position: absolute; inset: 0; background: var(--lp-green); transform: scaleX(0); transform-origin: right; transition: transform .6s; }
[dir="ltr"] .lp-phone-btn::before { transform-origin: left; }
.lp-phone-btn b { position: relative; font-weight: 600; }
.lp-manager {
    position: absolute; inset-inline-end: 0; bottom: 110px; width: 230px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; box-shadow: 0 16px 36px rgba(16, 20, 58, .12);
}
.lp-manager small { font-size: 12px; color: var(--lp-muted); }
.lp-manager-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--lp-line-2); font-size: 13px; color: var(--lp-ink); }
.lp-pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--lp-wash); color: var(--lp-muted); white-space: nowrap; }
.lp-pill.is-ok { background: #dcfce7; color: #166534; }

/* the four states — cumulative */
.lp-how-stage [data-done] { display: none; }
.lp-how-stage.is-s1 .lp-phone-pin, .lp-how-stage.is-s2 .lp-phone-pin, .lp-how-stage.is-s3 .lp-phone-pin, .lp-how-stage.is-s4 .lp-phone-pin { translate: 0 0; opacity: 1; }
.lp-how-stage.is-s1 .lp-phone-dist { opacity: 1; }
.lp-how-stage.is-s2 .lp-phone-ring, .lp-how-stage.is-s3 .lp-phone-ring, .lp-how-stage.is-s4 .lp-phone-ring { scale: 1; }
.lp-how-stage.is-s2 .lp-phone-dist, .lp-how-stage.is-s2 .lp-phone-in, .lp-how-stage.is-s4 .lp-phone-in { opacity: 1; }
.lp-how-stage.is-s3 .lp-phone-face { opacity: 1; }
.lp-how-stage.is-s3 .lp-phone-face i { animation: lp-scan 1.4s ease-in-out infinite alternate; }
@keyframes lp-scan { from { top: 32%; } to { top: 60%; } }
.lp-how-stage.is-s4 .lp-phone-btn::before { transform: scaleX(1); }
.lp-how-stage.is-s4 [data-idle] { display: none; }
.lp-how-stage.is-s4 [data-done] { display: inline; }

/* ---------- Features ---------- */
.lp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-feature { display: flex; flex-direction: column; gap: 10px; }
.lp-feature h3 { margin: 10px 0 0; font-size: 20px; font-weight: 700; color: var(--lp-ink); }
.lp-feature p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--lp-muted); }
.lp-scene {
    position: relative; height: 190px; overflow: hidden; border-radius: var(--lp-radius);
    background: var(--lp-surface); border: 1px solid var(--lp-line);
    display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px;
}
.lp-chip { position: absolute; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; transition: opacity .35s; }
.lp-chip-in { background: #dcfce7; color: #166534; }
.lp-chip-out { background: #fee2e2; color: #b91c1c; }
.lp-legend { display: flex; gap: 14px; font-size: 12px; color: var(--lp-muted); margin-top: 4px; }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.lp-legend .is-m::before { background: #c7d2fe; } .lp-legend .is-e::before { background: #312e81; } .lp-legend .is-o::before { background: var(--lp-line); }
.lp-legend .is-late::before { background: #f59e0b; } .lp-legend .is-over::before { background: var(--lp-blue); }

/* shifts: a rotating pattern slides a day at a time */
.lp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.lp-week-d { text-align: center; font-size: 11px; font-weight: 600; color: var(--lp-faint); }
.lp-shift { height: 20px; border-radius: 5px; background: var(--lp-line); transition: background-color .45s; }
.lp-shift.is-m { background: #c7d2fe; } .lp-shift.is-e { background: #312e81; } .lp-shift.is-o { background: var(--lp-line-2); outline: 1px dashed var(--lp-line); outline-offset: -1px; }

/* geofence: the dot walks in and out of the branch's circle */
.lp-geo-ring { position: absolute; top: 50%; left: 50%; width: 130px; height: 130px; translate: -50% -50%; border-radius: 50%; border: 2px dashed rgba(37, 99, 235, .5); background: rgba(37, 99, 235, .07); }
.lp-geo-branch { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; translate: -50% -50%; border-radius: 4px; background: var(--lp-navy); }
.lp-geo-dot { position: absolute; top: 34%; left: 60%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 5px rgba(22, 163, 74, .18); transition: left 1s ease, top 1s ease, background-color .3s .8s, box-shadow .3s .8s; }
.lp-scene-geofence .lp-chip { top: 14px; inset-inline-end: 14px; }
.lp-scene-geofence .lp-chip-out { opacity: 0; }
.lp-scene-geofence[data-state="0"] .lp-geo-dot { left: 88%; top: 76%; background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, .18); }
.lp-scene-geofence[data-state="0"] .lp-chip-in { opacity: 0; }
.lp-scene-geofence[data-state="0"] .lp-chip-out { opacity: 1; }

/* face: a scan line, then the match */
.lp-face { position: relative; align-self: center; width: 96px; height: 116px; color: var(--lp-navy); display: grid; place-items: center; }
.lp-face svg { width: 70px; }
.lp-face-corner { position: absolute; inset: 0; border: 2px solid transparent; border-radius: 16px;
    background: linear-gradient(var(--lp-blue), var(--lp-blue)) top left / 18px 2px no-repeat, linear-gradient(var(--lp-blue), var(--lp-blue)) top left / 2px 18px no-repeat,
                linear-gradient(var(--lp-blue), var(--lp-blue)) top right / 18px 2px no-repeat, linear-gradient(var(--lp-blue), var(--lp-blue)) top right / 2px 18px no-repeat,
                linear-gradient(var(--lp-blue), var(--lp-blue)) bottom left / 18px 2px no-repeat, linear-gradient(var(--lp-blue), var(--lp-blue)) bottom left / 2px 18px no-repeat,
                linear-gradient(var(--lp-blue), var(--lp-blue)) bottom right / 18px 2px no-repeat, linear-gradient(var(--lp-blue), var(--lp-blue)) bottom right / 2px 18px no-repeat; }
.lp-face-scan { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--lp-green); box-shadow: 0 0 10px var(--lp-green); opacity: 0; }
.lp-face-ok { bottom: 14px; left: 50%; translate: -50% 0; }
.lp-scene-face[data-state="0"] .lp-face-scan { opacity: 1; animation: lp-scan-face 1.2s ease-in-out infinite alternate; }
.lp-scene-face[data-state="0"] .lp-face-ok { opacity: 0; }
.lp-scene-face[data-state="0"] .lp-face { color: var(--lp-faint); }
@keyframes lp-scan-face { from { top: 18%; } to { top: 82%; } }

/* requests: manager, then HR */
.lp-request { align-self: stretch; background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 12px; padding: 14px; display: grid; gap: 14px; }
.lp-request strong { font-size: 14px; color: var(--lp-ink); }
.lp-approvals { display: flex; align-items: center; gap: 8px; }
.lp-approval { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--lp-muted); }
.lp-approval i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lp-line); background: #fff; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.lp-approval i::after { content: "✓"; font-style: normal; font-size: 12px; color: #fff; opacity: 0; transition: opacity .3s; }
.lp-approval-line { flex: 1; height: 2px; background: var(--lp-line); position: relative; overflow: hidden; }
.lp-approval-line::after { content: ""; position: absolute; inset: 0; background: var(--lp-green); transform: scaleX(1); transform-origin: right; transition: transform .5s; }
[dir="ltr"] .lp-approval-line::after { transform-origin: left; }
.lp-scene-requests .lp-approval i { background: var(--lp-green); border-color: var(--lp-green); }
.lp-scene-requests .lp-approval i::after { opacity: 1; }
.lp-scene-requests .lp-approval { color: #166534; }
.lp-scene-requests[data-state="0"] .lp-approval i, .lp-scene-requests[data-state="1"] .lp-approval[data-n="2"] i { background: #fff; border-color: var(--lp-line); }
.lp-scene-requests[data-state="0"] .lp-approval i::after, .lp-scene-requests[data-state="1"] .lp-approval[data-n="2"] i::after { opacity: 0; }
.lp-scene-requests[data-state="0"] .lp-approval, .lp-scene-requests[data-state="1"] .lp-approval[data-n="2"] { color: var(--lp-muted); }
.lp-scene-requests[data-state="0"] .lp-approval-line::after, .lp-scene-requests[data-state="1"] .lp-approval-line::after { transform: scaleX(0); }

/* reports: bars grow, lateness and overtime stack on top */
.lp-chart { display: flex; align-items: flex-end; gap: 10px; height: 118px; }
.lp-col { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; }
.lp-col i { display: block; border-radius: 4px; transition: height .7s cubic-bezier(.3, .7, .2, 1); }
.lp-col .is-on { height: calc(var(--on) * 1%); background: #c7d2fe; }
.lp-col .is-late { height: calc(var(--late) * 1%); background: #f59e0b; }
.lp-col .is-over { height: calc(var(--over) * 1%); background: var(--lp-blue); }
.lp-scene-reports[data-state="0"] .lp-col i { height: 0; }

/* notify: two notifications slide in */
.lp-notes { display: grid; gap: 10px; }
.lp-note { display: flex; gap: 10px; align-items: center; background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--lp-ink); transition: opacity .4s, transform .4s; }
.lp-note i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--lp-navy); }
.lp-note span { display: flex; flex-direction: column; }
.lp-note b { font-size: 11.5px; color: var(--lp-muted); font-weight: 600; }
.lp-note-2 i { background: var(--lp-pink); }
.lp-scene-notify[data-state="0"] .lp-note { opacity: 0; transform: translateY(-10px); }
.lp-scene-notify[data-state="1"] .lp-note-2 { opacity: 0; transform: translateY(-10px); }

/* ---------- App ---------- */
.lp-app { background: var(--lp-navy); color: #c9cdee; }
.lp-app .lp-h2 { color: #fff; }
.lp-app .lp-lead { color: #c9cdee; }
.lp-app .lp-eyebrow { color: #ff7aa0; }
.lp-app-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.lp-app .lp-head { margin-bottom: 32px; }
.lp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.lp-points li { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.lp-points strong { color: #fff; font-size: 17px; font-weight: 700; }
.lp-points span { font-size: 14.5px; line-height: 1.7; }
.lp-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: #fff; color: var(--lp-ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.lp-store:hover { color: var(--lp-navy); background: #eef1ff; }
.lp-store svg { width: 22px; height: 22px; }
.lp-store span { display: flex; flex-direction: column; line-height: 1.2; }
.lp-store small { font-size: 11px; font-weight: 500; color: var(--lp-muted); }
.lp-app-visual { display: flex; justify-content: center; }
.lp-phone-app { border-color: #05071c; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.lp-app-screen { position: absolute; inset: 0; padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #f3f5fb, #fff 40%); }
.lp-app-screen small { font-size: 12.5px; color: var(--lp-muted); }
.lp-app-clock { font-size: 34px; color: var(--lp-ink); line-height: 1.1; }
.lp-app-shift { font-size: 12px; color: var(--lp-navy); background: var(--lp-wash); border-radius: 8px; padding: 5px 9px; align-self: flex-start; }
.lp-app-check { position: relative; align-self: center; margin-block: 18px 14px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--lp-navy); color: #fff; font-weight: 700; font-size: 14px; padding: 16px; }
.lp-app-check i { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(19, 25, 85, .25); animation: lp-pulse 2.4s ease-out infinite; }
@keyframes lp-pulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.lp-app-tiles { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-app-tiles span { text-align: center; font-size: 12px; font-weight: 600; color: var(--lp-ink); background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; padding: 10px 4px; }

/* ---------- Pricing ---------- */
.lp-pricing { background: var(--lp-paper); }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-plans-1 { grid-template-columns: minmax(0, 420px); }
.lp-plans-2 { grid-template-columns: repeat(2, minmax(0, 420px)); }
.lp-plans-4 { grid-template-columns: repeat(4, 1fr); }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
.lp-plan.is-featured { border-color: var(--lp-navy); box-shadow: inset 0 0 0 1px var(--lp-navy); }
.lp-plan h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--lp-ink); }
.lp-plan-price { display: flex; flex-direction: column; gap: 2px; }
.lp-plan-price strong { font: 800 40px/1.1 var(--lp-font); color: var(--lp-navy); font-variant-numeric: tabular-nums; }
.lp-plan-price span { font-size: 14px; color: var(--lp-muted); }
.lp-plan-users { font-size: 14px; font-weight: 700; color: var(--lp-blue); }
.lp-plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--lp-line-2); display: grid; gap: 9px; font-size: 14.5px; }
.lp-plan li { display: flex; gap: 10px; }
.lp-plan li::before { content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #166534; background: #dcfce7; }

/* ---------- FAQ ---------- */
.lp-faq { background: var(--lp-surface); border-top: 1px solid var(--lp-line); }
.lp-faq-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.lp-faq .lp-head { position: sticky; top: 104px; margin-bottom: 0; }
.lp-faq-list { display: grid; }
.lp-qa { border-bottom: 1px solid var(--lp-line); }
.lp-qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--lp-ink); }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 4px; border-radius: 6px; }
.lp-qa summary i { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-wash); }
.lp-qa summary i::before, .lp-qa summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; translate: -50% -50%; border-radius: 2px; background: var(--lp-navy); transition: rotate .2s; }
.lp-qa summary i::after { rotate: 90deg; }
.lp-qa[open] summary i { background: var(--lp-navy); }
.lp-qa[open] summary i::before, .lp-qa[open] summary i::after { background: #fff; }
.lp-qa[open] summary i::after { rotate: 0deg; }
.lp-qa p { margin: 0; padding-bottom: 22px; font-size: 16px; line-height: 1.85; color: var(--lp-muted); max-width: 64ch; }

/* ---------- Footer ---------- */
.lp-footer { background: #0c1040; color: #aab0da; padding-block: 64px 28px; }
.lp-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.lp-footer-brand img { width: 132px; height: auto; }
.lp-footer-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.8; max-width: 34ch; }
.lp-footer-mail { display: inline-block; margin-top: 10px; color: #fff; text-decoration: none; }
.lp-footer-col { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-col h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #fff; }
.lp-footer-col a { color: #aab0da; text-decoration: none; font-size: 15px; }
.lp-footer a:hover { color: #fff; }
.lp-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.lp-social { display: flex; gap: 10px; }
.lp-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.lp-social svg { width: 18px; height: 18px; }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }

/* ---------- Narrow screens (new sections) ---------- */
@media (max-width: 991.98px) {
    .lp-section { padding-block: 72px; }
    .lp-how-body, .lp-app-row, .lp-faq-row { grid-template-columns: 1fr; gap: 36px; }
    .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-plans, .lp-plans-4 { grid-template-columns: repeat(2, 1fr); }
    .lp-footer-top { grid-template-columns: 1fr 1fr; }
    .lp-faq .lp-head { position: static; }
}
@media (max-width: 767.98px) {
    .lp-section { padding-block: 56px; }
    .lp-head { margin-bottom: 32px; }
    .lp-lead { font-size: 16px; }
    .lp-feature-grid, .lp-plans, .lp-plans-2, .lp-plans-4, .lp-points { grid-template-columns: 1fr; }
    .lp-phone { width: 240px; }
    .lp-manager { position: static; width: auto; margin-top: 16px; }
    .lp-how-stage { flex-direction: column; align-items: center; padding-inline-start: 0; }
    .lp-footer-top { grid-template-columns: 1fr; gap: 28px; }
    .lp-qa summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-phone-face i, .lp-face-scan, .lp-app-check i { animation: none !important; }
    .lp-step-bar, .lp-shift, .lp-geo-dot, .lp-col i, .lp-note, .lp-approval i, .lp-phone-ring, .lp-phone-pin, .lp-phone-btn::before { transition: none !important; }
}
