/* SEMS public landing — matches Penpot "Landing – Desktop" (1440) and "Landing – Mobile" (390). */

.lp { overflow-x: clip; }

/* ================= SECTION CARDS =================
   Each section is a full-screen "card" whose top edge casts a shadow onto the section
   above it. Scrolling is native; only in-page links glide (see site.js). */
.stack-item + .stack-item, .stack-last {
  box-shadow: 0 -28px 60px -16px rgba(0, 0, 0, .55), 0 -1px 0 rgba(255, 255, 255, .06);
}
.sec-light.stack-item { box-shadow: 0 -28px 60px -16px rgba(0, 0, 0, .55); }
.stack-hero > .hero, .stack-hero > .stats { position: relative; }
/* Every card fills at least one screen so the next card never peeks in underneath a short
   one; content is centred vertically in the spare height. --fill is the viewport height in
   CSS px (set by JS so it stays right when tablets are zoomed). */
.lp .stack-item, .lp .stack-last { min-height: var(--fill, 100vh); }
.lp .sec.stack-item, .lp .sec.stack-last { display: flex; flex-direction: column; justify-content: center; }
.stack-hero { display: flex; flex-direction: column; }
.stack-hero > .hero { flex: 1 0 auto; }
.lp section, .lp header, .lp footer { position: relative; overflow: hidden; }
.lp section[id] { scroll-margin-top: 0; }

/* ================= NAV ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 96px; transition: background .25s ease, backdrop-filter .25s ease; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.nav.scrolled { background: rgba(3, 14, 29, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-inner { height: 100%; display: flex; align-items: center; }
.nav-links { position: absolute; left: 440px; top: 50%; transform: translateY(-50%); display: flex; gap: 40px; }
.btn-nav { margin-left: auto; }
.nav-links a { font: 500 15px/1 var(--f-body); color: rgba(255, 255, 255, .72); transition: color .15s; }
.nav-links a:hover { color: #fff; }
.btn-nav { width: 120px; }
.menu-btn { display: none; }

/* ================= HERO ================= */
.hero { min-height: 920px; background: var(--ink); }
.hero-inner { display: grid; grid-template-columns: 620px 580px; padding-top: 176px; padding-bottom: 70px; }
.hero-copy { padding-top: 0; }
.hero .pill { margin-top: 0; }
.hero-title {
  margin-top: 26px; font: 800 76px/1.02 var(--f-head); letter-spacing: -1.5px; color: #fff;
}
.hero-sub { margin-top: 24px; min-height: 115px; max-width: 560px; font: 400 18px/1.6 var(--f-body); color: var(--mute); }
.hero-ctas { display: flex; gap: 16px; margin-top: 31px; }
.btn-lg { height: 56px; font-size: 16px; }
.hero-ctas .btn-gold { width: 252px; }
.hero-ctas .btn-ghost { width: 190px; }
.trust-label { margin-top: 40px; font: 600 11px/1 var(--f-body); letter-spacing: 1.6px; color: rgba(138, 155, 180, .8); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 15px; }
.trust-row li { font: 600 14px/1.3 var(--f-body); color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 16px; }
.trust-row li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(138, 155, 180, .6); }

.hero-visual { position: relative; margin-top: -26px; }
.dash { width: 580px; height: 620px; border-radius: 24px; position: relative; }
.dash-head { height: 70px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.traffic { display: flex; gap: 6px; margin-right: 34px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; opacity: .9; }
.traffic i:nth-child(1) { background: #FF5F57; } .traffic i:nth-child(2) { background: #FEBC2E; } .traffic i:nth-child(3) { background: #28C840; }
.dash-head b { display: block; font: 600 14px/1.3 var(--f-body); }
.dash-head small { display: block; font: 500 11px/1.3 var(--f-body); color: var(--mute); margin-top: 2px; }
.dash-head .chip-live { margin-left: auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 127px); gap: 10px; padding: 20px 20px 0; }
.kpi { position: relative; height: 112px; border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.kpi-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 16px; }
.kpi em { position: absolute; top: 18px; right: 12px; font: 700 9.5px/1 var(--f-body); font-style: normal; color: var(--mute); }
.kpi em.up { color: var(--mint); } .kpi em.down { color: var(--coral); }
.kpi small { display: block; margin-top: 10px; font: 700 9.5px/1 var(--f-body); letter-spacing: 1px; color: var(--mute); }
.kpi b { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font: 700 22px/1 var(--f-head); }
.kpi u { text-decoration: none; font: 600 11px/1 var(--f-body); color: var(--mute); }

.dash-chart { position: relative; margin: 18px 20px 0; height: 230px; border-radius: 16px; }
.chart-head { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 1; }
.chart-head b { font: 600 13px/1 var(--f-body); }
.legend { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-body); color: var(--mute); }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-left: 8px; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .gridlines path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart-x { position: absolute; left: 40px; right: 0; bottom: 12px; display: grid; grid-template-columns: repeat(5, 110px); font: 500 10px/1 var(--f-body); color: rgba(138, 155, 180, .8); }

