/* MetaCluster site — marketing shell (не workspace) */
:root {
  --bg0: #0a0c10;
  --bg1: #12161e;
  --line: #2a3140;
  --text: #e8ecf2;
  --muted: #8b95a8;
  --accent: #3d9a6a;
  --accent2: #c4a35a;
  --danger: #c45c5c;
  --font: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html {
  scrollbar-gutter: stable;
}
html, body {
  margin: 0; min-height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2230 0%, var(--bg0) 55%);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 48px; }
.wrap.wrap-docs { max-width: 980px; }
.docs-toc {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 0 0 22px; padding: 12px 14px;
  background: rgba(14, 17, 23, 0.94);
  border: 1px solid var(--line);
  font-size: 13px;
  position: sticky;
  top: 67px;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.docs-toc a { color: var(--muted); }
.docs-toc a:hover,
.docs-toc a.active { color: var(--text); }
.wrap-docs section[id] {
  scroll-margin-top: 150px;
}
.card h2 { margin-top: 0; }
.card h3 {
  font-size: 1.05rem; margin: 18px 0 8px; color: #d5dbe6; font-weight: 600;
}
.card table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 4px;
}
.card th, .card td {
  border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top;
}
.card th { background: #0d1016; color: var(--muted); font-weight: 600; }
.card code, .docs-kbd {
  font-family: var(--mono); font-size: 12px;
  background: #0d1016; padding: 1px 5px; border-radius: 2px;
}
.draft-banner {
  border: 1px solid #5a4a20; background: #1a160c; color: #d4c08a;
  padding: 10px 12px; margin-bottom: 18px; font-size: 14px;
}
.draft-banner.docs-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.draft-banner.docs-tip .docs-tip-title {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}
#ref-how,
#ref-claim {
  scroll-margin-top: 120px;
}
.draft-banner.otp-banner {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  overflow-x: auto;
}
@media (max-width: 720px) {
  .draft-banner.otp-banner {
    white-space: normal;
    line-height: 1.4;
  }
}
.muted-sm { color: var(--muted); font-size: 13px; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  margin-bottom: 28px; flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700; letter-spacing: 0.04em; font-size: 15px;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

@media (max-width: 520px) {
  .brand-logo { height: 28px; }
}
.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted); font-size: 14px; text-decoration: none;
  padding: 6px 2px;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav .cta {
  background: var(--accent); color: #04140c !important;
  padding: 8px 14px; border-radius: 2px; font-weight: 600;
}
.nav .cta:hover { filter: brightness(1.08); text-decoration: none; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 38rem; margin: 0 0 22px; }
.grid {
  display: grid; gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg1); border: 1px solid var(--line);
  padding: 18px 18px 16px; border-radius: 2px;
}
.card h2 { margin-top: 0; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-row a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-row a:hover { color: var(--text); }
input, select, button {
  font: inherit; width: 100%;
  background: #0d1016; color: var(--text);
  border: 1px solid #3a4458; padding: 10px 12px; border-radius: 2px;
}
button {
  cursor: pointer; background: var(--accent); color: #04140c;
  border: none; font-weight: 700; margin-top: 14px;
  transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.06s ease;
  box-shadow: 0 2px 0 #2a6b48;
}
button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 0 0 #2a6b48;
  filter: brightness(0.92);
}
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
button.secondary:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(1.15);
  box-shadow: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  filter: none;
}
.ref-plaque {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.ref-plaque strong { color: var(--text); font-weight: 650; }
#refClaimCard.is-guest #refClaimFields { opacity: 0.72; }
#refClaimCard.is-guest { cursor: pointer; }
.video {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.video video,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}
.video .video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.price {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
}
.price .card { flex: 1 1 260px; }
.price .card.price-card-soon {
  position: relative;
  opacity: 0.72;
  border-style: dashed;
  cursor: help;
  user-select: none;
}
.price .card.price-card-soon .price-soon-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 20;
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, 85vw);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #3a4450;
  background: #1a222c;
  color: #d7dde5;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.price .card.price-card-soon:hover .price-soon-tip,
.price .card.price-card-soon:focus-within .price-soon-tip,
.price .card.price-card-soon.is-tip-open .price-soon-tip {
  opacity: 1;
  visibility: visible;
}
.price .price-ref-line {
  margin: 0;
  font-size: 13px;
  color: var(--accent2);
}
.draft-banner.docs-tip.pricing-ref-how .docs-tip-title {
  color: var(--text);
}
#refStepLk {
  position: relative;
}
.ref-lk-step-link {
  cursor: help;
}
.ref-lk-step-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  box-sizing: border-box;
  width: max-content;
  max-width: min(320px, 90vw);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #3a4450;
  background: #1a222c;
  color: #d7dde5;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
#refStepLk:hover .ref-lk-step-tip,
#refStepLk:focus-within .ref-lk-step-tip,
#refStepLk.is-tip-open .ref-lk-step-tip {
  opacity: 1;
  visibility: visible;
}
.ref-links-panel {
  margin-top: 16px;
}
.ref-broker-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
}
.ref-broker-links .nav.cta {
  display: inline-block;
  width: auto;
  margin-top: 0;
}
.ref-broker-links .ref-pocket-btn {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.ref-broker-links .ref-lk-btn {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--line);
}
.ref-broker-links .ref-pocket-btn:hover,
.ref-broker-links .ref-lk-btn:hover {
  color: var(--text) !important;
}
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 8px;
}
.muted { color: var(--muted); }
.foot {
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--text); }
.legal-card h2 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  font-weight: 650;
}
.legal-card h2:first-of-type { margin-top: 16px; }
.legal-card p { color: var(--muted); line-height: 1.55; margin: 0 0 10px; }
.legal-card p strong, .legal-card li strong { color: var(--text); }
.legal-card .steps { color: var(--muted); }
.legal-card .steps li { color: var(--muted); }
.legal-nav-more { margin-top: 22px !important; }
.docs-toc a.active {
  color: var(--text);
  border-color: var(--accent2);
}
.steps { padding-left: 1.2rem; color: var(--muted); }
.steps li { margin: 8px 0; }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 1.2em; }
.ok-msg { color: var(--accent); font-size: 13px; margin-top: 8px; min-height: 1.2em; }
