/* BHC POS homepage — product story sections. Uses the tokens of site.css. */
.slogan { margin: 4px 0 10px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.01em; background: linear-gradient(90deg, #fff, var(--sky) 55%, var(--electric)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-title { font-size: clamp(30px, 4.6vw, 54px) !important; line-height: 1.08; background: linear-gradient(180deg, #fff 30%, #b9c8e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sim-note { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 12.5px; opacity: 0.85; }
.sim-note::before { content: "●"; color: var(--electric); margin-inline-end: 6px; font-size: 9px; vertical-align: 2px; }

/* Problem / how / why */
.pwh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pwh > div { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.pwh b { display: block; color: var(--electric); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.pwh p { margin: 0; color: var(--text); font-size: 15px; }

/* A. Devices */
.devices { position: relative; max-width: 1000px; margin: 0 auto; padding-bottom: 30px; }
.laptop { width: 80%; }
.laptop .screen { position: relative; aspect-ratio: 16 / 9.4; border-radius: 16px 16px 4px 4px; border: 10px solid var(--bg2); background: linear-gradient(180deg, #08142f, var(--bg)); box-shadow: 0 40px 90px -30px rgba(var(--acc-rgb), 0.35), 0 0 0 1px rgba(var(--sky-rgb), 0.18); padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.laptop .base { height: 14px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, var(--bg2), var(--bg)); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8); }
.ui-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ui-top b { font-weight: 800; letter-spacing: 0.04em; }
.ui-pill { padding: 3px 9px; border-radius: 99px; background: rgba(var(--pri-rgb), 0.25); color: var(--sky); font-size: 11px; }
.ui-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-size: 11px; }
.ui-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(var(--sky-rgb), 0.12); min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: clamp(12px, 1.6vw, 17px); font-weight: 800; white-space: nowrap; }
.kpi em { font-style: normal; color: #34d399; font-size: 10.5px; }
.ui-row { flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; min-height: 0; }
.panel { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(var(--sky-rgb), 0.12); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel small { color: var(--muted); font-size: 11px; }
.bars { width: 100%; flex: 1; min-height: 70px; }
.bars .bar { fill: url(#gb); opacity: 0.85; transform-box: fill-box; transform-origin: 50% 100%; }
.bars .bar.hi { opacity: 1; }
.bars .trend { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; opacity: 0.8; }
.branch-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 11px; }
.branch-bars li { display: grid; gap: 4px; }
.branch-bars i { display: block; height: 7px; border-radius: 9px; background: linear-gradient(90deg, var(--blue), var(--electric)); transform-origin: 0 50%; }
.branch-bars .w90 { width: 90%; } .branch-bars .w70 { width: 70%; } .branch-bars .w55 { width: 55%; }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; min-width: 150px; }
.phone .screen { aspect-ratio: 9 / 18.5; border-radius: 26px; border: 8px solid var(--bg2); background: linear-gradient(180deg, var(--bg2), var(--bg)); box-shadow: 0 30px 60px -20px rgba(var(--pri-rgb), 0.6), 0 0 0 1px rgba(var(--sky-rgb), 0.2); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.cart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.cart li { display: flex; justify-content: space-between; gap: 6px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); min-width: 0; }
.cart li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart li b { flex: none; }
.phone .screen { min-width: 0; overflow: hidden; }
.total { gap: 6px; white-space: nowrap; }
.total { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; }
.paybtn { text-align: center; padding: 10px; border-radius: 11px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--electric)); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.12); } }

/* Shared list styles */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--acc-rgb), 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks.inline { grid-template-columns: repeat(4, auto); justify-content: center; gap: 12px 28px; margin-top: 30px; }
.hx-split { align-items: center; }
.hx-split h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }

/* B. Branch hub */
.hub { position: relative; aspect-ratio: 4 / 3.2; width: 100%; max-width: 520px; margin-inline: auto; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-link { stroke: rgba(var(--sky-rgb), 0.45); stroke-width: 1.6; stroke-dasharray: 5 8; animation: flow 2.4s linear infinite; fill: none; }
.hub-dot { fill: var(--electric); filter: drop-shadow(0 0 6px var(--electric)); }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, var(--blue), var(--bg2) 70%); box-shadow: 0 0 0 1px rgba(var(--sky-rgb), 0.3), 0 0 60px -10px rgba(var(--acc-rgb), 0.7); }
.hub-core b { font-size: clamp(15px, 2vw, 20px); }
.hub-core small { color: var(--electric); font-size: 11px; letter-spacing: 0.14em; }
.hub-node { position: absolute; transform: translate(-50%, -50%); padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: rgba(var(--bg-rgb), 0.85); border: 1px solid var(--line); white-space: nowrap; box-shadow: 0 10px 30px -14px rgba(var(--pri-rgb), 0.8); }
.hub-node.n1 { left: 17.5%; top: 18.75%; } .hub-node.n2 { left: 82.5%; top: 18.75%; } .hub-node.n3 { left: 17.5%; top: 81.25%; } .hub-node.n4 { left: 82.5%; top: 81.25%; border-style: dashed; color: var(--electric); }

