/**
 * Automation pages — professional light crystal + navy CTA
 * Load LAST on automation-header only.
 */

/* ---- Base readable ink on ice ---- */
body.automation-premium {
  color: #3a4660 !important;
  background: #f8faff !important;
}

body.automation-premium .auto-section,
body.automation-premium .auto-hero,
body.automation-premium .auto-page-hero,
body.automation-premium main {
  color: #3a4660 !important;
}

body.automation-premium .auto-section-title,
body.automation-premium .auto-hero__title,
body.automation-premium .auto-hero__brand,
body.automation-premium .auto-card h3,
body.automation-premium .auto-card h4,
body.automation-premium .auto-panel h3,
body.automation-premium .auto-quote,
body.automation-premium h1,
body.automation-premium h2,
body.automation-premium h3,
body.automation-premium h4 {
  color: #09142c !important;
}

body.automation-premium p,
body.automation-premium li,
body.automation-premium .auto-hero__sub,
body.automation-premium .auto-prose,
body.automation-premium .auto-quote p,
body.automation-premium .text-muted-text,
body.automation-premium [class*="text-white/"],
body.automation-premium [class*="text-white\/"],
body.automation-premium .text-white,
body.automation-premium .text-white\/70,
body.automation-premium .text-white\/65,
body.automation-premium .text-white\/60,
body.automation-premium .text-white\/50,
body.automation-premium .text-white\/40 {
  color: #3a4660 !important;
  opacity: 1 !important;
}

body.automation-premium .text-primary-container,
body.automation-premium a.text-primary-container,
body.automation-premium .auto-card .text-primary-container {
  color: #095cff !important;
}

