/* =========================================================================
   Members page (members.html) — BCC Connect entrance.
   Loaded only by pages/members.php, after styles.css, so it can use the
   site tokens without growing the shared stylesheet for every visitor.
   Class prefix: .mbr-
   ========================================================================= */

/* --- Hero ---------------------------------------------------------------- */
/* Same ground as .page-hero, but two columns: the pitch on the left and an
   illustration of the app on the right, so people can see what they are
   signing up for before they commit. */
.mbr-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(81, 138, 198, .22) 0%, transparent 70%),
    radial-gradient(118% 88% at 20% -22%, rgba(124, 132, 232, .26) 0%, transparent 62%),
    linear-gradient(160deg, #2a2460 0%, var(--surface-deep) 75%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mbr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mbr-hero .eyebrow { color: var(--accent-tint); }
.mbr-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: .45em;
  text-wrap: balance;
}
.mbr-hero__lede {
  color: #c3c6e4;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  max-width: 34em;
  margin-bottom: 2rem;
}
.mbr-hero__facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  font-size: .92rem;
  color: #c3c6e4;
}
.mbr-hero__facts li { display: inline-flex; align-items: center; gap: .55rem; }
.mbr-hero__facts svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: var(--accent-tint); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Phone illustration -------------------------------------------------- */
/* Drawn in BCC Connect's own dark palette so it reads as the real app.
   Content is sample text; the whole frame is aria-hidden with an sr-only
   caption on the figure. */
