:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #edeaf6;
  background: #101013;
  font-synthesis: none;
  --bg: #101013;
  --card: #1a1a1e;
  --text: #edeaf6;
  --muted: #9996a7;
  --line: #2b2933;
  --accent: #8b5cf6;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f3fa;
  --card: #fff;
  --text: #20192f;
  --muted: #716981;
  --line: #e5dfef;
  color-scheme: light;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--tg-theme-bg-color, var(--bg));
  color: var(--tg-theme-text-color, var(--text));
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:active,
.button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}
.danger {
  background: #783848;
}
.shell {
  max-width: 880px;
  margin: auto;
  padding: calc(
      20px + var(--tg-content-safe-area-inset-top, env(safe-area-inset-top))
    )
    22px
    calc(
      100px +
        var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom))
    );
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand small {
  display: block;
  margin-top: 3px;
}
.logo,
.avatar {
  display: grid;
  place-items: center;
  background: #8b5cf62b;
  color: #c4b5fd;
  border: 1px solid #8b5cf640;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a98add;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 12px 0 14px;
}
h2 {
  font-size: 25px;
  margin: 18px 0 8px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
small,
.muted {
  font-size: 12px;
  color: var(--muted);
}
section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin: 16px 0;
}
.hero {
  background: linear-gradient(120deg, #8b5cf620, transparent 90%), var(--card);
  border-color: #8b5cf644;
}
.hero button {
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  border-radius: 30px;
  padding: 7px 10px;
  font-size: 12px;
  background: #8b5cf62b;
  color: #c4b5fd;
}
.green {
  color: #74d7aa;
  background: #27bb7d19;
}
.orange {
  color: #f4b568;
  background: #fa8c161c;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid section {
  margin: 0;
}
.grid strong {
  display: block;
  font-size: 26px;
  margin: 14px 0 8px;
  letter-spacing: -0.6px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.row p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.wide {
  width: 100%;
  margin: 8px 0;
}
.platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.platforms button {
  font-size: 12px;
  padding: 9px 12px;
  min-height: 38px;
}
input:not([type="checkbox"]),
textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 13px;
  width: 100%;
  margin: 10px 0;
  min-width: 0;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid #8b5cf688;
}
.actions input {
  width: 180px;
  margin: 0;
}
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 100%);
  display: flex;
  justify-content: space-around;
  gap: 2px;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 10px 8px
    calc(
      10px +
        var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom))
    );
  z-index: 2;
}
nav button {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  min-width: 0;
}
nav button span {
  font-size: 23px;
  line-height: 25px;
}
nav button.active {
  color: #b99bfb;
  background: #8b5cf612;
}
.error,
.notice {
  border: 1px solid #bd596a55;
  border-radius: 12px;
  padding: 14px;
  line-height: 1.5;
  margin: 12px 0;
  font-size: 14px;
}
.error button {
  margin-left: 10px;
}
.notice {
  border-color: #27bb7d44;
  color: #74d7aa;
}
.loading {
  color: #b99bfb;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #000a;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.user-page {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow-y: auto;
  background: var(--bg);
  padding: 20px 16px;
  overscroll-behavior: contain;
}
.user-page > section {
  max-width: 640px;
  margin: 0 auto;
}
.dialog {
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow: auto;
}
.qr {
  display: block;
  width: min(280px, 100%);
  margin: 20px auto;
  border-radius: 12px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.6 inherit;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  font-size: 14px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
ol {
  padding-left: 22px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}
@media (max-width: 420px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  section {
    padding: 18px;
  }
  .grid strong {
    font-size: 22px;
  }
  header {
    margin-bottom: 30px;
  }
  .row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}


.home-actions { align-items: center; }
.home-actions .subscription-action {
  margin-left: auto;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 12px;
}
/* Public website: same tokens and component geometry as the Mini App. */
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
a{color:inherit} main,article,.grid>*{min-width:0} h1{overflow-wrap:anywhere}
.shell{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
.brand{text-decoration:none}.brand-image{object-fit:contain;border-radius:14px}.theme-button{width:44px;padding:0;font-size:22px}
.intro{max-width:590px;font-size:15px;margin-bottom:26px}
.hero{padding:28px}.hero h2{font-size:32px;line-height:1.2;letter-spacing:-.8px;margin-top:20px}.hero p{max-width:570px}.hero .actions{margin-top:24px;gap:20px}.button{gap:12px}
.quiet-link{color:var(--muted);font-size:13px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.benefits{margin-top:14px}.benefits h3{margin-top:16px}.benefits p{margin-bottom:0}.tile-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid #8b5cf640;border-radius:12px;background:#8b5cf61a;color:#c4b5fd;font-size:23px}
.getting-started{margin-top:28px}.getting-started h2{margin-top:10px}.steps{list-style:none;padding:0;margin:24px 0}.steps li{display:flex;gap:16px;padding:16px 0;border-top:1px solid var(--line);line-height:1.65}.steps h3{margin:0;font-size:15px}.steps p{margin:5px 0 0}.step-number{color:#a98add;font-size:12px;font-weight:700;padding-top:2px}.section-heading{margin:32px 0 16px}.section-heading h2{margin-top:10px}
.resource-list{border:1px solid var(--line);border-radius:20px;background:var(--card);overflow:hidden}.resource{display:flex;gap:14px;align-items:center;padding:20px 22px;text-decoration:none;min-height:86px}.resource+.resource{border-top:1px solid var(--line)}.resource b{font-size:14px}.resource small{display:block;margin-top:5px;line-height:1.5}.resource-arrow{margin-left:auto;color:var(--muted)}
footer{border-top:1px solid var(--line);margin-top:40px;padding-top:24px}.footer-top{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:12px}.footer-brand{color:var(--text);font-size:13px;gap:10px}.footer-brand img{border-radius:10px}
nav.footer-links{position:static;display:flex;width:auto;transform:none;gap:18px;flex-wrap:wrap;background:none;border:0;border-radius:0;padding:0;margin:24px 0 16px;box-shadow:none}.footer-links a{font-size:12px;text-decoration:none;color:var(--muted);padding:6px 0}
a:hover{color:#b99bfb}.button:hover{color:white;background:#7c4de2}.button.secondary:hover{color:var(--text);background:var(--bg)}
.back-link{display:inline-flex;align-items:center;min-height:44px;color:#b99bfb;font-size:14px;text-decoration:none;margin-bottom:20px}.legal{margin-top:16px}.legal h1{font-size:clamp(26px,5vw,36px);margin-top:0}.legal h2{font-size:20px;margin:30px 0 12px;line-height:1.4}.legal p,.legal li{font-size:14px;line-height:1.8;color:var(--muted)}.legal ul{padding-left:22px}.legal li{margin:10px 0}.legal strong{color:var(--text);font-weight:600}
.skip-link{position:fixed;top:-100px;left:16px;z-index:10;background:var(--accent);padding:12px 16px;border-radius:12px;color:white}.skip-link:focus{top:12px}.noscript-note{max-width:836px;margin:20px auto}
:root[data-theme="light"] .eyebrow,:root[data-theme="light"] .step-number{color:#7040bb}:root[data-theme="light"] .badge,:root[data-theme="light"] .tile-icon{color:#7040bb}:root[data-theme="light"] .back-link{color:#7040bb}
@media(max-width:540px){.footer-top{align-items:flex-start;flex-direction:column}.hero{padding:22px}.hero h2{font-size:28px}.benefits{gap:10px}.benefits section{padding:18px}.benefits h3{font-size:15px}.benefits p{font-size:13px}.resource{padding:18px}.hero .actions{gap:8px 18px}.legal{padding:20px}nav.footer-links{gap:8px 20px}}
@media(max-width:360px){.benefits{grid-template-columns:1fr}.hero .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
