﻿/* o04 3pattibonusapk.com — ported from tmp/static-sites/o04_3pattibonusapk_com */

:root {
  --color-brand-navy: #2f6bff;
  --color-brand-navy-dark: #102a43;
  --color-brand-royal: #ff8a00;
  --color-brand-sky: #ffb800;
  --color-brand-cta: #2f6bff;
  --color-brand-cta-hover: #1e4fd6;
  --color-brand-cta-soft: #eef4ff;
  --color-brand-surface: #f8faff;
  --color-brand-card: #ffffff;
  --color-brand-text: #486581;
  --color-brand-muted: #627d98;
  --color-brand-faint: #829ab1;
  --color-brand-border: #dce6ff;
  --color-brand-ivory: #102a43;
  --color-brand-forest: #eef4ff;
  --color-brand-accent: #ffb800;
  --color-brand-accent-muted: #fff7d6;
  --color-tag-safe-bg: #e8fff3;
  --color-tag-safe-text: #12b76a;
  --color-tag-hot-bg: #fff5e5;
  --color-tag-hot-text: #ff8a00;
  --color-rank-gold: #ffb800;
  --color-rank-silver: #9cb4d0;
  --color-rank-bronze: #c67d4e;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Lexend', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --brand-primary: #2f6bff;
  --search-results-bg: #fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
}

@media (min-width: 1024px) {
  html { scroll-padding-top: 5.75rem; }
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--color-brand-text);
  background-color: var(--color-brand-surface);
  background-image:
    repeating-linear-gradient(-12deg, transparent, transparent 48px, rgb(47 107 255 / 0.025) 48px, rgb(47 107 255 / 0.025) 49px),
    radial-gradient(ellipse 100% 80% at 100% -15%, rgb(47 107 255 / 0.11), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 10%, rgb(255 184 0 / 0.07), transparent 48%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgb(255 138 0 / 0.05), transparent 50%);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html.drawer-open,
html.drawer-open body { overflow: hidden; }

h1, h2, h3, .display-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--color-brand-ivory);
}

a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { flex: 1; overflow-x: hidden; }

.page-wrap {
  margin-inline: auto;
  width: 100%;
  max-width: min(100%, 42rem);
  padding-inline: 12px;
}

@media (min-width: 640px) {
  .page-wrap { max-width: 56rem; padding-inline: 20px; }
}

@media (min-width: 1024px) {
  .page-wrap { max-width: 64rem; }
}

/* Inner pages — container + listing/article layouts */
.wrap {
  margin-inline: auto;
  width: 100%;
  max-width: min(100%, 42rem);
  padding-inline: 12px;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .wrap { max-width: 56rem; padding-inline: 20px; }
}

@media (min-width: 1024px) {
  .wrap { max-width: 64rem; }
}

.section {
  padding: 24px 0;
  width: 100%;
  min-width: 0;
}

.page-hero {
  border-bottom: 1px solid var(--color-brand-border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgb(47 107 255 / 0.08), transparent 55%),
    linear-gradient(180deg, #fff, var(--color-brand-cta-soft));
  padding-top: 8px;
}

.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-brand-navy-dark);
}

.lead {
  margin: 12px 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-brand-muted);
}

.blog-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.blog-card {
  border: 1px solid var(--color-brand-border);
  border-radius: 16px;
  background: var(--color-brand-card);
  padding: 18px;
  box-shadow: 0 4px 24px -16px rgb(16 42 67 / 0.15);
}

.blog-card h3 {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.blog-card h3 a:hover { color: var(--color-brand-cta); }

.soft-panel {
  border: 1px dashed var(--color-brand-border);
  border-radius: 16px;
  background: var(--color-brand-card);
  padding: 24px;
  text-align: center;
}

.soft-panel h3 {
  margin: 0;
  color: var(--color-brand-navy-dark);
}

.soft-panel p {
  margin: 8px 0 0;
  color: var(--color-brand-muted);
}

.prose {
  max-width: 48rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-brand-text);
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.prose p,
.prose li {
  color: var(--color-brand-text);
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

.text-gradient-hero {
  background: linear-gradient(120deg, #102a43 0%, #2f6bff 48%, #1e4fd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-brand-border);
  border-left: 4px solid var(--color-brand-accent);
  border-radius: 0 999px 999px 0;
  background: rgb(255 255 255 / 0.95);
  padding: 6px 16px 6px 12px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-brand-navy-dark);
  box-shadow: 0 1px 2px rgb(16 42 67 / 0.06);
}

.btn-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #1e4fd6 52%, #2f6bff 100%);
  box-shadow: 0 10px 28px -6px rgb(47 107 255 / 0.55);
  transition: transform 150ms ease, background 150ms ease;
  touch-action: manipulation;
}

.btn-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e4fd6 0%, #1740b8 100%);
}

