/* Bewwi homepage (application/views/saas/landing/home.php). Self-contained: no Bootstrap/template CSS. */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --accent: #e4572e;
  --accent-dark: #c4431d;
  --accent-soft: #fdeee8;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.08);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 30px; width: auto; filter: brightness(0); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Hero product mock */
.mock { position: relative; min-height: 420px; }
.pos { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.pos-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pos-bar b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--bg-soft); border-radius: 10px; padding: 12px 8px; font-size: .78rem; font-weight: 600; text-align: center; }
.tile.hot { background: var(--accent-soft); color: var(--accent-dark); }
.ticket { background: var(--bg-soft); border-radius: 12px; padding: 12px; font-size: .8rem; }
.ticket .row { display: flex; justify-content: space-between; padding: 4px 0; }
.ticket .mod { color: var(--muted); padding-left: 10px; font-size: .74rem; }
.ticket .total { border-top: 1px dashed #cfcfcf; margin-top: 8px; padding-top: 8px; font-weight: 800; }
.ticket .pay { margin-top: 10px; background: var(--ink); color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-weight: 700; }
.kds { position: absolute; right: -10px; bottom: -6px; width: 200px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); font-size: .78rem; }
.kds .head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.kds .time { background: #f59e0b; color: var(--ink); border-radius: 6px; padding: 0 6px; }
.kds .item { padding: 3px 0; border-top: 1px solid rgba(255,255,255,.12); }
.kds .bump { margin-top: 8px; background: var(--ok); text-align: center; border-radius: 6px; padding: 5px; font-weight: 700; }
.phone { position: absolute; left: -18px; bottom: -30px; width: 150px; background: #fff; border: 6px solid var(--ink); border-radius: 24px; padding: 12px 10px; box-shadow: var(--shadow); font-size: .72rem; }
.phone .ph-title { font-weight: 800; margin-bottom: 6px; }
.phone .ph-item { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); }
.phone .ph-cta { margin-top: 8px; background: var(--accent); color: #fff; border-radius: 8px; text-align: center; padding: 6px; font-weight: 700; }

/* Offline band */
.offline { background: var(--ink); color: #fff; }
.offline .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.offline .lead { color: #d1d5db; }
.offline .eyebrow { color: #fb8f6c; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); color: #86efac; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.checks b { display: block; }
.checks span { color: #d1d5db; font-size: .95rem; }
.netdiagram { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; font-size: .9rem; }
.netnode { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.07); border-radius: 10px; padding: 12px 14px; }
.badge { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.badge.off { background: #7f1d1d; color: #fecaca; }
.badge.on { background: #14532d; color: #bbf7d0; }
.badge.q { background: #78350f; color: #fde68a; }
.netlink { text-align: center; color: #9ca3af; font-size: .8rem; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Hardware */
.hw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.hw div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; font-weight: 600; font-size: .92rem; background: #fff; }
.hw small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* Demo form */
.demo .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.demo-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.demo-points li::before { content: "→ "; color: var(--accent); font-weight: 800; }
form.demo-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; font-weight: 600; margin: 0; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b91c1c; }
form.demo-form .btn { grid-column: 1 / -1; justify-content: center; }

/* Footer */
.footer { background: var(--ink); color: #9ca3af; padding: 40px 0; font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { height: 26px; width: auto; }
.footer a { color: #d1d5db; text-decoration: none; margin-left: 20px; }
.footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hw { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero .wrap, .offline .wrap, .demo .wrap { grid-template-columns: 1fr; gap: 40px; }
  .mock { min-height: 0; margin: 0 8px 40px; }
  .kds { right: -4px; bottom: -30px; width: 170px; }
  .phone { display: none; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .nav.open .nav-links { display: flex; }
}
@media (max-width: 560px) {
  .grid, .hw { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  form.demo-form { grid-template-columns: 1fr; padding: 20px; }
  .footer a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
