/* ------------------------------------------------------------------
   /features/custom-fields

   Loaded after feature-page.css, integrations.css, email-triage.css and
   sms-whatsapp.css, which supply the hero, jump pills, bands, steps, cards
   and the shared artwork pieces (`ix-`, `et-`, `sw-`). This file holds only
   the custom fields artwork, drawn in HTML: everything here carries a `cu-` prefix.
   ------------------------------------------------------------------ */

.cu-hero-inner {
  grid-template-columns: minmax(0, 1fr) 420px;
}

/* ---------- A client record whose groups follow its fields ---------- */

.cu-hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 0 44px;
}

.cu-record {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cu-group {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 54, 60, 0.1);
  background: #fbfaf7;
}

/* A group shown by its condition. The accent edge stays square. */
.cu-group-revealed {
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
}

.cu-group-purple {
  border-left-color: var(--purple);
}

.cu-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.cu-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cu-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cu-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray, #6b7b80);
}

.cu-field-value {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(34, 54, 60, 0.12);
  background: white;
  font-size: 0.8rem;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cu-field-on {
  align-self: flex-start;
  min-width: 46px;
  text-align: center;
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.cu-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(162, 185, 100, 0.2);
  color: #5d7230;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.cu-pill-purple {
  background: rgba(181, 164, 203, 0.28);
  color: #6d5a8a;
}

.cu-hero-art .sw-float-a {
  left: -26px;
  top: auto;
  bottom: -4px;
}

.cu-hero-art .sw-float-b {
  right: -18px;
  bottom: auto;
  top: -14px;
}

/* ---------- Group conditions ---------- */

.cu-rules {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cu-rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
}

.cu-rule:first-child {
  border-top: none;
  padding-top: 0;
}

.cu-rule-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.cu-rule-when {
  padding-left: 23px;
  font-size: 0.82rem;
  color: var(--gray, #6b7b80);
}

.cu-rule-when strong {
  color: var(--primary);
}

.cu-rule-value {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--accent-soft, rgba(245, 204, 75, 0.25));
  color: var(--accent-ink, #7a5f12);
  font-weight: 600;
}

.cu-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
}

.cu-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: #f3f1ec;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- One rule, three places ---------- */

.cu-shared {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.cu-shared-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(34, 54, 60, 0.06);
  box-shadow: 0 14px 36px rgba(34, 54, 60, 0.1);
}

.cu-shared-icon {
  display: inline-flex;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, rgba(162, 185, 100, 0.2));
  color: var(--accent-ink, #5d7230);
}

.cu-shared-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  color: var(--primary);
  font-size: 0.92rem;
}

.cu-shared-kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray, #6b7b80);
}

/* ---------- Missing data ---------- */

.cu-missing {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cu-missing li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
}

.cu-missing li:first-child {
  border-top: none;
  padding-top: 0;
}

.cu-missing-client {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--primary);
}

.cu-missing-input {
  flex: none;
  width: 120px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(34, 54, 60, 0.25);
  font-size: 0.78rem;
  color: var(--gray, #6b7b80);
}

.cu-missing-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink, #6d5a8a);
}

/* ---------- Where it helps ---------- */

.cu-helps {
  padding: 88px 0;
  scroll-margin-top: var(--header-height);
}

@media (min-width: 900px) {
  .cu-helps .et-shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The shared band colours go by position (nth-of-type), so any section added above them flips every band after
   it. This page sets each one by id instead: white and beige alternating from the At a glance panel down, ending
   on white for the CTA. */
.feature-snapshot-wrap {
  padding: 48px 0;
  background: white;
}

#problem,
#fields,
#conditions,
#complete,
#helps {
  background: var(--bg);
}

#how,
#groups,
#rules,
#everywhere {
  background: white;
}

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

@media (max-width: 1024px) {
  .cu-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .cu-hero-art .sw-float-a {
    left: 0;
  }

  .cu-hero-art .sw-float-b {
    right: 0;
    top: -26px;
  }

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