@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --ea-primary: #4338ca;
  --ea-primary-hover: #3730a3;
  --ea-primary-dark: #1e1b4b;
  --ea-primary-light: #e0e7ff;
  --ea-primary-surface-soft: #eef2ff;

  --ea-secondary: #0ea5e9;
  --ea-secondary-hover: #0284c7;
  --ea-secondary-light: #e0f2fe;

  --ea-emerald: #10b981;
  --ea-emerald-light: #d1fae5;
  --ea-amber: #f59e0b;
  --ea-amber-light: #fef3c7;
  --ea-rose: #f43f5e;
  --ea-rose-light: #ffe4e6;
  --ea-purple: #7c3aed;
  --ea-purple-light: #ede9fe;

  --ea-neutral-50: #f9fafb;
  --ea-neutral-100: #f3f4f6;
  --ea-neutral-200: #e5e7eb;
  --ea-neutral-300: #d1d5db;
  --ea-neutral-400: #9ca3af;
  --ea-neutral-500: #6b7280;
  --ea-neutral-600: #4b5563;
  --ea-neutral-700: #374151;
  --ea-neutral-800: #1f2937;
  --ea-neutral-900: #111827;

  /* Compatibility aliases for inline mockup styles */
  --primary-color: var(--ea-primary);
  --primary-hover: var(--ea-primary-hover);
  --primary-dark: var(--ea-primary-dark);
  --primary-light: var(--ea-primary-light);
  --primary-surface-soft: var(--ea-primary-surface-soft);
  --secondary-color: var(--ea-secondary);
  --secondary-hover: var(--ea-secondary-hover);
  --secondary-light: var(--ea-secondary-light);
  --accent-emerald: var(--ea-emerald);
  --accent-emerald-light: var(--ea-emerald-light);
  --accent-amber: var(--ea-amber);
  --accent-amber-light: var(--ea-amber-light);
  --accent-rose: var(--ea-rose);
  --accent-rose-light: var(--ea-rose-light);
  --accent-purple: var(--ea-purple);
  --accent-purple-light: var(--ea-purple-light);
  --neutral-50: var(--ea-neutral-50);
  --neutral-100: var(--ea-neutral-100);
  --neutral-200: var(--ea-neutral-200);
  --neutral-300: var(--ea-neutral-300);
  --neutral-400: var(--ea-neutral-400);
  --neutral-500: var(--ea-neutral-500);
  --neutral-600: var(--ea-neutral-600);
  --neutral-700: var(--ea-neutral-700);
  --neutral-800: var(--ea-neutral-800);
  --neutral-900: var(--ea-neutral-900);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(67, 56, 202, 0.08), 0 8px 10px -6px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(67, 56, 202, 0.14), 0 8px 16px -8px rgba(17, 24, 39, 0.06);
}

.ea-marketing {
  font-family: var(--font-primary);
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
}