.dash-foot { display: grid; grid-template-columns: 200px 328px; gap: 12px; margin: 16px 20px 0; }
.dash-foot > div { height: 134px; border-radius: 16px; position: relative; }
.share .ring { position: absolute; left: 13px; top: 19px; width: 96px; height: 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-val { stroke: var(--amber); stroke-linecap: round; }
.share-v { position: absolute; left: 42px; top: 56px; font: 800 18px/1.2 var(--f-head); }
.share > div { position: absolute; left: 118px; top: 40px; }
.share > div b { display: block; font: 600 12px/1.3 var(--f-body); }
.share > div small { display: block; margin-top: 4px; font: 400 11px/1.4 var(--f-body); color: var(--mute); }
.mdb-head { display: flex; justify-content: space-between; padding: 14px 18px 0; }
.mdb-head b { font: 600 12px/1.3 var(--f-body); }
.mdb-head small { font: 500 11px/1.3 var(--f-body); color: var(--mute); }
.bars { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: flex-end; gap: 15px; height: 70px; }
.bars i { width: 18px; height: calc(70px * var(--v)); border-radius: 5px; background: linear-gradient(180deg, var(--mint), rgba(76, 111, 255, .6)); }
.bars i.hot { background: linear-gradient(180deg, var(--coral), rgba(255, 107, 107, .6)); }

.float-ac { left: 436px; top: -58px; width: 210px; }
.float-wa { left: -140px; top: 602px; width: 290px; padding: 19px 16px; border-radius: 18px; padding-right: 19px !important;}
.float-wa .float-ic { margin-right: 2px; }
.float-wa small { font-size: 11.5px; }

/* ================= STATS ================= */
.stats { height: 150px; background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 300px); border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 34px; }
.stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -24px; top: 6px; width: 1px; height: 70px; background: rgba(255, 255, 255, .08); }
.stat b { display: inline-block; font: 800 40px/1.25 var(--f-head); }
.stat span { display: block; margin-top: 2px; font: 600 15px/1.3 var(--f-body); }
.stat small { display: block; margin-top: 3px; max-width: 250px; font: 400 12.5px/1.4 var(--f-body); color: var(--mute); }

/* ================= SECTIONS ================= */
.sec { padding: 140px 0 100px; }   /* 100px design spacing + 40px to clear the 96px fixed nav when a card stops at the top */
.sec-light { background: var(--light); color: var(--ink); }
.sec-dark { background: var(--ink); }
.eyebrow { font: 700 13px/1 var(--f-body); letter-spacing: 2.4px; color: var(--gold); }
.sec h2 { margin-top: 15px; font: 800 52px/1.05 var(--f-head); letter-spacing: -1px; }
.sec-head { display: grid; grid-template-columns: 680px 520px; align-items: start; }
.sec-lead { margin-top: 50px; font: 400 17px/1.6 var(--f-body); color: var(--sub); }
.sec-dark .sec-lead { color: var(--mute); }