.btn-cta-secondary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-brand-accent);
  border-radius: 999px;
  background: #fff;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-navy-dark);
  box-shadow: 0 1px 2px rgb(16 42 67 / 0.06);
  transition: transform 150ms ease, background 150ms ease;
  touch-action: manipulation;
}

.btn-cta-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-brand-accent-muted);
}

.directory-download-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #ff8a00 95%);
  box-shadow: 0 6px 18px -4px rgb(255 138 0 / 0.45);
  transition: transform 150ms ease;
}

.directory-download-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e4fd6 0%, #e67a00 100%);
}

.card-hover-glow {
  transition: transform 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 2px 8px rgb(16 42 67 / 0.05), 0 0 0 1px rgb(220 230 255 / 0.9);
}

.card-hover-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -22px rgb(47 107 255 / 0.2), 0 8px 24px -12px rgb(255 184 0 / 0.12), 0 0 0 1px rgb(47 107 255 / 0.15);
}

.hero-grid {
  position: relative;
  border-top: 1px solid var(--color-brand-border);
  border-bottom: 1px solid var(--color-brand-border);
  background:
    radial-gradient(ellipse 85% 65% at 95% 5%, rgb(47 107 255 / 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 95%, rgb(255 184 0 / 0.1), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #eef4ff 42%, #f8faff 100%);
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 31px, rgb(47 107 255 / 0.04) 31px, rgb(47 107 255 / 0.04) 32px);
  mask-image: linear-gradient(180deg, black 30%, transparent 92%);
}

.hero-grid > .page-wrap { position: relative; z-index: 1; }

.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Header */
.mh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
  background: linear-gradient(165deg, #153bb3 0%, #1e4fd6 38%, #2f6bff 72%, #3d7aff 100%);
  box-shadow: 0 14px 44px -22px rgb(16 42 100 / 0.55);
}

.mh-header__accent {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(255 184 0 / 0.7), rgb(255 255 255 / 0.9), rgb(255 184 0 / 0.7));
  opacity: 0.9;
  pointer-events: none;
}

.mh-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.mh-header__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.mh-header__logo {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  object-fit: contain;
}

.mh-header__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.mh-header__tagline {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(255 255 255 / 0.75);
}

@media (min-width: 640px) {
  .mh-header__title { font-size: 1.15rem; }
  .mh-header__tagline { display: block; }
}

.mh-header__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .mh-header__nav { display: flex; gap: 8px; }
}

.mh-header__nav a {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
  transition: background 150ms ease;
}

.mh-header__nav a:hover {
  background: rgb(255 255 255 / 0.15);
  color: #fff;
}

.mh-header__nav a.is-active {
  background: #fff;
  color: var(--color-brand-navy-dark);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}

.mh-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.mh-header__cta {
  display: none;
}

@media (min-width: 768px) {
  .mh-header__cta {
    display: inline-flex;
    min-height: 36px;
    padding-inline: 16px;
    font-size: 0.65rem;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35);
  }
}

.mh-header__menu-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  padding: 0;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.mh-header__menu-icon {
  font-size: 1.15rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .mh-header__menu-btn { display: none !important; }
}

/* Legacy chips row removed from layout — keep rules for backwards compatibility */
.mh-header__chips {
  display: none;
}

.mh-header__chip {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.mh-header__chip--cta {
  background: linear-gradient(135deg, #ffb800 0%, #ff8a00 100%);
  color: var(--color-brand-navy-dark);
  box-shadow: 0 8px 22px -6px rgb(0 0 0 / 0.25);
}

.mh-header__chip--nav {
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.9);
}

.mh-header__chip--nav.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--color-brand-navy-dark);
}

/* Drawer */
.mh-drawer[hidden] { display: none; }

