/* ===== FAFO app shell: installable, app-style on phones ===== */
html{-webkit-tap-highlight-color:transparent;scroll-behavior:smooth}
body{overscroll-behavior-y:none;animation:fafoIn .35s ease-out}
@keyframes fafoIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
header{position:sticky;top:0;z-index:50;background:rgba(13,13,11,.82);-webkit-backdrop-filter:saturate(160%) blur(18px);backdrop-filter:saturate(160%) blur(18px);padding-top:calc(14px + env(safe-area-inset-top))!important}
header .logo{display:flex;align-items:center;gap:10px}
header .logo img{width:30px;height:30px;border-radius:8px;box-shadow:0 0 0 1px #3a3a2e}
.fafo-get{display:inline-flex;align-items:center;gap:6px;margin-left:16px;padding:7px 14px;border-radius:999px;background:linear-gradient(135deg,#c8102e,#8e0b20);color:#fff!important;font-weight:800;font-size:13px;border:0;cursor:pointer;box-shadow:0 4px 14px rgba(200,16,46,.35)}
.fafo-get svg{width:15px;height:15px}
.is-app .fafo-get{display:none!important}
.card,.box,.msg{transition:transform .15s ease,box-shadow .2s ease}
.card:active,.box:active{transform:scale(.985)}
.btn,button,.go{transition:transform .12s ease,filter .2s}
.btn:active,button:active,.go:active{transform:scale(.96);filter:brightness(1.1)}

/* bottom tab bar */
.fafo-tabs{display:none}
@media (max-width:820px){
  header{padding:12px 16px!important}
  header nav{display:none!important}
  header{border-bottom:1px solid rgba(255,255,255,.06)!important}
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .card,.box{border-radius:20px!important}
  .hero{padding-top:34px!important;padding-bottom:30px!important}
  .fafo-tabs{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;
    justify-content:space-around;padding:8px 6px;border-radius:24px;background:rgba(26,26,22,.78);
    -webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);
    border:1px solid rgba(216,201,163,.14);box-shadow:0 12px 40px rgba(0,0,0,.55)}
  .fafo-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:#8d8874;font-size:10.5px;font-weight:700;letter-spacing:.3px;padding:6px 0;border-radius:16px;transition:color .2s,background .2s}
  .fafo-tabs a svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .fafo-tabs a.on{color:#fff;background:linear-gradient(180deg,rgba(200,16,46,.95),rgba(142,11,32,.95));box-shadow:0 6px 16px rgba(200,16,46,.35)}
  footer{padding-bottom:20px}
}

/* install sheet */
.fafo-sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:90;opacity:0;pointer-events:none;transition:opacity .25s}
.fafo-sheet{position:fixed;left:0;right:0;bottom:0;z-index:91;max-width:520px;margin:0 auto;background:#1a1a16;border-radius:26px 26px 0 0;
  padding:12px 22px calc(24px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.9,.3,1);
  border-top:1px solid rgba(216,201,163,.18);color:#f2ede1;font-family:inherit;text-align:center}
.fafo-sheet.open{transform:none}.fafo-sheet-bg.open{opacity:1;pointer-events:auto}
.fafo-sheet .grab{width:42px;height:5px;border-radius:9px;background:#3a3a2e;margin:0 auto 16px}
.fafo-sheet img{width:84px;height:84px;border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.fafo-sheet h3{font-size:21px;font-weight:900;margin:12px 0 4px}
.fafo-sheet p{color:#a9a38f;font-size:15px;margin:0 0 16px}
.fafo-steps{text-align:left;background:#0d0d0b;border-radius:16px;padding:6px 14px;margin-bottom:16px}
.fafo-steps div{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:15px}
.fafo-steps div+div{border-top:1px solid #24241d}
.fafo-steps b.n{flex:none;width:26px;height:26px;border-radius:50%;background:#4b5320;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.fafo-steps svg{width:20px;height:20px;vertical-align:-4px;stroke:#5aa0ff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fafo-sheet .act{display:block;width:100%;padding:15px;border:0;border-radius:14px;background:linear-gradient(135deg,#c8102e,#8e0b20);color:#fff;font-weight:800;font-size:16px;cursor:pointer}
.fafo-sheet .later{background:none;border:0;color:#8d8874;font-size:14px;margin-top:10px;padding:8px;cursor:pointer}
