/* ─────────────────────────────────────────────────────────────────────────────
   EMAIL API PAGE — Vercel dark theme
───────────────────────────────────────────────────────────────────────────── */

.ea-page {
  --teal: #0070f3;
  --teal-dim: rgba(0, 112, 243, 0.12);
  --green: #00c851;
  --purple: #7928ca;
  --amber: #f5a623;
  --orange: #f97316;
  --navy: #0a0a0a;
  --navy-mid: #111;
  --navy-dark: #000;
  --navy-card: #111;
  --navy-border: #1f1f1f;
  --mono: var(--font-mono, "Fira Code", "Consolas", monospace);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ── Shared helpers ─────────────────────────────────────────────────────────── */
.ea-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ea-dot--red {
  background: #ff5f57;
}
.ea-dot--yellow {
  background: #febc2e;
}
.ea-dot--green {
  background: #28c840;
}

.ea-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.ea-h2 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.ea-h2--white {
  color: #fff;
}
.ea-h2--dark {
  color: #fff;
}
.ea-h2--center {
  text-align: center;
}

.ea-sub {
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
}
.ea-sub--dim {
  color: #666;
}
.ea-sub--muted {
  color: #555;
}

.ea-code-chip {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(0, 112, 243, 0.1);
  color: #7dd3fc;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(0, 112, 243, 0.2);
}

.ea-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 112, 243, 0.08);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 40px;
  border: 1px solid rgba(0, 112, 243, 0.2);
  margin-bottom: 18px;
}
.ea-badge__label {
  font-weight: 700;
}
.ea-badge__sep {
  color: rgba(125, 211, 252, 0.3);
}
.ea-badge__sub {
  opacity: 0.7;
}

.ea-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s var(--ease),
    box-shadow 0.18s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ea-btn-primary:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}

.ea-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ededed;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid #333;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s,
    transform 0.18s var(--ease);
}
.ea-btn-outline:hover {
  border-color: #555;
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}
.ea-btn-outline--sm {
  font-size: 14px;
  padding: 10px 20px;
}

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.ea-hero {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  padding: 110px 0 72px;
}
@media (min-width: 1260px) {
  .ea-hero {
    padding-top: 152px;
  }
}

/* subtle dot grid — consistent with home hero */
.ea-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /*background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);*/
  background-size: 28px 28px;
  opacity: 1;
}

.ea-hero__gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /*background: radial-gradient(ellipse at 60% 0%, rgba(0,112,243,0.07) 0%, transparent 65%);*/
}

.ea-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ea-hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.ea-hero__accent {
  background: linear-gradient(90deg, #0070f3 0%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ea-hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 24px;
}

.ea-hero__meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: var(--r-md);
  overflow: hidden;
}
.ea-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  gap: 3px;
  flex: 1;
}
.ea-meta-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ea-meta-lbl {
  font-size: 11px;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
}
.ea-meta-sep {
  width: 1px;
  height: 36px;
  background: #1f1f1f;
  flex-shrink: 0;
}

.ea-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── CODE SECTION ────────────────────────────────────────────────────────────── */
.ea-code-section {
  background: #0a0a0a;
  padding: 80px 0;
  border-top: 1px solid #1a1a1a;
}
.ea-code-head {
  margin-bottom: 28px;
}

/* ── Lang tabs — identical to home ──────────────────────────────────────────── */
#langTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ea-editor {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid #1f1f1f;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.ea-editor__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #111;
  border-bottom: 1px solid #1f1f1f;
}
.ea-editor__tab {
  font-family: var(--mono);
  font-size: 12px;
  color: #888;
  padding: 4px 12px;
  background: #1a1a1a;
  border-top: 2px solid var(--teal);
  border-right: 1px solid #1f1f1f;
  margin-left: 4px;
}
.ea-copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #444;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition:
    color 0.15s,
    background 0.15s;
}
.ea-copy-btn:hover {
  color: #fff;
  background: #1f1f1f;
}

.ea-editor__pre {
  background: #0a0a0a;
  padding: 20px 24px;
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
}
.ea-editor__pre::-webkit-scrollbar {
  width: 4px;
}
.ea-editor__pre::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
.ea-editor__pre code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #cdd6f4;
  white-space: pre;
  display: block;
}

/* ── STATS ───────────────────────────────────────────────────────────────────── */
.ea-stats-section {
  background: #111;
  padding: 48px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.ea-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ea-stat {
  text-align: center;
  padding: 0 16px;
}
.ea-stat__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ea-stat__val {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ea-stat__label {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.ea-faq {
  background: #0a0a0a;
  padding: 80px 0;
  margin-top: 30px;
}
.ea-faq__inner {
  max-width: 720px;
  margin: 0 auto;
}
.ea-faq__inner .ea-h2 {
  margin-bottom: 48px;
}
.ea-faq__footer {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: #555;
}
.ea-faq__footer a {
  color: #0070f3;
  text-decoration: none;
}
.ea-faq__footer a:hover {
  text-decoration: underline;
}

.ea-faq-item {
  border-bottom: 1px solid #1a1a1a;
}
.ea-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #ededed;
  text-align: left;
  gap: 12px;
  transition: color 0.15s;
}
.ea-faq-q:hover {
  color: #fff;
}

.ea-faq-icon {
  flex-shrink: 0;
  color: #333;
  transition: transform 0.25s var(--ease);
}
.ea-faq-item.open .ea-faq-icon {
  transform: rotate(45deg);
  color: #0070f3;
}
.ea-faq-a {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease),
    padding 0.25s;
  padding-bottom: 0;
}
.ea-faq-item.open .ea-faq-a {
  max-height: 300px;
  padding-bottom: 18px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ea-caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ea-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .ea-hero__inner {
    grid-template-columns: 1fr;
  }
  .ea-hero__right {
    display: none;
  }
  .ea-ref__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .ea-hero {
    padding: 80px 0 56px;
  }
  .ea-hero__title {
    font-size: 36px;
  }
  .ea-h2 {
    font-size: 30px;
  }
  .ea-code-section,
  .ea-caps,
  .ea-ref,
  .ea-faq {
    padding: 56px 0;
  }
  .ea-hero__meta {
    flex-direction: column;
  }
  .ea-meta-sep {
    width: 80%;
    height: 1px;
  }
  .ea-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .ea-hero__title {
    font-size: 28px;
  }
  .ea-caps-grid {
    grid-template-columns: 1fr;
  }
  .ea-stats-row {
    grid-template-columns: 1fr;
  }
}