.mh-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: rgb(16 42 67 / 0.25);
  backdrop-filter: blur(4px);
}

.mh-drawer__panel {
  margin-left: auto;
  display: flex;
  min-height: 100%;
  width: 100%;
  max-width: 22rem;
  flex-direction: column;
  border-left: 2px solid rgb(255 184 0 / 0.2);
  background: #fff;
  box-shadow: -16px 0 56px -24px rgb(47 107 255 / 0.18);
}

.mh-drawer__head {
  position: relative;
  border-bottom: 2px solid rgb(220 230 255 / 0.8);
  background: linear-gradient(to bottom right, rgb(238 244 255 / 0.5), #fff);
  padding: 20px;
}

.mh-drawer__head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-brand-cta), var(--color-brand-accent), var(--color-brand-royal));
}

.mh-drawer__eyebrow {
  padding-top: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-brand-royal);
}

.mh-drawer__title {
  margin: 16px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand-navy-dark);
}

.mh-drawer__close {
  border: 1px solid var(--color-brand-border);
  border-radius: 999px;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand-navy-dark);
  cursor: pointer;
}

.mh-drawer__nav {
  flex: 1;
  padding: 16px;
}

.mh-drawer__nav a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  border: 2px solid var(--color-brand-border);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  color: var(--color-brand-navy-dark);
}

.mh-drawer__nav a.is-active {
  border-color: rgb(255 184 0 / 0.45);
  background: linear-gradient(90deg, var(--color-brand-cta-soft), var(--color-brand-accent-muted));
}

.mh-drawer__note {
  border-top: 1px solid var(--color-brand-border);
  padding: 16px 20px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--color-brand-muted);
}

/* Footer */
.mh-footer {
  padding: 40px 0 32px;
}

.mh-footer__card {
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 28px 28px 0 0;
  background: var(--color-brand-card);
  box-shadow: 0 -14px 48px -28px rgb(47 107 255 / 0.2);
}

.mh-footer__band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #102a43 0%, #2f6bff 46%, #ff8a00 105%);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.mh-footer__band p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.mh-footer__grid {
  display: grid;
  gap: 24px;
  padding: 32px 20px;
}

@media (min-width: 640px) {
  .mh-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.mh-footer__intro {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-brand-muted);
}

.mh-footer__col h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand-navy-dark);
}

.mh-footer__col ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mh-footer__col a {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-brand-muted);
}

.mh-footer__col a:hover {
  color: var(--color-brand-royal);
  text-decoration: underline;
}

.mh-footer__legal {
  border-top: 1px solid var(--color-brand-border);
  background: var(--color-brand-forest);
  padding: 20px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-brand-muted);
}

.mh-footer__legal p { margin: 0 0 8px; }
.mh-footer__copy { margin-top: 16px; font-size: 0.8rem; color: var(--color-brand-faint); }

/* Home sections */
.mh-home { padding-bottom: 48px; }

.mh-offers-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-brand-navy-dark);
}

.mh-offers-label::before,
.mh-offers-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-brand-accent));
}

.mh-offers-label::after {
  background: linear-gradient(270deg, transparent, var(--color-brand-accent));
}

