/* acctlayout1 · 20260806 · apex vyshka.cloud first viewport
 * One composition: brand + CTAs + auth — no diagonal scatter
 * Fixes homebrand1 flex leak (hero-grid-glow static → shove right)
 * Seal: 20260806-acctlayout1 · tip-safe (apex only)
 */

html[data-vy-acctlayout1="20260806-acctlayout1"] {
  --vy-acct-cobalt: #1d4ed8;
  --vy-acct-ink: #0f172a;
  --vy-acct-muted: #475569;
  --vy-acct-line: #d8e1ec;
  --vy-acct-fog: #f4f7fb;
  --vy-font-body: "Onest", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --vy-font-display: "Unbounded", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}

/* Kill flex leak: aurora/glow must be overlays, never flex siblings */
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-surface {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 3.5vw, 40px) !important;
  background:
    radial-gradient(54rem 34rem at 8% 0%, rgba(29, 78, 216, 0.14), transparent 68%),
    radial-gradient(40rem 28rem at 100% 80%, rgba(56, 189, 248, 0.10), transparent 70%),
    linear-gradient(180deg, #eef4ff 0%, var(--vy-acct-fog) 58%, #f3faf7 100%) !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-aurora,
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid-glow {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  flex: none !important;
}

/* Desktop: brand left · auth right — one aligned composition */
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid,
html[data-vy-homeboot1="20260805-homeboot1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid,
html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.95fr) !important;
  gap: clamp(24px, 4vw, 48px) !important;
  align-items: center !important;
  justify-items: stretch !important;
  max-width: min(1180px, calc(100% - 32px)) !important;
  width: min(1180px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-copy {
  justify-self: start !important;
  width: 100% !important;
  max-width: 36rem !important;
}

/* Brand stack: left-aligned vertical rhythm */
html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px 16px !important;
  margin: 0 0 16px !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero__mark {
  order: 1;
  width: clamp(64px, 9vw, 96px) !important;
  height: clamp(64px, 9vw, 96px) !important;
  border-radius: clamp(16px, 2.5vw, 24px) !important;
  box-shadow: 0 14px 32px rgba(15, 47, 104, 0.16);
}

html[data-vy-acctlayout1="20260806-acctlayout1"] h1.brand-word,
html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero .brand-word {
  order: 2;
  margin: 0 !important;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  color: var(--vy-acct-ink) !important;
  max-width: 12ch;
  font-family: var(--vy-font-display) !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero .eyebrow {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  width: fit-content;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-kicker {
  max-width: 38ch !important;
  margin: 0 0 4px !important;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem) !important;
  line-height: 1.45 !important;
  color: var(--vy-acct-muted) !important;
  font-family: var(--vy-font-body) !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-trust {
  margin-top: 14px !important;
  max-width: 42ch;
  font-size: 13px !important;
  color: #64748b !important;
}

/* Auth card back in hero — beat homebrand1 hide
 * (html[homebrand1] .hero-surface > .wrap.hero-grid > .auth-card = 0,5,1)
 */
html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-surface > .wrap.hero-grid > .auth-card,
html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card,
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-surface > .wrap.hero-grid > .auth-card,
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card {
  display: block !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 0 0 auto !important;
  padding: 22px 22px 18px !important;
  border-radius: 18px !important;
  border: 1px solid var(--vy-acct-line) !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgba(15, 47, 104, 0.10) !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card::before,
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card .auth-card__pulse,
html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card::before,
html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card .auth-card__pulse {
  display: none !important;
}

html[data-vy-acctlayout1="20260806-acctlayout1"] .homebrand1-auth {
  display: none !important;
}

/* Soft presence motion */
@keyframes acctlayout1-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero__mark {
  animation: acctlayout1-in 560ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero .brand-word {
  animation: acctlayout1-in 620ms 40ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-kicker,
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-actions {
  animation: acctlayout1-in 680ms 70ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card {
  animation: acctlayout1-in 700ms 90ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero__mark,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero .brand-word,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-kicker,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-actions,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card {
    animation: none !important;
  }
}

/* Mobile: stacked left-aligned column */
@media (max-width: 900px) {
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-surface {
    padding: 20px 0 18px !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid,
  html[data-vy-homeboot1="20260805-homeboot1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid,
  html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero {
    gap: 10px 12px !important;
    margin: 0 0 10px !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero__mark {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] h1.brand-word,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .brand-hero .brand-word {
    font-size: clamp(2.05rem, 11vw, 2.55rem) !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-kicker {
    font-size: 0.98rem !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-actions {
    margin-top: 14px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-actions .btn {
    flex: 1 1 auto !important;
    min-width: calc(50% - 8px) !important;
    width: auto !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 12px !important;
  }
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-trust {
    margin-top: 10px !important;
  }
  html[data-vy-homebrand1="20260805-homebrand1"][data-vy-acctlayout1="20260806-acctlayout1"] .hero-surface > .wrap.hero-grid > .auth-card,
  html[data-vy-acctlayout1="20260806-acctlayout1"] .hero-grid > .auth-card {
    margin: 0 !important;
    max-width: none !important;
    padding: 16px !important;
  }
}
