/* ============================================================
   Warehouse by alicia — Landing
   Brand: navy #0f2661 · teal #1d6381 · teal-2 #307d8a · coral #fe5e46
   ============================================================ */
:root {
    --navy: #0f2661;
    --navy-2: #0b1c4a;
    --ink: #0a1633;
    --teal: #1d6381;
    --teal-2: #307d8a;
    --teal-3: #5aa9b8;
    --coral: #fe5e46;
    --coral-2: #ff8a6e;
    --paper: #f3f6f8;
    --paper-2: #e8eef2;
    --card: #ffffff;
    --muted: #5b6b86;
    --line: rgba(15, 38, 97, .10);
    --line-2: rgba(15, 38, 97, .16);
    --ok: #10b981;
    --warn: #f59e0b;
    --info: #3b82f6;
    --violet: #8b5cf6;

    --f-display: "Chakra Petch", "IBM Plex Sans Thai", system-ui, sans-serif;
    --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
    --f-mono: "IBM Plex Mono", "IBM Plex Sans Thai", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow: 0 1px 2px rgba(10, 22, 51, .06), 0 8px 24px rgba(10, 22, 51, .08);
    --shadow-lg: 0 2px 6px rgba(10, 22, 51, .08), 0 30px 60px -20px rgba(10, 22, 51, .35);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--ink);
    background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
[data-lucide] { width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0; }
svg.lucide { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1;
    padding: .95em 1.4em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -8px rgba(254, 94, 70, .65); }
.btn-coral:hover { box-shadow: 0 16px 30px -10px rgba(254, 94, 70, .8); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 38, 97, .7); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--navy); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-display); font-size: .9rem;
    font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); }
.sec { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: 14px; color: var(--navy); }
.sec-head h2 em { font-style: normal; color: var(--coral); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(243, 246, 248, .86); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
    white-space: nowrap;
    font-size: .95rem; font-weight: 500; color: var(--navy); padding: 8px 14px; border-radius: 999px;
    transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(29, 99, 129, .08); color: var(--teal); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: .75em 1.2em; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; padding: 6px; }

@media (max-width: 1020px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open { background: var(--paper); box-shadow: var(--shadow); }
    .nav.open .nav-in { flex-wrap: wrap; height: auto; padding-block: 16px; }
    .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
    .nav.open .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav.open .nav-cta { display: flex; order: 4; width: 100%; padding-top: 12px; }
    .nav.open .nav-cta .btn { flex: 1; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 140px; padding-bottom: 60px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-bg::after {
    content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(48, 125, 138, .22), transparent 62%);
}
.hero-glow { position: absolute; width: 520px; height: 520px; left: -200px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 94, 70, .14), transparent 65%); }

.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .88rem; color: var(--navy);
}
.hero-badge b { font-family: var(--f-mono); font-size: .72rem; background: var(--navy); color: #fff; padding: 4px 9px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); margin-top: 22px; color: var(--navy); font-weight: 700; line-height: 1.12; }
.hero h1 .hl { position: relative; color: var(--teal); white-space: nowrap; }
.hero h1 .hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em; z-index: -1;
    background: repeating-linear-gradient(90deg, var(--coral) 0 3px, transparent 3px 5px, var(--coral) 5px 6px, transparent 6px 10px);
    opacity: .55;
}
.hero-sub { margin-top: 22px; font-size: 1.14rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--navy); font-weight: 500; }
.hero-proof i, .hero-proof svg { color: var(--ok); }