.mh-banner-shell {
  overflow: hidden;
  border: 2px solid rgb(220 230 255 / 0.8);
  border-radius: 24px;
  background: linear-gradient(to bottom, rgb(238 244 255 / 0.2), #fff);
  padding: 6px;
  box-shadow: 0 28px 70px -36px rgb(47 107 255 / 0.28);
}

.mh-rankings { margin-top: 24px; }

.mh-rankings h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.mh-rankings h2 {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-rankings__intro {
  margin: 8px auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-brand-muted);
}

.mh-podium {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 32px auto 0;
  max-width: 48rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .mh-podium { gap: 16px; }
}

.mh-podium__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 11rem;
  border-radius: 24px;
  background: linear-gradient(to bottom, #fff, rgb(238 244 255 / 0.2));
  padding: 16px 8px 14px;
  text-align: center;
  color: inherit;
  box-sizing: border-box;
  overflow: hidden;
}

.mh-podium__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mh-podium__card--gold {
  min-height: 12.75rem;
  border: 2px solid var(--color-rank-gold);
  background: rgb(255 247 214 / 0.8);
  box-shadow: 0 28px 64px -26px rgb(255 184 0 / 0.45);
  transform: scale(1);
}

.mh-podium__card--side {
  transform-origin: bottom center;
}

@media (min-width: 640px) {
  .mh-podium__card--gold { min-height: 14.25rem; z-index: 1; }
  .mh-podium__card--side { transform: scale(0.96); transform-origin: bottom center; }
}

.mh-podium__badge {
  position: absolute;
  top: 8px;
  left: -4px;
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}

.mh-podium__badge--gold { background: var(--color-rank-gold); color: #000; }
.mh-podium__badge--silver { background: var(--color-rank-silver); color: var(--color-brand-navy-dark); }
.mh-podium__badge--bronze { background: var(--color-rank-bronze); color: #fff; }

.mh-podium__icon-wrap {
  position: relative;
  display: inline-flex;
  align-self: center;
}

.mh-podium__icon {
  width: 4rem;
  height: 4rem;
  margin-top: 12px;
  border: 2px solid #fff;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

@media (min-width: 640px) {
  .mh-podium__icon { width: 4.5rem; height: 4.5rem; }
}

.mh-podium__name {
  margin: 12px 0 0;
  max-width: 100%;
  min-height: calc(1.2em * 2);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-brand-navy-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mh-podium__score {
  margin: 4px 0 0;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-brand-accent);
}

.mh-podium__bonus {
  margin: 4px 0 0;
  max-width: 100%;
  font-size: 0.72rem;
  color: var(--color-brand-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-podium__card .directory-download-btn {
  margin-top: auto;
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 8px 12px;
  border: 0;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.mh-rank-list,
.mh-compare-list {
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 56rem;
}

.mh-rank-row,
.mh-compare-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 2px solid rgb(220 230 255 / 0.7);
  border-left-width: 4px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  color: inherit;
}

.mh-rank-row { border-left-color: rgb(47 107 255 / 0.5); }
.mh-compare-row {
  border-left-color: rgb(255 138 0 / 0.6);
  background: linear-gradient(90deg, #fff, rgb(238 244 255 / 0.15));
}

@media (min-width: 640px) {
  .mh-rank-row, .mh-compare-row { border-radius: 24px; padding: 14px; gap: 16px; }
}

.mh-rank-row__icon,
.mh-compare-row__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--color-brand-border);
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .mh-rank-row__icon, .mh-compare-row__icon { width: 56px; height: 56px; }
}

.mh-rank-row__main,
.mh-compare-row__main { min-width: 0; flex: 1; text-align: left; }

.mh-rank-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mh-rank-row__name,
.mh-compare-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-compare-row__name { color: var(--color-brand-cta); }

.mh-rank-row__num {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.mh-rank-row__num--hot { background: var(--color-brand-accent-muted); color: var(--color-brand-accent); }
.mh-rank-row__num--plain { background: var(--color-brand-card); color: var(--color-brand-navy-dark); }

.mh-rank-row__meta,
.mh-compare-row__meta {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--color-brand-muted);
}

.mh-compare-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--color-brand-muted);
}

.mh-compare-row__tag-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-faint);
}

.mh-tag-android {
  border-radius: 999px;
  background: var(--color-tag-safe-bg);
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-tag-safe-text);
}

.mh-rank-row__arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-cta);
}

@media (min-width: 640px) {
  .mh-rank-row__arrow { display: none; }
  .mh-compare-row__arrow { display: none; }
}

.mh-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 32px;
}

@media (min-width: 1024px) {
  .mh-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 56px;
  }
}

.mh-hero__copy { max-width: 36rem; text-align: center; }
@media (min-width: 1024px) { .mh-hero__copy { text-align: left; } }

.mh-hero__copy h2 {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-brand-navy-dark);
}

.mh-hero__lead {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-brand-muted);
}

.mh-hero__sub {
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand-faint);
}

.mh-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .mh-hero__actions { flex-direction: row; justify-content: center; }
  @media (min-width: 1024px) { .mh-hero__actions { justify-content: flex-start; } }
}

.mh-ladder-card {
  display: none;
  max-width: 28rem;
  border: 2px solid rgb(220 230 255 / 0.8);
  border-radius: 28px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 28px 70px -40px rgb(47 107 255 / 0.35);
}

