:root {
  color-scheme: light;
  --blue-950: #102b55;
  --blue-900: #123b78;
  --blue-800: #174f9f;
  --blue-700: #1769e8;
  --blue-600: #287cf0;
  --blue-100: #e7f0ff;
  --blue-50: #f2f7ff;
  --ink: #15243b;
  --muted: #65748b;
  --line: #dfe8f5;
  --paper: #f7faff;
  --white: #fff;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 92% 7%, rgba(211, 229, 255, .35), transparent 26rem),
    var(--paper);
}
a { color: inherit; }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6da8ff; outline-offset: 3px; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 78px;
  display: grid;
  grid-template-columns: 220px minmax(250px, 600px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(38px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(221, 231, 245, .9);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 3px 18px rgba(27, 66, 122, .035);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--blue-950);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.7px;
}
.brand b { color: var(--blue-700); font-weight: 750; }
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-mark i { border-radius: 5px; background: #287cf0; }
.brand-mark i:nth-child(2) { background: #6aa8ff; }
.brand-mark i:nth-child(3) { background: #154d9b; }
.brand-mark i:nth-child(4) { background: #a6cbff; }
.search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #f1f6fd;
  color: #59718f;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search:hover { background: #edf4fd; }
.search:focus-within {
  border-color: #9fc4fb;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(40, 124, 240, .09);
}
.search svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search input::placeholder { color: #7d8da3; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd {
  padding: 4px 7px;
  border: 1px solid #e1eaf7;
  border-radius: 6px;
  background: var(--white);
  color: #71819a;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
}
.store { width: min(1160px, 100%); margin: 0 auto; padding: 58px 30px 92px; }
.catalog { width: 100%; }
.heading-row {
  position: relative;
  isolation: isolate;
  min-height: 192px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 34px 39px;
  border: 1px solid #deebfc;
  border-radius: 28px;
  background: linear-gradient(112deg, #edf5ff 0%, #f5f9ff 55%, #eaf3ff 100%);
}
.heading-row::after {
  position: absolute;
  z-index: -1;
  top: -130px;
  right: 7%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(82, 148, 240, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.15), 0 0 0 60px rgba(73,137,224,.045);
  content: "";
}
.eyebrow { margin: 0 0 12px; color: var(--blue-700); font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 0; color: var(--blue-950); font-size: clamp(36px, 4vw, 48px); line-height: 1.06; font-weight: 750; letter-spacing: -2px; }
.subtitle { margin: 13px 0 0; color: #566b87; font-size: 15px; line-height: 1.55; }
.app-count {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(158, 191, 234, .65);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #315b91;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.categories { display: flex; gap: 9px; margin: 31px 0 21px; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  background: var(--white);
  color: #536780;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.category:hover { transform: translateY(-1px); border-color: #a9c9f5; color: var(--blue-800); background: #f8fbff; }
.category:active { transform: translateY(0); }
.category.selected { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); box-shadow: 0 5px 12px rgba(23,105,232,.2); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.app-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(28, 65, 115, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: #b7d1f5; box-shadow: 0 14px 28px rgba(33, 85, 153, .1); }
.card-main { display: flex; align-items: center; gap: 16px; }
.tile-icon {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e9ff;
  border-radius: 19px;
  background: linear-gradient(145deg, #f0f6ff, #dceaff);
  color: var(--blue-700);
  font-size: 26px;
  font-weight: 800;
}
.tile-bwp { background: linear-gradient(145deg, #eaf3ff, #cfe3ff); color: #155fc5; font-size: 27px; }
.tile-bwp span { position: relative; z-index: 1; font-weight: 850; letter-spacing: -3px; transform: translateX(-2px); }
.tile-bwp i { position: absolute; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #3f8cff; }
.tile-bwp i:nth-of-type(1) { top: 13px; }
.tile-bwp i:nth-of-type(2) { top: 27px; background: #2b72d6; }
.tile-bwp i:nth-of-type(3) { top: 41px; background: #174ea6; }
.app-copy { min-width: 0; flex: 1; }
.app-copy h2 { margin: 0; overflow: hidden; color: var(--blue-950); font-size: 16px; line-height: 1.35; font-weight: 750; letter-spacing: -.25px; text-overflow: ellipsis; white-space: nowrap; }
.app-category { margin: 6px 0 0; color: #6b7e98; font-size: 12px; font-weight: 600; }
.open-app {
  min-width: 80px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--blue-700);
  border-radius: 10px;
  background: var(--blue-700);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.open-app:hover { border-color: var(--blue-800); background: var(--blue-800); box-shadow: 0 5px 12px rgba(23,105,232,.2); }
.open-app:active { background: var(--blue-900); }
.app-description { margin: 17px 0 0; padding-left: 78px; color: #65758b; font-size: 13px; line-height: 1.55; }
.empty {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px;
  border: 1px dashed #bdd3f1;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 45%, #f3f8ff);
  color: var(--muted);
  text-align: center;
}
.empty::before, .empty::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; }
.empty::before { top: -105px; left: -80px; width: 230px; height: 230px; background: rgba(229, 240, 255, .65); }
.empty::after { right: -90px; bottom: -150px; width: 300px; height: 300px; border: 1px solid #e5effd; box-shadow: 0 0 0 26px rgba(235,244,255,.55); }
.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #d3e4fc;
  border-radius: 19px;
  background: #edf5ff;
  color: var(--blue-700);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(43, 104, 181, .08);
}
.empty h2 { margin: 18px 0 7px; color: var(--blue-950); font-size: 17px; font-weight: 750; letter-spacing: -.2px; }
.empty p { margin: 0; color: #687a92; font-size: 13px; line-height: 1.5; }
[hidden] { display: none !important; }

@media (min-width: 1250px) {
  .topbar { padding-inline: max(38px, calc((100vw - 1320px) / 2)); }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 68px; grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 11px 20px; }
  .brand { font-size: 18px; }
  .search { grid-row: 2; grid-column: 1 / -1; height: 46px; }
  .store { padding: 35px 22px 64px; }
  .heading-row { min-height: 170px; padding: 28px; border-radius: 23px; }
  .heading-row::after { right: -8%; width: 290px; height: 290px; }
  .categories { margin-top: 25px; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .store { padding: 27px 16px 48px; }
  .topbar { padding-inline: 16px; }
  .heading-row { min-height: 0; align-items: flex-start; flex-direction: column; gap: 16px; padding: 25px 21px; }
  h1 { font-size: 36px; }
  .subtitle { max-width: 230px; font-size: 14px; }
  .app-count { padding: 8px 11px; font-size: 11px; }
  .categories { gap: 7px; margin: 21px 0 15px; }
  .category { min-height: 40px; padding-inline: 15px; font-size: 12px; }
  .app-card { min-height: 0; padding: 17px; border-radius: 17px; }
  .card-main { gap: 11px; }
  .tile-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px; }
  .app-copy h2 { font-size: 14px; }
  .app-category { font-size: 11px; }
  .open-app { min-width: 68px; min-height: 40px; padding-inline: 10px; font-size: 11px; }
  .app-description { margin-top: 14px; padding-left: 65px; font-size: 12px; }
  .empty { min-height: 240px; padding: 23px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.install-guide { margin-top: 64px; }
.guide-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 19px; }
.guide-heading .eyebrow { margin-bottom: 6px; }
.guide-heading h2 { margin: 0; color: var(--blue-950); font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.guide-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d3e4fc; border-radius: 14px; background: #edf5ff; color: var(--blue-700); font-size: 24px; font-weight: 700; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guide-card { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.guide-device { display: block; margin-bottom: 11px; color: var(--blue-700); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.guide-card ol { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #61738b; font-size: 12px; line-height: 1.55; }
.guide-card li { padding-left: 2px; }
.guide-card li::marker { color: var(--blue-700); font-weight: 800; }
.guide-card li b { color: var(--blue-950); font-weight: 750; }
@media (max-width: 760px) { .install-guide { margin-top: 48px; } .guide-grid { grid-template-columns: 1fr; gap: 9px; } .guide-card { min-height: 0; padding: 15px 17px; } .guide-device { margin-bottom: 6px; } }
@media (max-width: 440px) { .guide-heading h2 { font-size: 20px; } }
