/* ==========================================================================
   membership.css — /membership/ (T9, v2), loaded on that route only.

   build.py injects this file by route name (membership/index.html →
   membership.css), so every rule here is page-specific. The site palette is
   owned by brand.css (dark #0d1f27 + gold #f5cd62) and is not edited here; the
   tokens below are the page's own scale on top of it.

   Layout contract (v2 — one benefits block):
   - the comparison table is the only tier/benefit block on the page: rows =
     data/brand.json membership.features, columns = membership.tiers, and each
     column header carries tier name + monthly fee + joining points + a Join
     button. The old "four tier cards, then the same thing as a table" block is
     gone, which is where most of the page height went.
   - below 768 the wrapper scrolls sideways and the first column is sticky
   - at 768 and up the wrapper stops scrolling (overflow: visible) so the
     header cells can stick to the page scroll under the site header
     (--t9-header-h, maintained by membership.js)
   ========================================================================== */

.m-page {
  --m-surface: #0d1f27;
  --m-panel: #132932;
  --m-panel-alt: #10262f;
  --m-head: #17323c;
  --m-ink: #021c25;
  --m-line: rgba(255, 255, 255, 0.12);
  --m-line-soft: rgba(255, 255, 255, 0.08);
  --m-gold: #f5cd62;
  --m-gold-deep: #dbb75a;
  --m-gold-bright: #fbbc34;
  --m-text: #ffffff;
  --m-muted: rgba(255, 255, 255, 0.78);
  --m-faint: rgba(255, 255, 255, 0.26);
  --m-radius: 1.25rem;
  background: var(--m-surface);
  color: var(--m-text);
}

.m-wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) { .m-wrap { padding-inline: 2rem; } }

/* anchors clear the sticky site header */
#compare, #points, #faq { scroll-margin-top: 5.5rem; }

/* brand buttons: .btn-gold is defined in home.css (home page only) and this
   route does not load that file, so the variant is restated here, scoped to the
   page. .btn / .btn-on-ink come from site.css. */
.m-page .btn-gold {
  color: #021c25;
  background: linear-gradient(118deg, #fbbc34 0%, #f5cd62 54%, #dbb75a 100%);
  box-shadow: 0 1px 2px rgba(2, 28, 37, 0.35), 0 12px 26px -14px rgba(245, 205, 98, 0.75);
}
.m-page .btn-gold:hover:not(:active) {
  filter: saturate(1.05) brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(2, 28, 37, 0.3), 0 16px 32px -14px rgba(245, 205, 98, 0.85);
}
.m-page .btn-gold:active { transform: translateY(0); }

/* ------------------------------- hero ------------------------------------ */

.m-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.25rem 0 2.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, #12333f 0%, #0d1f27 58%, #021c25 100%);
  border-bottom: 1px solid var(--m-line-soft);
}
@media (min-width: 1024px) { .m-hero { padding: 2.5rem 0 2.75rem; } }

.m-hero__glow {
  position: absolute;
  z-index: -1;
  right: -8rem;
  top: -12rem;
  width: 34rem;
  height: 34rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(245, 205, 98, 0.3) 0%, rgba(245, 205, 98, 0) 68%);
  pointer-events: none;
}

.m-hero__grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .m-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
    gap: 3.5rem;
    align-items: start;
  }
}
.m-hero__copy { display: grid; gap: 1.05rem; max-width: 44rem; }

.m-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.125rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.m-hero__accent {
  background: linear-gradient(92deg, #fbbc34 0%, #f5cd62 46%, #dbb75a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.m-hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--m-muted);
}

.m-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.m-hero__cta, .m-hero__cta2 { padding: 0.75rem 1.2rem; font-size: 0.875rem; }

.m-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--m-muted);
}
.m-fact { display: inline-flex; align-items: center; gap: 0.5rem; }
.m-fact__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--m-gold);
}

