/* /membership: the page-only parts. Everything shared (hero base, stats, section heads,
   glass cards, FAQ, form fields) comes from site.css. The two statements are product
   islands: they keep their own paper colors in both themes. */

/* Page tokens: the few board colors site.css has no token for, in both themes. */
:root,
[data-theme="light"] {
  --mem-beam-2: rgba(31, 143, 156, 0.09);
  --mem-sheet-back-bg: #FFFFFF;
  --mem-sheet-back-border: rgba(21, 14, 32, 0.133);
  --mem-sheet-back-shadow: 0 1px 2px rgba(21, 14, 32, 0.04), 0 22px 44px -28px rgba(76, 40, 130, 0.28);
  --mem-sheet-mid-bg: linear-gradient(160deg, rgba(205, 181, 244, 0.3), rgba(237, 230, 251, 0.9));
  --mem-sheet-mid-border: rgba(107, 66, 156, 0.18);
  --mem-sheet-mid-shadow: 0 30px 60px -30px rgba(46, 24, 84, 0.16);
  --mem-toast-icon-bg: rgba(31, 143, 156, 0.1);
  --mem-art-drop: drop-shadow(0 14px 22px rgba(46, 24, 84, 0.11));
  --mem-art-drop-lg: drop-shadow(0 24px 30px rgba(46, 24, 84, 0.12));
  --mem-paid-bg: linear-gradient(180deg, rgba(31, 143, 156, 0.035), rgba(139, 92, 246, 0.004)), #FFFFFF;
  --mem-paid-border: rgba(31, 143, 156, 0.25);
  --mem-corner-glow: rgba(139, 92, 246, 0.064);
  --mem-tile-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.064), rgba(185, 154, 240, 0.016));
  --mem-tile-border: rgba(21, 14, 32, 0.15);
  --mem-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(139, 92, 246, 0.24);
  --mem-ico-1: #5B2F99;
  --mem-ico-2: #7E52C8;
  --mem-ico-3: #1F8F9C;
  --mem-section-glow: rgba(107, 66, 156, 0.128);
  --mem-price-bg:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(139, 92, 246, 0.136), rgba(139, 92, 246, 0) 60%),
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(31, 143, 156, 0.035), rgba(31, 143, 156, 0) 70%),
    #FAF8FE;
  --mem-price-border: rgba(21, 14, 32, 0.15);
  --mem-step-n-border: rgba(21, 14, 32, 0.15);
  --mem-step-n-color: #6B429C;
  --mem-chip-bg: rgba(21, 14, 32, 0.056);
  --mem-pool-bg: linear-gradient(160deg, rgba(126, 72, 214, 0.18), rgba(126, 72, 214, 0.048));
  --mem-pool-border: rgba(107, 66, 156, 0.21);
  --mem-pool-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.32);
  --mem-math-bg: rgba(255, 255, 255, 0.62);
  --mem-math-border: rgba(21, 14, 32, 0.07);
  --mem-statement-glow: rgba(126, 72, 214, 0.18);
  --mem-statement-glow-mid: rgba(126, 72, 214, 0.04);
  --mem-close-glow: rgba(126, 72, 214, 0.24);
  --mem-close-glow-mid: rgba(126, 72, 214, 0.048);
  --mem-pill-ring: linear-gradient(90deg, rgba(205, 181, 244, 0.6), rgba(139, 92, 246, 0.08), rgba(31, 143, 156, 0.4));
  --mem-pill-bg: #FFFFFF;
  --mem-pill-shadow: 0 18px 50px -24px rgba(76, 40, 130, 0.28);
  --mem-pill-placeholder: #716683;
  --mem-band-grain: 0.14;
  --mem-band-fade: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