body.automation-premium .auto-section-label {
  color: #154ff3 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ---- Sections / cards ---- */
body.automation-premium .auto-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

body.automation-premium .auto-section--alt {
  background:
    radial-gradient(circle at 12% 0%, #2867ff12, transparent 55%),
    #f3f6ff !important;
}

body.automation-premium .auto-card,
body.automation-premium .auto-panel,
body.automation-premium .auto-quote,
body.automation-premium .auto-form,
body.automation-premium .auto-stat {
  position: relative;
  z-index: 1;
  background: #ffffff !important;
  border: 1px solid rgba(47, 76, 150, 0.14) !important;
  border-radius: 18px !important;
  box-shadow:
    0 22px 50px rgba(28, 58, 137, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #09142c !important;
}

body.automation-premium .auto-card p,
body.automation-premium .auto-panel p,
body.automation-premium .auto-quote p,
body.automation-premium .auto-form label,
body.automation-premium .auto-form span {
  color: #3a4660 !important;
}

body.automation-premium .auto-card__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px !important;
  background: linear-gradient(160deg, #ffffff, #eef4ff 50%, #dce8ff) !important;
  border: 1px solid rgba(75, 123, 255, 0.35) !important;
  color: #095cff !important;
  font-size: 1.45rem !important;
}

body.automation-premium .auto-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid rgba(47, 76, 150, 0.16) !important;
  color: #3a4660 !important;
  font-weight: 650;
  font-size: 0.85rem;
}

/* ---- Professional glossy buttons ---- */
body.automation-premium .auto-btn,
body.automation-premium a.auto-btn,
body.automation-premium button.auto-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.85rem 1.55rem !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

body.automation-premium .auto-btn--lg {
  min-height: 3.35rem;
  padding: 1rem 1.85rem !important;
  font-size: 1.02rem !important;
}

body.automation-premium .auto-btn--primary,
body.automation-premium a.auto-btn--primary,
body.automation-premium button.auto-btn--primary {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background: linear-gradient(110deg, #075cff 0%, #2a4dff 45%, #4d38ff 100%) !important;
  border: 0 !important;
  box-shadow:
    0 14px 28px rgba(32, 79, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

body.automation-premium .auto-btn--primary::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    transparent 58%
  ) !important;
}

body.automation-premium .auto-btn--primary > * {
  position: relative;
  z-index: 1;
}

body.automation-premium .auto-btn--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 18px 36px rgba(32, 79, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
  filter: brightness(1.04);
  color: #ffffff !important;
}

body.automation-premium .auto-btn--ghost,
body.automation-premium a.auto-btn--ghost {
  color: #09142c !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%) !important;
  border: 1px solid rgba(75, 123, 255, 0.3) !important;
  box-shadow:
    0 10px 24px rgba(24, 51, 111, 0.1),
    inset 0 1px 0 #fff !important;
}

body.automation-premium .auto-btn--ghost:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(9, 92, 255, 0.45) !important;
  color: #095cff !important;
}

/* ---- Navy CTA band: white copy + glossy Contact ---- */
body.automation-premium .auto-cta-band {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(9, 92, 255, 0.32), transparent 52%),
    linear-gradient(160deg, #0b1220 0%, #122044 55%, #081018 100%) !important;
  color: #f5f8ff !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

body.automation-premium .auto-cta-band__inner {
  position: relative;
  z-index: 2;
}

body.automation-premium .auto-cta-band h2,
body.automation-premium .auto-cta-band .font-display,
body.automation-premium .auto-cta-band p,
body.automation-premium .auto-cta-band__sub {
  color: #f5f8ff !important;
}

body.automation-premium .auto-cta-band .auto-btn--primary {
  color: #ffffff !important;
}

body.automation-premium .auto-cta-band .auto-btn--ghost {
  color: #09142c !important;
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ---- Quotes ---- */
body.automation-premium .auto-quote {
  padding: 1.5rem 1.35rem !important;
  margin: 0;
}

body.automation-premium .auto-quote p {
  color: #3a4660 !important;
  line-height: 1.65 !important;
}

body.automation-premium .auto-quote footer {
  color: #095cff !important;
  margin-top: 0.75rem;
}

/* ---- Light crystal form (not dark inputs) ---- */
body.automation-premium .auto-form {
  padding: 1.75rem !important;
}

body.automation-premium .auto-form input,
body.automation-premium .auto-form select,
body.automation-premium .auto-form textarea,
body.automation-premium .auto-field {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.75rem 0.9rem !important;
  border-radius: 12px !important;
  background: #f8faff !important;
  border: 1px solid rgba(47, 76, 150, 0.2) !important;
  color: #09142c !important;
  box-shadow: inset 0 1px 0 #fff !important;
}

body.automation-premium .auto-form input::placeholder,
body.automation-premium .auto-form textarea::placeholder {
  color: #7a869e !important;
}

body.automation-premium .auto-form label,
body.automation-premium .auto-form .font-semibold {
  color: #09142c !important;
  font-weight: 700 !important;
}

/* ---- Reveal safety: never leave content invisible ---- */
body.automation-premium .fade-in-up,
body.automation-premium .fade-in,
body.automation-premium .fade-in-left,
body.automation-premium .fade-in-right,
body.automation-premium .scale-in {
  opacity: 1 !important;
  transform: none !important;
}

body.automation-premium .fade-in-up.visible,
body.automation-premium .fade-in.visible,
body.automation-premium .fade-in-left.visible,
body.automation-premium .fade-in-right.visible,
body.automation-premium .scale-in.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ---- Footer cleanup ---- */
body.automation-premium .auto-footer,
body.automation-premium .site-footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(29, 67, 151, 0.12) !important;
  color: #3a4660 !important;
}

body.automation-premium .auto-footer [style*="#855400"],
body.automation-premium .site-footer [style*="color:#855400"] {
  color: #154ff3 !important;
}

body.automation-premium .auto-footer__bottom {
  border-top: 1px solid rgba(29, 67, 151, 0.1);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #5d6b86 !important;
}

/* Nav Contact Today — same glossy primary treatment */
body.automation-premium .auto-nav__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.65rem;
  padding: 0.65rem 1.2rem !important;
  border-radius: 11px !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  background: linear-gradient(110deg, #075cff 0%, #2a4dff 45%, #4d38ff 100%) !important;
  border: 0 !important;
  box-shadow:
    0 12px 24px rgba(32, 79, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
}

body.automation-premium .auto-btn--primary.pulse-glow {
  animation: none !important;
}

/* Get started / Automation Form — site dark navy band (not flat black) */
body.automation-premium #lead,
body.crystal-site.automation-premium #lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(9, 92, 255, 0.28), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #122044 55%, #081018 100%) !important;
  background-color: #0b1220 !important;
  border-color: rgba(9, 92, 255, 0.18) !important;
  color: #f5f8ff !important;
}
body.automation-premium #lead > .max-w-2xl > .text-center .svc-section-label,
body.automation-premium #lead > .max-w-2xl > .text-center .auto-section-label {
  color: #7eb0ff !important;
}
body.automation-premium #lead > .max-w-2xl > .text-center .svc-section-title,
body.automation-premium #lead > .max-w-2xl > .text-center .auto-section-title,
body.automation-premium #lead > .max-w-2xl > .text-center .font-display,
body.automation-premium #lead > .max-w-2xl > .text-center h2 {
  color: #ffffff !important;
}
body.automation-premium #lead > .max-w-2xl > .text-center p,
body.automation-premium #lead > .max-w-2xl > .text-center .text-muted-text {
  color: rgba(245, 248, 255, 0.78) !important;
}
/* Keep the intake form readable on light card */
body.automation-premium #lead .svc-card,
body.automation-premium #lead .auto-form {
  background: #ffffff !important;
  color: #09142c !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
body.automation-premium #lead .svc-card .font-semibold,
body.automation-premium #lead .svc-card .text-ink-text,
body.automation-premium #lead .svc-card label span {
  color: #09142c !important;
}
body.automation-premium #lead .svc-card .text-muted-text {
  color: #3a4660 !important;
}

/* Hero: entire content stack (copy + stats) perfectly centered */
body.automation-premium .auto-hero {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  min-height: calc(100svh - 5.5rem) !important;
}
body.automation-premium .auto-hero__content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 100% !important;
  gap: 0 !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  margin: 0 !important;
}
body.automation-premium .auto-hero__stack {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  flex: 0 0 auto !important;
}
body.automation-premium .auto-hero__stats {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}