@media (min-width: 1024px) {
  .mh-ladder-card { display: block; }
}

.mh-trust { margin-top: 48px; }
.mh-trust h2 { text-align: center; font-size: 1.25rem; font-weight: 800; color: var(--color-brand-navy-dark); }

.mh-trust__grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .mh-trust__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.mh-trust__card {
  display: flex;
  gap: 16px;
  border: 2px solid rgb(220 230 255 / 0.7);
  border-radius: 24px;
  background: linear-gradient(to bottom right, #fff, #fff, rgb(238 244 255 / 0.2));
  padding: 16px;
}

.mh-trust__icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffb800 0%, #ff8a00 100%);
  font-size: 1.125rem;
  color: #fff;
  box-shadow: 0 4px 12px rgb(255 138 0 / 0.3);
}

.mh-trust__card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand-navy-dark);
}

.mh-trust__card p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-brand-muted);
}

.mh-section-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-section-intro {
  margin: 8px auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-brand-muted);
}

.mh-search-block { margin-top: 56px; }
.mh-search-block__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brand-faint);
}

.mh-search-block__shell {
  margin-top: 16px;
  border: 2px dashed rgb(255 184 0 / 0.4);
  border-radius: 24px;
  background: linear-gradient(to bottom right, rgb(238 244 255 / 0.4), #fff, rgb(255 247 214 / 0.5));
  padding: 16px;
}

.mh-ticker {
  margin-top: 32px;
  border: 2px solid rgb(220 230 255 / 0.8);
  border-radius: 24px;
  background: linear-gradient(90deg, rgb(16 42 67 / 0.03), rgb(238 244 255 / 0.3));
  padding: 16px 24px;
  text-align: center;
}

.mh-ticker__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand-cta);
}

.mh-ticker__text {
  margin: 4px 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-brand-muted);
}

.mh-tabs {
  margin-top: 24px;
}

.page-wrap.mh-tabs {
  padding-inline: 10px;
}

@media (min-width: 640px) {
  .page-wrap.mh-tabs { padding-inline: 16px; }
}

.mh-tabs__bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.mh-tabs__btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid rgb(220 230 255 / 0.95);
  border-radius: 999px;
  background: #fff;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-muted);
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(16 42 67 / 0.04);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.mh-tabs__btn:hover:not(.is-active) {
  color: var(--color-brand-navy-dark);
  border-color: rgb(47 107 255 / 0.25);
}

.mh-tabs__btn:focus-visible {
  outline: 2px solid rgb(47 107 255 / 0.45);
  outline-offset: 2px;
}

.mh-tabs__btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #2f6bff 0%, #1e4fd6 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(47 107 255 / 0.45);
}

.mh-tabs__panel { display: none; }
.mh-tabs__panel.is-active { display: block; }

.mh-tile-grid {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .mh-tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.mh-tile-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(220 230 255 / 0.85);
  border-radius: 12px;
  background: #fff;
  padding: 6px 8px;
  color: inherit;
}

.mh-tabs .mh-tile-card.card-hover-glow {
  box-shadow: none;
}

.mh-tabs .mh-tile-card.card-hover-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -14px rgb(47 107 255 / 0.35);
}

@media (min-width: 640px) {
  .mh-tile-card {
    gap: 8px;
    padding: 7px 10px;
  }
}

.mh-tile-card__cta {
  flex-shrink: 0;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .mh-tile-card__cta {
    min-height: 28px;
    padding: 5px 11px;
    font-size: 0.56rem;
  }
}

.mh-tile-card__badge {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 1;
  display: flex;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 0 2px;
  font-size: 0.5rem;
  font-weight: 900;
  color: #fff;
  background: var(--color-brand-cta);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}

.mh-tile-card__icon-wrap { position: relative; flex-shrink: 0; }

.mh-tile-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .mh-tile-card__icon { width: 52px; height: 52px; }
}

.mh-tile-card__main { min-width: 0; flex: 1; }

.mh-tile-card__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-tile-card__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.3;
  color: var(--color-brand-muted);
}

.mh-disclaimer-box {
  margin-top: 48px;
  border: 2px solid rgb(255 184 0 / 0.25);
  border-left: 4px solid var(--color-brand-royal);
  border-radius: 24px;
  background: linear-gradient(to bottom right, var(--color-brand-card), rgb(238 244 255 / 0.25));
  padding: 20px 24px;
}