/* the hero aside: four numbers derived from the tiers (tier count, cheapest
   tier, points-rate range, best joining bonus) — a summary, not a second copy
   of the table headers, so the page keeps a single benefits block. */
.m-glance { display: none; }
@media (min-width: 1024px) {
  .m-glance {
    display: block;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--m-line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.m-glance__list { display: grid; margin: 0; padding: 0; list-style: none; }
.m-glance__item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--m-line-soft);
}
.m-glance__item:first-child { border-top: 0; }
.m-glance__value {
  flex: none;
  min-width: 4.25rem;
  font-size: 1.375rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--m-gold);
  font-variant-numeric: tabular-nums;
}
.m-glance__label { font-size: 0.8125rem; line-height: 1.35; color: var(--m-muted); }

/* ------------------------------ sections --------------------------------- */

.m-section { padding: 2.25rem 0; }
@media (min-width: 1024px) { .m-section { padding: 2.5rem 0; } }
.m-section--panel {
  background: var(--m-panel-alt);
  border-block: 1px solid var(--m-line-soft);
}

.m-section__head {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
  margin-bottom: 1.4rem;
}
.m-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
.m-section__lede {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--m-muted);
}
.m-eyebrow { --eyebrow-color: var(--m-gold); }
.m-eyebrow::before {
  background: linear-gradient(90deg, var(--m-gold), var(--m-gold-bright)) !important;
}

/* --------------------------- comparison matrix --------------------------- */

.m-matrix__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--m-radius);
  box-shadow: inset 0 0 0 1px var(--m-line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Chromium lets a wide <table> inside a scroll container push the page's own
     scroll width (the page then scrolls sideways at 390). contain: paint is the
     one primitive that keeps that overflow inside this box — measured below. */
  contain: paint;
}
/* stop scrolling here: the header cells must stick to the page scroll instead,
   so the wrapper must not clip (contain would cut the pinned row) */
@media (min-width: 768px) {
  .m-matrix__scroll { overflow: visible; contain: none; border-radius: 0; box-shadow: none; }
}

.m-matrix {
  width: 100%;
  min-width: 36.5rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--m-panel);
  font-size: 0.875rem;
}
@media (min-width: 768px) { .m-matrix { border-radius: var(--m-radius); } }

.m-matrix__corner {
  width: 24%;
  min-width: 8rem;
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-muted);
  background: var(--m-head);
  vertical-align: bottom;
}
/* 768 is the tightest width where the wrapper stops scrolling: keep
   corner + 4 columns under the 720px content column or the table pushes the
   page sideways (measured previously at 824px with 12rem/9.5rem). */
@media (min-width: 768px) { .m-matrix__corner { min-width: 10rem; } }
@media (min-width: 1024px) { .m-matrix__corner { min-width: 12rem; } }

/* one column header = the tier, its fee, its joining bonus and its Join CTA */
.m-matrix__tier {
  min-width: 7rem;
  padding: 0.7rem 0.5rem 0.75rem;
  text-align: center;
  background: var(--m-head);
  vertical-align: bottom;
}
@media (min-width: 768px) { .m-matrix__tier { min-width: 8.25rem; } }
@media (min-width: 1024px) { .m-matrix__tier { min-width: 9.5rem; } }
.m-matrix__tier-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--m-text);
}
.m-matrix__tier-name::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.35rem auto 0;
  border-radius: 9999px;
  background: var(--m-accent, var(--m-gold));
}
.m-matrix__tier-price {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--m-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-matrix__tier-per { font-weight: 400; color: var(--m-muted); }
.m-matrix__tier-points {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}

/* the pinned header band.
   Only from 768px up: below that the wrapper is the horizontal scroller, and a
   sticky <th> there sticks to the wrapper's scrollport (measured: the header row
   slides 61px out of the table). At 390 the brief asks for outer scroll + a
   sticky first column instead, which is what the block at the bottom does. */
@media (min-width: 768px) {
  .m-matrix thead th,
  .m-matrix thead td {
    position: sticky;
    top: var(--t9-header-h, var(--ctcg-header-h, 73px));
    z-index: 3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 var(--m-line);
  }
  /* faint column rules so a 9-row table stays readable across the width */
  .m-matrix tbody tr > * + * { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 var(--m-line-soft); }
}

.m-matrix__label {
  width: 24%;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--m-text);
  border-bottom: 1px solid var(--m-line-soft);
  vertical-align: middle;
}

