:root {
  --ink: #202124;
  --muted: #5f6368;
  --paper: #f6f8fc;
  --card: #fff;
  --line: #e4e7ec;
  --green: #01875f;
  --green-dark: #056449;
  --green-soft: #e6f4ef;
  --star: #01875f;
  --blue: #1a73e8;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 2px 8px rgba(60, 64, 67, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--paper);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h3 { font-size: 1.05rem; }
p { margin: 0.4rem 0 0; }
a { color: inherit; }
.sr, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0.6rem;
  left: 1rem;
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.45rem 0.7rem;
  overflow: visible;
  clip: auto;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.mast {
  background: linear-gradient(100deg, #056449 0%, #01875f 55%, #12a36e 100%);
  color: #fff;
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand, .foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand img, .foot-logo img { display: block; border-radius: 12px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; }
.brand-small {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7ffef;
}
.finder {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.2rem 0.2rem 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.finder input, .lookup input, .lookup select, .lookup textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}
.finder input {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.4rem;
  border-radius: 0;
}
.finder input::placeholder { color: #80868b; }
.finder button, .lookup button, .nav-toggle, #shot-close, .btn {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lookup button, #shot-close { justify-self: start; }
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.menu { background: #fff; }
.menu ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0.45rem 0;
  margin: 0;
  overflow-x: auto;
}
.nav-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3c4043;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-link.is-current, .nav-link:hover { background: var(--green-soft); color: var(--green-dark); }

.store-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(160deg, #067a55 0%, #01875f 42%, #0b8f6a 100%);
  color: #fff;
  padding: 2.2rem 0 2.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.file-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 0.7rem; }
.file-pills span {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.store-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); max-width: 14ch; }
.store-hero .dek { color: rgba(255, 255, 255, 0.9); max-width: 38rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.btn-install { background: #fff; color: var(--green-dark); }
.btn-ghost, .band-head > a.btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.band-head > a.btn { color: var(--green-dark); border-color: #b7e0d2; background: #fff; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  max-width: 28rem;
}
.hero-stats a {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
}
.hero-stats strong { display: block; font-size: 1.45rem; }
.hero-stats span { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }

.phone {
  background: #0e3d2e;
  border-radius: 28px;
  padding: 0.7rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem 0.7rem;
}
.phone-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffc3;
}
.phone-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 16px;
  padding: 0.65rem 0.7rem;
  margin-top: 0.45rem;
}
.phone-row b, .phone-row small { display: block; }
.phone-row small { color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.phone-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.phone-get {
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.formats { padding-top: 1.2rem; }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.format-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem 1rem;
}
.format-card span {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
}
.format-card p { color: var(--muted); font-size: 0.92rem; }

.band { padding: 1.5rem 0 0.3rem; }
.band-paper { padding-top: 1.4rem; }
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.band-head p, .split-chips h3 { color: var(--muted); font-weight: 600; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.8rem;
  text-decoration: none;
  min-height: 132px;
}
.cat-tile:hover { outline: 2px solid var(--green); }
.cat-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--tone, var(--green));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.cat-name { font-weight: 800; }
.apk-chip {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}
.split-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0.55rem 0 1rem; }
.chips a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  box-shadow: 0 1px 1px rgba(60, 64, 67, 0.06);
}
.chips a:hover { border-color: var(--green); color: var(--green-dark); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.8rem;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.9rem;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}
.card:hover { outline: 2px solid var(--green); }
.card-icon .icon, .icon, .icon-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: #f1f3f4;
}
.pkg-icon, .pkg-top .icon, .pkg-top .icon-fallback { width: 108px; height: 108px; border-radius: 26px; }
.icon-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--green);
  color: #fff;
}
.card-copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; width: 100%; flex: 1; }
.card-title { font-weight: 800; font-size: 0.98rem; overflow-wrap: anywhere; }
.card-sub, .card-meta, .fine, .store-note { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.stars { color: var(--star); font-weight: 800; font-size: 0.86rem; }
.card .apk-chip { margin-top: 0.45rem; }
.kicker {
  display: inline-block;
  margin: 0 0 0.3rem;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.empty, .empty-store .empty {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
  color: var(--muted);
}

.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0 0.4rem; }
.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}
.page-link.is-current { background: var(--green); color: #fff; border-color: var(--green); }

.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; font-weight: 600; }
.crumbs a { color: var(--green-dark); text-decoration: none; }
.pkg-hero { padding: 1.2rem 0 0.4rem; }
.pkg-top {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.1rem;
  align-items: start;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.pkg-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}
.pkg-facts li {
  background: var(--paper);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
}
.pkg-facts span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pkg-facts strong { font-size: 0.92rem; }
.by a { color: var(--green-dark); font-weight: 800; text-decoration: none; }
.pkg-hero .hero-actions { margin-top: 0.9rem; }
.pkg-hero .btn { border-radius: 10px; padding: 0.75rem 0.95rem; }
.pkg-hero .btn-ink, .pkg-hero .btn-ghost { background: #fff; color: var(--green-dark); border: 1px solid #b7e0d2; }
.store-link { color: var(--green-dark); font-weight: 800; }
.shots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.7rem 0 0.3rem;
}
.shot {
  flex: 0 0 150px;
  width: 150px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.faq-item, .person, .callout, .versions li {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.8rem 0.95rem;
  margin: 0.55rem 0;
}
.faq-item summary { cursor: pointer; font-weight: 800; }
.prose h2 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.15rem; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.spec-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; align-items: start; }
.specs { margin: 0.7rem 0 0; }
.specs div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-weight: 700; }
.versions { list-style: none; padding: 0; }
.versions li { display: flex; justify-content: space-between; gap: 1rem; }
.lookup, .stack { display: grid; gap: 0.4rem; margin: 1rem 0; }
.lookup label { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.callout.warn { color: #b3261e; }
#shot-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0.8rem;
  background: #111;
  max-width: min(420px, 94vw);
}
#shot-dialog img { max-height: 78vh; width: auto; max-width: 100%; display: block; margin: 0.5rem auto 0; border-radius: 12px; }
#shot-dialog::backdrop { background: rgba(32, 33, 36, 0.72); }

#site-footer {
  margin-top: 2.4rem;
  background: #07342a;
  color: #e7f6f0;
  padding: 1.6rem 0 1.1rem;
}
#site-footer h2 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9ddec8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0.45rem 0 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-brand p { color: #c9e7dc; max-width: 24rem; }
.foot-logo { font-weight: 800; font-size: 1.2rem; }
.legal-line { margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b7d8cc; font-size: 0.82rem; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.google-auto-placed:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }

@media (max-width: 980px) {
  .hero-grid, .format-grid, .spec-layout, .foot-grid, .team, .split-chips { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .menu { display: none; }
  .menu.is-open { display: block; }
  .bar { flex-wrap: wrap; padding: 0.7rem 0; }
  .finder { order: 3; width: 100%; }
  .cat-grid, .hero-stats, .pkg-facts { grid-template-columns: 1fr 1fr; }
  .pkg-top { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; }
  .store-hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