.mh-disclaimer-box h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-editorial { margin-top: 48px; }
.mh-editorial h2 { text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--color-brand-navy-dark); }

.mh-editorial__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-brand-muted);
}

@media (min-width: 768px) {
  .mh-editorial__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.mh-reviews { margin-top: 56px; }

.mh-review-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px solid rgb(220 230 255 / 0.8);
  border-radius: 24px;
  background: linear-gradient(to bottom right, #fff, rgb(255 247 214 / 0.3));
  padding: 16px;
  color: inherit;
}

.mh-reviews__grid {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .mh-reviews__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.mh-review-card__kicker {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand-royal);
}

.mh-review-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand-navy-dark);
}

.mh-faq { margin-top: 56px; }
.mh-faq h2 { font-size: 1.05rem; font-weight: 800; color: var(--color-brand-navy-dark); }

/* Editorial ranking (CMS app-card grid) */
.mh-podium-block { margin-top: 32px; }
.mh-editorial-ranking { margin-top: 32px; }
.mh-home-hub .hero-grid + .mh-podium-block { margin-top: 0; }

.section-head,
.apps-directory__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head__copy,
.section-head > div,
.apps-directory__head > div {
  min-width: 0;
  flex: 1 1 12rem;
}

.section-head__title,
.section-head .mh-section-title,
.apps-directory__head .mh-section-title {
  margin: 8px 0 0;
  text-align: left;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.2;
}

.section-head__cta,
.section-head .btn-cta,
.apps-directory__head .btn-cta {
  flex-shrink: 0;
  align-self: center;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.65rem;
}

.apps-directory {
  display: grid;
  gap: 20px;
}

.app-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--color-brand-border);
  border-radius: 12px;
  padding: 14px;
  background: var(--color-brand-card);
  min-width: 0;
}

.app-card .rank {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-brand-royal), var(--color-brand-accent));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--color-brand-border);
  object-fit: cover;
}

.app-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.app-title-row h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.app-title-row h3 a {
  color: var(--color-brand-navy-dark);
  text-decoration: none;
}

.app-title-row .rating {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-accent);
}

.app-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.app-card .pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-brand-forest);
  color: var(--color-brand-muted);
}

.app-card .pill.gold {
  background: var(--color-tag-hot-bg);
  color: var(--color-tag-hot-text);
}

.app-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-brand-border);
  background: #fff;
  color: var(--color-brand-navy-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--color-brand-cta), #1e4fd6);
  color: #fff;
}

/* Banner carousel */
.banner-carousel { width: 100%; }
.banner-viewport { overflow: hidden; border-radius: 20px; }
.banner-track { display: flex; transition: transform 260ms ease; }
.banner-track.is-dragging { transition: none; }
.banner { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.banner-dot { width: 9px; height: 9px; border: 0; border-radius: 999px; background: rgb(47 107 255 / 0.22); cursor: pointer; padding: 0; }
.banner-dot.is-active { width: 24px; background: var(--color-brand-cta); }

/* Search */
.search-panel { display: grid; gap: 10px; }
.search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-brand-border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--color-brand-ivory);
  background: #fff;
}

.search-input::placeholder { color: var(--color-brand-faint); }

/* FAQ */
.faq details {
  border: 1px solid var(--color-brand-border);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  margin-top: 10px;
}

.faq summary { cursor: pointer; font-weight: 800; color: var(--color-brand-navy-dark); }
.faq p { margin: 8px 0 0; color: var(--color-brand-muted); line-height: 1.6; }

/* App detail */
.mh-page {
  padding-bottom: 8px;
}

.mh-app-hero {
  overflow: hidden;
  border: 1px solid var(--color-brand-border);
  border-radius: 24px;
  background: var(--color-brand-card);
  box-shadow: 0 12px 40px -24px rgb(47 107 255 / 0.22);
}

.mh-app-hero__head {
  display: grid;
  gap: 20px;
  padding: 20px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgb(47 107 255 / 0.07), transparent 55%),
    linear-gradient(180deg, #fff, var(--color-brand-cta-soft));
}

