/* Byteobill public home. Scoped to the logged-out platform screen. Mobile first. */
.auth-screen.bo-landing { display: block; padding: 0; background: #fff; overflow-x: clip; overflow-y: auto; color: #1c1917; }
body:has(> #bbRoot), body:has(> .bb-miss) { margin: 0; background: #fff; overflow-x: clip; }
/* The lock screen hides every main (the app view). The public home is also a main, and it must stay visible. */
body.locked .auth-screen.bo-landing main { visibility: visible; }
.bb-site { --bb-navy: #0f4c81; --bb-ink: #1c1917; --bb-red: #c8102e; --bb-red-d: #9f0d24; --bb-muted: #4b5563; --bb-line: #e7e5e4; --bb-soft: #f7f6f4; min-height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; background: #fff; color: var(--bb-ink); }
.bb-site * { box-sizing: border-box; }
.bb-site a { color: var(--bb-navy); }
.bb-site :focus-visible { outline: 3px solid var(--bb-navy); outline-offset: 2px; }
.bb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bb-skip { position: absolute; left: .6rem; top: -40px; background: var(--bb-navy); color: #fff; padding: .45rem .7rem; z-index: 6; border-radius: 8px; text-decoration: none; }
.bb-skip:focus { top: .5rem; }

.bb-top { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .5rem; padding: .4rem .85rem; background: #fff; border-bottom: 1px solid var(--bb-line); }
.bb-logo { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--bb-navy); text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.bb-logo img { width: 36px; height: 36px; }
.bb-logo b { white-space: nowrap; }
.bb-login-top, .bb-top > .bb-dl { display: none; }
.bb-login-top { font-weight: 700; text-decoration: none; color: var(--bb-ink); padding: .35rem .2rem; }
.bb-nav-btn { justify-self: end; border: 1px solid var(--bb-line); background: #fff; border-radius: 10px; min-height: 44px; padding: 0 .75rem; font: inherit; font-weight: 700; cursor: pointer; }
.bb-nav { display: none; flex-basis: 100%; flex-direction: column; gap: .15rem; padding: .35rem 0 .2rem; }
.bb-nav.is-open { display: flex; grid-column: 1 / -1; }
.bb-nav > a, .bb-drop > summary { display: flex; align-items: center; min-height: 44px; padding: .2rem .15rem; text-decoration: none; color: var(--bb-ink); font-weight: 700; }
.bb-drop > summary { cursor: pointer; list-style: none; }
.bb-drop > summary::-webkit-details-marker { display: none; }
.bb-drop-menu { display: flex; flex-direction: column; padding: 0 0 .4rem .7rem; }
.bb-drop-menu a { min-height: 40px; display: flex; align-items: center; text-decoration: none; color: var(--bb-ink); }

.bb-dl { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1rem; border: 0; border-radius: 999px; background: var(--bb-red); color: #fff; font: inherit; font-weight: 800; letter-spacing: .01em; cursor: pointer; text-decoration: none; }
.bb-dl:hover { background: var(--bb-red-d); }
.bb-dl:disabled { opacity: .6; cursor: not-allowed; }
.bb-dl-lg { min-height: 56px; padding: .7rem 1.4rem; font-size: 1.08rem; width: 100%; }
.bb-top .bb-dl { width: auto; min-height: 44px; font-size: .95rem; }

.bb-hero { display: grid; gap: 1.4rem; padding: 1.4rem 1rem 1.8rem; }
.bb-hero h1 { margin: 0; font-size: 2.05rem; line-height: 1.12; letter-spacing: -.03em; font-weight: 850; }
.bb-em { color: var(--bb-red); }
.bb-lead { margin: .8rem 0 0; font-size: 1.05rem; line-height: 1.45; color: var(--bb-muted); max-width: 38rem; }
.bb-hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; margin-top: 1.1rem; max-width: 280px; }
.bb-text-link { font-weight: 800; text-decoration: none; color: var(--bb-navy); align-self: center; }
.bb-note { margin: .8rem 0 0; color: var(--bb-muted); font-size: .95rem; }

#features, #retail, #restaurant, #mobile, #desktop, #pricing, #faq, #about { scroll-margin-top: 4.75rem; }
.bb-stage { position: relative; margin: .4rem 0 1.5rem; max-width: 100%; }
.bb-laptop { max-width: 100%; overflow: hidden; background: #1f2937; border-radius: 16px 16px 8px 8px; padding: 10px 10px 0; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); }
.bb-screen { background: #fff; border-radius: 6px 6px 0 0; overflow: hidden; }
.bb-screen img { display: block; width: 100%; height: 168px; object-fit: cover; object-position: left top; }
.bb-base { height: 12px; margin: 0 -10px; background: linear-gradient(#d6d3d1, #a8a29e); border-radius: 0 0 8px 8px; }
.bb-phone { position: absolute; width: 78px; max-width: 26%; right: 8px; bottom: 4px; background: #111827; border-radius: 16px; padding: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.bb-phone img { display: block; width: 100%; height: 176px; object-fit: cover; object-position: top; border-radius: 9px; background: #fff; }

.bb-trust { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: .3rem 1rem 1.2rem; }
.bb-trust li { display: flex; align-items: center; gap: .45rem; background: var(--bb-soft); border-radius: 12px; padding: .7rem .65rem; min-height: 52px; font-size: .92rem; }
.bb-trust svg { width: 26px; height: 26px; flex: 0 0 26px; stroke: var(--bb-navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb-trust b { font-weight: 750; line-height: 1.2; }

.bb-block { padding: 1.3rem 1rem 1.5rem; }
.bb-block h2, .bb-split h2 { margin: 0 0 .45rem; font-size: 1.55rem; letter-spacing: -.02em; }
.bb-block p { margin: .35rem 0; color: var(--bb-muted); line-height: 1.5; max-width: 42rem; }
.bb-soft { background: var(--bb-soft); }
.bb-kicker { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-red); }
.bb-grid { display: grid; gap: .7rem; margin-top: .9rem; }
.bb-grid article { background: #fff; border: 1px solid var(--bb-line); border-radius: 14px; padding: .9rem .95rem; }
.bb-soft .bb-grid article { background: #fff; }
.bb-grid h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--bb-navy); }
.bb-grid p { margin: 0; color: var(--bb-muted); }
.bb-split { display: grid; gap: .9rem; padding: .2rem 1rem 1.3rem; }
.bb-split > div { border: 1px solid var(--bb-line); border-radius: 16px; padding: 1rem; }
.bb-split p:last-child { color: var(--bb-muted); margin: 0; line-height: 1.5; }

.bb-faqs { display: grid; gap: .45rem; margin-top: .8rem; }
.bb-faqs details { background: #fff; border: 1px solid var(--bb-line); border-radius: 12px; padding: .2rem .85rem; }
.bb-faqs summary { cursor: pointer; font-weight: 750; min-height: 48px; display: flex; align-items: center; }
.bb-faqs p { margin: 0 0 .8rem; color: var(--bb-muted); }

.bb-foot { padding: 1.2rem 1.1rem 6.5rem; background: #0b3a63; color: #e7eef6; text-align: center; }
.bb-foot a { color: #fff; font-weight: 700; }
.bb-foot p { margin: .25rem 0; }

.bb-wa { position: fixed; right: 12px; bottom: 12px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: .35rem; width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 999px; background: #075E54; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 8px 20px rgba(7, 94, 84, .35); }
.bb-site a.bb-wa,
.bb-site a.bb-wa:visited,
.bb-site a.bb-wa:hover,
.bb-site a.bb-wa:active { color: #fff; }
.bb-wa span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bb-wa svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bb-wa:focus-visible { outline-color: #fff; }

.bb-modal { border: 0; padding: 0; border-radius: 18px; width: min(440px, calc(100vw - 1.5rem)); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); color: var(--bb-ink); }
.bb-modal::backdrop { background: rgba(15, 23, 42, .55); }
.bb-modal form, .bb-modal #bbDone, .bb-modal #bbProg { padding: 1rem 1rem 1.1rem; }
.bb-modal-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bb-modal h2 { margin: 0; font-size: 1.35rem; }
.bb-x { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: 10px; }
.bb-modal-lead, .bb-consent { color: var(--bb-muted); font-size: .95rem; line-height: 1.45; }
.bb-modal label { display: block; font-weight: 700; margin: .35rem 0 .25rem; }
.bb-phone-in { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--bb-line); border-radius: 12px; padding: 0 .7rem; background: #fff; }
.bb-phone-in span { color: var(--bb-muted); font-weight: 700; }
.bb-phone-in input { border: 0; min-height: 48px; width: 100%; font: inherit; font-size: 1.05rem; background: transparent; }
.bb-phone-in input:focus { outline: none; }
.bb-phone-in:focus-within { outline: 3px solid var(--bb-navy); outline-offset: 1px; }
.bb-check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 650; margin: .7rem 0; }
.bb-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; }
.bb-err { min-height: 1.2em; color: var(--bb-red-d); font-weight: 700; margin: .2rem 0; }
.bb-err:empty { display: none; }
.bb-install { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1rem; border: 2px solid var(--bb-navy); border-radius: 999px; background: #fff; color: var(--bb-navy); font: inherit; font-weight: 800; cursor: pointer; }
.bb-install[hidden] { display: none; }
.bb-hero-cta .bb-install { width: 100%; }
.bb-install-note { flex-basis: 100%; margin: 0; color: #1c1917; font-weight: 700; line-height: 1.4; }
.bb-install-note[hidden] { display: none; }
.bb-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.bb-miss { max-width: 36rem; margin: 0 auto; padding: 3rem 1.2rem 4rem; }
.bb-miss h1 { margin: 1rem 0 .4rem; font-size: 2rem; letter-spacing: -.02em; }
.bb-miss p { color: var(--bb-muted); line-height: 1.5; }
.bb-miss .bb-logo { font-size: 1.25rem; }
.bb-prog p { font-weight: 800; margin: 0 0 .55rem; }
.bb-bar { height: 12px; background: #f3e8ea; border-radius: 999px; overflow: hidden; }
.bb-bar > span { display: block; height: 100%; width: 0; background: var(--bb-red); border-radius: inherit; }
.bb-bar.is-wait > span { width: 40%; animation: bb-indet 1.1s ease-in-out infinite; }
@keyframes bb-indet { from { transform: translateX(-130%); } to { transform: translateX(320%); } }
.bb-steps { margin: .6rem 0 0; padding-left: 1.15rem; }
.bb-steps li { margin: .4rem 0; line-height: 1.4; }
.bb-text-btn { display: inline-flex; margin-top: .7rem; background: transparent; border: 0; color: var(--bb-navy); font: inherit; font-weight: 800; min-height: 44px; cursor: pointer; }
.bb-modal .bb-dl { width: 100%; margin-top: .3rem; }
.bb-ios { background: #f7f6f4; border: 1px solid #e7e5e4; border-radius: 12px; padding: .75rem .9rem; margin: .35rem 0 .7rem; text-align: left; color: #1c1917; }
.bb-ios p { margin: 0 0 .35rem; }
.bb-ios ol { margin: 0; padding-left: 1.2rem; }
.bb-ios li { margin: .25rem 0; line-height: 1.4; }

@media (min-width: 720px) {
  .bb-trust { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-split { grid-template-columns: 1fr 1fr; }
  .bb-hero h1 { font-size: 2.7rem; }
  .bb-screen img { height: 280px; }
  .bb-dl-lg, .bb-hero-cta .bb-install { width: auto; }
  .bb-hero-cta { flex-direction: row; align-items: center; max-width: none; }
  .bb-text-link { align-self: auto; }
}
@media (min-width: 980px) {
  .bb-nav-btn { display: none; }
  .bb-top { display: flex; flex-wrap: nowrap; align-items: center; gap: 1rem; padding: .35rem 1.4rem; }
  .bb-top > .bb-dl { display: inline-flex; margin-left: auto; }
  .bb-nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: .15rem 1rem; padding: 0; margin-left: .6rem; }
  .bb-nav > a, .bb-drop > summary { min-height: 44px; padding: 0; }
  .bb-drop { position: relative; }
  .bb-drop-menu { position: absolute; top: calc(100% - 4px); left: 0; min-width: 180px; padding: .35rem; background: #fff; border: 1px solid var(--bb-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
  .bb-drop:not([open]) .bb-drop-menu { display: none; }
  .bb-drop-menu a { padding: .35rem .6rem; border-radius: 8px; }
  .bb-drop-menu a:hover { background: var(--bb-soft); }
  .bb-hero { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; gap: 2rem; max-width: 1120px; margin: 0 auto; padding: 2.6rem 1.5rem 2.2rem; }
  .bb-hero h1 { font-size: 3.35rem; }
  .bb-screen img { height: 340px; }
  .bb-phone { width: 132px; max-width: 34%; right: 12px; bottom: 8px; }
  .bb-phone img { height: 220px; }
  .bb-trust, .bb-block, .bb-split { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .bb-trust { padding-left: 1.5rem; padding-right: 1.5rem; }
  .bb-block { padding-left: 1.5rem; padding-right: 1.5rem; }
  .bb-foot { padding-bottom: 2rem; }
  .bb-wa { width: auto; height: auto; padding: 0 .9rem 0 .7rem; }
  .bb-wa span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-bar.is-wait > span { animation: none; width: 100%; opacity: .5; }
}
