/* ==========================================================================
   FacilityOS marketing site — corporate, calm, premium.
   Palette and type come from the brand tokens in style.css:
   forest #1b3a32 / #2f6150, sage #79a891, mint #e3efe8; Josefin Sans (display)
   + Fira Sans (text). Everything is prefixed `lp-` so it can't collide with
   the app UI.
   ========================================================================== */

.landing { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-5); }
.lp-caps { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; color: var(--brand-primary); }
.lp-display { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
.lp-display b { font-weight: 700; }

/* ---- Nav ------------------------------------------------------------- */
.landing-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; max-width: none; padding: var(--space-4) 0; background: transparent; border: 0; }
.landing-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-5); display: flex; align-items: center; justify-content: space-between; width: 100%; }
.landing-nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.landing-nav .brand .wordmark { font-size: 1rem !important; }
.landing-nav .brand .wordmark b { color: var(--sage); }
.landing-nav .links { display: flex; align-items: center; gap: var(--space-5); }
.landing-nav .links a:not(.btn) { color: rgba(255,255,255,.78); font-weight: 500; font-size: .92rem; }
.landing-nav .links a:not(.btn):hover { color: #fff; }
.landing-nav .btn { background: #fff; color: var(--forest); border-color: #fff; }
.landing-nav .btn.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ---- Hero ------------------------------------------------------------- */
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 110px;
    background: radial-gradient(900px 500px at 78% 30%, rgba(121,168,145,.22), transparent 60%), linear-gradient(135deg, #0f221d 0%, #1b3a32 52%, #2f6150 100%); }
.lp-shape { position: absolute; transform: rotate(45deg); border-radius: 22px; pointer-events: none; }
.lp-shape.s1 { width: 520px; height: 520px; right: -210px; top: 40px; background: linear-gradient(135deg, #3f6b5a, #5b8a76); opacity: .55; }
.lp-shape.s2 { width: 230px; height: 230px; right: 190px; top: 470px; background: #79a891; opacity: .5; }
.lp-shape.s3 { width: 340px; height: 340px; right: -120px; bottom: -190px; background: #0f221d; opacity: .75; }
.lp-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-6); align-items: center; }
.lp-hero .lp-caps { color: var(--sage); }
.lp-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.05; letter-spacing: -.01em; margin: 18px 0 20px; color: #fff; }
.lp-hero h1 b { font-weight: 700; color: var(--sage); }
.lp-lead { font-size: 1.12rem; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 var(--space-5); }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .btn { padding: 14px 24px; font-weight: 600; }
.lp-cta .btn-light { background: #fff; color: var(--forest); border-color: #fff; }
.lp-cta .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lp-cta .btn-ghost:hover { background: rgba(255,255,255,.1); }
.lp-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: .84rem; color: rgba(255,255,255,.7); }
.lp-trust span::before { content: "✓"; color: var(--sage); margin-right: 7px; font-weight: 700; }

/* Product mock (illustrative, built in HTML so it stays crisp and on-brand) */
.lp-mock { position: relative; }
.lp-window { background: #fff; color: #13211d; border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.55); overflow: hidden; }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f3f6f4; border-bottom: 1px solid #e3e8e5; }
.lp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8d3; }
.lp-bar span { margin-left: 10px; font-size: .72rem; color: #7a8b84; letter-spacing: .04em; }
.lp-body { padding: 18px; display: grid; gap: 14px; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-kpi { border: 1px solid #e3e8e5; border-radius: 12px; padding: 10px 12px; }
.lp-kpi small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: #7a8b84; }
.lp-kpi strong { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; color: #1b3a32; }
.lp-chart { display: flex; align-items: flex-end; gap: 7px; height: 78px; padding: 6px 4px 0; border: 1px solid #e3e8e5; border-radius: 12px; }
.lp-chart i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #79a891, #2f6150); }
.lp-rows { display: grid; gap: 8px; }
.lp-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; padding: 8px 10px; border: 1px solid #e3e8e5; border-radius: 10px; }
.lp-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #17915a; flex-shrink: 0; }
.lp-row .dot.warn { background: #b56a05; }
.lp-row em { margin-left: auto; font-style: normal; font-size: .68rem; color: #7a8b84; }
.lp-chip { position: absolute; background: #fff; color: #13211d; border-radius: 12px; padding: 10px 14px; font-size: .78rem; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); display: flex; align-items: center; gap: 8px; animation: lpfloat 6s ease-in-out infinite; }
.lp-chip.c1 { left: -26px; top: 58px; } .lp-chip.c2 { right: -18px; bottom: 70px; animation-delay: -2.5s; }
.lp-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #17915a; }
@keyframes lpfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lp-chip { animation: none; } }

/* ---- Generic sections ------------------------------------------------- */
.lp-section { padding: 96px 0; }
.lp-section.alt { background: var(--surface-alt); }
.lp-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; margin: 14px 0 14px; letter-spacing: -.01em; }
.lp-head h2 b { font-weight: 700; color: var(--brand-primary); }
.lp-head p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin: 0; }

/* Audience strip */
.lp-strip { background: var(--forest); color: #fff; padding: 22px 0; }
.lp-strip .lp-wrap { display: flex; gap: 14px 40px; justify-content: center; flex-wrap: wrap; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.lp-strip b { color: var(--sage); font-weight: 600; }

/* Before / after */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.lp-compare .box { border-radius: 20px; padding: 32px; border: 1px solid var(--border); background: var(--surface); }
.lp-compare .box.good { background: linear-gradient(135deg, #1b3a32, #2f6150); color: #fff; border: 0; }
.lp-compare h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 16px; }
.lp-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-compare li { display: flex; gap: 12px; line-height: 1.5; }
.lp-compare li::before { content: "✕"; color: var(--danger); font-weight: 700; }
.lp-compare .good li::before { content: "✓"; color: var(--sage); }

/* Capability grid */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(27,58,50,.35); border-color: var(--sage); }
.lp-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-primary-light); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.lp-card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 600; }
.lp-card p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .95rem; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: s; }
.lp-step { position: relative; padding: 30px 28px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); counter-increment: s; }
.lp-step::before { content: "0" counter(s); font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--sage); display: block; margin-bottom: 12px; }
.lp-step h3 { margin: 0 0 6px; font-size: 1.1rem; } .lp-step p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .95rem; }

/* Role experiences */
.lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.lp-role { border-radius: 20px; padding: 30px; background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.lp-role:nth-child(2) { background: #2f6150; } .lp-role:nth-child(3) { background: #3f6b5a; }
.lp-role::after { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; bottom: -50px; background: rgba(255,255,255,.08); transform: rotate(45deg); border-radius: 18px; }
.lp-role .lp-caps { color: var(--sage); }
.lp-role:nth-child(3) .lp-caps { color: #dbe8e1; }
.lp-role h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 10px 0 14px; }
.lp-role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; color: rgba(255,255,255,.86); position: relative; z-index: 1; }
.lp-role li::before { content: "—"; margin-right: 9px; color: var(--sage); }

/* Security */
.lp-secure { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.lp-secure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-secure li { display: flex; gap: 14px; line-height: 1.5; }
.lp-secure li svg { flex-shrink: 0; color: var(--brand-primary); margin-top: 2px; }
.lp-secure strong { display: block; }

/* Pricing / process */
.lp-quote { max-width: 900px; margin: 0 auto; border-radius: 24px; padding: 48px; text-align: center; background: linear-gradient(135deg, #142a24, #2f6150); color: #fff; position: relative; overflow: hidden; }
.lp-quote h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
.lp-quote p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }
.lp-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 28px; font-size: .88rem; }
.lp-flow span { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.lp-flow i { color: var(--sage); font-style: normal; }

/* Demo */
.lp-demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-6); align-items: start; }
.lp-demo ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.lp-demo li::before { content: "✓"; color: var(--brand-primary); font-weight: 700; margin-right: 10px; }
.lp-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(27,58,50,.3); }

/* Footer */
.lp-footer { background: #0f221d; color: rgba(255,255,255,.7); padding: 56px 0 36px; }
.lp-footer .lp-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.lp-footer .wordmark { color: #fff; font-size: 1.05rem; } .lp-footer .wordmark b { color: var(--sage); }
.lp-footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; }
.lp-footer a:hover { color: #fff; }
.lp-footer small { width: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
    .lp-hero-grid, .lp-secure, .lp-demo { grid-template-columns: 1fr; }
    .lp-grid, .lp-steps, .lp-roles { grid-template-columns: 1fr 1fr; }
    .lp-mock { max-width: 520px; margin: 0 auto; }
    .lp-chip.c1 { left: -8px; } .lp-chip.c2 { right: -8px; }
}
@media (max-width: 720px) {
    .landing-nav { position: sticky; background: #142a24; padding: var(--space-3) 0; }
    .landing-nav .links { display: none; }
    .landing-burger { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
    .landing-drawer:not([hidden]) { background: #142a24; border-color: rgba(255,255,255,.12); top: 62px; }
    .landing-drawer a:not(.btn) { color: #fff; border-color: rgba(255,255,255,.12); }
    .lp-hero { padding: 56px 0 72px; }
    .lp-section { padding: 64px 0; }
    .lp-grid, .lp-steps, .lp-roles, .lp-compare { grid-template-columns: 1fr; }
    .lp-wrap, .landing-nav-inner { padding: 0 var(--space-4); }
    .lp-quote { padding: 32px 22px; }
    .lp-cta .btn { flex: 1 1 100%; text-align: center; }
    .lp-shape.s1 { right: -300px; } .lp-shape.s2 { display: none; }
    .lp-kpis { grid-template-columns: repeat(3, 1fr); }
}

/* WhatsApp entry points */
.lp-wa { display: inline-flex; align-items: center; gap: 8px; }
.lp-cta .lp-wa { border-color: #25d366; color: #b8f5cf; }
.wa-float { position: fixed; z-index: 120; bottom: 22px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #06361a; font-weight: 700; padding: 13px 20px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(6,54,26,.55); }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 720px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* primary hero/nav call to action: solid white button */
.lp-hero .lp-cta a.btn.btn-light, .lp-cta a.btn.btn-light { background-color: #fff; background-image: none; color: var(--forest); border-color: #fff; }
