/* Yappy — https://github.com/OperatingSystem-1/Yappy
   Copyright (C) 2026 ProxialGn. All rights reserved.
   SPDX-License-Identifier: LicenseRef-Proprietary

   This source is proprietary and confidential. Unauthorized copying,
   distribution, or modification of this file, via any medium, is strictly
   prohibited without the express written permission of ProxialGn. */

/* "For businesses" (PJ 2026-09-02): the contact section from the
   mitosislabs.ai homepage (home-v3.css, .hv-biz-*), ported as-is. Left, a
   tile on the onboarding rail's mesh ground carrying a customer's words and
   the trusted-by logo marquee; right, the three-field contact form. The
   painter for the mesh and the submit handler live in business.js. */

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

/* doc.css (loaded for the footer search) pads main by 70px for the doc
   pages; on the homepage the section's own padding is the space. */
main:has(.biz) {
  padding-bottom: 0;
}

.biz {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 110px 32px 96px;
  /* The nav's anchor lands here: clear the floating bar. */
  scroll-margin-top: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.biz-h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.22;
  /* One long question: folds onto three lines. */
  max-width: 34ch;
  text-wrap: balance;
  text-align: left;
}

.biz-sub {
  margin: 14px 0 0;
  color: #a0a2ac;
  font-size: 19px;
  line-height: 1.5;
  text-align: left;
}

.biz-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 28px;
  align-items: stretch;
}

/* ---------- the tile ---------- */
.biz-rail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  background: #070a16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 420px;
}

.biz-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.biz-rail-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 36px 34px;
}

/* The tile's content is one block (quote + who + logos) so it is easy to
   swap for a Yappy-specific statement later. */
.biz-quote {
  margin: 0;
}

.biz-head {
  margin: 0;
  max-width: 22em;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: #f4f6ff;
  text-shadow: 0 1px 24px rgba(6, 10, 26, 0.5);
  text-wrap: pretty;
  text-align: left;
}

.biz-head::before {
  content: '\201C';
  display: block;
  font-size: 1.9em;
  line-height: 0.55;
  color: rgba(244, 246, 255, 0.4);
  margin-bottom: 0.34em;
}

.biz-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
}

.biz-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px rgba(6, 10, 26, 0.45);
  flex: 0 0 auto;
}

.biz-who-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 14px;
  color: rgba(244, 246, 255, 0.72);
  text-align: left;
}

.biz-who-text b {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

/* The logo marquee: two copies of the set rolling left, faded at both edges
   so the roll never hits the card border. min-width: 0 matters: as a
   column-flex child the box would otherwise take min-width: auto, which is
   the whole track width, and spill past the tile. */
.biz-logos {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.biz-logo-track {
  display: flex;
  width: max-content;
  animation: biz-marquee 26s linear infinite;
  will-change: transform;
}

.biz-logo-set {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  padding-right: 40px;
}

@keyframes biz-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.biz-logo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.biz-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  user-select: none;
  -webkit-user-drag: none;
}

.biz-logo-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- the form ---------- */
.biz-form {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  border-radius: 20px;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.biz-field {
  margin-bottom: 18px;
}

.biz-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5e68;
}

.biz-opt {
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.28);
}

.biz-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 120ms ease, background 120ms ease;
}

.biz-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.biz-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.biz-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a0a2ac' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.biz-select option {
  background: #101014;
  color: #ffffff;
}

.biz-select:invalid {
  color: rgba(255, 255, 255, 0.4);
}

.biz-textarea {
  resize: vertical;
  min-height: 84px;
}

.biz-error {
  margin: -4px 0 14px;
  color: #f87171;
  font-size: 14px;
  line-height: 1.45;
}

/* The section pill as a button. */
.biz-cta {
  display: inline-block;
  margin-top: 6px;
  align-self: flex-start;
  padding: 13px 28px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #09090b;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.5);
  transition: background 120ms ease, transform 120ms ease;
}

.biz-cta:hover {
  background: #e9e9ee;
}

.biz-cta:active {
  transform: translateY(1px);
}

.biz-cta:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

@media (max-width: 880px) {
  .biz {
    padding: 72px 20px 72px;
  }
  .biz-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .biz-rail {
    min-height: 0;
  }
  .biz-rail-inner {
    gap: 30px;
    padding: 30px 24px 26px;
  }
  .biz-form {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .biz-logo-track {
    animation: none;
  }
}
