/* Members section, punched up (TW #3666): two options for the home page section "Your Members Will
   Love It. Your Staff and Volunteers Will Thank You."
   Option A (.ua): each half of the heading gets its own panel, the member's phone and the admin panel
   staff use. When a panel scrolls into view it settles in; the story inside the panels is love2.css
   ("One tap, one buzz", TW #3722). Option B (.ub): the same words on two cards with icons.
   The start state (.is-armed) is only set by love.js, and it stays visible (moved and shrunk, never
   transparent), so without script or with reduced motion everything simply shows. */

.ua, .ub {
  --love-ink: #3a3a3a;
  --love-ink-soft: #4b4f58;
  --love-navy: #1a3a5c;
  --love-navy-dark: #10263d;
  --love-gold: #e8a838;
  --love-ok: #1e7e45;
  --love-line: #dde4ee;
  --love-stage: #eef3f9;
  --love-stage-deep: #dbe5f2;
  --love-brand: #1d4f9a;   /* the sample union's own color inside the phone, as in the hero */
  --love-display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --love-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding-block: 5rem;
  padding-left: max(2rem, env(safe-area-inset-left, 0px));
  padding-right: max(2rem, env(safe-area-inset-right, 0px));
  background: #fff;
  color: var(--love-ink);
  text-align: center;
}

/* ---- Option A -------------------------------------------------------------------------- */
.ua-inner { max-width: 1080px; margin: 0 auto; }
.ua-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 2.5rem;
}
.ua-panel {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;   /* headings, devices and lists line up across the two panels */
  row-gap: 1.5rem;
  min-width: 0;
}
.ua-panel h2 {
  align-self: end;
  font-family: var(--love-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--love-ink);
  text-wrap: balance;
}
.ua-mark {
  background-image: linear-gradient(var(--love-gold), var(--love-gold));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.16em;
}
.ua-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 100%, var(--love-stage-deep) 0%, var(--love-stage) 60%);
}
.ua-points, .ub-points {
  justify-self: center;
  display: grid;
  gap: 0.7rem;
  list-style: none;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--love-ink);
}
.ua-points li, .ub-points li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ua-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.02rem;
  border-radius: 50%;
  background: var(--love-gold);
  color: #fff;
}
.ua-check svg { width: 0.9rem; height: 0.9rem; }
.ua-close, .ub-close {
  max-width: 40rem;
  margin: 3rem auto 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--love-ink-soft);
  text-wrap: balance;
}

/* Settling in as the visitor scrolls (the same spring as the site's three steps). */
.ua-panel.is-armed, .ub-card.is-armed { transform: translateY(32px) scale(0.92); }
.ua-panel.is-play, .ub-card.is-play { animation: love-settle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ua-staff.is-play, .ub-card + .ub-card.is-play { animation-delay: 0.12s; }
@keyframes love-settle {
  from { transform: translateY(32px) scale(0.92); }
  to { transform: none; }
}
.ua-panel.is-armed .ua-mark { background-size: 0% 0.16em; }
.ua-panel.is-play .ua-mark { animation: love-underline 0.6s ease-out 0.45s both; }
@keyframes love-underline {
  from { background-size: 0% 0.16em; }
  to { background-size: 100% 0.16em; }
}
.ua-panel.is-checked .ua-check { animation: love-tick 0.55s ease-out both; }
.ua-panel.is-checked li:nth-child(2) .ua-check { animation-delay: 0.14s; }
.ua-panel.is-checked li:nth-child(3) .ua-check { animation-delay: 0.28s; }
@keyframes love-tick {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.6); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0.8em rgba(232, 168, 56, 0); }
}

/* ---- Option B -------------------------------------------------------------------------- */
.ub-inner { max-width: 1000px; margin: 0 auto; }
.ub h2 {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-family: var(--love-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--love-ink);
}
.ub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ub-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 2rem 2rem 2.2rem;
  border: 1px solid var(--love-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.06);
  text-align: left;
}
.ub-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--love-navy);
  color: var(--love-gold);
}
.ub-icon svg { width: 1.8rem; height: 1.8rem; }
.ub-eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--love-navy); }
.ub-promise { font-family: var(--love-display); font-size: 1.65rem; font-weight: 700; line-height: 1.15; color: var(--love-ink); }
.ub-points { justify-self: stretch; margin-top: 0.3rem; }
.ub-points li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--love-gold);
}

/* ---- Phones and small screens ------------------------------------------------------------ */
@media (max-width: 820px) {
  .ua-panels, .ub-cards { grid-template-columns: minmax(0, 1fr); }
  .ua-panels { row-gap: 3rem; }
  .ua-panel h2 { font-size: 1.75rem; }
  .ub-card { padding: 1.6rem 1.4rem 1.8rem; }
}
@media (max-width: 480px) {
  .ua, .ub { padding-block: 3.5rem; }
  .ua-stage { padding: 1.5rem 1rem; }
  .ua-close, .ub-close { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ua-panel, .ub-card, .ua-mark, .ua-check {
    animation: none !important;
    transition: none !important;
  }
}

