/* Email Solutions — marketing site extensions */

:root {
  --es-slate-950: #020617;
  --es-slate-900: #0f172a;
  --es-slate-800: #1e293b;
  --es-slate-600: #475569;
  --es-slate-500: #64748b;
  --es-blue-600: #2563eb;
  --es-blue-700: #1d4ed8;
  --es-green-600: #059669;
  --es-green-700: #047857;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.es-gradient-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(5, 150, 105, 0.08), transparent),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
}

.es-gradient-mesh {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.es-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.06);
}

.es-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.es-card-hover:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.08);
}

.es-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--es-blue-600) 0%, var(--es-blue-700) 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.es-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08), 0 12px 32px rgba(37, 99, 235, 0.34);
}

.es-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
  color: var(--es-slate-800);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.es-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.es-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.es-badge-blue {
  color: var(--es-blue-700);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.es-badge-green {
  color: var(--es-green-700);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

/* Stepper */
.es-stepper-line {
  position: absolute;
  left: 1.25rem;
  top: 2.75rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2563eb 0%, #cbd5e1 100%);
}

.es-step-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.es-step-btn:hover {
  background: #f8fafc;
}

.es-step-btn[aria-current="step"] .es-step-icon {
  background: linear-gradient(135deg, var(--es-blue-600), var(--es-blue-700));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.es-step-btn[aria-current="step"] .es-step-panel {
  display: block;
}

.es-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--es-slate-600);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.es-step-btn.is-complete .es-step-icon {
  background: var(--es-green-600);
  border-color: var(--es-green-600);
  color: #ffffff;
}

.es-step-panel {
  display: none;
}

.es-step-btn[aria-current="step"] + .es-step-panel,
.es-step-panel.is-open {
  display: block;
}

/* Conversion toggle */
.es-toggle-btn[aria-pressed="true"] {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.es-conversion-panel {
  display: none;
}

.es-conversion-panel.is-active {
  display: block;
}

/* Trust blockquote */
.es-trust-quote {
  border-left: 4px solid var(--es-green-600);
  background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
}

/* Calendar placeholder */
.es-calendar-placeholder {
  min-height: 420px;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  background: repeating-linear-gradient(
    -45deg,
    #f8fafc,
    #f8fafc 10px,
    #f1f5f9 10px,
    #f1f5f9 20px
  );
}

@media (min-width: 1024px) {
  .es-stepper-horizontal .es-stepper-line {
    left: 0;
    right: 0;
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .es-card-hover,
  .es-btn-primary,
  .es-step-btn,
  .es-step-icon,
  .es-spinner {
    transition: none;
    animation: none;
  }
}

/* Report page */
.es-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: es-spin 0.8s linear infinite;
}

@keyframes es-spin {
  to {
    transform: rotate(360deg);
  }
}

.es-check-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.es-check-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.es-pulse-dot {
  animation: es-pulse 1.2s ease-in-out infinite;
}

@keyframes es-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.es-btn-primary:disabled,
.es-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Landing page pricing matrix */
.es-pricing-matrix .es-card {
  display: flex;
  flex-direction: column;
}

.es-pricing-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: #1e293b;
}

/* Verification panel */
.es-verify-panel input:focus {
  outline: none;
}

/* Button loading state */
.es-btn-loading {
  position: relative;
  pointer-events: none;
}

.es-btn-loading .es-btn-label::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: es-spin 0.8s linear infinite;
}

.es-btn-secondary.es-btn-loading .es-btn-label::after {
  border-color: rgba(30, 41, 59, 0.2);
  border-top-color: #1e293b;
}

.fix-progress-step.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  opacity: 1;
}

.fix-progress-step.is-complete {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #065f46;
  opacity: 1;
}

.fix-record-group {
  list-style: none;
}

.fix-record-technical-wrap {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.8);
  padding: 0.75rem 1rem;
}

.fix-record-technical-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.fix-record-count-summary {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.fix-record-technical {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.fix-record-technical-row {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .fix-record-technical-row {
    flex-direction: row;
    gap: 0.75rem;
  }

  .fix-record-technical-type {
    flex-shrink: 0;
    min-width: 10rem;
  }
}

.fix-record-technical-type {
  color: #94a3b8;
}

.fix-record-technical-value {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
