:root {
  --bg: #09090d;
  --card: #14141c;
  --card-2: #1b1b26;
  --accent: #a78bfa;
  --muted: #9b9ba8;
  --line: #ffffff14;
  --pad: clamp(18px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
  background: var(--bg);
}
html, body {
  min-height: 100%;
  min-height: 100dvh;
}
body {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Poppins, system-ui, sans-serif;
  background: var(--bg);
  color: #f4f4f7;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) calc(20px + env(safe-area-inset-bottom));
}
.bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: 100lvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(720px 420px at 12% -8%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 58%),
    radial-gradient(640px 380px at 92% 8%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    radial-gradient(520px 360px at 70% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%);
  background-size: auto, auto, auto;
}
.bar, main, .site-foot { position: relative; z-index: 1; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin: 0 calc(-1 * var(--pad)) 28px;
  padding: 4px max(var(--pad), env(safe-area-inset-right)) 12px max(var(--pad), env(safe-area-inset-left));
  box-sizing: border-box;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 21px);
  letter-spacing: -0.04em;
  color: inherit;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #000 url(/a2-icon.png) center / cover no-repeat;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .nav a.on { color: #fff; }
.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.store-pills span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ddd;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffffff08;
}
main {
  width: min(1080px, 100%);
  margin: 0 auto;
  flex: 1 0 auto;
}
.hero {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 44px);
  max-width: 720px;
}
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}
h1 em {
  font-style: normal;
  color: #f4f4f7;
}
.lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 34em;
  line-height: 1.5;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.pills span {
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  background: #ffffff08;
  border-radius: 999px;
  padding: 6px 10px;
}
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border-radius: 22px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  min-height: 132px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 #ffffff10;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px #00000055, inset 0 1px 0 #ffffff18;
}
.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card img.icon, .icon-row img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.card strong { font-size: 16px; letter-spacing: -0.03em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.go {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.site-foot {
  width: min(1080px, 100%);
  margin: 36px auto 0;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }

.legal {
  width: min(760px, 100%);
  margin: 0 auto 48px;
}
.legal h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.03em; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; font-size: 15px; }
.legal ul { padding-left: 1.2em; margin: 8px 0 16px; }
.legal a { color: #c4b5fd; }
.mail {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff10;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.apps-mini { display: grid; gap: 10px; margin-top: 18px; }
.apps-mini a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.apps-mini img { width: 40px; height: 40px; border-radius: 10px; }
.apps-mini span { color: var(--muted); font-size: 13px; }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  margin-top: 8px;
}
.support-card,
.support-side {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border-radius: 24px;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: inset 0 1px 0 #ffffff10;
}
.app-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 20px;
}
.app-pick-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.app-pick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 14px 8px 12px;
  border-radius: 18px;
  border: 1px solid #ffffff12;
  background: #0c0c12;
  min-height: 96px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.app-pick button:hover {
  transform: translateY(-2px);
  border-color: #ffffff28;
}
.app-pick button.on {
  background: color-mix(in srgb, var(--accent) 18%, #0c0c12);
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: inset 0 1px 0 #ffffff18;
}
.app-pick img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.app-pick strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.kind-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 18px;
}
.kind-row button {
  display: grid;
  gap: 2px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #0c0c12;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
}
.kind-row button strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.kind-row button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.kind-row button.on {
  background: color-mix(in srgb, var(--accent) 18%, #0c0c12);
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.support-form { display: grid; gap: 16px; }
.support-form label { display: grid; gap: 8px; color: #c8c8d2; font-size: 13px; font-weight: 600; }
.support-form input,
.support-form textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #f4f4f7;
  background: #07070c;
  border: 1px solid #ffffff2a;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 #ffffff08;
}
.support-form textarea {
  min-height: 160px;
  resize: vertical;
}
.support-form input::placeholder,
.support-form textarea::placeholder {
  color: #7d7d8c;
  font-weight: 500;
}
.support-form input:hover,
.support-form textarea:hover {
  border-color: #ffffff44;
}
.support-form input:focus,
.support-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 75%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.support-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.support-form button[type="submit"] {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
}
.support-form .status { min-height: 1.2em; font-size: 13px; }
.support-form .status.ok { color: #86efac; }
.support-form .status.err { color: #fb7185; }
.support-done { display: none; text-align: center; padding: 28px 8px; }
.support-done.show { display: block; }
.support-done h2 { font-size: 28px; margin-bottom: 8px; }
.support-side h2 { text-align: left; font-size: 20px; margin-bottom: 10px; }
.support-side p, .support-side li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.support-side ul { padding-left: 1.1em; margin: 8px 0 16px; }
.support-side a { color: #c4b5fd; }
.js-store-ios.is-off,
.js-store-android.is-off { cursor: pointer; }
.soon-note {
  width: 100%;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.sticky.is-empty { display: none !important; }

body.hub-home .nav,
body.hub-legal .nav { display: none; }
body.hub-home .get-app,
body.hub-legal .get-app {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  white-space: nowrap;
}
body.hub-home .hero {
  margin-bottom: 28px;
  max-width: 22em;
}
body.hub-home h1 {
  font-size: clamp(30px, 7vw, 46px);
}
body.hub-home .lead {
  max-width: 34em;
  font-size: 16px;
}
body.hub-home .pills { display: none; }
body.hub-home .kicker { display: none; }
body.hub-home .apps {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body.hub-home .card {
  position: relative;
  align-items: flex-start;
  text-align: left;
  min-height: 176px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  gap: 14px;
  background: linear-gradient(165deg, #1e1e28 0%, #121218 100%);
  border: 1px solid #ffffff12;
  box-shadow: inset 0 1px 0 #ffffff14, 0 16px 40px #00000055;
}
body.hub-home .card:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, #242430 0%, #15151c 100%);
  border-color: color-mix(in srgb, var(--accent) 45%, #ffffff18);
  box-shadow: inset 0 1px 0 #ffffff18, 0 22px 48px color-mix(in srgb, var(--accent) 22%, #00000066);
}
body.hub-home .icon-row { display: none; }
body.hub-home .card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
body.hub-home .card strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
body.hub-home .card p {
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
}
body.hub-home .go { display: none; }
body.hub-home .store-pills { display: none; }
body.hub-home .card img.icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 40%, #00000080);
}

@media (max-width: 860px) {
  .apps { grid-template-columns: 1fr 1fr; }
  body.hub-home .apps { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .app-pick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .apps { grid-template-columns: 1fr; }
  body.hub-home .apps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.hub-home .card {
    flex-direction: row;
    align-items: center;
    min-height: 92px;
    padding: 16px 18px;
    gap: 16px;
    border-radius: 22px;
  }
  body.hub-home .card img.icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex: 0 0 64px;
  }
  body.hub-home .card strong { font-size: 18px; }
  body.hub-home .card p { font-size: 14px; }
  .bar {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .nav { gap: 14px; overflow-x: auto; }
}