.ea-marketing h1,
.ea-marketing h2,
.ea-marketing h3,
.ea-marketing h4,
.ea-marketing h5,
.ea-marketing h6 {
  font-family: var(--font-headings);
  color: var(--neutral-900);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ea-marketing p,
.ea-marketing li,
.ea-marketing span,
.ea-marketing div,
.ea-marketing a,
.ea-marketing code {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ea-marketing a {
  text-decoration: none;
}

.ea-marketing img {
  max-width: 100%;
  height: auto;
}

.ea-copy {
  color: var(--neutral-600);
  max-width: 72ch;
}

.ea-preview-image {
  display: block;
  width: 100%;
}

.ea-voucher-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.ea-login-link {
  font-size: 0.9rem;
}

.ea-marketing--home .ea-section h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.ea-marketing .ea-section .ea-btn-group {
  margin-top: 1.25rem;
}

.ea-access-table {
  min-width: 640px;
}

.ea-access-table th,
.ea-access-table td {
  padding: 1rem;
}

.ea-access-table caption {
  caption-side: top;
  color: var(--neutral-600);
}

.ea-desktop-only {
  display: flex;
}
@media (max-width: 768px) {
  .ea-desktop-only {
    display: none !important;
  }
}

/* Sections */
.ea-section {
  padding: 3.5rem 0;
}
@media (max-width: 640px) {
  .ea-section {
    padding: 2.25rem 0;
  }
}
.ea-section--sm {
  padding: 2.25rem 0;
}
.ea-section--alt {
  background: #fff;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.ea-section--soft {
  background: linear-gradient(180deg, var(--primary-surface-soft) 0%, #f8fafc 100%);
}
.ea-section--dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #0f172a 100%);
  color: #f8fafc;
}
.ea-section--dark h1,
.ea-section--dark h2,
.ea-section--dark h3,
.ea-section--dark h4 {
  color: #fff;
}

/* Hero Section */
.ea-hero {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  background: radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.16), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(67, 56, 202, 0.13), transparent 50%),
              linear-gradient(135deg, #f9fafb 0%, #eef2ff 65%, #e0f2fe 100%);
  border-bottom: 1px solid var(--neutral-200);
}
@media (max-width: 640px) {
  .ea-hero {
    padding: 1.75rem 0 2.25rem;
  }
}
.ea-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2.25rem;
  align-items: center;
}
.ea-hero__grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 960px) {
  .ea-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.ea-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  background: rgba(67, 56, 202, 0.1);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.ea-title-xl {
  font-size: clamp(1.65rem, 3.2vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.95rem;
  color: var(--neutral-900);
  max-width: 100%;
}
.ea-title-xl .highlight {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ea-lead {
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  color: var(--neutral-600);
  line-height: 1.62;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

/* Voucher Banner Pill */
.ea-voucher-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
  animation: eaPulseBorder 3s infinite ease-in-out;
  max-width: 100%;
}
@keyframes eaPulseBorder {
  0%, 100% { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 8px 26px rgba(16, 185, 129, 0.24); }
}
.ea-voucher-banner__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ea-voucher-banner__title {
  font-weight: 700;
  color: #065f46;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.ea-voucher-banner__text {
  font-size: 0.84rem;
  color: #047857;
  margin: 0;
}

/* Buttons */
.ea-btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: 14px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.ea-btn--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
  color: #fff !important;
  box-shadow: 0 10px 22px -6px rgba(67, 56, 202, 0.45);
}
.ea-btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(67, 56, 202, 0.55);
}
.ea-btn--emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff !important;
  box-shadow: 0 10px 22px -6px rgba(16, 185, 129, 0.4);
}
.ea-btn--emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(16, 185, 129, 0.52);
}
.ea-btn--secondary {
  background: #fff;
  color: var(--primary-color) !important;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.ea-btn--secondary:hover {
  border-color: var(--primary-color);
  background: var(--primary-surface-soft);
  transform: translateY(-1px);
}
.ea-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}
.ea-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}
.ea-btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  border-radius: 10px;
}
.ea-btn--lg {
  padding: 0.88rem 1.45rem;
  font-size: 0.98rem;
  border-radius: 16px;
}
@media (max-width: 480px) {
  .ea-btn-group {
    width: 100%;
  }
  .ea-btn-group .ea-btn {
    width: 100%;
  }
}

/* Microcopy under CTA */
.ea-microcopy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--neutral-600);
  max-width: 100%;
}
.ea-microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.ea-microcopy i {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Grids & Cards — minmax(0, 1fr) prevents 390px horizontal blowouts */
.ea-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.ea-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.ea-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.ea-grid-2 > *,
.ea-grid-3 > *,
.ea-grid-4 > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 992px) {
  .ea-grid-3, .ea-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .ea-grid-2, .ea-grid-3, .ea-grid-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }
  .ea-sticky-desktop {
    position: static !important;
  }
}