[data-theme="dark"] {
  --mem-beam-2: rgba(120, 226, 238, 0.26);
  --mem-sheet-back-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  --mem-sheet-back-border: rgba(255, 255, 255, 0.14);
  --mem-sheet-back-shadow: none;
  --mem-sheet-mid-bg: linear-gradient(160deg, rgba(205, 181, 244, 0.35), rgba(126, 72, 214, 0.12));
  --mem-sheet-mid-border: rgba(205, 181, 244, 0.3);
  --mem-sheet-mid-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --mem-toast-icon-bg: rgba(120, 226, 238, 0.14);
  --mem-art-drop: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  --mem-art-drop-lg: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6));
  --mem-paid-bg: linear-gradient(180deg, rgba(143, 233, 242, 0.1), rgba(255, 255, 255, 0.015));
  --mem-paid-border: rgba(143, 233, 242, 0.22);
  --mem-corner-glow: rgba(139, 92, 246, 0.16);
  --mem-tile-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.16), rgba(185, 154, 240, 0.04));
  --mem-tile-border: rgba(233, 221, 251, 0.16);
  --mem-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(139, 92, 246, 0.6);
  --mem-ico-1: #F1E8FF;
  --mem-ico-2: #C3A2F4;
  --mem-ico-3: #8FE9F2;
  --mem-section-glow: rgba(107, 66, 156, 0.32);
  --mem-price-bg:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0) 60%),
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(143, 233, 242, 0.1), rgba(143, 233, 242, 0) 70%),
    #0E0A16;
  --mem-price-border: rgba(233, 221, 251, 0.16);
  --mem-step-n-border: rgba(233, 221, 251, 0.3);
  --mem-step-n-color: #E9DDFF;
  --mem-chip-bg: rgba(255, 255, 255, 0.07);
  --mem-pool-bg: linear-gradient(160deg, rgba(126, 72, 214, 0.45), rgba(126, 72, 214, 0.12));
  --mem-pool-border: rgba(205, 181, 244, 0.35);
  --mem-pool-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.8);
  --mem-math-bg: rgba(0, 0, 0, 0.25);
  --mem-math-border: rgba(255, 255, 255, 0.07);
  --mem-statement-glow: rgba(126, 72, 214, 0.45);
  --mem-statement-glow-mid: rgba(126, 72, 214, 0.1);
  --mem-close-glow: rgba(126, 72, 214, 0.6);
  --mem-close-glow-mid: rgba(126, 72, 214, 0.12);
  --mem-pill-ring: linear-gradient(90deg, rgba(205, 181, 244, 0.6), rgba(255, 255, 255, 0.1), rgba(143, 233, 242, 0.5));
  --mem-pill-bg: #0F0A17;
  --mem-pill-shadow: none;
  --mem-pill-placeholder: var(--placeholder);
  --mem-band-grain: 0.18;
}

.mem-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mem-ico-1 { stop-color: var(--mem-ico-1); }
.mem-ico-2 { stop-color: var(--mem-ico-2); }
.mem-ico-3 { stop-color: var(--mem-ico-3); }

/* Hero ------------------------------------------------------------------------ */

.mem-hero {
  --display-size: clamp(46px, 24.5px + 5.524vw, 104px);
  padding: clamp(48px, 28px + 5vw, 104px) 0 clamp(96px, 60px + 6vw, 150px);
}
.mem-hero .display { line-height: 0.95; }
.mem-hero > .fx-glow {
  left: calc(50% - 100px);
  top: -36px;
  width: 1000px;
  height: 900px;
}
.mem-hero > .fx-beam { left: calc(50% + 40px); top: -400px; width: 130px; }
.mem-hero > .mem-hero__beam {
  left: calc(50% + 340px);
  width: 80px;
  background: linear-gradient(180deg, transparent, var(--mem-beam-2) 50%, transparent);
  filter: blur(28px);
  animation: none;
}
.mem-hero__inner { gap: 56px; }
.mem-hero__text { gap: 30px; }
.mem-hero__text .lead { max-width: 520px; }
.mem-hero__text .actions { margin-top: 6px; }

/* The fanned statements: two tinted sheets behind the paper, a toast and the 3D icon. */
.mem-stack {
  position: relative;
  z-index: 1;
  width: min(420px, 86%);
  margin: 0 auto 0;
}
/* The tilt wrapper (site.css "Tilt") holds the sheets and the paper; its transform makes it
   the sheets' containing block, so it carries the top room the sheets fan out from. */
