/* EmailPilot minimal override layer for Hello Biz + Elementor */
:root {
  --ep-blue: #3369DC;
  --ep-purple: #8A6CF7;
  --ep-lime: #C5FF75;
  --ep-black: #000000;
  --ep-white: #FFFFFF;

  /* App light theme tokens */
  --bg-body: #f8f9fa;
  --surface-1: #ffffff;
  --text-primary: #111827;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-muted: rgba(0, 0, 0, 0.5);
  --border-soft: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.16);
  --shadow-soft: 0 20px 60px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Marketing theme compatibility */
  --theme-bg: var(--bg-body);
  --theme-bg-secondary: var(--surface-1);
  --theme-text: var(--text-primary);
  --theme-text-secondary: rgba(0, 0, 0, 0.8);
  --theme-muted: var(--text-secondary);
  --theme-border: var(--border-soft);
  --theme-border-strong: var(--border-strong);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-bg-hover: rgba(255, 255, 255, 0.95);
  --panel-border: var(--border-soft);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: var(--border-soft);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(125deg, #ffffff 0%, #f0f2f5 50%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.font-display {
  font-family: 'Red Hat Display', 'Poppins', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

p,
.elementor-widget-text-editor {
  color: var(--text-secondary);
}

a {
  color: inherit;
}

a:hover {
  color: var(--ep-blue);
}

/* Buttons (minimal override) */
.elementor-button,
.ep-button,
.ep-btn-primary {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ep-blue), var(--ep-purple));
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(51, 105, 220, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elementor-button:hover,
.ep-button:hover,
.ep-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(51, 105, 220, 0.3);
}

.elementor-button.ep-secondary,
.ep-btn-secondary {
  background: rgba(51, 105, 220, 0.08);
  border: 1px solid rgba(51, 105, 220, 0.25);
  color: var(--text-primary);
  box-shadow: none;
}

/* Cards & panels */
.ep-card,
.ep-feature-card,
.ep-glass,
.ep-glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* Inputs */
input[type=text],
input[type=email],
input[type=password],
textarea,
select {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ep-blue);
  box-shadow: 0 0 0 3px rgba(51, 105, 220, 0.12);
  outline: none;
  background: #ffffff;
}

/* Nav (safe, minimal) */
.site-header,
.elementor-nav-menu {
  color: var(--text-primary);
}

/* Brand text */
.ep-brand-text,
.ep-gradient-text {
  background: linear-gradient(135deg, var(--ep-blue) 0%, var(--ep-purple) 40%, var(--ep-lime) 80%, var(--ep-blue) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================
   Marketing Pages Consistency
   Keep this minimal: override Elementor Kit font drift and form styling.
   Scope: body.ep-marketing only.
   ============================== */

body.ep-marketing,
body.ep-marketing .elementor {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

body.ep-marketing h1,
body.ep-marketing h2,
body.ep-marketing h3,
body.ep-marketing h4,
body.ep-marketing h5,
body.ep-marketing h6,
body.ep-marketing .elementor-heading-title {
  font-family: 'Red Hat Display', 'Poppins', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

body.ep-marketing .elementor-widget-text-editor,
body.ep-marketing p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Feature pages were drifting to oversized headings; tighten the scale a bit. */
body.ep-marketing .elementor-widget-heading h1.elementor-heading-title {
  font-weight: 900;
  line-height: 1.06;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

body.ep-marketing .elementor-widget-heading h2.elementor-heading-title {
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

body.ep-marketing .elementor-widget-heading h3.elementor-heading-title {
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

/* Waitlist form (homepage): blend into light background and remove any theme input borders. */
body.ep-marketing form#waitlist-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(10px);
}

body.ep-marketing form#waitlist-form input[type='email'],
body.ep-marketing form#waitlist-form input[type='text'] {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 18px !important;
  border-radius: 9999px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ep-marketing form#waitlist-form button,
body.ep-marketing form#waitlist-form input[type='submit'] {
  height: 46px;
  padding: 0 22px;
  border-radius: 9999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.ep-marketing form#waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Homepage waitlist polish: make email input blend into parent pill */
body.page-id-591 form#waitlist-form,
body.home form#waitlist-form {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(17, 24, 39, 0.09) !important;
}

body.page-id-591 form#waitlist-form .waitlist-input,
body.home form#waitlist-form .waitlist-input,
body.page-id-591 form#waitlist-form input[type='email'],
body.home form#waitlist-form input[type='email'] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

body.page-id-591 form#waitlist-form .waitlist-input::placeholder,
body.home form#waitlist-form .waitlist-input::placeholder {
  color: #94a3b8 !important;
}

/* Universal footer readability on marketing pages */
body.ep-marketing footer.elementor-location-footer {
  opacity: 1 !important;
  filter: none !important;
  background: #eef2f7 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-heading-title {
  color: #1e293b !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-widget-text-editor,
body.ep-marketing footer.elementor-location-footer .elementor-widget-text-editor p,
body.ep-marketing footer.elementor-location-footer .elementor-icon-list-text,
body.ep-marketing footer.elementor-location-footer a {
  color: #64748b !important;
  opacity: 1 !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-widget-theme-site-logo img,
body.ep-marketing footer.elementor-location-footer .elementor-widget-image img {
  opacity: 1 !important;
  filter: none !important;
}

/* Stronger universal footer contrast on marketing pages */
body.ep-marketing footer.elementor-location-footer,
body.page-id-591 footer.elementor-location-footer {
  opacity: 1 !important;
  filter: none !important;
  background: #f1f5f9 !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-element.elementor-element-d60eda9,
body.page-id-591 footer.elementor-location-footer .elementor-element.elementor-element-d60eda9 {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-element.elementor-element-78d6b50,
body.page-id-591 footer.elementor-location-footer .elementor-element.elementor-element-78d6b50 {
  border-top-color: rgba(15, 23, 42, 0.12) !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-heading-title,
body.page-id-591 footer.elementor-location-footer .elementor-heading-title {
  color: #0f172a !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-widget-text-editor,
body.ep-marketing footer.elementor-location-footer .elementor-widget-text-editor p,
body.ep-marketing footer.elementor-location-footer .elementor-icon-list-text,
body.ep-marketing footer.elementor-location-footer .elementor-icon-list-text a,
body.ep-marketing footer.elementor-location-footer a,
body.page-id-591 footer.elementor-location-footer .elementor-widget-text-editor,
body.page-id-591 footer.elementor-location-footer .elementor-widget-text-editor p,
body.page-id-591 footer.elementor-location-footer .elementor-icon-list-text,
body.page-id-591 footer.elementor-location-footer a {
  color: #475569 !important;
  opacity: 1 !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-icon-list-item:hover .elementor-icon-list-text,
body.ep-marketing footer.elementor-location-footer a:hover,
body.page-id-591 footer.elementor-location-footer .elementor-icon-list-item:hover .elementor-icon-list-text,
body.page-id-591 footer.elementor-location-footer a:hover {
  color: #3369dc !important;
}

body.ep-marketing footer.elementor-location-footer .elementor-widget-theme-site-logo img,
body.ep-marketing footer.elementor-location-footer .elementor-widget-image img,
body.page-id-591 footer.elementor-location-footer .elementor-widget-theme-site-logo img,
body.page-id-591 footer.elementor-location-footer .elementor-widget-image img {
  opacity: 1 !important;
  filter: none !important;
}
