/*
 * MAUTO Home Eco title v368
 * Terminal layer for the approved Home hero lockup and its mobile joins.
 */

:root {
  --mauto-eco-ink: #102a43;
  --mauto-eco-blue: #1672d4;
  --mauto-eco-green: #16985a;
  --mauto-eco-green-dark: #087844;
}

.mauto-home-runtime .device-shell[data-device] .hero-title-lockup h1.hero-eco-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--mauto-eco-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif !important;
  font-weight: 820 !important;
  line-height: .86 !important;
  letter-spacing: -.065em !important;
  text-wrap: nowrap !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__line {
  display: block !important;
  width: max-content;
  max-width: 100%;
  white-space: nowrap !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__auto,
.mauto-home-runtime .device-shell[data-device] .hero-eco-title__system {
  color: var(--mauto-eco-ink) !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__ecosystem {
  margin-top: .12em;
  letter-spacing: -.055em;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title--owner .hero-eco-title__ecosystem {
  margin-top: 0;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title--owner .hero-eco-title__auto {
  margin-top: .12em;
  margin-left: 1.05em;
  letter-spacing: -.055em;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__owner-copy {
  color: var(--mauto-eco-ink) !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__owner-gap {
  display: inline-block !important;
  width: .48em;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__vehicle-word {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--mauto-eco-blue) !important;
  letter-spacing: -.065em;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__car-glyph {
  display: inline-grid !important;
  width: .78em;
  height: .68em;
  margin: 0 .035em 0 .025em;
  place-items: center;
  color: var(--mauto-eco-green) !important;
  transform: translateY(.045em);
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__car-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__car-body {
  fill: currentColor;
  stroke: var(--mauto-eco-green-dark);
  stroke-width: 1.25;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__car-glass {
  fill: #eaf7ff;
  stroke: rgba(6, 103, 61, .72);
  stroke-width: 1.15;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__car-lamp {
  fill: #fff;
  stroke: var(--mauto-eco-blue);
  stroke-width: 1.25;
}

.mauto-home-runtime .device-shell[data-device] :is(
  .hero-eco-title__car-detail,
  .hero-eco-title__car-wheel
) {
  fill: none;
  stroke: #f4fff9;
  stroke-width: 1.45;
  stroke-linecap: round;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__e {
  color: var(--mauto-eco-blue) !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__co {
  color: var(--mauto-eco-green) !important;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__o {
  position: relative;
  display: inline-block;
  color: inherit;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__leaf {
  position: absolute;
  z-index: 2;
  left: 56%;
  bottom: 79%;
  display: block;
  width: .38em;
  height: .24em;
  transform: rotate(-32deg);
  transform-origin: 0 100%;
  border: 1px solid rgba(5, 112, 60, .32);
  border-radius: 100% 8% 100% 8%;
  background:
    radial-gradient(circle at 30% 28%, rgba(239, 255, 228, .92) 0 9%, transparent 26%),
    linear-gradient(145deg, #80d94f 0%, #2cb767 46%, #087946 100%);
  box-shadow:
    0 1px 1px rgba(4, 94, 50, .15),
    0 3px 8px rgba(22, 152, 90, .22),
    inset .04em .03em .08em rgba(255, 255, 255, .38);
  pointer-events: none;
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__leaf::before {
  position: absolute;
  right: 87%;
  bottom: -13%;
  width: .19em;
  height: 1px;
  transform: rotate(18deg);
  transform-origin: right center;
  border-radius: 999px;
  background: var(--mauto-eco-green-dark);
  content: "";
}

.mauto-home-runtime .device-shell[data-device] .hero-eco-title__leaf::after {
  position: absolute;
  left: 12%;
  top: 54%;
  width: 73%;
  height: 1px;
  transform: rotate(-4deg);
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(5, 109, 57, .72), rgba(238, 255, 230, .58));
  content: "";
}

/* Desktop and tablet preserve the approved hero geometry; only the lockup changes. */
.mauto-home-runtime .device-shell[data-device="desktop"] .hero-title-lockup h1.hero-eco-title {
  font-size: clamp(42px, 4.15vw, 70px) !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .hero-title-lockup h1.hero-eco-title {
  font-size: 38px !important;
}

/* Mobile: remove the two internal bands and join header → hero → brand rail. */
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard {
  padding-bottom: 0 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard::after {
  display: none !important;
  content: none !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-topbar {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 58px !important;
  padding: max(7px, env(safe-area-inset-top, 0px)) 10px 7px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .hero {
  height: 170px !important;
  min-height: 170px !important;
  margin-top: 0 !important;
  border-top: 0 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .hero-visual,
.mauto-home-runtime .device-shell[data-device="mobile"] .hero-visual > .scene-layer,
.mauto-home-runtime .device-shell[data-device="mobile"] .hero-visual > .scene-layer > img,
.mauto-home-runtime .device-shell[data-device="mobile"] .hero-visual > .matrix > img,
.mauto-home-runtime .device-shell[data-device="mobile"] .scene-layer.internals img,
.mauto-home-runtime .device-shell[data-device="mobile"] .scene-layer.lights {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  transform-origin: center !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .hero-title-lockup {
  top: 8px !important;
  left: 12px !important;
  width: 168px !important;
  max-width: 168px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .hero-title-lockup h1.hero-eco-title {
  width: max-content !important;
  max-width: 168px !important;
  font-size: 25px !important;
  line-height: .84 !important;
  text-shadow: 0 1px 0 #fff, 0 3px 14px rgba(255, 255, 255, .96) !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .brand-strip {
  margin-top: -1px !important;
  border-top: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .mauto-home-runtime .hero-eco-title__leaf {
    transition: none !important;
  }
}