.mem-stack__tilt { position: relative; padding-top: 30px; }
.mem-stack__sheet {
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
}
.mem-stack__sheet--back {
  left: 15.2%;
  top: 34px;
  bottom: -69px;
  width: 90.5%;
  background: var(--mem-sheet-back-bg);
  border: 1px solid var(--mem-sheet-back-border);
  box-shadow: var(--mem-sheet-back-shadow);
  transform: rotate(8deg);
}
.mem-stack__sheet--mid {
  left: 7.6%;
  top: 30px;
  bottom: -75px;
  width: 91.4%;
  background: var(--mem-sheet-mid-bg);
  border: 1px solid var(--mem-sheet-mid-border);
  box-shadow: var(--mem-sheet-mid-shadow);
  transform: rotate(3.5deg);
}
.statement--hero {
  position: relative;
  width: 92.86%;
  animation: mx-float 10s ease-in-out infinite;
}
.mem-toast {
  position: absolute;
  z-index: 3;
  left: -88px;
  top: calc(100% + 31px);
  height: 56px;
  gap: 12px;
  padding: 0 18px 0 8px;
  animation: mx-float 8s ease-in-out -3s infinite;
}
.mem-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--mem-toast-icon-bg);
  color: var(--cyan);
}
.mem-toast__icon svg { width: 18px; height: 18px; }
.mem-toast__text { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.mem-toast__text strong { font-size: 14px; font-weight: 600; color: var(--text-1); }
.mem-toast__text span { font-size: 12px; color: var(--text-3); }
.mem-stack__art {
  position: absolute;
  z-index: 3;
  left: 82%;
  top: calc(100% + 5px);
  width: 112px;
  height: auto;
  filter: var(--mem-art-drop-lg);
  animation: mx-float 9s ease-in-out -5s infinite;
}

@media (min-width: 1024px) {
  .mem-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
    gap: 0 40px;
  }
  .mem-stack { width: 420px; margin: -30px 0 0 8px; }
}
@media (min-width: 1200px) {
  .mem-hero { min-height: 724px; padding: 104px 0 150px; }
  .mem-hero__inner { grid-template-columns: minmax(0, 612px) 420px; justify-content: space-between; }
  .mem-stack { margin-right: -8px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .mem-hero__inner { grid-template-columns: minmax(0, 1fr) 360px; }
  .mem-stack { width: 360px; margin-top: 0; }
  .mem-toast { left: -48px; }
  .mem-stack__art { width: 96px; }
}
@media (max-width: 1023px) {
  .mem-hero__inner { align-items: stretch; }
  .mem-stack { margin-bottom: 70px; }
  .mem-toast { left: -4%; top: calc(100% + 22px); }
  .mem-stack__art { left: auto; right: -9%; top: calc(100% - 10px); width: 92px; }
}
@media (max-width: 767px) {
  .mem-hero__inner { gap: 44px; }
  .mem-stack { width: min(390px, 88%); margin-inline: auto 9%; }
  .mem-stack__tilt { padding-top: 10px; }
  .mem-stack__sheet--back { top: 14px; bottom: -36px; }
  .mem-stack__sheet--mid { top: 10px; bottom: -42px; }
  .statement--hero { width: 100%; }
  .mem-toast { left: -2%; top: calc(100% + 14px); height: 52px; }
  .mem-stack__art { width: 76px; right: -14%; top: calc(100% - 4px); }
}

/* The statement paper (hero and full size). Sizes come from the custom properties. */
.statement {
  --st-pad: 26px 26px 22px;
  --st-gap: 15px;
  --st-logo: 12px;
  --st-kicker: 9px;
  --st-title: 19px;
  --st-period: 12px;
  --st-fs: 12px;
  --st-head-h: 28px;
  --st-head-fs: 10.5px;
  --st-row-h: 36px;
  --st-mono: 11px;
  --st-units: 50px;
  --st-rebate: 90px;
  --st-total-h: 42px;
  --st-total-fs: 13px;
  --st-foot: 11px;
  display: flex;
  flex-direction: column;
  gap: var(--st-gap);
  padding: var(--st-pad);
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.3);
}
[data-theme="light"] .statement { box-shadow: 0 1px 2px rgba(21, 14, 32, 0.05), 0 50px 90px -30px rgba(46, 24, 84, 0.3), 0 0 0 1px rgba(21, 14, 32, 0.05); }
.statement--full {
  --st-pad: 32px 32px 26px;
  --st-gap: 18px;
  --st-logo: 14px;
  --st-kicker: 10px;
  --st-title: 22px;
  --st-period: 13px;
  --st-fs: 13px;
  --st-head-h: 32px;
  --st-head-fs: 11.5px;
  --st-row-h: 40px;
  --st-mono: 12px;
  --st-units: 60px;
  --st-rebate: 110px;
  --st-total-h: 50px;
  --st-total-fs: 15px;
  --st-foot: 11.5px;
  border-radius: 14px;
}
.statement__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.statement__top img { width: auto; height: var(--st-logo); }
.statement__kicker {
  font-family: var(--font-mono);
  font-size: var(--st-kicker);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--island-muted);
  white-space: nowrap;
}
.statement__who { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.statement__practice { font-family: var(--font-product); font-size: var(--st-title); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: var(--island-ink); }
.statement__period { font-size: var(--st-period); color: var(--island-text); }
.statement__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--st-fs);
  color: var(--island-ink);
}
.statement__table th,
.statement__table td { padding: 0; font-weight: 400; text-align: left; }
.statement__table th:nth-child(2),
.statement__table td:nth-child(2) { width: var(--st-units); text-align: right; }
.statement__table th:nth-child(3),
.statement__table td:nth-child(3) { width: var(--st-rebate); text-align: right; }
.statement__table thead th {
  height: var(--st-head-h);
  border-bottom: 1px solid var(--island-line-strong);
  font-size: var(--st-head-fs);
  color: var(--island-muted);
}
.statement__table tbody td { height: var(--st-row-h); border-bottom: 1px solid var(--island-line); }
.statement__table tbody tr:last-child td { border-bottom-color: var(--island-line-strong); }
.statement__table tbody td:not(:first-child),
.statement__table tfoot td { font-family: var(--font-mono); font-size: var(--st-mono); }
.statement__table .statement__correction td { color: var(--island-text); }
.statement__table .statement__correction td:last-child { text-align: right; }
.statement__table tfoot th,
.statement__table tfoot td { height: var(--st-total-h); font-weight: 600; }
.statement__table tfoot td { text-align: right; font-size: var(--st-total-fs); color: var(--island-accent); }
.statement__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--island-line-strong);
  font-size: var(--st-foot);
  color: var(--island-muted);
}
.statement__paid {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  background: #E4F3EA;
  color: #23694A;
  font-weight: 600;
}
.statement__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--island-line-strong);
  font-size: var(--st-foot);
}
.statement__meta div { display: flex; flex-direction: column; gap: 2px; }
.statement__meta dt { color: var(--island-muted); }
.statement__meta dd { font-weight: 500; color: var(--island-ink); }
@media (max-width: 767px) {
  .statement { --st-pad: 22px 18px 18px; --st-logo: 11px; --st-kicker: 9px; --st-head-fs: 11px; --st-units: 34px; --st-rebate: 84px; }
  .statement__top { flex-wrap: wrap; gap: 6px 8px; }
  .statement__kicker { letter-spacing: 0.08em; }
  .statement--full {
    --st-pad: 24px 20px 20px;
    --st-title: 20px;
    --st-fs: 13px;
    --st-mono: 12px;
    --st-units: 40px;
    --st-rebate: 96px;
    --st-row-h: 42px;
  }
}

