/* ALRG brand chrome.
   Carries the pitch-deck visual system into the app shell: deep red gradient
   bands, a white-framed logo lockup with a white-outlined wordmark,
   white monoline icons on separated chips, and geometric type.
   Presentation only: no navigation or behaviour is changed. */

:root{
  --brand-red:#cf2e26;
  --brand-red-mid:#b52a22;
  --brand-red-deep:#a8251e;
  --brand-orange:#f18625;
  --band-1:#c62d25;
  --band-2:#a8251e;
  --band-3:#8f1e18;
  --bg:#fdfcfb;
  --line:#f0e4dd;
  --shadow:0 6px 22px rgba(88,30,18,.07);
}

/* ---------- typography ---------- */
body,.shell,button,input,select,textarea{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.title,.section-head h2,h1,h2,h3,.deck-kicker,.brand-text strong{
  font-family:'Montserrat','Inter',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  letter-spacing:-.8px;
}
.title,h1{font-weight:800}
.eyebrow{letter-spacing:1.1px;font-weight:800}
:focus-visible{outline:2px solid var(--brand-orange);outline-offset:2px}

/* ---------- logo lockup ---------- */
/* The artwork is a cream tile with red marks, so it gets a solid white frame,
   a white ring and a shadow: it can never sink into the red band behind it. */
.brand-icon{
  padding:5px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.55),0 3px 10px rgba(56,8,5,.35);
}
.brand-text{position:relative}
/* The logo lockup doubles as the app's home button: it returns to the Scan tab. */
.brand{cursor:pointer;user-select:none;-webkit-user-select:none;transition:opacity .16s ease,transform .16s ease}
.brand:hover{opacity:.9}
.brand:active{transform:scale(.985)}
.brand:focus-visible{outline:2px solid var(--brand-orange);outline-offset:4px;border-radius:12px}
/* The wordmark keeps its brand red/orange (set in index.html), so it carries a
   crisp white outline that separates it from the red band behind it. */
.brand-text strong{
  letter-spacing:-.7px;
  text-shadow:
    -1.5px -1.5px 0 #fff,0 -1.5px 0 #fff,1.5px -1.5px 0 #fff,
    -1.5px 0 0 #fff,1.5px 0 0 #fff,
    -1.5px 1.5px 0 #fff,0 1.5px 0 #fff,1.5px 1.5px 0 #fff,
    0 3px 9px rgba(56,8,5,.4);
}
.brand-text small{
  letter-spacing:.3px;
  text-shadow:
    -.9px -.9px 0 #fff,0 -.9px 0 #fff,.9px -.9px 0 #fff,
    -.9px 0 0 #fff,.9px 0 0 #fff,
    -.9px .9px 0 #fff,0 .9px 0 #fff,.9px .9px 0 #fff,
    0 1px 3px rgba(56,8,5,.35);
}

