/* Shared type + color so public, auth and cabinet look like one product. */
:root {
  --accent: #A855F7;
  --accent-2: #7C3AED;
  --accent-soft: #c084fc;
  --bg: #030305;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --site-header-h: 61px;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--site-header-h) + 16px);
}
#hero {
  padding-top: calc(var(--site-header-h) + 28px + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  align-items: flex-start;
}
@media (min-width: 1024px) and (min-height: 860px) {
  #hero { align-items: center; }
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}
.font-unbounded {
  font-family: Unbounded, Inter, sans-serif !important;
  font-synthesis: none;
}
.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-synthesis: none;
}
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: normal;
}
.hero-display,
.hero-display span {
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
}
.prose-seo p,
.legal-content p,
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.prose-seo p { max-width: 42rem; }
.faq-item h2,
.faq-item h3 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lang-switch-box {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  gap: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.lang-switch {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.38);
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.lang-switch:hover { color: rgba(255, 255, 255, 0.78); }
.lang-switch.active {
  color: #fff !important;
  background: var(--accent);
  text-shadow: none !important;
}

.btn-login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-login-pill:hover {
  background: var(--accent);
  color: #fff;
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
}
.btn-ghost:hover { color: #fff; border-color: rgba(168, 85, 247, 0.4); }

.public-nav {
  align-items: center;
}
.public-nav a:not(.btn-accent):not(.btn-login-pill):not(.btn-header) {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.public-nav a:not(.btn-accent):not(.btn-login-pill):not(.btn-header):hover {
  color: #fff;
}

.catalog-table a { color: #e9d5ff; }
.catalog-table .font-unbounded,
.catalog-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
}

header.absolute.top-0,
header.fixed.top-0 {
  padding-top: 12px;
  padding-bottom: 12px;
}
header.absolute.top-0 nav,
header.fixed.top-0 nav,
header.sticky.top-0 nav {
  align-items: center;
}
header a .font-unbounded,
header .font-unbounded {
  line-height: 1;
}

@media (max-width: 640px) {
  header .public-nav {
    flex-wrap: nowrap;
    gap: 8px;
  }
  header .public-nav .btn-header {
    display: none;
  }
}

img { max-width: 100%; }
svg.lucide { max-width: none; flex-shrink: 0; }