/* Stats sit right under the hero. */
.mem-stats { margin-top: 0; }
@media (max-width: 767px) {
  /* Every label in two lines at most, so the four cells sit even. */
  .mem-stats .stat { padding-inline: 16px; }
  .mem-stats .stat__label { font-size: 13px; }
}

/* How it works ---------------------------------------------------------------- */

/* The three steps stack (site.css "Stacking steps"): wide cards, words left, the art right.
   In dark the glass is see-through, so each card gets a solid floor under it: the card
   behind never shows through the one sliding over it. */
.mem-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 24px 22px;
  border-radius: 26px;
}
.mem-step > :not(.mem-step__art) { grid-column: 2; }
[data-theme="dark"] .mem-step--paid { background: var(--mem-paid-bg), var(--surface-2); }
.mem-step__art { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: auto; align-self: start; filter: var(--mem-art-drop); }
.mem-step__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.mem-step__title { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.035em; color: var(--text-1); }
.mem-step p { font-size: 15px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.mem-step--paid { background: var(--mem-paid-bg); border-color: var(--mem-paid-border); }
.mem-step--paid .mem-step__when { color: var(--cyan); }
.mem-step--paid p { color: var(--text-2); }
@media (max-width: 899px) {
  .mem-step__title { font-size: 23px; }
}
@media (min-width: 900px) {
  .mem-step {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-content: center;
    gap: 14px 56px;
    min-height: 300px;
    padding: 48px 56px;
    border-radius: 32px;
  }
  .mem-step > :not(.mem-step__art) { grid-column: 1; max-width: 560px; }
  .mem-step__art { grid-column: 2; grid-row: 1 / span 3; width: 150px; align-self: center; justify-self: center; filter: var(--mem-art-drop-lg); }
  .mem-step__title { font-size: 32px; }
  .mem-step p { font-size: 16px; }
}

/* Pricing --------------------------------------------------------------------- */

.mem-pricing { position: relative; z-index: 2; }
.mem-pricing__glow {
  left: max(-200px, calc(50% - 920px));
  top: 140px;
  width: 1000px;
  height: 900px;
  background: radial-gradient(closest-side, var(--mem-section-glow), transparent 70%);
}
.mem-pricing .container { position: relative; z-index: 1; }
.mem-benefit {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 212px;
  padding: 28px;
  border-radius: 24px;
}
.mem-benefit::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mem-corner-glow), transparent);
  pointer-events: none;
}
.mem-benefit__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--mem-tile-bg);
  border: 1px solid var(--mem-tile-border);
  box-shadow: var(--mem-tile-shadow);
}
.mem-benefit__icon svg { width: 30px; height: 30px; }
.mem-benefit__title { position: relative; margin-top: 8px; font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; color: var(--text-1); }
.mem-benefit p { position: relative; font-size: 15px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
@media (max-width: 767px) {
  .mem-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mem-benefit { min-height: 0; gap: 10px; padding: 18px 16px 20px; border-radius: 20px; }
  .mem-benefit__icon { width: 44px; height: 44px; border-radius: 13px; }
  .mem-benefit__icon svg { width: 24px; height: 24px; }
  .mem-benefit__title { margin-top: 4px; font-size: 16.5px; }
  .mem-benefit p { font-size: 13.5px; line-height: 1.5; }
}
/* Phones: one benefit per row, icon left of the title and its line (like the step cards). */
@media (max-width: 559px) {
  .mem-benefits { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mem-benefit { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 4px 16px; padding: 18px 18px 20px; }
  .mem-benefit__icon { grid-row: 1 / span 2; }
  .mem-benefit__title { margin-top: 1px; font-size: 17px; }
  .mem-benefit p { font-size: 14px; }
}

.mem-price {
  position: relative;
  overflow: hidden;
  display: grid;
  margin-top: clamp(28px, 18px + 2.2vw, 52px);
  border-radius: var(--radius-card);
  border: 1px solid var(--mem-price-border);
  background: var(--mem-price-bg);
  box-shadow: var(--glass-shadow);
}
.mem-price > .fx-grain { opacity: calc(var(--grain-opacity) * 0.7); }
.mem-price__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(28px, 20px + 1.8vw, 44px) clamp(24px, 14px + 2.4vw, 48px);
}
.mem-price__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.mem-price__kicker--sm { font-size: 11px; color: var(--accent); }
.mem-price__lead {
  font-size: clamp(36px, 26px + 2vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text-1);
}
.mem-price__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 4px; }
.mem-price__actions .link-arrow { font-size: 14.5px; min-height: 44px; }
.mem-price__after {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 20px + 1.8vw, 44px) clamp(24px, 14px + 2.4vw, 44px) clamp(28px, 20px + 1.4vw, 40px);
  border-top: 1px solid var(--line);
}
.mem-after { display: flex; flex-direction: column; gap: 22px; }
.mem-after li { display: flex; gap: 14px; }
.mem-after__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--mem-step-n-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mem-step-n-color);
}
.mem-after strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-1); }
.mem-after span:not(.mem-after__n) { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
@media (min-width: 900px) {
  .mem-price { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); }
  .mem-price__after { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .mem-price__actions .btn { width: 100%; }
}

/* Estimate -------------------------------------------------------------------- */

.mem-estimate__glow {
  left: calc(50% + -120px);
  top: 120px;
  width: 900px;
  height: 800px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.mem-estimate__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.mem-estimate__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mem-ticks { align-self: stretch; border-top: 1px solid var(--line); }
.mem-ticks li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}
.mem-ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 1024px) {
  .mem-estimate__grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .mem-estimate__grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 44px; }
}