/* Hero visual stage */
.stage { position: relative; min-height: 540px; }
.win {
    position: absolute; left: 0; top: 20px; width: 94%; border-radius: 18px; background: #fff; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transform-origin: left center;
    animation: winIn 1.1s cubic-bezier(.2, .8, .2, 1) both .15s;
}
@keyframes winIn { from { opacity: 0; transform: perspective(1600px) rotateY(-20deg) rotateX(8deg) translateY(30px); } }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dde6; }
.win-bar i:nth-child(1) { background: #ff6159; } .win-bar i:nth-child(2) { background: #ffbd2e; } .win-bar i:nth-child(3) { background: #28c941; }
.win-url { margin-left: 14px; flex: 1; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app { display: grid; grid-template-columns: 52px 1fr; min-height: 400px; }
.app-side { background: linear-gradient(180deg, var(--navy), #13306f); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 16px; color: rgba(255, 255, 255, .55); font-size: 1.05rem; }
.app-side .logo-dot { width: 30px; height: 30px; border-radius: 9px; background: #fff url(../img/app-192.png) center/86% no-repeat; margin-bottom: 6px; }
.app-side .on { color: #fff; background: rgba(255, 255, 255, .14); border-radius: 9px; padding: 6px; }
.app-side span { padding: 6px; display: inline-flex; }
.app-main { padding: 14px 16px; background: #f6f8fb; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-top .ctx { font-size: .7rem; padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--navy); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.app-top .scanbtn { margin-left: auto; font-size: .7rem; padding: 6px 11px; border-radius: 8px; background: var(--teal); color: #fff; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; box-shadow: 0 4px 12px rgba(29, 99, 129, .35); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.kpi small { display: block; font-size: .6rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-family: var(--f-display); font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.kpi .tr { font-size: .56rem; font-family: var(--f-mono); }
.kpi .up { color: var(--ok); } .kpi .dn { color: var(--coral); }
.app-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.panel h5 { margin: 0 0 8px; font-family: var(--f-body); font-size: .68rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.panel h5 small { font-weight: 400; color: var(--muted); font-size: .58rem; display: inline-flex; gap: 8px; align-items: center; }
.lg { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 3px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 118px; padding-top: 6px; border-bottom: 1px dashed var(--line-2); }
.bars .d { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bars .d i { flex: 1; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.bars .d i:first-child { background: var(--teal); } .bars .d i:last-child { background: var(--coral); opacity: .85; }
@keyframes grow { from { transform: scaleY(0); } }
.bars-x { display: flex; gap: 6px; margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; font-size: .52rem; color: var(--muted); font-family: var(--f-mono); }
.exp-list { display: flex; flex-direction: column; gap: 6px; }
.exp-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .6rem; padding: 6px 7px; border-radius: 7px; background: #f6f8fb; }
.exp-item b { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-item .mono { color: var(--muted); font-size: .54rem; }
.pill { font-size: .54rem; font-weight: 600; padding: 2px 7px; border-radius: 99px; align-self: center; grid-row: span 2; white-space: nowrap; }
.pill.red { background: #ffe8e4; color: #d63a22; } .pill.amb { background: #fff3d6; color: #b06f00; } .pill.grn { background: #dcf7ec; color: #0a8a5c; }
.pill.blu { background: #e2ecff; color: #2d63d8; } .pill.gry { background: #edf0f4; color: #5b6b86; } .pill.vio { background: #eee7ff; color: #6d3fd9; }

/* Phone */
.phone {
    position: absolute; right: 0; bottom: -10px; width: 214px; aspect-ratio: 9 / 18.6; border-radius: 34px; padding: 9px;
    background: linear-gradient(145deg, #1b2440, #0a1026); box-shadow: 0 40px 70px -24px rgba(10, 22, 51, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
    animation: floatIn 1.1s cubic-bezier(.2, .8, .2, 1) both .45s, bob 6s ease-in-out infinite 1.6s;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(60px); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.phone-scr { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #0c1430; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 64px; height: 18px; border-radius: 99px; background: #000; z-index: 3; }
.cam { position: relative; flex: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #3a4a6a, #121a33 70%); }
.cam-card { width: 58%; aspect-ratio: 1; background: #fff; border-radius: 8px; padding: 6px; transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.cam-frame { position: absolute; width: 74%; aspect-ratio: 1; }
.cam-frame::before, .cam-frame::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--coral); border-radius: 14px; clip-path: polygon(0 0, 26% 0, 26% 4%, 4% 4%, 4% 26%, 0 26%, 0 74%, 4% 74%, 4% 96%, 26% 96%, 26% 100%, 74% 100%, 74% 96%, 96% 96%, 96% 74%, 100% 74%, 100% 26%, 96% 26%, 96% 4%, 74% 4%, 74% 0, 100% 0, 100% 100%, 0 100%); }
.cam-frame::after { border: 0; clip-path: none; }
.scanline { position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; background: var(--coral); box-shadow: 0 0 14px 3px rgba(254, 94, 70, .7); border-radius: 2px; animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 50% { top: 88%; } }
.cam-hint { position: absolute; top: 36px; left: 0; right: 0; text-align: center; font-size: .6rem; color: rgba(255, 255, 255, .8); }
.cam-modes { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.cam-modes span { font-size: .52rem; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; }
.cam-modes span.on { background: var(--coral); }
.sheet { background: #fff; border-radius: 16px 16px 0 0; padding: 12px 12px 14px; animation: sheetUp 5s ease-in-out infinite; }
@keyframes sheetUp { 0%, 30% { transform: translateY(100%); } 42%, 90% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.sheet .ok { display: flex; align-items: center; gap: 6px; font-size: .6rem; color: var(--ok); font-weight: 600; }
.sheet b { display: block; font-size: .78rem; color: var(--navy); line-height: 1.35; margin-top: 2px; }
.sheet .mono { font-size: .56rem; color: var(--muted); }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.sheet-grid div { background: #f3f6f9; border-radius: 7px; padding: 5px 7px; font-size: .52rem; color: var(--muted); line-height: 1.35; }
.sheet-grid div strong { display: block; font-size: .7rem; color: var(--navy); font-family: var(--f-display); }

/* Lot label (floating) */
.lot-label {
    position: absolute; left: 4%; bottom: -6px; width: 250px; aspect-ratio: 50 / 30; background: #fff; border-radius: 6px;
    padding: 10px 11px; box-shadow: 0 24px 50px -18px rgba(10, 22, 51, .5); border: 1px solid #e6ebf1;
    display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto 1fr auto; gap: 2px 8px; transform: rotate(-4deg);
    animation: labelIn 1s cubic-bezier(.2, .8, .2, 1) both .8s;
}
@keyframes labelIn { from { opacity: 0; transform: rotate(-14deg) translateY(40px); } }
.lot-label::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); translate: 0 -50%; box-shadow: inset -2px 0 3px rgba(0, 0, 0, .06); }
.lot-label .nm { font-weight: 700; font-size: .72rem; line-height: 1.25; color: #111; grid-column: 1; }
.lot-label .meta { font-size: .58rem; line-height: 1.45; color: #333; grid-column: 1; }
.lot-label .meta .mono { font-weight: 600; }
.lot-label .qr { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; }
.lot-label .bc { grid-column: 1 / -1; height: 26px; }
.lot-label .bc img { width: 100%; height: 100%; object-fit: fill; }
.lot-label .tag { position: absolute; top: -10px; right: 14px; font-family: var(--f-mono); font-size: .56rem; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; }

.chip-float {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .76rem; color: var(--navy); white-space: nowrap;
    animation: floatIn 1s cubic-bezier(.2, .8, .2, 1) both 1s, bob 7s ease-in-out infinite 2s;
}
.chip-float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.chip-float small { display: block; color: var(--muted); font-size: .64rem; line-height: 1.2; }
.chip-float b { line-height: 1.25; display: block; }
.chip-fefo { top: -4px; right: 16%; }
.chip-fefo .ic { background: var(--ok); }

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .stage { min-height: 520px; max-width: 720px; margin: 20px auto 0; width: 100%; }
}
@media (max-width: 640px) {
    .hero { padding-top: 112px; }
    .stage { min-height: 0; padding-bottom: 290px; }
    .win { position: relative; width: 100%; transform: none; top: 0; }
    .app { grid-template-columns: 38px 1fr; min-height: 0; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .app-row { grid-template-columns: 1fr; }
    .app-row .panel:last-child { display: none; }
    .phone { width: 170px; right: 4px; bottom: 0; }
    .lot-label { width: 200px; left: 0; bottom: 40px; grid-template-columns: 1fr 50px; padding: 8px; }
    .lot-label .qr { width: 50px; height: 50px; }
    .lot-label .bc { height: 20px; }
    .chip-fefo { top: auto; bottom: 238px; left: 0; right: auto; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: #cfe3ea; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); }
.ticker-track { display: flex; gap: 42px; width: max-content; padding-block: 15px; animation: tick 48s linear infinite; }
.ticker-track span { font-family: var(--f-mono); font-size: .84rem; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: .02em; }
.ticker-track span b { color: #fff; font-weight: 500; }
.ticker-track span i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Pain → gain strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 28px 26px; }
.stat b { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy); display: block; line-height: 1.1; }
.stat b sup { font-size: .5em; color: var(--coral); top: -.8em; margin-left: 2px; }
.stat p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   FLOW (lot lifecycle)
   ============================================================ */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flow::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal-3) 0 8px, transparent 8px 14px);
}
.flow-step { position: relative; text-align: center; }
.flow-ic {
    position: relative; width: 88px; height: 88px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center;
    font-size: 2rem; color: #fff; box-shadow: 0 18px 30px -14px currentColor;
}
.flow-ic svg { color: #fff; }
.flow-code { position: absolute; bottom: -10px; left: 50%; translate: -50% 0; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; background: #fff; color: var(--navy); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.flow-step h4 { margin-top: 24px; font-size: 1.1rem; color: var(--navy); }
.flow-step p { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 960px) {
    .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .flow::before { display: none; }
}
@media (max-width: 520px) {
    .flow { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FEATURES BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.fcard {
    position: relative; grid-column: span 4; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
    overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(29, 99, 129, .3); }
.fcard.w6 { grid-column: span 6; }
.fcard.w8 { grid-column: span 8; }
.fcard.w12 { grid-column: span 12; }
.fcard .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(29, 99, 129, .1); color: var(--teal); }
.fcard .fi.c { background: rgba(254, 94, 70, .12); color: var(--coral); }
.fcard .fi.n { background: rgba(15, 38, 97, .08); color: var(--navy); }
.fcard h3 { margin-top: 18px; font-size: 1.28rem; color: var(--navy); }
.fcard > p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .93rem; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 14px; border-radius: 4px; background: rgba(16, 185, 129, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a8a5c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.ticks.cols2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.fcard .tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tagrow span { font-family: var(--f-mono); font-size: .72rem; padding: 4px 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); color: var(--navy); }
.fcard.dark { background: linear-gradient(150deg, var(--navy), #163a7a 70%, var(--teal)); color: #fff; border-color: transparent; }
.fcard.dark h3 { color: #fff; }
.fcard.dark > p, .fcard.dark .ticks li { color: rgba(255, 255, 255, .82); }
.fcard.dark .fi { background: rgba(255, 255, 255, .12); color: #fff; }
.fcard.dark .tagrow span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }

/* org tree mini */
.orgtree { margin-top: 20px; display: grid; gap: 8px; font-size: .8rem; }
.orgtree .n { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.orgtree .n b { font-weight: 600; color: var(--navy); }
.orgtree .n small { color: var(--muted); font-family: var(--f-mono); font-size: .68rem; }
.orgtree .l1 { margin-left: 22px; } .orgtree .l2 { margin-left: 44px; }
.orgtree .n svg { color: var(--teal); }

/* fefo mini */
.fefo { margin-top: 18px; display: grid; gap: 7px; }
.fefo-row { display: grid; grid-template-columns: 96px 1fr 58px; align-items: center; gap: 10px; font-size: .78rem; }
.fefo-row .mono { color: var(--navy); font-size: .72rem; }
.fefo-bar { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.fefo-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--coral-2)); }
.fefo-row small { color: var(--muted); text-align: right; }
.fcard.dark .fefo-row .mono { color: #fff; }
.fcard.dark .fefo-bar { background: rgba(255, 255, 255, .12); }
.fcard.dark .fefo-row small { color: rgba(255, 255, 255, .7); }

/* counting mini */
.devices { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.dev { flex: 1; min-width: 110px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.dev small { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--muted); }
.dev small i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.dev b { font-family: var(--f-display); font-size: 1.3rem; color: var(--navy); display: block; margin-top: 2px; }
@keyframes pulse { 50% { opacity: .25; } }

@media (max-width: 1000px) {
    .fcard, .fcard.w6, .fcard.w8 { grid-column: span 6; }
    .fcard.w12 { grid-column: span 12; }
}
@media (max-width: 680px) {
    .fcard, .fcard.w6, .fcard.w8, .fcard.w12 { grid-column: span 12; }
    .ticks.cols2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SCAN (dark)
   ============================================================ */
.dark-sec { background: var(--ink); color: #e6eef7; overflow: hidden; isolation: isolate; }
.dark-sec::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.dark-sec::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(29, 99, 129, .45), transparent 65%); }
.dark-sec .sec-head h2 { color: #fff; }
.dark-sec .sec-head p { color: #9fb2c9; }
.dark-sec .eyebrow { color: var(--teal-3); }

.scan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.scard .num { font-family: var(--f-mono); font-size: .75rem; color: var(--coral); letter-spacing: .1em; }
.scard h3 { font-size: 1.3rem; color: #fff; margin-top: 8px; }
.scard p { color: #9fb2c9; font-size: .94rem; margin-top: 8px; }
.scard .ill { height: 170px; margin: 0 0 20px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); display: grid; place-items: center; position: relative; overflow: hidden; }
.scard .tagrow { margin-top: auto; padding-top: 16px; }
.scard .tagrow span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #cfe3ea; }
.ill svg { width: 88%; height: 88%; }

.resolve { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 24px 28px; }
.resolve h4 { font-size: 1.15rem; color: #fff; max-width: 220px; }
.resolve-chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.resolve-chain span { font-family: var(--f-mono); font-size: .78rem; padding: 7px 12px; border-radius: 9px; background: rgba(90, 169, 184, .12); border: 1px solid rgba(90, 169, 184, .3); color: #d5ecf1; }
.resolve-chain em { color: var(--coral); font-style: normal; }
@media (max-width: 940px) { .scan-grid { grid-template-columns: 1fr; } .resolve { grid-template-columns: 1fr; } .resolve h4 { max-width: none; } }

/* ============================================================
   LABELS
   ============================================================ */
.label-sec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.label-board {
    position: relative; min-height: 460px; border-radius: var(--r-lg); padding: 30px;
    background: linear-gradient(135deg, #dfe8ee, #eef3f6); border: 1px solid var(--line); overflow: hidden;
}
.label-board::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 38, 97, .12) 1px, transparent 1px); background-size: 18px 18px; }
.lbl { position: absolute; background: #fff; border-radius: 5px; box-shadow: 0 18px 36px -16px rgba(10, 22, 51, .45); color: #111; font-family: var(--f-body); }
.lbl .mono { font-family: var(--f-mono); }
.lbl .sz { position: absolute; top: -22px; left: 0; font-family: var(--f-mono); font-size: .66rem; color: var(--teal); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
/* pallet 100x75 */
.lbl-pallet { width: 300px; aspect-ratio: 100 / 75; left: 6%; top: 44px; padding: 14px; display: grid; grid-template-columns: 1fr 96px; grid-template-rows: auto auto 1fr auto; gap: 4px 12px; transform: rotate(-3deg); }
.lbl-pallet .co { grid-column: 1 / -1; display: flex; justify-content: space-between; border-bottom: 1.5px solid #111; padding-bottom: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .04em; }
.lbl-pallet .nm { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.lbl-pallet .meta { font-size: .68rem; line-height: 1.55; }
.lbl-pallet .qr { grid-column: 2; grid-row: 2 / span 2; width: 96px; height: 96px; }
.lbl-pallet .bc { grid-column: 1 / -1; height: 42px; }
.lbl-pallet .bc img, .lbl-small .bc img { width: 100%; height: 100%; object-fit: fill; }
.lbl-pallet .bct { grid-column: 1 / -1; text-align: center; font-size: .62rem; margin-top: -2px; letter-spacing: .12em; }
/* location */
.lbl-loc { width: 170px; aspect-ratio: 60 / 40; right: 7%; top: 60px; padding: 10px; display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; transform: rotate(4deg); background: #fff8e8; border-left: 6px solid #f59e0b; }
.lbl-loc .k { font-size: .56rem; color: #6b5a2c; }
.lbl-loc .code { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; line-height: 1; margin-top: 2px; }
.lbl-loc .qr { width: 64px; height: 64px; }
/* small 50x30 */
.lbl-small { width: 200px; aspect-ratio: 50 / 30; right: 12%; bottom: 44px; padding: 8px 9px; display: grid; grid-template-columns: 1fr 50px; grid-template-rows: auto 1fr auto; gap: 1px 7px; transform: rotate(-2deg); }
.lbl-small .nm { font-size: .64rem; font-weight: 700; line-height: 1.25; }
.lbl-small .meta { font-size: .52rem; line-height: 1.45; }
.lbl-small .qr { grid-column: 2; grid-row: 1 / span 2; width: 50px; height: 50px; }
.lbl-small .bc { grid-column: 1 / -1; height: 20px; }
/* A4 sheet */
.lbl-sheet { width: 150px; aspect-ratio: 210 / 297; left: 12%; bottom: -60px; padding: 10px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; transform: rotate(5deg); }
.lbl-sheet i { aspect-ratio: 70 / 37; border: 1px dashed #cdd6e0; border-radius: 3px; background: linear-gradient(90deg, #111 0 4%, transparent 4% 8%, #111 8% 10%, transparent 10% 14%, #111 14% 19%, transparent 19% 22%, #111 22% 24%, transparent 24%) 12% 78% / 55% 26% no-repeat, linear-gradient(#e8edf3, #e8edf3) 12% 22% / 60% 14% no-repeat; }
.lbl-sheet i:nth-child(-n+5) { border-style: solid; border-color: #b9c6d3; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sizes span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .86rem; color: var(--navy); }
.sizes span b { font-family: var(--f-mono); font-weight: 600; font-size: .8rem; }
.printers { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--f-display); font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.printers span { opacity: .75; }
@media (max-width: 980px) { .label-sec { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .label-board { min-height: 520px; }
    .lbl-pallet { left: 50%; translate: -50% 0; width: 270px; top: 40px; }
    .lbl-loc { right: 4%; top: auto; bottom: 150px; }
    .lbl-small { right: auto; left: 4%; bottom: 40px; }
    .lbl-sheet { display: none; }
}

/* ============================================================
   ENGINE / LEDGER
   ============================================================ */
.engine { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.ledger { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.ledger-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ledger-head .pic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--teal); font-size: 1.3rem; }
.ledger-head b { display: block; color: var(--navy); font-family: var(--f-display); font-size: 1.05rem; line-height: 1.3; }
.ledger-head small { color: var(--muted); font-size: .8rem; }
.ledger-head .bal { margin-left: auto; text-align: right; }
.ledger-head .bal b { font-size: 1.5rem; }
.tbl-scroll { overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.ledger th { text-align: left; font-weight: 500; color: var(--muted); font-size: .74rem; padding: 10px 20px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.mono { font-size: .78rem; color: var(--navy); }
.ledger .q { font-family: var(--f-mono); font-weight: 600; text-align: right; }
.ledger .q.p { color: #0a8a5c; } .ledger .q.m { color: #d63a22; }
.ledger .b { font-family: var(--f-mono); text-align: right; color: var(--navy); }
.ledger tr.new td { animation: rowIn 1s ease both; background: rgba(254, 94, 70, .05); }
@keyframes rowIn { from { background: rgba(254, 94, 70, .22); } }
.rules { display: grid; gap: 14px; }
.rule { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.rule .ri { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.2rem; }
.rule h4 { font-size: 1.04rem; color: var(--navy); }
.rule p { font-size: .9rem; color: var(--muted); margin-top: 3px; line-height: 1.6; }
@media (max-width: 980px) { .engine { grid-template-columns: 1fr; } }

/* ============================================================
   REPLENISH + REPORTS
   ============================================================ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.mock-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mock-h h3 { font-size: 1.3rem; color: var(--navy); }
.mock-h p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.mock-h .fi { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(254, 94, 70, .12); color: var(--coral); }
.rep-list { display: grid; gap: 8px; }
.rep { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: #f7f9fb; border: 1px solid var(--line); font-size: .86rem; }
.rep b { color: var(--navy); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep small { color: var(--muted); font-family: var(--f-mono); font-size: .7rem; }
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--paper-2); }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.meter u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--navy); opacity: .5; }
.meter u.mx { background: var(--teal); opacity: .8; }
.rep .pill { grid-row: auto; font-size: .7rem; padding: 3px 9px; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.status-row .pill { grid-row: auto; font-size: .72rem; padding: 4px 10px; }

.chart-wrap { position: relative; height: 180px; margin-top: 4px; }
.chart-wrap svg { width: 100%; height: 100%; }
.rpt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.rpt-grid span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; background: #f7f9fb; border: 1px solid var(--line); font-size: .86rem; color: var(--navy); }
.rpt-grid span svg { color: var(--teal); }
.rpt-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 980px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rep { grid-template-columns: 1fr auto; } .rep .meter { grid-column: 1 / -1; grid-row: 2; } .rpt-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SECURITY / ADMIN
   ============================================================ */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.mini .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(29, 99, 129, .1); color: var(--teal); }
.mini h4 { margin-top: 14px; font-size: 1.05rem; color: var(--navy); }
.mini p { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.audit { grid-column: span 2; grid-row: span 2; background: var(--navy); color: #fff; border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.audit h4 { font-size: 1.2rem; }
.audit > p { color: rgba(255, 255, 255, .72); font-size: .92rem; margin-top: 6px; }
.diff { margin-top: 18px; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 14px; font-family: var(--f-mono); font-size: .78rem; display: grid; gap: 8px; }
.diff .dh { color: rgba(255, 255, 255, .55); font-size: .7rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.diff .dr { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.diff .dr > span:first-child { color: rgba(255, 255, 255, .6); }
.diff del { color: #ff9c8a; text-decoration: line-through; }
.diff ins { color: #6ee7b7; text-decoration: none; }
.update-steps { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.update-steps span { font-size: .72rem; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #d7e6f3; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } .audit { grid-column: auto; grid-row: auto; } .diff .dr { grid-template-columns: 1fr; gap: 2px; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-sec { background: linear-gradient(180deg, var(--paper) 0%, #e4edf2 100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; background: rgba(29, 99, 129, .1); color: var(--teal); }
.plan h3 { font-size: 1.55rem; color: var(--navy); }
.plan .for { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .cur { font-family: var(--f-display); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.price .amt { font-family: var(--f-display); font-size: 3.4rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-size: .95rem; }
.avg { margin-top: 8px; font-size: .86rem; color: var(--teal); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.branch-cap { margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line-2); }
.branch-cap .dots { display: flex; gap: 4px; }
.branch-cap .dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--teal); }
.branch-cap .dots i.off { background: var(--paper-2); }
.branch-cap b { font-family: var(--f-display); color: var(--navy); font-size: 1rem; }
.plan .ticks { margin: 22px 0 28px; }
.plan .btn { margin-top: auto; }
.plan.featured { background: linear-gradient(160deg, var(--navy) 0%, #173f82 60%, var(--teal) 130%); color: #fff; border-color: transparent; box-shadow: 0 40px 70px -30px rgba(15, 38, 97, .7); transform: translateY(-12px); }
.plan.featured:hover { transform: translateY(-18px); }
.plan.featured h3, .plan.featured .price .cur, .plan.featured .price .amt, .plan.featured .branch-cap b { color: #fff; }
.plan.featured .for, .plan.featured .price .per { color: rgba(255, 255, 255, .72); }
.plan.featured .avg { color: #9fe0ec; }
.plan.featured .plan-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.plan.featured .ticks li { color: rgba(255, 255, 255, .92); }
.plan.featured .ticks li::before { background-color: rgba(110, 231, 183, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan.featured .branch-cap { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.plan.featured .branch-cap .dots i { background: var(--coral); }
.plan.featured .branch-cap .dots i.off { background: rgba(255, 255, 255, .15); }
.ribbon { position: absolute; top: -14px; right: 24px; background: var(--coral); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; box-shadow: 0 10px 20px -8px rgba(254, 94, 70, .8); display: inline-flex; align-items: center; gap: 6px; }
.plan-note { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); font-size: .92rem; }
.plan-note span { display: inline-flex; align-items: center; gap: 8px; }
.plan-note svg { color: var(--teal); }
@media (max-width: 980px) {
    .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .plan.featured { transform: none; } .plan.featured:hover { transform: translateY(-6px); }
}

/* compare table */
.compare { margin-top: 64px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.compare-h { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-h h3 { font-size: 1.3rem; color: var(--navy); }
.compare-h small { color: var(--muted); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--f-display); font-size: 1.02rem; color: var(--navy); background: #f8fafc; }
.compare thead th.hl, .compare td.hl { background: rgba(29, 99, 129, .06); }
.compare tbody tr.grp td { background: var(--paper); font-family: var(--f-display); font-weight: 600; color: var(--teal); font-size: .86rem; letter-spacing: .02em; }
.compare .y { color: var(--ok); display: inline-flex; font-size: 1.15rem; }
.compare .n { color: #b8c3d1; display: inline-flex; font-size: 1.15rem; }
.compare td b { color: var(--navy); }

/* ============================================================
   FAQ + CTA + FOOTER
   ============================================================ */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(29, 99, 129, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--teal); font-size: 1.3rem; font-weight: 400; transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

.cta { position: relative; border-radius: 32px; padding: clamp(40px, 6vw, 72px); background: linear-gradient(130deg, var(--navy), #163f83 55%, var(--teal)); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 40px 40px; }
.cta::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 94, 70, .45), transparent 65%); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta p { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 1.06rem; }
.cta .hero-actions { margin-top: 26px; }
.contact-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 22px; backdrop-filter: blur(6px); display: grid; gap: 10px; }
.contact-card a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); transition: background .2s; }
.contact-card a:hover { background: rgba(255, 255, 255, .14); }
.contact-card .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 1.15rem; flex-shrink: 0; }
.contact-card small { display: block; color: rgba(255, 255, 255, .6); font-size: .78rem; line-height: 1.3; }
.contact-card b { font-weight: 600; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

.footer { padding-block: 48px 36px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 120px); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer img { height: 44px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .92rem; color: var(--muted); }
.footer nav a:hover { color: var(--teal); }
.footer small { display: block; width: 100%; color: var(--muted); font-size: .84rem; padding-top: 20px; border-top: 1px dashed var(--line); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .sheet { transform: none; }
    .rv { opacity: 1; transform: none; }
}

/* ---------- Refinements ---------- */
.ledger .pill { font-size: .72rem; padding: 3px 10px; }
.label-board { min-height: 500px; }
.lbl-pallet { width: 320px; grid-template-rows: auto auto 1fr auto auto; }
.lbl-pallet .bc { height: 38px; }
.lbl-loc { width: 210px; grid-template-columns: 1fr 64px; }
.lbl-loc .code { font-size: 1.2rem; white-space: nowrap; }
.lbl-loc .k.mono { white-space: nowrap; font-size: .5rem; }
.lbl-sheet { bottom: -90px; }
.mock .status-row { margin-top: 18px; }
.lbl-pallet { left: 4%; top: 48px; }
.lbl-loc { right: 3%; top: 190px; z-index: 2; }
.lbl-small { right: 6%; bottom: 36px; }
@media (max-width: 640px) {
    .hero-badge { font-size: .8rem; max-width: 100%; }
    .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
}
@media (max-width: 560px) {
    .lbl-pallet { left: 50%; top: 40px; width: 280px; }
    .lbl-loc { right: 4%; top: auto; bottom: 170px; }
    .lbl-small { right: auto; left: 4%; bottom: 36px; }
}
@media (max-width: 640px) {
    .chip-fefo { font-size: .66rem; bottom: 250px; }
    .chip-fefo .ic { width: 24px; height: 24px; }
}