/* ---------- header ---------- */
.top{
  background:linear-gradient(112deg,var(--band-1) 0%,var(--band-2) 58%,var(--band-3) 100%);
  border-bottom:1px solid rgba(255,255,255,.2);
  box-shadow:0 2px 16px rgba(110,20,12,.25);
  color:#fff;
}
.top .brand{gap:7px}
.top .brand-icon{width:40px;height:40px;flex-basis:40px}
.top .brand-text strong{font-size:clamp(22px,3.4vw,26px);font-weight:800;line-height:1}
.top .brand-text small{font-size:12px;font-weight:600;margin-top:3px}
.top .roundbtn{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.45);
  color:#fff;
  box-shadow:0 1px 4px rgba(56,8,5,.25);
  transition:background .16s ease,transform .16s ease;
}
.top .roundbtn:hover{background:rgba(255,255,255,.3)}
.top .roundbtn:active{transform:scale(.94)}
.top .roundbtn svg{width:18px;height:18px}
.top .tinyavatar{box-shadow:0 0 0 2px #fff,0 2px 8px rgba(56,8,5,.35)}
.top .ma-dot{background:var(--brand-orange);box-shadow:0 0 0 2px #fff}
@media (max-width:380px){
  .top .brand{gap:6px}
  .top .brand-text small{font-size:12px;letter-spacing:0}
}

/* ---------- bottom navigation ---------- */
.bottomnav{
  background:linear-gradient(112deg,var(--band-1) 0%,var(--band-2) 58%,var(--band-3) 100%)!important;
  border-top:0!important;
  box-shadow:0 -6px 24px rgba(90,18,10,.3)!important;
}
/* index.html pins these labels to grey/dark red with !important, so this rule
   matches that specificity to keep every icon and label white on the band. */
.bottomnav button,
.bottomnav button:not(.active){
  position:relative;gap:4px;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:700;letter-spacing:.15px;
  text-shadow:0 1px 2px rgba(60,8,5,.3);
}
.bottomnav button+button::before{
  content:"";position:absolute;left:0;top:50%;
  width:1px;height:22px;transform:translateY(-50%);
  background:rgba(255,255,255,.3);
}
.bottomnav button.active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.bottomnav button.active::after{
  content:"";position:absolute;top:-6px;left:50%;
  width:24px;height:3px;transform:translateX(-50%);
  border-radius:0 0 4px 4px;background:var(--brand-orange);
}
.bottomnav .center-scan svg{
  background:#fff!important;
  color:#b3080f!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.55),0 6px 18px rgba(56,8,5,.4);
}
/* Five tabs: the longer labels (Restaurants, Emergency) stay on one line. */
.bottomnav button{font-size:10px!important;letter-spacing:-.1px!important;gap:3px!important;min-width:0;padding:0 2px}
.bottomnav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- desktop sidebar (the app's persistent footer rail) ---------- */
@media (min-width:960px){
  .side{
    background:linear-gradient(180deg,var(--band-1) 0%,var(--band-2) 55%,var(--band-3) 100%);
    border-right:0;
    box-shadow:3px 0 20px rgba(90,18,10,.2);
  }
  .side .brand-text strong{color:#fff}
  .side .brand-text small{color:rgba(255,255,255,.9)}
  .side button{
    color:rgba(255,255,255,.9)!important;
    -webkit-text-fill-color:rgba(255,255,255,.9)!important;
    font-weight:600;
    transition:background .16s ease,color .16s ease;
  }
  .side button:hover{background:rgba(255,255,255,.14)}
  .side button.active{
    background:rgba(255,255,255,.2)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:inset 3px 0 0 var(--brand-orange);
  }
  .side .sub{color:#fff!important}
}

/* ---------- in-page footer band ---------- */
.deck-footer{
  background:linear-gradient(112deg,var(--band-1) 0%,var(--band-2) 58%,var(--band-3) 100%);
  border-top:1px solid rgba(255,255,255,.22);
  border-radius:18px 18px 0 0;
  color:#fff;
  box-shadow:0 -6px 24px rgba(90,18,10,.18);
}
.deck-footer>div{position:relative;padding-left:38px}
.deck-footer>div>svg{
  position:absolute;left:0;top:0;
  width:26px;height:26px;padding:5px;box-sizing:border-box;
  border-radius:8px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.5);
  color:#fff;
  stroke-width:1.7;
  opacity:1;
}
.deck-footer b{
  display:block;font-size:12.5px;font-weight:800;
  letter-spacing:.15px;color:#fff;
  text-shadow:0 1px 2px rgba(56,8,5,.35);
}
.deck-footer small{
  display:block;margin-top:3px;
  font-size:11.5px;line-height:1.45;
  color:#fff;
  text-shadow:0 1px 2px rgba(56,8,5,.3);
}
/* The map screen's footer was styled as white cards, which hid the white icons
   and left its labels grey. It keeps the brand band with white content too. */
#view-map .deck-footer>div{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0 0 0 38px;
}
#view-map .deck-footer b{color:#fff}
#view-map .deck-footer small{color:#fff}
@media (min-width:650px){
  .deck-footer>div+div{
    border-left:1px solid rgba(255,255,255,.3);
    padding-left:52px;
  }
  .deck-footer>div+div>svg{left:16px}
  #view-map .deck-footer>div+div{
    border-left:1px solid rgba(255,255,255,.3);
    padding-left:52px;
  }
}

/* ---------- accent polish ---------- */
.btn:not(.ghost):not(.dark),button.primary{
  background:linear-gradient(112deg,#c92820 0%,var(--brand-red) 55%,var(--brand-orange) 100%)!important;
}
.eyebrow,.link{color:#b3080f}

/* ---------- spacing after the scan screen's footer band ---------- */
/* .deck-footer pulls itself down with a negative bottom margin (-75px, -70px on
   desktop) so the red band bleeds to the page edge. The automatic-import card is
   appended right after that band, so without this it rides up over the band and
   under the fixed bottom navigation. The inline margin needs !important. */
#auto-import-qr{
  margin-top:100px!important;
  margin-bottom:10px!important;
  position:relative;
  z-index:1;
}
/* The bottom navigation is 67px tall and grows with the device safe area, so the
   page reserves that space plus a comfortable gap. */
.main{padding-bottom:calc(95px + env(safe-area-inset-bottom))}
@media (min-width:960px){
  #auto-import-qr{margin-top:96px!important}
  .main{padding-bottom:40px}
}