.m-matrix__cell {
  padding: 0.7rem 0.6rem;
  text-align: center;
  line-height: 1.35;
  color: var(--m-muted);
  border-bottom: 1px solid var(--m-line-soft);
  vertical-align: middle;
}
.m-matrix__cell--nil { color: rgba(255, 255, 255, 0.45); }
.m-matrix__row:last-child .m-matrix__label,
.m-matrix__row:last-child .m-matrix__cell { border-bottom: 0; }

/* included: gold tick in a ring */
.m-matrix__yes {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(245, 205, 98, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 205, 98, 0.4);
  color: var(--m-gold);
  font-size: 0.8125rem;
  line-height: 1;
}

/* not included: the requested mark — large, low-saturation, centred */
.m-matrix__none {
  display: inline-block;
  font-family: var(--font-headline, inherit);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--m-faint);
  transform: translateY(-2px);
  user-select: none;
}

/* Join CTA inside each column header */
.m-matrix__cta {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--m-gold);
  background: rgba(245, 205, 98, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 205, 98, 0.45);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.m-matrix__cta:hover:not(:active) {
  color: #ffe08f;
  background: rgba(245, 205, 98, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 205, 98, 0.7);
}

/* phone: first column stays put while the table scrolls sideways */
@media (max-width: 767.98px) {
  .m-matrix__corner,
  .m-matrix__label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--m-panel);
  }
  .m-matrix thead .m-matrix__corner { z-index: 4; background: var(--m-head); }
  /* a soft right edge tells you the columns keep going underneath */
  .m-matrix__label,
  .m-matrix__row .m-matrix__label {
    box-shadow: inset -1px 0 0 var(--m-line), 10px 0 14px -10px rgba(0, 0, 0, 0.85);
  }
}

.m-matrix__hint {
  display: none;
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  color: var(--m-muted);
}
@media (max-width: 767.98px) { .m-matrix__hint { display: block; } }

/* -------------------------------- points --------------------------------- */

.m-points { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .m-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-points__copy { grid-column: 1 / -1; }
}
/* three columns only once each one is wide enough for "10 points / £1" and the
   £ × rate ≈ points line; at 1024 the two panels would be ~290px and wrap badly */
@media (min-width: 1160px) {
  .m-points {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: start;
  }
  .m-points__copy { grid-column: auto; }
}

.m-points__copy .m-section__lede { margin-top: 0.6rem; }
.m-points__list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--m-muted);
}
.m-points__list li { position: relative; padding-left: 1.4rem; }
.m-points__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--m-gold);
}

.m-points__panel {
  padding: 1.1rem 1.15rem;
  border-radius: var(--m-radius);
  background: var(--m-panel);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
@media (min-width: 640px) { .m-points__panel { padding: 1.25rem; } }
.m-panel__title { margin: 0 0 0.9rem; font-size: 1rem; font-weight: 800; }

.m-rates { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8125rem; }
.m-rates__th {
  padding: 0 0.35rem 0.4rem;
  text-align: left;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-muted);
  border-bottom: 1px solid var(--m-line);
  white-space: nowrap;
}
.m-rates__th--num, .m-rates__cell--num { text-align: right; }
.m-rates__tier {
  padding: 0.5rem 0.35rem;
  text-align: left;
  font-weight: 700;
  color: var(--m-text);
  border-bottom: 1px solid var(--m-line-soft);
  white-space: nowrap;
}
.m-rates__cell {
  padding: 0.5rem 0.35rem;
  color: var(--m-muted);
  border-bottom: 1px solid var(--m-line-soft);
  font-variant-numeric: tabular-nums;
}
.m-rates tbody tr:last-child th,
.m-rates tbody tr:last-child td { border-bottom: 0; }

