/* homebrand1 · 20260805 · apex vyshka.cloud first viewport
 * Brand-first · no auth-card soup in hero · no purple · short CTAs
 * Seal: 20260805-homebrand1 · fold-only · tips LOCKED elsewhere
 */

html[data-vy-homebrand1="20260805-homebrand1"] {
  --vy-home-cobalt: #1d4ed8;
  --vy-home-cyan: #38bdf8;
  --vy-home-mint: #2ccf9b;
  --vy-home-ink: #0f172a;
  --vy-home-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;
  color-scheme: light;
  background: var(--vy-home-fog);
}

/* Early paint: kill system→brand FOUC flash on brand word */
html[data-vy-homebrand1="20260805-homebrand1"] body,
html[data-vy-homebrand1="20260805-homebrand1"] .brand-word,
html[data-vy-homebrand1="20260805-homebrand1"] h1 {
  font-family: var(--vy-font-display) !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] body,
html[data-vy-homebrand1="20260805-homebrand1"] .hero-kicker,
html[data-vy-homebrand1="20260805-homebrand1"] .btn,
html[data-vy-homebrand1="20260805-homebrand1"] .links,
html[data-vy-homebrand1="20260805-homebrand1"] p {
  font-family: var(--vy-font-body) !important;
}

/* Crooked mark: cover → contain (same class of bug as brandfix1) */
html[data-vy-homebrand1="20260805-homebrand1"] .mark-image,
html[data-vy-homebrand1="20260805-homebrand1"] .brand .mark,
html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero__mark,
html[data-vy-homebrand1="20260805-homebrand1"] .auth-card__mark img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  image-rendering: -webkit-optimize-contrast;
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand .mark-image {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ——— First viewport: one composition, brand hero ——— */
html[data-vy-homebrand1="20260805-homebrand1"] .hero-surface {
  min-height: min(92vh, 720px) !important;
  display: flex !important;
  align-items: center !important;
  padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px) !important;
  background:
    radial-gradient(54rem 34rem at 92% 0%, rgba(29, 78, 216, 0.16), transparent 68%),
    radial-gradient(40rem 28rem at 0% 88%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(32rem 22rem at 70% 100%, rgba(44, 207, 155, 0.08), transparent 65%),
    linear-gradient(180deg, #eef4ff 0%, var(--vy-home-fog) 55%, #f3faf7 100%) !important;
}

/* Override homeboot1 two-column reserve — brand-only first viewport */
html[data-vy-homebrand1="20260805-homebrand1"] .hero-grid,
html[data-vy-homeboot1="20260805-homeboot1"][data-vy-homebrand1="20260805-homebrand1"] .hero-grid {
  grid-template-columns: 1fr !important;
  gap: clamp(28px, 4vw, 40px) !important;
  max-width: 920px;
  margin-inline: auto;
  justify-items: start;
  display: grid !important;
}

/* Hide auth card from first viewport (card soup) — form kept later for crox */
html[data-vy-homebrand1="20260805-homebrand1"] .hero-surface > .wrap.hero-grid > .auth-card,
html[data-vy-homebrand1="20260805-homebrand1"] .hero-grid > .auth-card {
  display: none !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px 18px !important;
  margin: 0 0 18px !important;
  animation: none !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero .eyebrow {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  width: fit-content;
  background: rgba(239, 246, 255, 0.85) !important;
  border-color: rgba(29, 78, 216, 0.22) !important;
  color: var(--vy-home-cobalt) !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  border-radius: 999px;
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero__mark {
  order: 1;
  width: clamp(72px, 12vw, 112px) !important;
  height: clamp(72px, 12vw, 112px) !important;
  border-radius: clamp(18px, 3vw, 28px) !important;
  display: block !important;
  flex-shrink: 0 !important;
  box-shadow: 0 18px 40px rgba(15, 47, 104, 0.18);
}

html[data-vy-homebrand1="20260805-homebrand1"] h1.brand-word,
html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero .brand-word {
  order: 2;
  margin: 0 !important;
  font-size: clamp(2.85rem, 8vw, 5.1rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  color: var(--vy-home-ink) !important;
  max-width: 10ch;
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand-word em {
  font-style: normal !important;
  background: linear-gradient(120deg, #1d4ed8 0%, #2eb7ff 52%, #18c58f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .hero-kicker {
  max-width: 36ch !important;
  margin: 0 !important;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem) !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  font-weight: 500 !important;
  animation: none !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions {
  margin-top: 26px !important;
  gap: 12px !important;
  animation: none !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .btn {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 20px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .btn.primary,
html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .cta-auth {
  background: #1d4ed8 !important;
  background-image: none !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22) !important;
}

html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .cta-msg,
html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .cta-voice {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(29, 78, 216, 0.28) !important;
  color: var(--vy-home-ink) !important;
}

/* Trim first-viewport clutter: trust line stays soft, no card chrome */
html[data-vy-homebrand1="20260805-homebrand1"] .hero-trust {
  margin-top: 18px !important;
  max-width: 42ch;
  font-size: 13px !important;
  color: #64748b !important;
}

/* Auth form relocated below hero — flat, not a floating card */
html[data-vy-homebrand1="20260805-homebrand1"] .homebrand1-auth {
  display: block !important;
  margin: 0 auto;
  padding: 28px 0 8px;
  max-width: var(--max, 1180px);
  width: min(var(--max, 1180px), calc(100% - 32px));
}

html[data-vy-homebrand1="20260805-homebrand1"] .homebrand1-auth .auth-card {
  display: block !important;
  max-width: 420px;
  margin: 0;
  border-radius: 16px !important;
  box-shadow: none !important;
  border: 1px solid #d8e1ec !important;
  background: #fff !important;
  padding: 20px !important;
}

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

/* Soft motion: mark settle + CTA lift only */
@keyframes homebrand1-mark-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes homebrand1-copy-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero__mark {
  animation: homebrand1-mark-in 620ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero .brand-word {
  animation: homebrand1-copy-in 680ms 40ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
html[data-vy-homebrand1="20260805-homebrand1"] .hero-kicker,
html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions {
  animation: homebrand1-copy-in 720ms 80ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

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

@media (max-width: 720px) {
  html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html[data-vy-homebrand1="20260805-homebrand1"] .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  html[data-vy-homebrand1="20260805-homebrand1"] .brand-hero__mark {
    width: 68px !important;
    height: 68px !important;
    border-radius: 18px !important;
  }
}
