/* ==========================================================================
   smudgechild — membership value (pricing cards)
   Two-tier pricing block: featured "Complete" card (photo bg) + a smaller
   "Essential" card underneath.
   Depends on :root variables in style.css.
   ========================================================================== */

.value {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.value__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.value__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 132px) 0 clamp(120px, 17vh, 210px);
}

.value__headline {
  text-align: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(36px, 5vh, 60px);
  text-wrap: balance;
}

.value__headline s {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--accent);
}

/* ── card shell ─────────────────────────────────────────────────────── */

.member-card {
  display: grid;
  grid-template-columns: 1fr 1px 1.05fr;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(30px, 4vw, 56px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(12, 12, 13, 0.07);
  box-shadow: 0 36px 80px -48px rgba(12, 12, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.member-card__divide {
  width: 1px;
  background: rgba(12, 12, 13, 0.1);
  align-self: stretch;
}

.member-card__left {
  display: flex;
  flex-direction: column;
}

/*
 * Grid items default to min-width: auto, so a wide logo would force the
 * card's column wider than the card itself on phones. min-width: 0 lets the
 * column shrink to the card.
 */
.member-card > * {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* The logo is the part that gives way on narrow cards: it shrinks
   (keeping its proportions) so the label always stays inside. On wider
   screens there's room, so it still shows at its uploaded size. */
.brand__logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
}

.brand__label {
  flex: none;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: clamp(23px, 1.9vw, 29px);
  font-weight: 400;
  color: var(--ink);
}

/* ── price ──────────────────────────────────────────────────────────
   Sizing/spacing is driven by custom properties with defaults set here
   (the "Complete"-card scale). .member-card--essential below overrides
   only the variables it needs — no descendant-selector overrides of
   .price__amt etc., so there's no reliance on specificity stacking to
   get the right size in the right card. ─────────────────────────── */

.price {
  display: flex;
  align-items: flex-start;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 0.9;
  margin: var(--price-margin, clamp(22px, 4vh, 46px) 0 14px);
}

.price__cur {
  font-size: var(--price-cur-size, clamp(26px, 2.9vw, 44px));
  font-weight: 400;
  margin-top: var(--price-cur-mt, clamp(8px, 1.2vw, 18px));
}

.price__amt {
  font-size: var(--price-amt-size, clamp(74px, 9vw, 130px));
  font-weight: var(--price-amt-weight, 300);
  letter-spacing: -0.04em;
}

.price__per {
  align-self: flex-end;
  font-size: var(--price-per-size, clamp(17px, 1.7vw, 26px));
  color: var(--price-per-color, var(--ink-soft));
  margin: var(--price-per-margin, 0 0 clamp(14px, 2.5vh, 30px) 6px);
}

.price-note {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  margin: 0 0 auto;
  padding-bottom: 28px;
}

.btn-cream {
  width: 100%;
  box-sizing: border-box;
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 30px -16px rgba(12, 12, 13, 0.55);
}

.btn-cream:hover {
  transform: translateY(-1px);
  background: #2a2a2a;
}

/* ── complete-card benefits checklist ──────────────────────────────── */

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 1.9vh, 21px);
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(12, 12, 13, 0.88);
}

.check {
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #fff;
}

/* ── Complete card: orange/photo background variant ────────────────── */

.member-card--complete {
  background: linear-gradient(155deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.16) 100%), url("../images/membership-value.jpg") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 36px 80px -44px rgba(120, 55, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.member-card--complete .member-card__divide { background: rgba(255, 255, 255, 0.22); }
.member-card--complete .brand__logo { filter: brightness(0) invert(1); }
.member-card--complete .brand__label { color: #fff; }
.member-card--complete .price { color: #fff; }
.member-card--complete .price-note { color: rgba(255, 255, 255, 0.82); }
.member-card--complete .btn-cream { color: #1a1a1a; background: #fff; box-shadow: 0 14px 30px -16px rgba(60, 25, 8, 0.55); }
.member-card--complete .btn-cream:hover { background: #f3efe9; }
.member-card--complete .benefits li { color: rgba(255, 255, 255, 0.94); }
.member-card--complete .check { background: #fff; color: var(--accent); }

.member-card--complete {
  --price-per-color: rgba(255, 255, 255, 0.82);
}

/* ── Essential card: smaller, plain white glass ─────────────────────── */

.member-card--essential {
  grid-template-columns: 1fr 1px 1.05fr;
  align-items: center;
  margin-top: clamp(16px, 2.4vh, 26px);
  padding: clamp(22px, 2.6vw, 38px) clamp(30px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.6);

  /* price scale for this card — see custom-property defaults on
     .price / .price__cur / .price__amt / .price__per above */
  --price-margin: clamp(20px, 3.2vh, 38px) 0 clamp(30px, 4.6vh, 52px);
  --price-cur-size: clamp(20px, 2vw, 30px);
  --price-cur-mt: clamp(5px, 0.9vw, 10px);
  --price-amt-size: clamp(36px, 3.8vw, 50px);
  --price-amt-weight: 400;
  --price-per-size: clamp(13px, 1.2vw, 15px);
  --price-per-color: var(--ink-soft);
  --price-per-margin: 0 0 0 7px;
}

.member-card--essential .member-card__divide { background: rgba(12, 12, 13, 0.12); }
.member-card--essential .btn-cream { margin-top: 0; }

.member-card--essential .essential__detail {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}

.essential__row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(12, 12, 13, 0.88);
}

.essential__row strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 860px) {
  .member-card { grid-template-columns: 1fr; gap: 32px; }
  .member-card__divide { display: none; }
  .price-note { padding-bottom: 24px; }
}
/* Lumart, 12 Nov: the orange card's shadow ran past the section's bottom
   edge, which clips it to a hard line. A tighter shadow that ends inside it. */
.member-card--complete { box-shadow: 0 22px 44px -26px rgba(120, 55, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* Lumart, 15 Nov: the OUTLIV logo on the membership card was too big on
   phones (shown at its full 296px upload width). Half that now. */
@media (max-width: 860px) {
  .member-card .brand__logo { height: 38px; width: auto; max-width: 100%; }
}

/* Lumart, 16 Nov (desktop): the logo was too big; same proportion to the price as on phones
   (phones: 38px logo over a 74px price, about half). */
@media (min-width: 861px) {
  .member-card .brand__logo { height: clamp(38px, 3.8vw, 58px); width: auto; max-width: 100%; }
}

/* Lumart, 20 Nov: a line under the headline for the monthly option, and the
   "R16,000 a year, or R1,450 a month" note under R44/day a bit more prominent. */
.value__sub { font-family: var(--sans); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; color: var(--ink-soft); text-align: center; margin: calc(-1 * clamp(8px, 1.6vh, 20px)) auto clamp(28px, 4vh, 44px); max-width: 60ch; text-wrap: balance; }
.price-note { font-size: clamp(18px, 1.45vw, 22px); font-weight: 400; letter-spacing: -0.01em; }
.price-note b, .price-note strong { font-weight: 600; } /* Lumart 29 Nov: R16,000 a year bold / R1,450 a month */
.member-card--complete .price-note { color: #fff; }
.value__sub b { font-weight: 600; color: var(--ink); }