.m-formulas__rule { margin: 0 0 0.75rem; font-size: 0.75rem; line-height: 1.5; color: var(--m-muted); }
.m-formulas__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.m-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.m-formula__fee { font-weight: 700; }
.m-formula__op { color: var(--m-muted); }
.m-formula__unit { color: var(--m-muted); }
.m-formula__join { color: var(--m-gold); font-weight: 800; }
.m-formula__tier {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m-muted);
}

/* ---------------------------------- faq ---------------------------------- */

.m-faq { display: grid; gap: 0.65rem; max-width: 68rem; }
@media (min-width: 768px) {
  .m-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.m-faq__item {
  border-radius: 0.9rem;
  background: var(--m-panel);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.m-faq__q {
  position: relative;
  padding: 0.9rem 2.75rem 0.9rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--m-text);
  cursor: pointer;
  list-style: none;
}
.m-faq__q::-webkit-details-marker { display: none; }
.m-faq__q::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--m-gold);
  border-bottom: 2px solid var(--m-gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.m-faq__item[open] .m-faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.m-faq__item[open] .m-faq__q { color: var(--m-gold); }
.m-faq__a {
  padding: 0 1.1rem 1.05rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--m-muted);
}
.m-faq__a p { margin: 0; }

/* ------------------------------- demo toast ------------------------------ */

.m-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(92vw, 30rem);
  margin: 0;
  padding: 0.75rem 1.15rem;
  border-radius: 9999px;
  background: rgba(2, 28, 37, 0.96);
  box-shadow: inset 0 0 0 1px rgba(245, 205, 98, 0.5), 0 20px 45px -20px rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.8125rem;
  line-height: 1.3;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.m-toast[hidden] { display: none !important; }
.m-toast::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--m-gold);
  box-shadow: 0 0 0 4px rgba(245, 205, 98, 0.16);
}
.m-toast.is-visible { animation: m-toast-in 0.22s ease-out; }
@keyframes m-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .m-matrix__cta { transition: none; }
  .m-faq__q::after { transition: none; }
  .m-toast.is-visible { animation: none; }
}

/* ==========================================================================
   Legibility + tier identity (taoluo): the matrix was too quiet, and the four
   tiers / gift bundles need an icon, not just a different word.
   Hooks: th.m-matrix__tier[data-tier], th.m-matrix__label[data-benefit],
   td.m-matrix__cell[data-benefit].
   ========================================================================== */

.m-matrix__tier {
  padding: 0.85rem 0.5rem 0.9rem;
  border-top: 3px solid var(--m-accent, #f5cd62);
  /* keep the solid header colour underneath: a transparent gradient alone let the
     rows scroll through the sticky header */
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--m-accent) 16%, transparent), transparent 75%),
    var(--m-head);
  box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.9);
}
/* the joining-points line is its own matrix row already; keeping it in the sticky
   header made the header tall enough to swallow the viewport */
