/* Phone bottom bar: a slim one-button strip at the bottom of the screen ("Book a call" on the homepage,
   "Pick your tier" on Steam Analysis). assets/js/book-bar.js toggles .is-on and holds the show and hide rules. Without the script, and above 768px, it never shows.
   It sits under the header (40) and the phone menu (50). */
.book-bar{ display: none; }
@media (max-width: 768px){
  .book-bar{
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
    visibility: hidden; transform: translateY(100%);
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .book-bar.is-on{ visibility: visible; transform: none; transition: transform .3s var(--ease); }
  .book-bar .btn{ display: flex; justify-content: center; width: 100%; min-height: 44px; }
  /* Where the bar stays on to the end of the page, the footer makes room for it. */
  .book-bar.keeps-end ~ .site-footer{ padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* Panel variant (Steam Analysis): the same floating card as the sticky result panel on the calculators
   (resources/tools): label over a large figure, the page's border, radius and shadow, kept inside the page
   gutters. The strip itself is see-through and lets taps through; only the card takes them. */
@media (max-width: 768px){
  .book-bar--panel{
    background: none; border-top: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    pointer-events: none;
  }
  .book-bar--panel .book-bar-card{
    pointer-events: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px;
    background: var(--paper-3);
    border: 1px solid var(--rule); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  html[data-theme="light"] .book-bar--panel .book-bar-card{
    box-shadow: 0 8px 24px rgba(10, 11, 14, 0.16), 0 2px 8px rgba(10, 11, 14, 0.08);
  }
  .book-bar-copy{ display: grid; gap: 3px; min-width: 0; }
  .book-bar-label{
    font-size: clamp(11px, 2.8vw, 13px); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-2); line-height: 1.2;
  }
  .book-bar-value{
    font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 6.4vw, 28px);
    letter-spacing: -0.03em; line-height: 1; color: var(--ink); white-space: nowrap;
  }
  .book-bar--panel .btn{ display: inline-flex; width: auto; flex: none; padding: 0 20px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce){ .book-bar, .book-bar.is-on{ transition: none; } }