.mbr-phone { margin: 0; display: flex; justify-content: center; }
.mbr-phone__frame {
  position: relative;
  width: min(330px, 100%);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(150deg, #3a3757, #15132b 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14) inset,
    0 30px 60px -12px rgba(0, 0, 0, .65),
    0 0 90px rgba(81, 138, 198, .22);
  transform: rotate(2.5deg);
}
.mbr-phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(161, 141, 105, .20), transparent 70%),
    radial-gradient(80% 50% at 0% 30%, rgba(30, 64, 175, .28), transparent 70%),
    #0d1117;
  padding: 18px 14px 20px;
  display: grid;
  gap: 10px;
  font-family: var(--sans);
  color: #e6edf3;
  font-size: 12px;
  line-height: 1.35;
}
.mbr-app__bar { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; }
.mbr-app__mark {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: #1e40af; color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
}
.mbr-app__name { font-weight: 600; font-size: 13px; flex: 1; }
.mbr-app__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #a18d69, #6b5a3e);
  box-shadow: 0 0 0 2px #0d1117, 0 0 0 3px rgba(161, 141, 105, .6);
}
.mbr-app__meta {
  display: block;
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #9da5ae;
  margin-bottom: 6px;
}
.mbr-app__hello { padding: 2px 4px; }
.mbr-app__hello .mbr-app__meta { margin-bottom: 2px; }
.mbr-app__hello strong { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.mbr-app__verse,
.mbr-app__card,
.mbr-app__stats > div {
  background: rgba(22, 27, 34, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 10px 12px;
}
.mbr-app__verse { border-left: 3px solid #a18d69; }
.mbr-app__verse em { display: block; font-family: var(--serif); font-size: 13px; line-height: 1.45; color: #e6edf3; }
.mbr-app__ref { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #c9b48d; }
.mbr-app__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbr-app__stats b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: #7aa8f5; line-height: 1.1; }
.mbr-app__stats span { color: #9da5ae; font-size: 10.5px; }
.mbr-app__event { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mbr-app__event + .mbr-app__event { border-top: 1px solid rgba(255, 255, 255, .06); }
.mbr-app__date {
  width: 34px; flex-shrink: 0;
  text-align: center;
  padding: 3px 0;
  border-radius: 7px;
  background: #1c2128;
  font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.05;
}
.mbr-app__date small { display: block; font-family: var(--sans); font-size: 8.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7aa8f5; }
.mbr-app__event b { display: block; font-weight: 600; font-size: 12px; }
.mbr-app__event small { color: #9da5ae; font-size: 10.5px; }
.mbr-app__need { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mbr-app__need i {
  font-style: normal; font-weight: 600; font-size: 10.5px;
  padding: 4px 10px; border-radius: 999px;
  background: #a18d69; color: #0d1117;
}

/* --- What's inside: bento grid ------------------------------------------- */
.mbr-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.mbr-bento .card { transition: transform .18s ease, border-color .18s ease; }
.mbr-bento__wide { grid-column: span 2; }
.mbr-bento__directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(81, 138, 198, .22), transparent 65%),
    var(--surface);
}
.mbr-dir { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mbr-dir li {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 9, 19, .35);
  border: 1px solid rgba(255, 255, 255, .08);
}
.mbr-dir li:nth-child(2) { transform: translateX(14px); }
.mbr-dir b { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.mbr-dir small { color: #a9acd0; font-size: .82rem; }
.mbr-dir__av {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 600; color: #fff;
}
.mbr-dir__av--a { background: linear-gradient(135deg, #4f5fc0, #2a2460); }
.mbr-dir__av--b { background: linear-gradient(135deg, #3d8a6a, #1f4d3b); }
.mbr-dir__av--c { background: linear-gradient(135deg, #a18d69, #5e4f36); }

.mbr-bento__give {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}
.mbr-bento__give .card__icon { margin-bottom: 0; width: 40px; height: 40px; }
.mbr-bento__give p { margin: 0; }
.mbr-bento__go {
  font-weight: 600; font-size: .95rem; color: var(--accent-tint);
  white-space: nowrap;
}
.mbr-bento__give:hover .mbr-bento__go { color: #fff; }

/* --- How it works -------------------------------------------------------- */
.mbr-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
}
/* The line runs through the centre of the numbers and stops at the first
   and last, so it reads as a sequence rather than a rule. */
.mbr-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  opacity: .45;
}
.mbr-steps li { position: relative; text-align: center; }
.mbr-steps__num {
  position: relative;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--surface-deep);
  color: #fff;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  box-shadow: 0 0 0 6px var(--cream), 0 8px 20px rgba(20, 18, 45, .25);
}
.mbr-steps li:last-child .mbr-steps__num { background: var(--accent); }
.mbr-steps h3 { font-size: 1.2rem; margin-bottom: .45em; }
.mbr-steps p { color: var(--muted); font-size: .98rem; max-width: 30ch; margin: 0 auto; }
.mbr-who { max-width: 760px; margin: clamp(2.25rem, 5vw, 3.25rem) auto 0; }

/* --- Private by design --------------------------------------------------- */
.mbr-trust {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.mbr-trust__intro h2 { text-wrap: balance; }
.mbr-trust__intro p { font-size: 1.08rem; line-height: 1.65; }
.mbr-trust__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.mbr-trust__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
}
.mbr-trust__list svg {
  width: 40px; height: 40px; padding: 9px;
  border-radius: 10px;
  background: rgba(81, 138, 198, .16);
  fill: none; stroke: var(--accent-tint); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.mbr-trust__list h3 { font-size: 1.08rem; margin-bottom: .35em; }
.mbr-trust__list p { font-size: .95rem; margin: 0; }

/* --- Verse with photo ---------------------------------------------------- */
.mbr-verse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mbr-verse__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
}
.mbr-verse__photo img { width: 100%; height: 100%; object-fit: cover; }
.mbr-verse__quote { margin: 0; position: relative; }
.mbr-verse__quote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: .7;
  color: var(--accent);
  opacity: .35;
  margin-bottom: .5rem;
}
.mbr-verse__quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  color: var(--surface-deep);
  letter-spacing: -.01em;
}
.mbr-verse__quote figcaption {
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .mbr-hero__grid { grid-template-columns: 1fr; }
  .mbr-phone__frame { transform: none; width: min(310px, 100%); }
  .mbr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Seven tiles in two columns: Giving drops to one column so it pairs
     with Birthdays instead of leaving that tile alone on its row. */
  .mbr-bento__give { grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  .mbr-bento__give .card__icon { width: 34px; height: 34px; margin-bottom: 1rem; }
  .mbr-bento__go { margin-top: 1rem; }
  .mbr-trust { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mbr-bento { grid-template-columns: 1fr; }
  .mbr-bento__wide { grid-column: auto; }
  .mbr-bento__directory { grid-template-columns: 1fr; }
  .mbr-dir li:nth-child(2) { transform: none; }
  .mbr-steps { grid-template-columns: 1fr; max-width: 420px; gap: 2rem; }
  /* One connector per gap, from the bottom of each number to the top of
     the next, so the line never runs past the last step. */
  .mbr-steps::before { display: none; }
  .mbr-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 26px; top: 60px; bottom: calc(-2rem + 6px);
    width: 2px;
    background: var(--accent-bright);
    opacity: .45;
  }
  .mbr-steps li { text-align: left; display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 1.1rem; }
  .mbr-steps__num { grid-row: span 2; margin: 0; }
  .mbr-steps p { margin: 0; max-width: none; }
  .mbr-trust__list { grid-template-columns: 1fr; }
  .mbr-verse { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mbr-phone__frame { transform: none; }
}

/* The slanted section edges sit exactly on the section's top edge, which
   leaves a hairline of the section above at some zoom levels. Overlapping
   by a pixel closes it. Scoped to this page. */
.edge-top::before { bottom: calc(100% - 1px); }
