/* ==========================================================================
   email-agent.css — /email-agent
   --------------------------------------------------------------------------
   Reuses the homepage design system (css/pages/home-v3.css): hx- tokens,
   sections, cards, panels, lists and scroll-reveal. This file only adds what
   is specific to this page: the hero, the mail-thread mockup, the inbox
   mockup, and the deliverability strip. Indigo #6366f1 stays the one accent.
   ========================================================================== */

/* ---------- hero ---------- */

.emx-hero {
  position: relative;
  padding-block: clamp(90px, 10vw, 140px);
  background:
    radial-gradient(58% 45% at 50% 0%,  rgba(99, 102, 241, 0.09), transparent 72%),
    radial-gradient(42% 38% at 86% 30%, rgba(99, 102, 241, 0.06), transparent 70%),
    #FCFCFD;
  border-bottom: 1px solid var(--hx-hair);
  overflow: hidden;
}
.emx-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.emx-hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--hx-ink);
}
.emx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hx-hair);
}
.emx-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--hx-ink-50);
}
.emx-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hx-indigo);
}

/* ---------- mail thread mockup ---------- */

.emx-mail {
  background: #fff;
  border: 1px solid var(--hx-hair);
  border-radius: var(--hx-r-lg);
  box-shadow: var(--hx-shadow);
  overflow: hidden;
}
.emx-mail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #FBFBFC;
  border-bottom: 1px solid var(--hx-hair);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--hx-ink-50);
}
.emx-mail__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hx-indigo-050);
  color: var(--hx-indigo-700);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.emx-mail__body { padding: 6px 16px 16px; }

.emx-msg { padding: 15px 0; border-bottom: 1px solid var(--hx-hair); }
.emx-msg:last-child { border-bottom: 0; }
.emx-msg__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.emx-msg__av {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F1F1F4;
  color: var(--hx-ink-50);
  font-size: 11px;
  font-weight: 600;
}
.emx-msg__av--ai { background: var(--hx-indigo); color: #fff; }
.emx-msg__who { font-size: 13.5px; font-weight: 600; color: var(--hx-ink); }
.emx-msg__time {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--hx-ink-30);
}
.emx-msg__t {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hx-ink-70);
}
.emx-msg__t strong { color: var(--hx-ink); font-weight: 600; }

/* what the agent did, under the reply */
.emx-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.emx-acts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--hx-hair-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--hx-ink-70);
  background: #fff;
}
.emx-acts svg { width: 12px; height: 12px; color: var(--hx-indigo); }

/* ---------- inbox mockup ---------- */

.emx-inbox {
  background: #fff;
  border: 1px solid var(--hx-hair);
  border-radius: var(--hx-r-lg);
  box-shadow: var(--hx-shadow);
  overflow: hidden;
}
.emx-inbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FBFBFC;
  border-bottom: 1px solid var(--hx-hair);
}
.emx-inbox__addr {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--hx-ink-50);
}
.emx-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hx-hair);
}
.emx-row:last-child { border-bottom: 0; }
.emx-row__dot {
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--hx-indigo);
}
.emx-row__dot--done { background: var(--hx-hair-2); }
.emx-row__s { display: block; font-size: 13.5px; font-weight: 600; color: var(--hx-ink); }
.emx-row__p { display: block; margin-top: 1px; font-size: 12.5px; color: var(--hx-ink-50); }
.emx-row__b {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #F1F1F4;
  color: var(--hx-ink-50);
}
.emx-row__b--auto { background: var(--hx-indigo-050); color: var(--hx-indigo-700); }

/* ---------- deliverability strip ---------- */

.emx-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.emx-trust__cell {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--hx-hair);
  border-radius: var(--hx-r-md);
}
.emx-trust__k {
  display: block;
  margin-bottom: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hx-indigo-700);
}
.emx-trust__v { display: block; font-size: 13.5px; line-height: 1.5; color: var(--hx-ink-70); }

/* ---------- closing CTA ---------- */

.emx-cta {
  position: relative;
  padding: clamp(40px, 5vw, 68px);
  border-radius: 24px;
  background: var(--hx-mock);
  overflow: hidden;
}
.emx-cta__inner { position: relative; max-width: 640px; }
.emx-cta h2 { color: #fff; }
.emx-cta p { color: rgba(255, 255, 255, 0.68); }
.emx-cta .hx-eyebrow { color: #c7c9ff; }
.emx-cta .hx-eyebrow::before { background: #c7c9ff; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .emx-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .emx-cta { padding: 28px 22px; }
  .emx-row { grid-template-columns: 26px 1fr; }
  .emx-row__b { display: none; }
}
