:root {
  --ink: #172033;
  --muted: #5c6775;
  --line: #e3e8ef;
  --bg: #f3f5f8;
  --card: #ffffff;
  --accent: #134e4a;
  --accent-soft: #e7f3f1;
  --header: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.04), 0 8px 24px rgba(23, 32, 51, 0.04);
  --radius: 16px;
  --max: 1120px;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #f4f6f8;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
}
.brand-name {
  display: block;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.1;
}
.brand-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.langs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eef1f5;
  border-radius: 999px;
}
.langs a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
}
.langs a[aria-current="true"] {
  background: white;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08);
  font-weight: 650;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
}
.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 22px 0 64px;
}
.cats {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cats-label {
  margin: 6px 10px 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cats a, .cats button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}
.cats a:hover, .cats a:focus-visible, .cats button:hover, .cats button:focus-visible, .cats button[aria-pressed="true"] { background: var(--accent-soft); }
.cats button[aria-pressed="true"] { font-weight: 650; }
.cats .count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}
.search {
  margin: 18px 0 8px;
  display: flex;
}
.search input {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
.search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.band + .band { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.band-title {
  margin: 28px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.category { margin-top: 28px; }
.category h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
a.card:hover { border-color: #c9d4cf; }
.card h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-top > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e8edf2;
  color: var(--ink);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filters button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef1f5;
}
.chip {
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.empty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.empty-list li {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}
.muted { color: var(--muted); }
.category.is-empty h2 { font-size: 16px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.crumbs a { color: var(--muted); }

.product-head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
}
.product-head .app-icon { width: 88px; height: 88px; border-radius: 22px; }
.product-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tagline { margin: 8px 0 0; font-size: 18px; }
.lead { margin: 6px 0 0; color: var(--muted); }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.store {
  min-width: 180px;
  text-align: left;
  border: 1px dashed #c5ced8;
  background: #f7f8fa;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: not-allowed;
  opacity: 0.9;
}
.store:disabled { opacity: 0.85; }
.store-where { display: block; font-size: 12px; color: var(--muted); }
.store-state { display: block; font-size: 16px; font-weight: 650; }

.panel {
  margin-top: 22px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel h2 { margin: 0 0 6px; font-size: 20px; }
.module-list, .steps { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.module-list li, .steps li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}
.module-list strong, .steps strong { display: block; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8eb;
  border: 1px solid #f0e0c2;
}
.page-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.source {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.policy h1, .support h1, .product h1.page-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.policy .note, .source-note {
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
}
.policy h2 { font-size: 18px; margin: 22px 0 8px; }
.policy ul { padding-left: 18px; }
.policy li { margin: 6px 0; }
.mail {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px 36px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 4px 0; width: min(var(--max), 100%); }

.missing { padding: 48px 0; }

@media (max-width: 800px) {
  .site-header { padding: 12px 16px; }
  .hero, .shell {
    width: min(var(--max), calc(100% - 24px));
  }
  .shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cats {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .cats-label { display: none; }
  .cats a { white-space: nowrap; }
  .product-head { grid-template-columns: 64px 1fr; }
  .product-head .app-icon { width: 64px; height: 64px; border-radius: 16px; }
}