.m-matrix__tier-points { display: none; }
.m-matrix__tier::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 0.35rem;
  border-radius: 999px;
  border: 2px solid var(--m-accent, #f5cd62);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-accent) 15%, transparent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}
/* one glyph per tier: ring / diamond / triangle / star */
.m-matrix__tier[data-tier="Standard"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7.5' fill='none' stroke='%237d8798' stroke-width='2.6'/%3E%3C/svg%3E");
}
.m-matrix__tier[data-tier="Bronze"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cd7f32' d='M12 3.4l8.6 8.6-8.6 8.6L3.4 12z'/%3E%3C/svg%3E");
}
.m-matrix__tier[data-tier="Silver"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9ccd1' d='M12 3.8l8.7 15.9H3.3z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
}
.m-matrix__tier[data-tier="Gold"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5cd62' d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5-5.8-3.1-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E");
  background-size: 17px 17px;
}
.m-matrix__tier-name { font-size: 1.0625rem; letter-spacing: 0.02em; }
.m-matrix__tier-price { font-size: 1.1875rem; font-weight: 800; }

/* values read at a glance */
.m-matrix__label { font-size: 0.8125rem; }
.m-matrix__cell { font-size: 0.9375rem; }
.m-matrix__cell .m-matrix__check { transform: scale(1.3); transform-origin: center; }

.m-matrix tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.m-matrix tbody tr:hover { background: rgba(245, 205, 98, 0.08); }

/* gift bundle row: the thing people actually pay for */
.m-matrix__label[data-benefit="join_gift"]::before {
  content: "\1F381";
  margin-right: 0.45rem;
  font-size: 1.05em;
}
tr:has(> th[data-benefit="join_gift"]) {
  background: linear-gradient(90deg, rgba(245, 205, 98, 0.18), rgba(245, 205, 98, 0.04));
  box-shadow: inset 3px 0 0 #f5cd62;
}
tr:has(> th[data-benefit="join_gift"]) th,
tr:has(> th[data-benefit="join_gift"]) td { font-weight: 700; color: #fff; }
.m-matrix__label[data-benefit="join_points"]::before {
  content: "\2726";
  margin-right: 0.45rem;
  color: #f5cd62;
}

/* the per-tier CTA should carry the tier colour */
.m-matrix__tier .m-join,
.m-matrix__tier button {
  font-weight: 800;
  color: #0b1a20;
  background: var(--m-accent, #f5cd62);
  border-color: var(--m-accent, #f5cd62);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--m-accent) 80%, transparent);
}
.m-matrix__tier .m-join:hover,
.m-matrix__tier button:hover { filter: brightness(1.06); }

/* the bundle promise is the strongest reason to join: call it out in the hero
   and flag the matrix row, not just colour it */
.m-fact--gift { color: #fff; font-weight: 650; }
.m-fact--gift .m-fact__dot { background: #f5cd62; box-shadow: 0 0 0 4px rgba(245, 205, 98, 0.18); }
.m-matrix__label[data-benefit="join_gift"]::after {
  content: "ON JOINING";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f5cd62;
  color: #0b1a20;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 0.1em;
}

/* --- gift row label: titled two-row block, so the promise and the badge
       never end up mid-wrap like a broken sentence --------------------- */
.m-matrix__label[data-benefit="join_gift"]::before,
.m-matrix__label[data-benefit="join_gift"]::after { content: none; }
/* keep the cell a real table-cell: turning it into a flex container made it
   shrink to its content (79px) and every phrase stacked one word per line */
.m-gift {
  display: table-cell;
  vertical-align: middle;
}
.m-gift > .m-gift__head { margin-bottom: 0.3rem; }
.m-gift__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.m-gift__icon { font-size: 1.05em; line-height: 1; }
.m-gift__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-left: 1.45rem; /* line the note up under the title, not the emoji */
}
.m-gift__note {
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, #f5cd62 72%, #ffffff);
}
.m-gift__badge {
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #f5cd62;
  color: #0b1a20;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --- phones: the sticky first column is ~145px, so the long note would stack
       one word per line. The gold ON JOINING badge already carries the promise,
       so keep the title + badge and drop the sentence. ------------------- */
@media (max-width: 767px) {
  .m-matrix__label { min-width: 9.25rem; }
  .m-gift { min-width: 9.25rem; }
  .m-gift__note { display: none; }
  .m-gift__meta { padding-left: 1.35rem; }
  .m-gift > .m-gift__head { margin-bottom: 0.25rem; }
}
