/* ------------------------------------------------------------------
   /features/email-triage

   Loaded after feature-page.css and integrations.css: the hero, the
   alternating bands (ix-group), the dark card band (ix-build) and the
   eyebrows all come from there. Only what this page adds lives here,
   under an `et-` prefix.
   ------------------------------------------------------------------ */

/* ---------- Hero: a stylised inbox in place of the integrations orbit ---------- */

.et-hero-visual {
  position: relative;
  padding: 24px 0 36px;
}

.et-inbox {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: var(--primary);
}

.et-inbox-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
}

.et-inbox-tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.et-inbox-tab {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
}

.et-inbox-tab.is-active {
  background: var(--primary);
  color: white;
}

.et-inbox-rows {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.et-inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.et-inbox-row + .et-inbox-row {
  border-top: 1px solid rgba(34, 54, 60, 0.07);
}

.et-inbox-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.et-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.et-chip-new {
  background: rgba(181, 164, 203, 0.3);
  color: #6d5a8a;
}

.et-chip-progress {
  background: rgba(245, 204, 75, 0.3);
  color: #8a6a07;
}

.et-chip-waiting {
  background: rgba(47, 72, 80, 0.1);
  color: var(--primary);
}

.et-chip-done {
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.et-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.et-hero-logos {
  position: absolute;
  right: -10px;
  bottom: 8px;
  display: flex;
  gap: 10px;
}

.et-hero-logos img {
  width: 52px;
  height: 52px;
  padding: 10px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  object-fit: contain;
}

/* ---------- The problem: three tiles in place of the partner panel ---------- */

.et-pains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.et-pain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 0 14px 14px 0;
  background: white;
  border: 1px solid rgba(34, 54, 60, 0.08);
  border-left: 4px solid var(--yellow);
  color: var(--primary);
}

.et-pain strong {
  font-size: 1.05rem;
}

.et-pain span {
  color: #46585e;
  line-height: 1.5;
}

/* ---------- How it works: four numbered steps ---------- */

.et-how {
  padding: 88px 0;
  background: white;
  scroll-margin-top: var(--header-height);
}

.et-how .ix-group-title {
  max-width: 24em;
}

.et-steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.et-step {
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--bg);
}

.et-step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
}

.et-step h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 8px;
}

.et-step p {
  margin: 0;
  line-height: 1.6;
  color: #46585e;
}

/* ---------- Screenshot slots ---------- */

/* A real screenshot is its own frame: the panel around it loses its padding and background,
   which otherwise read as a box round the image's own backdrop. Specific enough to beat the
   even-band rule in integrations.css. */
.ix-group .ix-panel.et-shot-panel {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.et-shot-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(34, 54, 60, 0.08);
  box-shadow: 0 18px 48px rgba(34, 54, 60, 0.12);
}

/* Until a real screenshot lands: a labelled box at the intended 16:10 shape. */
.et-shot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 2px dashed #ccc;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.et-shot-file {
  font-family: monospace;
  font-size: 0.85rem;
  color: #666;
}

.et-shot-alt {
  font-size: 0.9rem;
  font-style: italic;
  color: #888;
  max-width: 28em;
}

/* ---------- Make it yours: a grid of what a practice shapes, then the small touches ---------- */

.et-shape-intro {
  max-width: 40em;
}

.et-shape-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.et-shape-card {
  padding: 24px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(34, 54, 60, 0.08);
  box-shadow: 0 10px 28px rgba(34, 54, 60, 0.06);
}

.et-shape-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.et-shape-card h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin: 0 0 6px;
}

.et-shape-card p {
  margin: 0;
  line-height: 1.6;
  color: #46585e;
}

.et-touches {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(34, 54, 60, 0.1);
}

.et-touches-lead {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  max-width: 32em;
  margin: 0 0 20px;
}

.et-touches-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 0;
}

@media (max-width: 860px) {
  .et-touches-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Built for practices: the ix-build cards, without link hover ---------- */

.et-static-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.et-static-card.ix-build-card-feature:hover {
  background: linear-gradient(160deg, rgba(162, 185, 100, 0.22), rgba(181, 164, 203, 0.14));
  border-color: rgba(162, 185, 100, 0.4);
}

/* ---------- CTA: heading and buttons only ---------- */

.et-cta {
  padding: 88px 0;
  background: var(--bg);
}

.et-cta .section-header {
  margin-bottom: 0;
}

.et-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .et-hero-visual {
    max-width: 520px;
  }

  .et-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .et-how,
  .et-cta {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .et-steps {
    grid-template-columns: 1fr;
  }

  .et-inbox-tabs {
    display: none;
  }

  .et-inbox-row {
    padding: 12px 14px;
    gap: 8px;
  }

  .et-hero-logos {
    right: 0;
  }

  .et-hero-logos img {
    width: 44px;
    height: 44px;
  }
}