@media (min-width: 720px) {
  .mh-app-hero__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 28px;
  }
}

.mh-app-hero__icon-wrap {
  display: flex;
  justify-content: center;
}

.mh-app-hero__icon {
  width: 112px;
  height: 112px;
  border: 2px solid rgb(255 184 0 / 0.35);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 28px -12px rgb(16 42 67 / 0.2);
}

.mh-app-hero__copy h1 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.08;
  color: var(--color-brand-navy-dark);
}

.mh-app-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mh-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mh-pill--rating {
  border: 1px solid rgb(255 184 0 / 0.45);
  background: var(--color-brand-accent-muted);
  color: var(--color-brand-navy-dark);
}

.mh-pill--bonus {
  border: 1px solid rgb(47 107 255 / 0.2);
  background: var(--color-brand-cta-soft);
  color: var(--color-brand-cta);
}

.mh-app-hero__disclaimer {
  margin: 14px 0 0;
  max-width: 40rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-brand-muted);
}

.mh-app-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

@media (min-width: 640px) {
  .mh-app-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 28px; }
}

.mh-stat {
  border: 1px solid var(--color-brand-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--color-brand-forest));
  padding: 12px 14px;
}

.mh-stat span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-brand-faint);
}

.mh-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-app-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--color-brand-border);
  padding: 16px 20px 20px;
  background: #fff;
}

@media (min-width: 720px) {
  .mh-app-hero__cta { padding: 18px 28px 24px; }
}

.mh-app-hero__cta .btn-cta {
  min-width: min(100%, 220px);
  justify-content: center;
}

.mh-app-panel {
  border: 1px solid var(--color-brand-border);
  border-radius: 20px;
  background: var(--color-brand-card);
  padding: 22px 20px;
  box-shadow: 0 8px 32px -20px rgb(16 42 67 / 0.12);
}

@media (min-width: 640px) {
  .mh-app-panel { padding: 28px 32px; }
}

.mh-app-tags h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-brand-navy-dark);
}

.mh-app-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-app-tags li {
  border: 1px solid var(--color-brand-border);
  border-radius: 999px;
  background: var(--color-brand-forest);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-muted);
}

.prose-article {
  max-width: none;
  margin-inline: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-brand-text);
}

.prose-article h2 {
  margin-top: 40px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-brand-ivory);
}

.detail-hero {
  display: grid;
  gap: 20px;
  padding: 24px 0;
}

@media (min-width: 720px) {
  .detail-hero { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
}

.detail-icon {
  width: 112px;
  height: 112px;
  border: 1px solid var(--color-brand-border);
  border-radius: 12px;
  object-fit: cover;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fact {
  border: 1px solid var(--color-brand-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.fact span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand-faint);
}

.fact strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-brand-ivory);
}

.button.primary,
.btn-cta { border: 0; cursor: pointer; }

.contact-modal__panel { color: var(--color-brand-ivory); }

@media (min-width: 640px) {
  .mh-rank-row .directory-download-btn,
  .mh-compare-row .directory-download-btn,
  .mh-tile-card .directory-download-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .mh-rank-row .mh-rank-row__arrow,
  .mh-compare-row .mh-rank-row__arrow,
  .mh-tile-card .mh-rank-row__arrow {
    display: none;
  }
}


/* CMS extensions */
/* CMS extension modules — shared across migration themes */

.global-top-ad {
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: var(--surface, #fff);
}

.global-top-ad__inner {
  padding-block: 8px;
}

.global-top-ad__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
}

.global-top-ad__link img {
  display: block;
  width: 100%;
  height: auto;
}

.global-top-ad__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.home-notice-bar {
  border-bottom: 1px solid rgb(255 184 0 / 0.35);
  background: linear-gradient(90deg, rgb(255 247 214 / 0.98), rgb(238 244 255 / 0.95));
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: var(--color-brand-navy-dark);
}

.home-notice-bar__inner p {
  margin: 0;
}