/* The sample proposal card (drawn, not a calculator: the real one is the proposal page we send). */
.mem-proposal { border-radius: var(--radius-card); }
.mem-proposal__panel { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 14px + 1.6vw, 32px); }
[data-theme="light"] .mem-proposal__panel { background: rgba(255, 255, 255, 0.9); }
.mem-proposal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.mem-proposal__for { display: flex; flex-direction: column; gap: 3px; }
.mem-proposal__for span { font-size: 13px; color: var(--text-3); }
.mem-proposal__for strong { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-1); }
.mem-proposal__drug {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mem-chip-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}
.mem-proposal__units { display: flex; flex-direction: column; gap: 12px; }
.mem-proposal__units-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); }
.mem-proposal__units-n { font-family: var(--font-mono); color: var(--text-1); }
.mem-slider { position: relative; height: 8px; border-radius: 999px; background: var(--fill-3); }
.mem-slider__fill { position: absolute; inset: 0 58% 0 0; border-radius: 999px; background: linear-gradient(90deg, #6B429C, #B99AF0); }
.mem-slider__thumb {
  position: absolute;
  left: 42%;
  top: -7px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(185, 154, 240, 0.3), 0 0 20px #B99AF0;
}
.mem-proposal__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mem-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--fill-1);
  border: 1px solid var(--line);
}
.mem-tile__label { font-size: 13px; color: var(--text-3); }
.mem-tile__value { font-size: clamp(24px, 20px + 0.8vw, 30px); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; color: var(--text-soft); }
.mem-tile__tier { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-4); }
.mem-tile--pool { background: var(--mem-pool-bg); border-color: var(--mem-pool-border); box-shadow: var(--mem-pool-shadow); }
.mem-tile--pool .mem-tile__label { color: var(--text-soft); }
.mem-tile--pool .mem-tile__value { font-weight: 500; color: var(--text-1); }
.mem-tile--pool .mem-tile__tier { color: var(--accent-2); }
.mem-proposal__math {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--mem-math-bg);
  border: 1px solid var(--mem-math-border);
}
.mem-proposal__math-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }
.mem-proposal__math ol { display: flex; flex-direction: column; gap: 10px; }
.mem-proposal__math li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.mem-proposal__math li span { font-family: var(--font-mono); color: var(--accent); }
@media (max-width: 767px) {
  .mem-proposal__panel { gap: 18px; }
  .mem-proposal__for strong { font-size: 18px; }
  .mem-tile { padding: 14px; border-radius: 16px; }
  .mem-tile__label { font-size: 12.5px; }
  .mem-tile__value { font-size: 23px; }
  .mem-proposal__math { padding: 14px; }
}