/* ---------- modules ---------- */
#modules { padding-bottom: 80px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 384px); gap: 24px; margin-top: 76px; }
.mod {
  position: relative; overflow: hidden; height: 260px; padding: 28px; border-radius: 24px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -18px rgba(11, 37, 69, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mod:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 22px 50px -18px rgba(11, 37, 69, .26); }
.mod::before { content: ""; position: absolute; left: 250px; top: -90px; width: 220px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 14%, transparent), transparent); filter: blur(20px); }
.mod-ic {
  position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 24px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 75%, transparent));
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--c) 60%, transparent);
}
.mod-ic .ic { stroke-width: 2.2; }
.spark { position: absolute; left: 216px; top: 36px; width: 140px; height: 36px; overflow: visible; }
.spark path { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; }
.mod h3 { margin-top: 24px; font: 700 24px/1.2 var(--f-head); color: var(--ink); }
.mod p { margin-top: 8px; max-width: 320px; font: 400 15px/1.55 var(--f-body); color: var(--sub); }
.tags { position: absolute; left: 28px; bottom: 22px; display: flex; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--t, var(--c)); font: 600 12px/1.2 var(--f-body); }

/* ---------- insights ---------- */
#insights { padding: 40px 0 44px; }
.insights { display: grid; grid-template-columns: 580px 620px; }
.ins-copy { padding-top: 110px; }
.ins-copy .sec-lead { margin-top: 26px; max-width: 520px; }
.points { margin-top: 26px; display: grid; gap: 20px; }
.points li { display: flex; align-items: center; gap: 16px; font: 500 16px/1.3 var(--f-body); color: rgba(255, 255, 255, .9); }
.pt-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 22px; color: var(--gold2); background: rgba(201, 154, 104, .12); box-shadow: inset 0 0 0 1px rgba(201, 154, 104, .35); }
.flow { position: relative; margin-top: 96px; width: 620px; height: 640px; border-radius: 28px; }
.flow-head { position: absolute; left: 32px; right: 48px; top: 28px; display: flex; justify-content: space-between; align-items: baseline; }
.flow-head b { font: 700 16px/1.2 var(--f-body); }
.flow-head small { font: 600 12px/1 var(--f-body); color: var(--mute); }
.sankey { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sankey text { font-family: var(--f-body); }
.sankey .lbl { font-size: 12px; font-weight: 600; fill: rgba(255, 255, 255, .75); }
.sankey .val { font-family: var(--f-head); font-weight: 800; }
.flow-note { position: absolute; left: 32px; top: 598px; font: 500 12px/1.2 var(--f-body); color: var(--mute); }

/* ---------- automation ---------- */
#automation { padding-bottom: 80px; }
.auto-grid { display: grid; grid-template-columns: repeat(3, 384px); gap: 24px; margin-top: 76px; }
.auto, .wide { position: relative; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -18px rgba(11, 37, 69, .18); }
.auto { height: 440px; padding: 16px; }
.auto-prev { position: relative; height: 200px; border-radius: 18px; color: var(--ink); }
.auto-body { position: relative; padding: 20px 12px 0; }
.auto-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.auto-ic .ic { stroke-width: 2.2; }
.auto-body .auto-ic { position: absolute; left: 12px; top: 20px; }
.auto-body h3 { margin: 2px 0 0 58px; min-height: 44px; font: 700 20px/1.3 var(--f-head); }
.auto-body p { margin-top: 16px; font: 400 14.5px/1.55 var(--f-body); color: var(--sub); }

.prev-ac { background: linear-gradient(135deg, #E9F8FC, #F4FAFF); }
.ac-unit { position: absolute; left: 20px; top: 20px; width: 200px; height: 160px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #DDEFF5; }
.ac-unit small { font: 600 11px/1 var(--f-body); color: var(--sub); }
.ac-temp { margin-top: 10px; font: 800 48px/1 var(--f-head); }
.ac-temp sup { font: 700 16px/1 var(--f-body); color: var(--cyan); vertical-align: top; position: relative; top: 4px; margin-left: 2px; }
.modes { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; }
.modes span { padding: 5px 10px; border-radius: 8px; background: #EEF3F8; color: var(--sub); font: 700 11px/1.2 var(--f-body); }
.modes .on { background: var(--cyan); color: #fff; }
.ac-side { position: absolute; left: 236px; top: 28px; width: 100px; }
.toggle { display: block; width: 84px; height: 44px; margin-left: 8px; border-radius: 22px; background: var(--mint); position: relative; }
.toggle i { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.cap { display: block; margin: 8px 0 0 10px; font: 700 10px/1 var(--f-body); letter-spacing: 1.2px; color: var(--sub); }
.next { position: absolute; top: 82px; left: 0; width: 100px; height: 70px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #DDEFF5; padding: 10px; }
.next .ic { color: var(--cyan); font-size: 16px; }
.next b { position: absolute; left: 32px; top: 11px; font: 700 11px/1.2 var(--f-body); }
.next strong { display: block; margin-top: 6px; font: 800 20px/1 var(--f-head); }

.prev-lights { background: linear-gradient(135deg, #FFF6E5, #FFFBF3); padding: 16px 20px; }
.prev-lights > small { font: 600 11px/1 var(--f-body); color: var(--sub); }
.circuits { display: grid; grid-template-columns: repeat(8, 32px); gap: 8px; margin-top: 12px; }
.circuits span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: #fff; box-shadow: inset 0 0 0 1px #F0E2C4; color: #D9C7A3; }
.circuits span .ic { stroke-width: 1.8; }
.circuits span.on { background: var(--amber); color: #fff; box-shadow: 0 4px 12px -2px rgba(255, 181, 71, .55); }
.bulk { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bulk span { padding: 6px 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #F0E2C4; font: 700 11px/1.2 var(--f-body); }
.bulk span.dark { background: var(--ink); color: #fff; box-shadow: none; }
.bulk b { margin-left: auto; margin-right: 4px; font: 700 11px/1 var(--f-body); color: #C07A00; }

.prev-sched { background: linear-gradient(135deg, #EEF1FF, #F6F7FF); padding: 16px 16px 0; }
.hours { display: flex; padding-left: 76px; }
.hours span { width: 44px; font: 600 10px/1 var(--f-body); color: var(--sub); }
.job { display: flex; align-items: center; margin-top: 24px; }
.job small { width: 76px; font: 600 11px/1.2 var(--f-body); }
.job .track { position: relative; flex: none; width: 244px; height: 14px; border-radius: 7px; background: #fff; }
.job .track i { position: absolute; top: 0; height: 14px; border-radius: 7px; background: var(--c); }
.now { position: absolute; left: 214px; top: 34px; width: 2px; height: 154px; border-radius: 1px; background: var(--coral); }
.now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

.auto-wide { display: grid; grid-template-columns: repeat(2, 588px); gap: 24px; margin-top: 24px; }
.wide { height: 196px; display: grid; grid-template-columns: 280px 268px; gap: 0; padding: 20px 20px 20px 28px; }
.wide-copy { position: relative; padding-top: 8px; }
.wide-copy .auto-ic { position: absolute; left: 0; top: 8px; }
.wa-ic { color: #16A34A !important; background: rgba(37, 211, 102, .14) !important; }
.wide-copy h3 { margin: 2px 0 0 58px; min-height: 44px; font: 700 20px/1.3 var(--f-head); }
.wide-copy p { margin-top: 14px; max-width: 250px; font: 400 14.5px/1.55 var(--f-body); color: var(--sub); }
.chat { position: relative; height: 172px; border-radius: 16px; background: #ECE5DD; padding: 12px; top: -8px;}
.bub { border-radius: 12px; font: 500 11.5px/1.35 var(--f-body); color: var(--ink); }
.bub.in { position: relative; width: 220px; padding: 8px 10px 14px; background: #fff; }
.bub.in b { display: block; font: 700 11px/1.3 var(--f-body); color: #16A34A; margin-bottom: 3px; }
.bub.in time { position: absolute; right: 10px; bottom: 6px; font: 500 9px/1 var(--f-body); color: var(--sub); }
.bub.out { width: max-content; min-width: auto; margin: 10px 0 0 auto; padding: 12px 10px; white-space: nowrap; background: #D9FDD3; font-weight: 600; }
.chat small { position: absolute; left: 20px; bottom: 20px; font: 600 10px/1 var(--f-body); color: var(--sub); }
.reports { height: 156px; border-radius: 16px; background: #F6F8FB; padding: 10px; display: grid; gap: 6px; align-content: start; }
.reports li { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #E8EDF3; font: 600 12px/1 var(--f-body); }
.reports .ic { margin-left: auto; font-size: 16px; color: var(--sub); }
.type { width: 40px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 800 9.5px/1 var(--f-body); }
.type.pdf { color: var(--coral); background: rgba(255, 107, 107, .14); }
.type.xls { color: #16A34A; background: rgba(22, 163, 74, .14); }

/* ---------- hardware ---------- */
#hardware { padding-bottom: 60px; }
.steps { display: grid; grid-template-columns: repeat(4, 282px); gap: 24px; margin-top: 76px; }
.steps li {
  position: relative; height: 200px; padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 37, 63, .9), rgba(10, 26, 47, .8));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.steps li + li::before { content: ""; position: absolute; left: -24px; top: 99px; width: 24px; height: 2px; background: rgba(201, 154, 104, .7); }
.steps li + li::after { content: ""; position: absolute; left: -6px; top: 96px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.step-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.steps em { position: absolute; right: 38px; top: 30px; font: 700 14px/1 var(--f-mono); font-style: normal; color: rgba(255, 255, 255, .3); }
.steps h3 { margin-top: 20px; font: 700 19px/1.3 var(--f-head); }
.steps p { margin-top: 8px; font: 400 13.5px/1.55 var(--f-body); color: var(--mute); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); padding: 40px 0 60px; }
.cta-card {
  position: relative; overflow: hidden; height: 320px; border-radius: 32px; padding: 72px;
  display: grid; grid-template-columns: 1fr 254px; align-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 80px),
    linear-gradient(135deg, #1B2C44, #0C1B30);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 104, .25);
}
.cta-card .glow { left: var(--x); }
.cta-card .glow-gold { --o: .4; }
.cta-card .glow-sky { --o: .2; }
.cta-copy, .cta-action { position: relative; }
.cta-copy { align-self: start; }
.eyebrow-light { color: var(--gold2); }
.cta h2 { margin-top: 15px; font: 800 46px/1.08 var(--f-head); letter-spacing: -1px; }
.cta-copy p { margin-top: 18px; font: 400 16px/1.5 var(--f-body); color: var(--mute); }
.cta-action { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: -12px; }
.btn-xl { width: 240px; height: 60px; font-size: 17px; border-radius: 30px; }
.cta-action small { font: 500 13px/1.3 var(--f-body); color: var(--mute); white-space: nowrap; }

/* ---------- footer ---------- */
.footer { background: #020A15; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 580px 220px 220px 180px; }
.foot-brand > p { margin-top: 22px; max-width: 340px; font: 400 14px/1.6 var(--f-body); color: var(--mute); }
.product { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.product img { height: 76px; width: auto; }
.product small { display: block; font: 700 10px/1 var(--f-body); letter-spacing: 1.6px; color: var(--mute); }
.product b { display: block; margin-top: 5px; font: 700 14px/1.2 var(--f-body); }
.foot-col { display: flex; flex-direction: column; gap: 14px; }
.foot-col h4 { font: 700 11px/1.2 var(--f-body); letter-spacing: 1.6px; color: var(--gold); }
.foot-col a { font: 500 14px/1.2 var(--f-body); color: rgba(255, 255, 255, .7); transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 22px; padding: 14px 0 18px; border-top: 1px solid rgba(255, 255, 255, .06); font: 500 12px/1.4 var(--f-body); color: rgba(138, 155, 180, .8); }

/* ================= INTERMEDIATE WIDTHS =================
   The design is drawn at 1440. Between 768 and 1279 the desktop layout is scaled
   down proportionally so every coordinate stays exactly as designed. */
.m-only { display: none; }
@media (max-width: 1439px) { .float-ac { left: 370px; } }

.foot-links-m { display: none; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.foot-links-m a { font: 500 13.5px/1.2 var(--f-body); color: rgba(255, 255, 255, .7); }

/* ================= MOBILE (Landing – Mobile, 390) ================= */
@media (max-width: 767px) {
  .lp .wrap { padding-left: 24px; padding-right: 24px; max-width: 100%; }
  .glow { display: none; }
  .glow[style*="--mx"] { display: block; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); }
  .d-only { display: none !important; } .m-only { display: inline; }
  .bg-grid { background-size: 65px 65px; background-position: 0 0; }

  .nav { height: 84px; }
  .nav::after { display: none; }
  .nav .logo-divider, .nav .logo-tag { display: none; }
  .nav .logo-word { height: 26px; }
  .btn-nav { margin-left: auto; width: 96px; height: 40px; font-size: 14px; }
  .menu-btn {
    display: grid; align-content: center; justify-items: center; gap: 4px; width: 40px; height: 40px; margin-left: 10px;
    border: 0; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  }
  .menu-btn span { width: 18px; height: 2px; border-radius: 1px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 4px); transform: translateY(-6px); left: 16px; right: 16px; margin: 0; padding: 10px;
    flex-direction: column; gap: 2px; border-radius: 18px;
    background: rgba(10, 26, 47, .97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow-float);
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 14px; border-radius: 12px; font-size: 16px; color: #fff; }
  .nav-links a:active { background: rgba(255, 255, 255, .06); }

  .hero { min-height: 0; }
  .hero-inner { display: flex; flex-direction: column; align-items: flex-start; padding-top: 100px; padding-bottom: 48px; }
  .hero-copy { display: contents; }
  .hero-visual, .hero-ctas, .hero-sub { align-self: stretch; }
  .trust-label, .trust-row { order: 2; }
  .pill { height: auto; padding: 7px 12px; gap: 8px; font-size: 10.5px; letter-spacing: 1px; }
  .pill .dot { width: 7px; height: 7px; box-shadow: none; }
  .hero-title { margin-top: 18px; font-size: 44px; line-height: 1.04; letter-spacing: -1px; }
  .hero-sub { margin-top: 16px; min-height: 0; font-size: 15.5px; }
  .hero-ctas { flex-direction: column; gap: 12px; margin-top: 24px; }
  .hero-ctas .btn { width: 100%; height: 54px; }
  .hero-visual { margin-top: 32px; }
  .dash { width: 100%; height: auto; border-radius: 22px; padding-bottom: 14px; }
  .dash-head { height: 64px; padding: 0 18px; border: 0; }
  .traffic { display: none; }
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
  .kpi { height: 70px; padding: 12px; border-radius: 14px; }
  .kpi-ic { position: absolute; width: 26px; height: 26px; font-size: 14px; }
  .kpi em { display: none; }
  .kpi small { margin: 0 0 0 34px; font-size: 9px; letter-spacing: .8px; }
  .kpi b { margin: 7px 0 0 34px; font-size: 20px; gap: 3px; }
  .kpi u { font-size: 10px; }
  .dash-chart { margin: 8px 14px 0; height: 136px; border-radius: 14px; }
  .chart-head { left: 14px; top: 12px; }
  .chart-head b { font-size: 12px; }
  .legend, .chart-x, .dash-foot, .float-ac { display: none; }
  .chart { top: 34px; height: calc(100% - 34px); }
  .float-wa { left: auto; right: 0; top: auto; bottom: -26px; width: 268px; padding: 12px; border-radius: 16px; }
  .float-wa .float-ic { width: 40px; height: 40px; }
  .float-wa b { font-size: 12.5px; } .float-wa small { font-size: 11px; }
  .trust-label { margin-top: 56px; font-size: 10.5px; }
  .trust-row { gap: 8px 14px; margin-top: 10px; }
  .trust-row li { font-size: 13px; }
  .trust-row li + li::before { display: none; }

  .stats { height: auto; padding: 8px 0 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding-top: 0; }
  .stat { height: 102px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
  .stat + .stat::before { display: none; }
  .stat b { font-size: 32px; }
  .stat span { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
  .stat small { display: none; }

  .sec { padding: 108px 0 56px; }   /* clears the 84px fixed nav when a card stops at the top */
  .eyebrow { font-size: 12px; letter-spacing: 2.2px; }
  .sec h2 { margin-top: 14px; font-size: 34px; line-height: 1.08; letter-spacing: -.6px; }
  .br-d { display: none; }
  .sec-head { display: block; }
  .sec-lead { margin-top: 14px; font-size: 15px; }

  .mod-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .mod { height: auto; min-height: 96px; padding: 20px 16px 20px 84px; border-radius: 20px; }
  .mod::before, .spark, .tags { display: none; }
  .mod-ic { position: absolute; left: 16px; top: 22px; }
  .mod h3 { margin: 0; font-size: 18px; }
  .mod p { margin-top: 4px; font-size: 13px; line-height: 1.45; }

  #insights { height: auto; padding: 108px 0 56px; }
  .insights { display: flex; flex-direction: column; }
  .ins-copy { display: contents; }
  .ins-copy .sec-lead { margin-top: 14px; }
  .flow { order: 4; width: 100%; height: 350px; margin-top: 20px; border-radius: 22px; }
  .flow-head { left: 18px; right: 18px; top: 16px; }
  .flow-head b { font-size: 13px; } .flow-head small { font-size: 11px; }
  .flow-note { display: none; }
  .sankey .lbl { font-size: 11px; }
  .points { order: 5; margin-top: 20px; gap: 14px; }
  .points li { font-size: 14.5px; gap: 14px; }
  .pt-ic { width: 40px; height: 40px; font-size: 20px; }

  /* minmax(0, 1fr): the column width comes from the screen only — never from the scaled
     preview inside it (a plain 1fr let the preview push the card wider than the phone). */
  .auto-grid, .auto-wide { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
  .auto, .wide { min-width: 0; }
  .auto-wide { margin-top: 14px; }
  .auto { height: auto; padding: 0; border-radius: 20px; }
  /* Keep the desktop mini-designs on phones: the 352×200 preview is drawn at its design
     size and scaled to the card width (--prev-zoom is set by JS). */
  .auto-prev { width: auto; margin: 13px; zoom: var(--prev-zoom, .9); }
  .auto-body, .wide-copy { padding: 18px 16px 20px 68px; position: relative; }
  .auto-body .auto-ic, .wide-copy .auto-ic { left: 16px; top: 18px; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  .auto-body h3, .wide-copy h3 { margin: 0; min-height: 0; font-size: 16.5px; }
  .auto-body p, .wide-copy p { margin-top: 4px; max-width: none; font-size: 13px; line-height: 1.45; }
  .wide { height: auto; display: block; padding: 0; border-radius: 20px; }
  .wide-copy { padding-bottom: 14px; }
  .chat { margin: 0px 12px 2px; }
  .reports { margin: 0px 12px 12px; }

  #hardware { padding-bottom: 56px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 20px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 23px; top: 30px; bottom: 70px; width: 2px; background: rgba(201, 154, 104, .4); }
  .steps li { height: 96px; padding: 6px 0 0 64px; background: none; box-shadow: none; border-radius: 0; }
  .steps li + li::before, .steps li + li::after { display: none; }
  .step-ic { position: absolute; left: 0; top: 6px; background: var(--float); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
  .steps em { position: static; display: inline; font: 700 16.5px/1.3 var(--f-head); color: #fff; margin-right: 6px; }
  .steps h3 { display: inline; margin: 0; font-size: 16.5px; }
  .steps p { margin-top: 4px; font-size: 13px; line-height: 1.45; max-width: 270px; }

  .cta { padding: 8px 0 48px; }
  .cta-card { height: auto; display: block; padding: 32px 24px 26px; border-radius: 26px; background: linear-gradient(135deg, #1B2C44, #0C1B30); }
  .cta-card .glow-sky { display: none; }
  .cta-card .glow-gold { display: block; left: 140px; top: -100px; width: 320px; height: 280px; }
  .eyebrow-light { font-size: 11px; letter-spacing: 2px; }
  .cta h2 { margin-top: 12px; font-size: 30px; line-height: 1.1; letter-spacing: -.5px; }
  .cta-copy p { margin-top: 14px; font-size: 14px; }
  .cta-action { align-items: stretch; gap: 14px; margin-top: 26px; }
  .btn-xl { width: 100%; height: 54px; font-size: 16px; }
  .cta-action small { font-size: 12px; white-space: normal; }

  .footer { padding-top: 40px; text-align: center; }   /* phone footer: everything centred */
  .foot-grid { display: block; }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-brand .logo-word { height: 28px; }
  .foot-brand .logo { gap: 12px; }
  .foot-brand .logo-divider { height: 31px; }
  .foot-brand .logo-tag { font-size: 9px; }
  .foot-brand > p { margin-top: 18px; max-width: 300px; font-size: 13.5px; }
  .product { flex-direction: column; gap: 10px; text-align: center; }   /* logo above, text below */
  .product img { height: 64px; }
  .foot-col { display: none; }
  .foot-grid::after {
    content: ""; display: block; height: 1px; margin-top: 18px; background: rgba(255, 255, 255, .08);
  }
  .foot-links-m { display: flex; justify-content: center; padding-top: 0; }
  .foot-bottom { margin-top: 0; border: 0; padding: 14px 0 32px; font-size: 11.5px; line-height: 1.5; }
}