.floating-image-links {
  position: fixed;
  z-index: 35;
  right: calc(14px + env(safe-area-inset-right, 0px));
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

html.vacant-modal-open .floating-image-links,
html.drawer-open .floating-image-links {
  display: none;
}

.floating-image-links__item {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.floating-image-links__item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.back-to-top-btn {
  position: fixed;
  z-index: 34;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: var(--surface, #fff);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.has-download-dock-page .back-to-top-btn {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.contact-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 16px;
  border: none;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-modal:not([open]) {
  display: none;
}

.contact-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.contact-modal__panel {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 22px;
  padding-top: 48px;
  background: var(--surface, #fff);
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.contact-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.contact-modal__actions .button {
  width: 100%;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.search-typeahead {
  position: relative;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  max-height: min(320px, 50dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line, var(--color-brand-border, rgba(255, 255, 255, 0.12)));
  border-radius: 8px;
  background-color: var(
    --search-results-bg,
    var(--theme-surface-card, var(--color-brand-panel-elevated, var(--color-brand-card, var(--ink-deep, #fff))))
  );
  color: var(--ink, var(--text-primary, var(--color-brand-text, #132018)));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.search-results__item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, var(--color-brand-border, rgba(255, 255, 255, 0.12)));
  color: inherit;
  text-decoration: none;
}

.search-results__item:last-child {
  border-bottom: 0;
}

.search-results__item:hover,
.search-results__item:focus {
  background: var(--gold-100, var(--color-brand-accent-muted, rgba(255, 255, 255, 0.08)));
}

.search-results__item strong {
  display: block;
  font-size: 0.92rem;
}

.search-results__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(
    --muted,
    var(--text-secondary, var(--color-brand-text-muted, var(--color-brand-muted, inherit)))
  );
}

.search-results__empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(
    --muted,
    var(--text-secondary, var(--color-brand-text-muted, var(--color-brand-muted, inherit)))
  );
}

.apps-directory {
  display: grid;
  gap: 28px;
}

.apps-directory__tabs {
  display: grid;
  gap: 14px;
}

.apps-directory__tabs-head {
  display: grid;
  gap: 4px;
}

.apps-directory__tabs-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.app-tabs {
  display: grid;
  gap: 16px;
}

.app-tabs__bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.app-tabs__btn {
  flex: 0 0 auto;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink, var(--text-primary, #132018));
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.app-tabs__btn.is-active {
  background: var(--brand-primary, var(--green-800, var(--green-700, #086b38)));
  border-color: var(--brand-primary, var(--green-800, var(--green-700, #086b38)));
  color: #fff;
}

.app-tabs__panel {
  display: none;
}

.app-tabs__panel.is-active {
  display: block;
}

.download-dock {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--color-brand-border, #dce6ff);
  background: var(--color-brand-card, #fff);
  box-shadow: 0 -8px 24px rgba(16, 42, 67, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.download-dock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
}

.download-dock__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--color-brand-border, #dce6ff);
  border-radius: 10px;
  object-fit: cover;
}

.download-dock__meta {
  flex: 1;
  min-width: 0;
}

.download-dock__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--color-brand-ivory, #102a43);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-dock__rating {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--color-brand-muted, #627d98);
}

.download-dock__cta {
  flex-shrink: 0;
  min-height: 42px;
  padding-inline: 16px;
}

body.has-download-dock-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

.page-wrap--narrow {
  max-width: 460px;
}

.prose,
.compact-prose,
.faq {
  margin-inline: auto;
}

.blog-cover {
  display: block;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* Shared app-card layout — matches partials/app-card.njk */
.app-card {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
}

.app-card > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.app-card .meta {
  grid-column: unset;
  grid-row: unset;
  margin-top: 8px;
}

.app-card .card-actions {
  grid-column: unset;
  grid-row: unset;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .app-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.soft-panel__head {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--color-brand-border, var(--line));
}

.soft-panel__block {
  padding: 12px;
  border-bottom: 1px solid var(--color-brand-border, var(--line));
}

.soft-panel__block:last-child {
  border-bottom: 0;
}

.home-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.home-tab-grid__btn {
  border: 1px solid var(--color-brand-border, var(--line));
  border-radius: 8px;
  padding: 10px 8px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.home-tab-grid__btn.is-active {
  background: var(--color-brand-cta, var(--brand-primary));
  color: #fff;
  border-color: transparent;
}


/* friend links (contract upgrade) */
.footer-friend-links { display: grid; gap: 8px; margin-top: 16px; }
.footer-friend-links__title { margin: 0; opacity: 0.7; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-friend-links a { margin-right: 12px; }
