/* Buttons, Google Play badge, floating download button */

.button:focus-visible {
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--surface-lowest);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.button-primary {
  border-color: transparent;
}

.button-gold {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--ink);
}

.button-large {
  min-height: 48px;
  padding: 13px 20px;
  font-size: var(--text-md);
}

.floating-apk {
  right: 20px;
  z-index: 47;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.feature-split .tier-card .button {
  max-width: 360px;
  min-height: 54px;
  margin-top: 0;
  border-radius: 12px;
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tier-card .button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
}

.blog-card .button {
  min-height: 38px;
  padding-inline: 14px;
  width: fit-content;
  margin-top: auto;
}

.button {
  border-radius: 12px;
  transition: transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  filter: none;
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.button-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  border-color: rgba(15, 54, 45, 0.2);
}

.button-secondary:hover {
  border-color: var(--primary-2);
  background: #fff;
}

.button .material-symbols-outlined {
  font-size: 1.25em;
}

.final-cta .button {
  min-width: 230px;
  border-radius: 12px;
}

.floating-apk .material-symbols-outlined {
  font-size: 1.3em;
}

.floating-apk:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-apk.is-offscreen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-actions .button-large {
  min-height: 56px;
  padding-inline: 28px;
}

.play-badge,
.floating-apk {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  background: #000 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  gap: 12px;
  padding: 8px 18px 8px 14px !important;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.floating-apk .play-text span,
.floating-apk span.play-text {
  display: flex !important;
}

.play-icon {
  width: 28px !important;
  height: 28px !important;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.play-text small {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  text-transform: uppercase;
}

.play-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.floating-apk:focus-visible,
.play-badge:focus-visible {
  outline: 2px solid var(--gold-soft, #e6c36a);
  outline-offset: 3px;
}

.floating-apk {
  position: fixed !important;
}

.play-badge {
  min-height: 56px;
  position: relative;
}

@media (hover: none) {
  .button:hover,
  .floating-apk:hover {
    transform: none;
  }

}

@media (max-width: 1120px) {
  .mobile-panel nav > a:not(.button) {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 8px 14px 8px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s var(--ease);
  }

  .mobile-panel nav > a:not(.button) > .material-symbols-outlined {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-2);
    font-size: 21px;
  }

  .mobile-panel nav > a:not(.button)::after {
    content: 'chevron_right';
    margin-left: auto;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-size: 22px;
    line-height: 1;
    color: var(--contrast);
    transition: transform 0.2s var(--ease), color 0.2s ease;
  }

  .mobile-panel nav > a:not(.button):hover::after {
    transform: translateX(3px);
    color: var(--primary-2);
  }

  .mobile-panel .button.full-width {
    margin-top: 8px;
    min-height: 54px;
    border-radius: 12px;
  }

}

@media (max-width: 760px) {
  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .feature-split .tier-card .button,
  .tier-card .button {
    width: 100%;
    max-width: none;
    min-height: 52px;
  }

  .final-cta .button {
    min-width: 0;
    min-height: 52px;
  }

  .floating-apk {
    font-size: 0.8rem;
    line-height: 1.15;
    text-align: left;
    width: auto !important;
    height: auto !important;
    min-height: 52px !important;
    right: 12px !important;
    z-index: 60;
    display: inline-flex !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .floating-apk .material-symbols-outlined {
    font-size: 1.4rem;
  }

  .hero-actions .play-badge {
    width: 100%;
    display: none !important;
  }

  .homepage-blog .section-head .button {
    width: 100%;
    margin-top: 16px;
  }

  .button,
  .button-large {
    min-height: 52px;
    font-size: 1rem;
    font-weight: 600;
  }

  .final-cta .button,
  .tier-card .button {
    width: 100%;
  }

  .button.button-large {
    min-height: 52px;
    height: 52px;
    padding-block: 0;
  }

}

@media (max-width: 380px) {
  .floating-apk span,
  .floating-apk span:not(.material-symbols-outlined) {
    display: none;
  }

}