/* C. Staff flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: f; position: relative; }
.flow::before { content: ""; position: absolute; left: 7%; right: 7%; top: 26px; height: 2px; background: linear-gradient(90deg, rgba(var(--sky-rgb), 0.15), rgba(var(--acc-rgb), 0.6), rgba(var(--sky-rgb), 0.15)); }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; }
.flow .fi { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-weight: 800; background: var(--bg2); border: 1px solid var(--line); transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease), color 0.4s; position: relative; }
.flow li.on .fi { background: linear-gradient(135deg, var(--blue), var(--electric)); color: #04122b; transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px -10px rgba(var(--acc-rgb), 0.8); }
.flow li.on b { color: #fff; }
.flow b { color: var(--silver); font-weight: 600; }

/* D. Checkout */
.checkout { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 360px; }
.co-phone { position: relative; width: 190px; aspect-ratio: 9 / 18; border-radius: 28px; border: 8px solid var(--bg2); background: linear-gradient(180deg, var(--bg2), var(--bg)); box-shadow: 0 30px 60px -20px rgba(var(--pri-rgb), 0.6), 0 0 0 1px rgba(var(--sky-rgb), 0.2); overflow: hidden; }
.co-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; transition: opacity 0.5s, transform 0.5s var(--ease); }
.co-step small { color: var(--muted); }
.co-step b { font-size: 18px; }
.co-btn { padding: 10px 26px; border-radius: 12px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--electric)); }
.co-ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, 0.18); color: #34d399; font-size: 28px; font-weight: 800; }
.co-step.s2 { opacity: 0; transform: scale(0.9); }
.co-printer { position: relative; z-index: 1; margin-inline-start: -46px; margin-bottom: 18px; width: 170px; height: 70px; border-radius: 14px 14px 10px 10px; background: linear-gradient(180deg, var(--bg2), var(--bg)); border: 1px solid var(--line); }
.co-paper { position: absolute; left: 14px; right: 14px; bottom: 56px; display: grid; gap: 4px; padding: 10px 10px 14px; font: 10.5px/1.3 ui-monospace, monospace; color: #1b2335; background: #f4f6fb; border-radius: 4px 4px 0 0; transform-origin: 50% 100%; clip-path: inset(100% 0 0 0); }
.co-paper b { font-size: 11px; }
.checkout.play .s1 { animation: co1 5s infinite; }
.checkout.play .s2 { animation: co2 5s infinite; }
.checkout.play .co-paper { animation: paper 5s infinite; }
@keyframes co1 { 0%, 34% { opacity: 1; transform: none; } 38%, 94% { opacity: 0; transform: scale(0.95); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes co2 { 0%, 38% { opacity: 0; transform: scale(0.9); } 42%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes paper { 0%, 45% { clip-path: inset(100% 0 0 0); } 70%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips span { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; transition: border-color 0.3s, background 0.3s; }
.chips span:hover { border-color: rgba(var(--acc-rgb), 0.5); background: rgba(var(--acc-rgb), 0.08); }

/* E. Stock */
.stock .card { display: flex; flex-direction: column; gap: 10px; }
.meter { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: auto; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--electric)); transform-origin: 0 50%; }
.meter .m-sale { width: 72%; } .meter .m-svc { width: 58%; } .meter .m-cnt { width: 16%; } .meter .m-ast { width: 88%; }
.meter.low i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.flag { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fbbf24; background: rgba(245, 158, 11, 0.14); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.45; } }
.stock .in .m-sale { animation: drain 6s ease-in-out infinite; }
@keyframes drain { 0% { transform: scaleX(1); } 60% { transform: scaleX(0.82); } 100% { transform: scaleX(1); } }

/* F. Booking map */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.modes .card { padding: 18px; }
.modes .card h3 { font-size: 16.5px; }
.modes .card p { font-size: 14px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 30% 30%, rgba(var(--pri-rgb), 0.22), transparent 60%), linear-gradient(160deg, var(--bg2), var(--bg)); }
.map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--sky-rgb), 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--sky-rgb), 0.05) 1px, transparent 1px); background-size: 28px 28px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.road { fill: none; stroke: rgba(var(--sky-rgb), 0.16); stroke-width: 10; stroke-linecap: round; }
.route { fill: none; stroke: var(--electric); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 9; animation: flow 1.4s linear infinite; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), 0.7)); }
.pin { position: absolute; transform: translate(-50%, -120%); padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: inherit; }
.pin.outlet { left: 23%; top: 76%; background: var(--blue); }
.pin.home { left: 79.5%; top: 30.6%; background: #0e7490; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -135%); } }

/* G. Finance */
.fin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.fin .panel { padding: 20px; border-radius: 18px; gap: 14px; }
.fin .panel small { font-size: 13px; }
.bars.duo { min-height: 160px; }
.bars.duo .bar { fill: var(--blue); }
.bars.duo .bar.ex { fill: rgba(var(--acc-rgb), 0.55); }
.donut { width: 160px; height: 160px; margin: 0 auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 6; }
.donut .ring-bg { stroke: rgba(255, 255, 255, 0.06); }
.donut .s1 { stroke: var(--blue); } .donut .s2 { stroke: var(--electric); } .donut .s3 { stroke: #a78bfa; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 6px; vertical-align: 0; }
.lg-in::before, .lg-1::before { background: var(--blue); }
.lg-ex::before { background: rgba(var(--acc-rgb), 0.55); }
.lg-2::before { background: var(--electric); }
.lg-3::before { background: #a78bfa; }

/* H. Module carousel */
.modules { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.modules::-webkit-scrollbar { display: none; }
.mod-track { display: flex; gap: 16px; width: max-content; padding-inline: max(20px, calc((100vw - var(--wrap)) / 2)); }
.mod { scroll-snap-align: center; width: 250px; flex: none; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); transition: transform 0.35s var(--ease), border-color 0.35s; }
.mod:hover { transform: translateY(-6px); border-color: rgba(var(--sky-rgb), 0.45); }
.mod h3 { font-size: 17px; margin-bottom: 6px; }
.mod p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Ekosistem | Business Planner */
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.big-card { display: flex; flex-direction: column; gap: 12px; padding: 34px; min-height: 340px; color: var(--text); }
.big-card h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: 0.02em; margin: 4px 0 0; }
.big-card p { color: var(--muted); }
.big-card .tag { align-self: flex-start; }
.big-card .more { margin-top: auto; color: var(--sky); font-weight: 600; }
.big-card:hover .more { color: #fff; }
.big-card.eco { background: radial-gradient(500px circle at 100% 0%, rgba(var(--acc-rgb), 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); }
.big-card.planner { background: radial-gradient(500px circle at 100% 0%, rgba(var(--pri-rgb), 0.25), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); }
.eco-logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eco-logos img { height: 46px; width: auto; padding: 8px 10px; border-radius: 12px; background: rgba(var(--bg-rgb), 0.55); border: 1px solid var(--line); }
.big-card .ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(var(--pri-rgb), 0.18); color: var(--electric); }
.big-card .ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aff-line { margin: 22px 0 0; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .pwh { grid-template-columns: 1fr; }
  .devices { min-height: 0; padding-bottom: 40px; }
  .laptop { width: 100%; }
  .phone { width: 34%; right: -2%; bottom: -24px; }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .flow::before { display: none; }
  .ticks.inline { grid-template-columns: 1fr 1fr; justify-content: start; }
  .fin { grid-template-columns: 1fr; }
  .duo-cards { grid-template-columns: 1fr; }
  .checkout { min-height: 330px; }
}
@media (max-width: 640px) {
  .laptop .screen { border-width: 6px; padding: 8px; gap: 6px; border-radius: 10px 10px 3px 3px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 5px; }
  .kpi { padding: 5px 7px; }
  .kpi small, .kpi em { font-size: 8.5px; }
  .kpi b { font-size: 12px; }
  .ui-row { grid-template-columns: 1fr; }
  .ui-row .panel:last-child { display: none; }
  .ui-top { font-size: 11px; }
  .phone { width: 38%; min-width: 0; bottom: -34px; }
  .phone .screen { border-width: 5px; border-radius: 18px; padding: 8px 6px; gap: 6px; font-size: 9.5px; }
  .cart li { padding: 5px; }
  .paybtn { padding: 6px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
  .flow .fi { width: 44px; height: 44px; border-radius: 13px; }
  .flow li { font-size: 12.5px; }
  .modes { grid-template-columns: 1fr; }
  .ticks.inline { grid-template-columns: 1fr; }
  .hub-node { font-size: 11.5px; padding: 6px 9px; }
  .big-card { padding: 24px; min-height: 0; }
  .eco-logos img { height: 38px; }
  .co-phone { width: 160px; }
  .co-printer { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-live i, .paybtn, .flag, .hub-link, .route, .pin.home, .stock .in .m-sale { animation: none !important; }
  .checkout .s1 { opacity: 1; }
  .co-paper { clip-path: none; }
}