/* The statement --------------------------------------------------------------- */

/* The page's one change of key: a dark panel (site.css "Dark panel"), the paper lit on it.
   Its glow and grain take their dark values in both themes. */
.mem-statement {
  --mem-statement-glow: rgba(126, 72, 214, 0.45);
  --mem-statement-glow-mid: rgba(126, 72, 214, 0.1);
  --mem-band-grain: 0.18;
  margin-top: var(--section-top);
  padding: clamp(80px, 56px + 5vw, 120px) 0;
}
.mem-statement .statement { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.3); }
.mem-statement > .fx-glow {
  left: 50%;
  top: 200px;
  width: 1300px;
  height: 1000px;
  margin-left: -650px;
  background: radial-gradient(closest-side, var(--mem-statement-glow), var(--mem-statement-glow-mid) 60%, transparent 75%);
  /* Fades out before the section's bottom edge, so the band never ends on a hard line. */
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 68%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 68%);
}
.mem-statement > .fx-grain { opacity: var(--mem-band-grain); -webkit-mask-image: var(--mem-band-fade); mask-image: var(--mem-band-fade); }
.mem-statement__inner { position: relative; z-index: 1; }
.mem-anatomy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.statement--full { width: min(480px, 100%); position: relative; z-index: 2; }
.mem-callouts { display: grid; gap: 28px; width: 100%; }
.mem-callout { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mem-callout strong { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--text-1); }
.mem-callout span { font-size: 14px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
.mem-callout::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 12px var(--accent-fill);
}
@media (max-width: 1199px) {
  .mem-callouts { max-width: 880px; }
  .mem-callout { padding-left: 24px; }
  .mem-callout::after { left: 0; top: 7px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .mem-callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 1200px) {
  .mem-anatomy { display: block; height: 480px; }
  .statement--full { position: absolute; left: calc(50% - 240px); top: 0; }
  .mem-callouts { position: static; display: block; }
  /* anchored to the card (480 wide, centered), so each dot lands 18 px inside its edge at any panel width */
  .mem-callout { position: absolute; width: min(280px, calc(50% - 292px)); }
  .mem-callout::before {
    content: "";
    position: absolute;
    top: 26px;
    width: 60px;
    height: 1px;
  }
  .mem-callout--ledger,
  .mem-callout--current { right: calc(50% + 292px); text-align: right; }
  .mem-callout--ledger { top: 150px; }
  .mem-callout--current { top: 380px; }
  .mem-callout--corrections { left: calc(50% + 292px); top: 284px; }
  .mem-callout--ledger::before,
  .mem-callout--current::before { left: calc(100% + 10px); background: linear-gradient(90deg, rgba(185, 154, 240, 0), #B99AF0); }
  .mem-callout--ledger::after,
  .mem-callout--current::after { left: calc(100% + 70px); top: 22px; }
  .mem-callout--corrections::before { right: calc(100% + 10px); background: linear-gradient(270deg, rgba(185, 154, 240, 0), #B99AF0); }
  .mem-callout--corrections::after { right: calc(100% + 70px); top: 22px; }
  .mem-callout::after { z-index: 3; }
}

/* FAQ --------------------------------------------------------------------------- */

.mem-faq .faq__item summary { padding-top: 26px; }
.mem-faq .faq__item:not([open]) summary { padding-bottom: 26px; }

/* Close: the quote, the big ask and the estimate request ---------------------------- */

.mem-close {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: var(--section-top);
  padding: clamp(88px, 52px + 6.9vw, 150px) 0;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.mem-close > .fx-glow {
  left: 50%;
  bottom: -520px;
  width: 1600px;
  height: 1100px;
  margin-left: -800px;
  background: radial-gradient(closest-side, var(--mem-close-glow), var(--mem-close-glow-mid) 55%, transparent 75%);
}
.mem-close > .fx-grain { opacity: var(--mem-band-grain); -webkit-mask-image: var(--mem-band-fade); mask-image: var(--mem-band-fade); }
.mem-close__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.mem-close__quote { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.mem-close__quote blockquote {
  max-width: 900px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 19.6px + 1.42vw, 40px);
  line-height: 1.2;
  color: var(--text-1);
  text-wrap: balance;
}
.mem-close__quote figcaption { font-size: 15px; color: var(--text-3); }
.mem-close__quote figcaption strong { font-weight: 500; color: var(--text-1); }
.mem-close__title { margin-top: clamp(24px, 12px + 3vw, 60px); }
.mem-close__lead { max-width: 560px; margin-inline: auto; }

/* The estimate request: an email pill (as drawn); a valid email opens the few details we need. */
.mem-earn { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(600px, 100%); margin-top: 6px; }
.mem-earn__pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 7px 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--mem-pill-bg), var(--mem-pill-bg)) padding-box, var(--mem-pill-ring) border-box;
  box-shadow: var(--mem-pill-shadow);
  transition: box-shadow 0.25s var(--ease-out);
}
.mem-earn__pill:focus-within { box-shadow: var(--mem-pill-shadow), 0 0 0 2px var(--focus); }
.mem-earn__email {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text-1);
}
.mem-earn__email::placeholder { color: var(--mem-pill-placeholder); opacity: 1; }
.mem-earn__email:focus-visible { outline: none; }
.mem-earn__email[aria-invalid="true"] { color: var(--danger); }
.mem-earn__go { --btn-fs: 15px; flex: none; }
.mem-earn.is-open .mem-earn__go { display: none; }
.mem-earn.is-open .mem-earn__pill { padding-right: 26px; }
.mem-earn__alert:empty { display: none; }
.mem-earn__alert,
.mem-earn__more,
.mem-earn__done { width: 100%; text-align: left; }
.mem-earn__more-head { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.mem-earn__done .form-success { padding: 30px 12px; }
@media (max-width: 559px) {
  .mem-earn__pill { height: 60px; padding: 0 5px 0 18px; gap: 8px; }
  .mem-earn__email { font-size: 15.5px; }
  .mem-earn__go { --btn-px: 16px; --btn-fs: 14px; --btn-h: 48px; }
}
@media (max-width: 479px) {
  .mem-earn__go.has-arrow::after { display: none; }
}