.ea-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .ea-card {
    padding: 1.15rem;
    border-radius: 18px;
  }
}
.ea-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d2fe;
}
.ea-card--featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}
.ea-card__badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ea-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.95rem;
  background: var(--primary-light);
  color: var(--primary-color);
  flex-shrink: 0;
}
.ea-icon-box--sky {
  background: var(--secondary-light);
  color: var(--secondary-hover);
}
.ea-icon-box--emerald {
  background: var(--accent-emerald-light);
  color: #059669;
}
.ea-icon-box--amber {
  background: var(--accent-amber-light);
  color: #d97706;
}
.ea-icon-box--purple {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
}

/* Application Window Frame */
.ea-app-window {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: 0 24px 48px -12px rgba(30, 27, 75, 0.18);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.ea-app-window__bar {
  background: #f1f5f9;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.ea-app-window__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.ea-app-window__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.ea-app-window__dots span:nth-child(1) { background: #f87171; }
.ea-app-window__dots span:nth-child(2) { background: #fbbf24; }
.ea-app-window__dots span:nth-child(3) { background: #34d399; }
.ea-app-window__url {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  color: var(--neutral-500);
  flex: 1;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ea-app-window__body {
  padding: 1.15rem;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .ea-app-window__body {
    padding: 0.85rem;
  }
}
.ea-caption {
  font-size: 0.8rem;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 0.55rem;
  font-style: italic;
  max-width: 100%;
}

/* Interactive Tabs */
.ea-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--neutral-100);
  padding: 0.35rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.ea-tab-btn {
  flex: 1 1 130px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--neutral-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  transition: all 0.2s ease;
}
.ea-tab-btn.active {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.ea-tab-pane {
  display: none;
  animation: eaFadeIn 0.28s ease;
  min-width: 0;
  max-width: 100%;
}
.ea-tab-pane.active {
  display: block;
}
@keyframes eaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Mini-Quiz Demo */
.ea-mini-quiz {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
  border: 2px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  max-width: 100%;
}
.ea-quiz-option {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.18s ease;
}
.ea-quiz-option:hover {
  border-color: var(--primary-color);
  background: var(--primary-surface-soft);
}
.ea-quiz-option.correct {
  border-color: var(--accent-emerald);
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}
.ea-quiz-option.wrong {
  border-color: var(--accent-rose);
  background: #fff1f2;
  color: #9f1239;
}
.ea-quiz-ai-box {
  display: none;
  margin-top: 0.85rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 0.85rem;
  color: #1e3a8a;
}
.ea-quiz-ai-box.visible {
  display: block;
  animation: eaFadeIn 0.25s ease;
}

/* FAQ Accordion */
.ea-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}
.ea-faq-item {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ea-faq-item.open {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.ea-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-headings);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--neutral-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ea-faq-question i {
  color: var(--primary-color);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.ea-faq-item.open .ea-faq-question i {
  transform: rotate(180deg);
}
.ea-faq-answer {
  display: none;
  padding: 0 1.15rem 1.05rem;
  color: var(--neutral-600);
  font-size: 0.92rem;
  line-height: 1.65;
}
.ea-faq-item.open .ea-faq-answer {
  display: block;
}

/* Badge / Chip */
.ea-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  max-width: 100%;
}
.ea-chip--open {
  background: var(--accent-emerald-light);
  color: #065f46;
}
.ea-chip--voucher {
  background: var(--accent-amber-light);
  color: #92400e;
}
.ea-chip--indigo {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Responsive comparison table/cards on mobile (390px) */
.ea-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 680px) {
  .ea-comparison-table,
  .ea-comparison-table thead,
  .ea-comparison-table tbody,
  .ea-comparison-table th,
  .ea-comparison-table td,
  .ea-comparison-table tr {
    display: block;
    width: 100%;
  }
  .ea-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .ea-comparison-table tr {
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    background: #fff;
  }
  .ea-comparison-table td {
    border: none !important;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .ea-comparison-table td:first-child {
    font-weight: 700;
    color: var(--neutral-900);
    border-bottom: 1px solid var(--neutral-100) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem;
    display: block;
  }
  .ea-comparison-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neutral-500);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
