/* ==========================================================================
   TRIVMO — App store bottom sheet
   Standalone component: every custom property carries a fallback, so this
   works on a page that loads style.css and equally on one that does not.
   Behaviour lives in sheet.js.
   ========================================================================== */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(20, 12, 9, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)), visibility .3s;
}

.sheet-scrim.open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4001;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--bg-card-hover, #FFFCF8);
  box-shadow: 0 -18px 60px rgba(20, 12, 9, .3);
  transform: translateY(100%);
  transition: transform .38s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  max-height: 88svh;
  overflow-y: auto;
}

.sheet.open {
  transform: none;
}

@media (min-width: 620px) {
  .sheet {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: 420px;
    transform: translate(-50%, calc(100% + 40px));
    border-radius: 26px;
  }

  .sheet.open {
    transform: translate(-50%, 0);
  }
}

.sheet-grip {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-h, rgba(23, 19, 17, 0.18));
  margin: 0 auto 20px;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.sheet-head img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex-shrink: 0;
}

.sheet-head b {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text, #171311);
}

.sheet-head span {
  display: block;
  font-size: .82rem;
  color: var(--text-m, rgba(23, 19, 17, 0.5));
  margin-top: 2px;
}

.sheet-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--border, rgba(23, 19, 17, 0.10));
  background: var(--surface-soft, rgba(23, 19, 17, 0.035));
  color: var(--text, #171311);
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.sheet-opt:hover {
  border-color: var(--border-h, rgba(23, 19, 17, 0.18));
  transform: translateY(-1px);
}

.sheet-opt svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sheet-opt small {
  display: block;
  font-size: .68rem;
  opacity: .62;
  line-height: 1.2;
}

.sheet-opt b {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
}

/* the platform we detected leads */
.sheet-opt.primary {
  background: var(--primary, #EF0F00);
  border-color: var(--primary, #EF0F00);
  color: #fff;
}

.sheet-opt.primary small {
  opacity: .78;
}

.sheet-opt.primary:hover {
  background: #C10C00;
  border-color: #C10C00;
}

.sheet-close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  background: none;
  color: var(--text-m, rgba(23, 19, 17, 0.5));
  font-family: var(--font, 'Poppins', system-ui, sans-serif);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 14px;
  transition: background .25s, color .25s;
}

.sheet-close:hover {
  background: var(--surface-soft, rgba(23, 19, 17, 0.035));
  color: var(--text, #171311);
}

body.sheet-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

  .sheet,
  .sheet-scrim {
    transition: none !important;
  }
}

/* The first option is focused when the sheet opens, for keyboard and screen
   reader users. Only show a ring when the visitor is actually navigating by
   keyboard, so a tap does not leave an outline behind. */
.sheet-opt:focus {
  outline: none;
}

.sheet-opt:focus-visible {
  outline: 3px solid var(--primary, #EF0F00);
  outline-offset: 3px;
}

.sheet-close:focus {
  outline: none;
}

.sheet-close:focus-visible {
  outline: 2px solid var(--primary, #EF0F00);
  outline-offset: 2px;
}
