/* CleanGoGo.ru — Landing (Industrial / Midnight)
   Статичный макет, без React. Все токены и декор локально. */

:root {
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --accent: #4aa8e5;
  --ink: #e4e6e8;
  --ink-soft: #9aa0a5;
  --ink-mute: #6b7075;
  --ink-dim: #3a3f44;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-soft: rgba(255, 255, 255, 0.05);
  --panel: rgba(15, 17, 19, 0.5);
  --panel-strong: rgba(15, 17, 19, 0.7);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a1024 0%, #0b1220 60%, #070b18 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ══════════════════ Decorative layers (fixed, full-page) ══════════════════ */

.bg-fabric,
.bg-wash,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-fabric {
  mix-blend-mode: overlay;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.78  0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

.bg-wash {
  background:
    radial-gradient(ellipse 1000px 700px at 15% 0%, rgba(74, 168, 229, 0.18), transparent 55%),
    radial-gradient(ellipse 900px 700px at 100% 50%, rgba(120, 90, 220, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 40% 100%, rgba(198, 255, 58, 0.05), transparent 60%);
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Toxic stains — SVG-based blot with rough organic edges (feTurbulence),
   satellite droplets, and a blue wipe wave that "cleans" it away.
   Color is driven by the parent element's `color` CSS variable. */
.stain {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  --stain-delay: 0s;
}
.stain__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stain__blot {
  transform-origin: center;
  animation: stainLife 12s ease-in-out infinite;
  animation-delay: var(--stain-delay);
}
.stain__wipe {
  transform-origin: center;
  animation: stainWipe 12s ease-in-out infinite;
  animation-delay: var(--stain-delay);
}

.stain--acid  { color: #c6ff3a; }
.stain--pink  { color: #ff4fd8; }
.stain--amber { color: #ffb03a; }

/* Gradients with currentColor + wipe palette are in the global <svg class="svg-defs"> */

@keyframes stainLife {
  0%   { opacity: 0; transform: scale(0.5); filter: blur(0); }
  8%   { opacity: 1; transform: scale(1.05); }
  25%  { opacity: 1; transform: scale(1); }
  40%  { opacity: 1; transform: scale(1.02); }
  52%  { opacity: 0.85; transform: scale(1); filter: blur(0); }
  62%  { opacity: 0.2; transform: scale(1.2); filter: blur(10px); }
  66%  { opacity: 0; transform: scale(1.4); filter: blur(18px); }
  100% { opacity: 0; transform: scale(1.4); filter: blur(18px); }
}

@keyframes stainWipe {
  0%, 44% { opacity: 0; transform: translateX(-60%) scale(0.8); }
  50%     { opacity: 1; transform: translateX(0) scale(1.2); }
  60%     { opacity: 0.9; transform: translateX(40%) scale(1.3); }
  70%     { opacity: 0; transform: translateX(100%) scale(1.4); }
  100%    { opacity: 0; transform: translateX(100%) scale(1.4); }
}

/* Hidden SVG sprite holding filters + gradients */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ══════════════════ Layout ══════════════════ */

.page { position: relative; z-index: 2; }

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--rule);
}

.section--hero { padding: 100px 24px 80px; border-top: 0; }
.section--cta  { padding: 100px 24px; position: relative; overflow: hidden; }

.section__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
}

.section__head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.kicker {
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 4px;
}
.kicker__code { color: var(--accent); margin-bottom: 8px; }
.kicker__code::before { content: '● '; }
.kicker__sub { line-height: 1.5; }

.section__title {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}

/* ══════════════════ Top strip ══════════════════ */

.top-strip {
  border-bottom: 1px solid var(--rule);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-strip__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-strip__divider { color: #2a2e32; }
.top-strip__status::before { content: '●'; color: var(--accent); margin-right: 0.4em; }

.lang {
  display: inline-flex;
  gap: 2px;
}
.lang__btn {
  background: transparent;
  border: 0;
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  cursor: pointer;
  letter-spacing: 0.08em;
}
.lang__btn--active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════ Header / nav ══════════════════ */

.header {
  border-bottom: 1px solid var(--rule);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-family: var(--mono);
  text-decoration: none;
}
.logo__mark { display: block; }
.logo__clean { color: var(--ink-mute); }
.logo__go    { color: var(--accent); font-weight: 600; }
.logo__tld   { color: var(--ink-dim); }

.nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 120ms;
}
.nav a:hover { color: var(--accent); }

/* ══════════════════ Buttons ══════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0c0e10;
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #333;
}
.btn--ghost:hover { border-color: var(--ink-soft); }
.btn--lg {
  padding: 15px 26px;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.btn--xl {
  padding: 17px 28px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ══════════════════ Hero ══════════════════ */

.hero__title {
  font-family: var(--sans);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero__accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero__accent-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

.hero__lede {
  max-width: 560px;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}
.hero__lede--gap { margin-bottom: 40px; }

.strike {
  position: relative;
  color: var(--ink);
  background: rgba(74, 168, 229, 0.12);
  padding: 0 6px;
  border-radius: 2px;
  display: inline-block;
}
.strike::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1.5px;
  background: var(--accent);
  transform: translateY(-50%) rotate(-1deg);
  opacity: 0.7;
}

.hero__ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 80px;
}

/* ══════════════════ Terminal readout ══════════════════ */

.terminal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  max-width: 720px;
  backdrop-filter: blur(10px);
}
.terminal__head {
  border-bottom: 1px solid var(--rule);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal__live { color: var(--accent); }
.terminal__cursor {
  display: inline-block;
  margin-left: 6px;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.terminal__row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 52px 1fr 54px;
  gap: 12px;
  align-items: baseline;
  font-size: 12px;
}
.terminal__row:last-child { border-bottom: 0; }
.terminal__row:nth-child(2) { opacity: 1; }
.terminal__row:nth-child(3) { opacity: 0.9; }
.terminal__row:nth-child(4) { opacity: 0.8; }
.terminal__row:nth-child(5) { opacity: 0.7; }
.terminal__row:nth-child(6) { opacity: 0.6; }
.terminal__verb   { color: var(--accent); font-weight: 600; }
.terminal__path   { color: var(--ink); }
.terminal__sub    { color: var(--ink-mute); margin-left: 12px; }
.terminal__status { color: var(--accent); text-align: right; }

/* ══════════════════ Modules grid ══════════════════ */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}
.module {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.module:nth-child(3n) { border-right: 0; }
.module:nth-child(n+4) { border-bottom: 0; }
.module__code {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.module__title {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.module__body {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.module__meta {
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 16px;
  display: flex;
  gap: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ══════════════════ Industry mockups ══════════════════ */

.mockups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mockup {
  border: 1px solid var(--rule);
  background: var(--panel-strong);
  display: flex;
  flex-direction: column;
}
.mockup__body { flex: 1; min-height: 260px; position: relative; padding: 16px; font-size: 11px; }
.mockup__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
}
.mockup__title {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.mockup__desc { font-size: 11px; color: var(--ink-mute); line-height: 1.5; }

.m-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-head__live { color: var(--accent); }
.m-head__live::before { content: '● '; }

.m-subject { font-size: 13px; color: #fff; margin-bottom: 10px; }

/* Intake */
.intake__list { border: 1px solid var(--rule); }
.intake__row {
  display: grid;
  grid-template-columns: 1fr 36px 60px;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.intake__row:last-child { border-bottom: 0; }
.intake__qty   { color: var(--ink-mute); text-align: right; }
.intake__sum   { color: var(--accent); text-align: right; }
.intake__total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
}
.intake__total-label { color: var(--ink-mute); }
.intake__total-value { color: #fff; font-weight: 600; }
.intake__badge {
  margin-top: 10px;
  padding: 6px;
  border: 1px dashed rgba(74, 168, 229, 0.3);
  font-size: 10px;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shift */
.shift__staff { display: flex; flex-direction: column; gap: 8px; }
.shift__row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 11px;
}
.shift__meta--active { color: var(--accent); }
.shift__meta--break  { color: #d0a04a; }
.shift__bar { height: 4px; background: rgba(255, 255, 255, 0.06); }
.shift__fill { height: 100%; }
.shift__fill--active { background: var(--accent); }
.shift__fill--break  { background: #d0a04a; }
.shift__payroll {
  margin-top: 14px;
  padding: 8px;
  background: rgba(74, 168, 229, 0.08);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.shift__payroll-label { color: var(--ink-mute); }
.shift__payroll-value { color: #fff; font-weight: 600; }

/* Route */
.route__list { display: flex; flex-direction: column; position: relative; padding-left: 18px; }
.route__line {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(74, 168, 229, 0.25);
}
.route__row {
  position: relative;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 46px 1fr 54px;
  gap: 6px;
  font-size: 11px;
  align-items: baseline;
}
.route__dot {
  position: absolute;
  left: -16px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.route__dot--done { background: rgba(74, 168, 229, 0.6); }
.route__dot--active {
  background: var(--accent);
  border: 2px solid rgba(74, 168, 229, 0.3);
  box-shadow: 0 0 0 4px rgba(74, 168, 229, 0.12);
}
.route__time { color: var(--ink-mute); }
.route__name { color: var(--ink-mute); }
.route__name--done   { color: var(--ink-soft); }
.route__name--active { color: #fff; }
.route__type {
  text-align: right;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.route__type--active { color: var(--accent); }

/* ══════════════════ Tenancy ══════════════════ */

.tenancy__title {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 32px;
  max-width: 680px;
  text-wrap: balance;
}

.tenancy {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 20px;
  font-family: var(--mono);
}
.tenancy__shared {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.tenancy__shared-domain { color: var(--accent); }
.tenancy__shared-note { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }

.tenancy__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tenant {
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rule);
}
.tenant--active {
  background: rgba(74, 168, 229, 0.12);
  border-color: var(--accent);
}
.tenant__slug {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tenant--active .tenant__slug { color: var(--accent); }
.tenant__name { font-size: 11px; color: var(--ink); margin-bottom: 10px; }
.tenant--active .tenant__name { color: #fff; }
.tenant__stat { font-size: 10px; color: var(--ink-mute); margin-bottom: 2px; }
.tenant--active .tenant__stat { color: rgba(255, 255, 255, 0.7); }

.tenancy__foot {
  margin-top: 14px;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* ══════════════════ Stats ══════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}
.stat {
  padding: 28px 24px 24px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat__label {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.stat__value {
  font-size: 32px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.stat__sub { font-size: 11px; color: var(--ink-mute); }

/* ══════════════════ Final CTA ══════════════════ */

.cta__wash {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 168, 229, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.cta__grid {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
}
.cta__title {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}
.cta__body { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 560px; }
.cta__col { max-width: 680px; }

/* ══════════════════ Footer ══════════════════ */

.footer {
  border-top: 1px solid var(--rule);
  padding: 28px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.footer__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__divider { color: var(--ink-dim); }
.footer__links { display: flex; gap: 18px; align-items: center; }
.footer__links a { color: var(--ink-mute); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }

/* ══════════════════ Responsive ══════════════════ */

@media (max-width: 960px) {
  .section,
  .section--hero,
  .section--cta { padding-left: 16px; padding-right: 16px; }

  .section__grid,
  .section__head,
  .cta__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__title { font-size: 48px; }
  .section__title { font-size: 24px; }
  .cta__title { font-size: 32px; }

  .modules { grid-template-columns: 1fr; }
  .module { border-right: 0; border-bottom: 1px solid var(--rule); }
  .module:last-child { border-bottom: 0; }

  .mockups { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }

  .tenancy__cards { grid-template-columns: 1fr; }

  .top-strip,
  .header { padding-left: 16px; padding-right: 16px; }
  .nav { display: none; }
  .header__signin { padding: 8px 14px; font-size: 11px; }

  .hero__ctas { flex-wrap: wrap; margin-bottom: 48px; }

  .auth__shell { padding: 20px 20px; }
  .auth__title { font-size: 32px; }
  .auth__kicker-row { margin-bottom: 20px; }
  .workspace { grid-template-columns: 36px 1fr; }
  .workspace__last { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   AUTH — Login / Register (industrial)
════════════════════════════════════════════════════════════════════ */

.auth {
  min-height: 100vh;
  background: #0c0e10;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Auth pages use darker kraft base (slightly different from landing) */
body.auth-body {
  background: #0c0e10;
}
body.auth-body .bg-wash {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(180, 140, 90, 0.06), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(74, 168, 229, 0.05), transparent 55%);
}
body.auth-body .bg-fabric { opacity: 0.7; }

.auth__shell {
  display: flex;
  flex-direction: column;
  padding: 24px 56px;
  min-height: 100vh;
  width: 100%;
  max-width: 640px;
}

.auth__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.auth__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth__header-meta { font-size: 12px; color: var(--ink-mute); }
.auth__header-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth__card {
  width: 100%;
  max-width: 400px;
}
/* .auth__card--wide max-width — см. override в секции fix-auth-v2 ниже */

.auth__kicker-row {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.auth__kicker-row::before { content: '● '; }
.auth__kicker-row--acid { color: #c6ff3a; }

.auth__title {
  font-family: var(--mono);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 12px;
  color: #fff;
  text-wrap: balance;
}
.auth__title--sm { font-size: 36px; letter-spacing: -0.035em; line-height: 1.05; }

.auth__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.55;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Field */
.a-field { display: flex; flex-direction: column; gap: 8px; }
.a-field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.a-field__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.a-field__label::before {
  content: '▸';
  color: var(--accent);
}
.a-field__right {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.a-field__right:hover { filter: brightness(1.15); }
.a-field__hint { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; }
.a-field__error { font-size: 10px; color: #ff6b6b; letter-spacing: 0.04em; }
.a-field__error::before { content: '⚠ '; }

/* Industrial input with corner ticks */
.a-input-wrap { position: relative; }
.a-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 2px solid rgba(74, 168, 229, 0.35);
  padding: 14px 14px;
  outline: none;
  transition: background 140ms, border-color 140ms;
}
.a-input:focus { border-bottom-color: var(--accent); }
.a-input:focus ~ .a-input__corner { border-color: var(--accent); }
.a-input--pwd { padding-right: 44px; }

.a-input__corner {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: rgba(255, 255, 255, 0.25);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  transition: border-color 140ms;
}
.a-input__corner--tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.a-input__corner--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }

.a-input__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: var(--ink-mute);
  display: inline-flex;
}
.a-input__toggle:hover { color: var(--accent); }

/* Checkbox row */
.a-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
  line-height: 1.55;
}
.a-check--inline { align-items: center; margin-top: 0; }
.a-check input[type="checkbox"] {
  accent-color: var(--accent);
  margin: 3px 0 0;
}
.a-check--inline input[type="checkbox"] { margin: 0; }
.a-check a { color: var(--accent); text-decoration: none; }
.a-check a:hover { text-decoration: underline; }

/* Primary / ghost full-width action buttons for auth */
.a-btn {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 0;
  cursor: pointer;
  transition: opacity 120ms, background 120ms, border-color 120ms;
}
.a-btn--primary {
  background: var(--accent);
  color: #0c0e10;
}
.a-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.a-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 22px;
  font-weight: 500;
}
.a-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.a-btn + .a-btn { margin-top: 8px; }

/* OR divider */
.a-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.a-divider::before,
.a-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Password strength */
.strength {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}
.strength__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms;
}
.strength__label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 60px;
  text-align: right;
  color: var(--ink-mute);
}
.strength[data-score="1"] .strength__bar:nth-child(-n+1),
.strength[data-score="2"] .strength__bar:nth-child(-n+2),
.strength[data-score="3"] .strength__bar:nth-child(-n+3),
.strength[data-score="4"] .strength__bar:nth-child(-n+4) { }
.strength[data-score="1"] .strength__bar:nth-child(-n+1) { background: #ff6b6b; }
.strength[data-score="2"] .strength__bar:nth-child(-n+2) { background: #d0a04a; }
.strength[data-score="3"] .strength__bar:nth-child(-n+3) { background: var(--accent); }
.strength[data-score="4"] .strength__bar:nth-child(-n+4) { background: #c6ff3a; }
.strength[data-score="1"] .strength__label { color: #ff6b6b; }
.strength[data-score="2"] .strength__label { color: #d0a04a; }
.strength[data-score="3"] .strength__label { color: var(--accent); }
.strength[data-score="4"] .strength__label { color: #c6ff3a; }

/* Workspace picker (login step 2) */
.workspace-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 20px;
  color: var(--ink-mute);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.workspace-back:hover { color: var(--accent); }

.workspace-list { display: flex; flex-direction: column; gap: 6px; }

.workspace {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rule);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 120ms, border-color 120ms;
}
.workspace:hover { border-color: rgba(74, 168, 229, 0.4); }
.workspace--active {
  background: rgba(74, 168, 229, 0.12);
  border-color: var(--accent);
}
.workspace__avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--rule);
  letter-spacing: -0.01em;
}
.workspace--active .workspace__avatar {
  background: var(--accent);
  color: #0c0e10;
  border: 0;
}
.workspace__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}
.workspace--active .workspace__name { color: #fff; }
.workspace__meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.workspace__domain {
  font-size: 10px;
  color: var(--ink-mute);
}
.workspace--active .workspace__domain { color: var(--accent); }
.workspace__sep { font-size: 10px; color: var(--ink-dim); }
.workspace__role {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.workspace__last {
  font-size: 10px;
  color: var(--ink-mute);
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Register "check inbox" card */
.sent-card {
  border: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.25);
  padding: 22px 18px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.sent-card__email { font-size: 13px; color: #fff; margin-bottom: 3px; }
.sent-card__label {
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sent-card__resend {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sent-card__resend:hover { border-color: var(--accent); color: var(--accent); }

.back-link {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}
.back-link:hover { color: var(--accent); }

/* Footer strip */
.auth__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.auth__foot-links { display: flex; gap: 18px; }
.auth__foot a { color: inherit; text-decoration: none; }
.auth__foot a:hover { color: var(--accent); }

/* Step switcher (CSS-only toggle via [hidden]) */
[hidden] { display: none !important; }

/* ════════════════════════════════════════════════════════════════════
   PRICING section
════════════════════════════════════════════════════════════════════ */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel-strong);
}
.plan {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.plan:last-child { border-right: 0; }
.plan--featured {
  background: rgba(74, 168, 229, 0.06);
  position: relative;
}
.plan--featured::before {
  content: 'рекомендуем';
  position: absolute;
  top: -1px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: #0c0e10;
  background: var(--accent);
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.plan__name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.plan__for {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 20px;
  min-height: 38px;
}
.plan__price {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan__price-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.plan__features {
  list-style: none;
  padding: 20px 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__features li {
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan__cta {
  margin-top: 20px;
  text-align: center;
  padding: 13px 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  transition: all 120ms;
}
.plan__cta:hover {
  background: var(--accent);
  color: #0c0e10;
}
.plan--featured .plan__cta {
  background: var(--accent);
  color: #0c0e10;
}
.plan--featured .plan__cta:hover {
  filter: brightness(1.08);
}

/* ════════════════════════════════════════════════════════════════════
   FAQ section
════════════════════════════════════════════════════════════════════ */

.faq__grid { gap: 32px; }
.faq {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--panel);
  max-width: 760px;
}
.faq__item {
  border-bottom: 1px solid var(--rule);
  transition: background 120ms;
}
.faq__item:last-child { border-bottom: 0; }
.faq__item:hover:not([open]) {
  background: rgba(255, 255, 255, 0.02);
}
.faq__item[open] {
  background: rgba(74, 168, 229, 0.05);
}
.faq__q {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.faq__q > :first-child { flex: 1; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-left: auto;
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a {
  padding: 2px 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   BETA note (replaces fake live-stats)
════════════════════════════════════════════════════════════════════ */

.beta-note {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 32px;
  max-width: 720px;
}
.beta-note__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.beta-note__label::before { content: '● '; }
.beta-note__title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.beta-note__body {
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 15px;
}
.beta-note__bullet {
  font-size: 14px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.beta-note__bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE — stronger breakpoints
════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plan:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section { padding: 40px 16px 20px; }
  .section--hero { padding-top: 24px; }
  .hero__title { font-size: 38px; line-height: 1.05; letter-spacing: -0.025em; }
  .hero__lede { font-size: 15px; }
  .section__title { font-size: 24px; }
  .cta__title { font-size: 26px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .btn--lg, .btn--xl { padding: 14px 20px; font-size: 13px; }

  .top-strip { font-size: 10px; padding: 8px 12px; gap: 6px; flex-wrap: wrap; }
  .top-strip__right { gap: 6px; }
  .top-strip__divider { display: none; }

  .header { padding: 16px 12px; }
  .header__signin { padding: 7px 12px; font-size: 11px; }
  .logo { font-size: 19px; }
  .logo__tld { display: none; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }

  .terminal { font-size: 11px; }
  .terminal__row { flex-wrap: wrap; gap: 6px; }

  /* Disable heavy decorative stains on mobile for perf */
  .stain { display: none; }

  .footer { flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 16px; }
  .footer__left { flex-wrap: wrap; }

  .cta__grid { gap: 14px; padding: 0; }
  .cta__col { padding: 0; }

  .faq__q { font-size: 14px; padding: 16px 18px; }
  .faq__a { padding: 0 18px 18px; font-size: 13px; }

  .plan { padding: 22px 18px; }
  .plan__price { font-size: 28px; }
  .plan__features { font-size: 13px; }
}

/* ── Auth: error states, alerts, messages, legal (fix/sprint-1-auth-design) ── */
.auth__messages { margin-bottom: 16px; }
.alert {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--ink);
}
.alert--error {
  border-color: rgba(220, 80, 80, 0.45);
  background: rgba(220, 80, 80, 0.08);
  color: #ff8a8a;
}
.alert--info { border-color: rgba(74, 168, 229, 0.45); background: rgba(74, 168, 229, 0.08); }
.alert--success { border-color: rgba(198, 255, 58, 0.45); background: rgba(198, 255, 58, 0.08); color: #d0ff6a; }

.a-field--error .a-input { border-color: rgba(220, 80, 80, 0.6); }
.a-field--error .a-input:focus { border-color: rgba(220, 80, 80, 0.9); }
.a-field__hint--error { color: #ff8a8a !important; }

.legal-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: normal;
  padding: 8px 0;
}
.legal-body a { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════
   fix-auth-v2: register overrides — sections, 2-col, slug suffix, compact
════════════════════════════════════════════════════════════════════ */
.auth__card--wide { max-width: 460px; }
.auth__card--wide .auth__strip { margin-bottom: 18px; }
.auth__card--wide .auth__kicker-row { margin-bottom: 6px; }
.auth__card--wide .auth__title--sm { font-size: 26px; margin-bottom: 4px; line-height: 1.05; }
.auth__card--wide .auth__sub { margin-bottom: 14px; font-size: 12px; line-height: 1.45; }
.auth__card--wide .a-input { padding: 10px 14px; font-size: 13px; }
.auth__card--wide .a-field { gap: 4px; }
.auth__card--wide .a-field__hint { font-size: 10px; letter-spacing: 0.03em; }
.auth__card--wide .a-check { font-size: 12px; margin-top: 0; line-height: 1.4; }

.auth__form--dense { gap: 12px; }
.auth__section { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.auth__section + .auth__section { margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.auth__section--tight { gap: 8px; }
.auth__section-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0;
}
.auth__section-kicker::before { content: '— '; color: var(--accent); }
.auth__form-grid--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .auth__form-grid--2col { grid-template-columns: 1fr; gap: 10px; } }

.a-input-wrap--suffix { display: flex; align-items: stretch; }
.a-input-wrap--suffix .a-input { flex: 1 1 auto; min-width: 0; }
.a-input__suffix {
  display: inline-flex; align-items: center; padding: 0 12px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.14); border-left: 0;
  border-bottom: 2px solid rgba(74,168,229,0.35); white-space: nowrap;
}

.a-btn--compact { width: auto; align-self: flex-start; padding: 10px 22px; margin-top: 4px; }
@media (max-width: 480px) { .a-btn--compact { width: 100%; align-self: stretch; } }

body.auth-body .bg-fabric { opacity: 0.9; }
body.auth-body .bg-wash {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(180, 140, 90, 0.12), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(74, 168, 229, 0.10), transparent 55%);
}

/* ════════════════════════════════════════════════════════════════════
   fix-onboarding-gate: onboarding cards, textarea, checkbox group
════════════════════════════════════════════════════════════════════ */
.onb-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.onb-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid var(--accent);
  color: inherit; text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.onb-card:hover { background: rgba(74,168,229,0.06); border-color: rgba(255,255,255,0.18); border-left-color: var(--accent); }
.onb-card--disabled { opacity: 0.55; cursor: not-allowed; border-left-color: rgba(255,255,255,0.15); }
.onb-card__kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.onb-card__title { font-size: 18px; line-height: 1.2; font-weight: 500; color: #fff; }
.onb-card__desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.onb-card__cta { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }

.a-input--textarea { resize: vertical; min-height: 72px; font-family: var(--sans); line-height: 1.4; }
.a-checks { display: flex; flex-direction: column; gap: 6px; }
.auth__logout-inline { display: inline; margin: 0; }
