/* Members page in the Noir look. Layers over the existing account styles; markup and behaviour unchanged. */
@import url("/noir/fonts.css");
body.noir-members {
  --bg: #0a0a0b;
  --panel: #121110;
  --panel-2: #181612;
  --cream: #f1ebe0;
  --soft: #c4bdb1;
  --faint: #8f887c;
  --line: #ffffff17;
  --line-2: #ffffff26;
  --gold: #d6b877;
  --gold-2: #f0dca6;
  --gold-3: #98773a;
  --ok: #8fc9a4;
  --warn: #e6c27a;
  --bad: #ff9d8c;
  --glow: #231e15;
  --input: #0b0a09;
  --tile: #0e0d0b;
  --tile-sel: linear-gradient(180deg, #2a2415, #1a160e);
  --wash: #ffffff05;
  --wash-2: #ffffff10;
  --btn-a: #f0dca6;
  --btn-b: #c9a55c;
  --btn-fg: #111;
  --sans: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: dark;
  margin: 0;
  min-height: 100dvh;
  color: var(--cream);
  font: 450 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 600px at 80% -10%, var(--glow) 0%, transparent 60%), var(--bg);
}
body.noir-members::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("/noir/grain.svg");
  z-index: 90;
}
.noir-members :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.noir-members ::selection {
  background: var(--gold);
  color: #111;
}
.noir-members a {
  color: var(--gold-2);
  text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent);
  text-underline-offset: 4px;
}
.noir-members .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
/* Test-mode banner: a quiet strip, not a green slab. */
.noir-members .local-banner {
  background: transparent;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
}
.noir-members .local-banner strong {
  color: var(--soft);
  font-weight: 650;
}
.noir-members .local-banner a {
  color: var(--gold-2);
  margin-left: 6px;
}
/* Header */
.noir-members .site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.noir-members .site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font: 800 22px/1 var(--sans);
  letter-spacing: 0.24em;
}
.noir-members .site-header .wordmark .mark {
  width: 34px;
  height: 34px;
  --crest: var(--gold);
}
.noir-members .site-header .wordmark .mark .c-text {
  display: none;
}
/* Small crests (founder, 2 Oct 2026): at this size the 1.5 px lines merged the face into a
   blob. Thinner lines and a simpler face (no eyebrows, nose or ear curls); the big crest keeps
   every detail. */
.noir-members .site-header .wordmark .mark .crest * {
  stroke-width: 1;
}
.noir-members .site-header .wordmark .mark .crest .c-outer {
  stroke-width: 0.8;
}
.noir-members .site-header .wordmark .mark .crest :is(.c-brows, .c-nose, .c-fill),
.noir-members .site-header .wordmark .mark .crest .c-face > path:nth-of-type(-n + 2) {
  display: none;
}
.noir-members .site-header .header-note {
  flex: 1;
  color: var(--faint);
  font: 600 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.noir-members .site-header .nav-link {
  color: var(--cream);
  font: 650 14px var(--sans);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
}
/* Intro */
.noir-members .account-main {
  padding-block: clamp(28px, 6vh, 64px) 40px;
}
.noir-members .account-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.noir-members .account-intro .eyebrow {
  color: var(--gold);
  font: 650 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.noir-members .account-intro h1 {
  font: 800 clamp(36px, 4.6vw, 58px)/1.02 var(--sans);
  letter-spacing: -0.045em;
  margin: 0 0 12px;
  color: var(--cream);
  text-wrap: balance;
  max-width: 18ch;
}
.noir-members .account-intro p {
  color: var(--soft);
  font-size: 17px;
  margin: 0;
}
.noir-members .account-intro > img {
  display: none;
}
.noir-members .account-intro .seal {
  flex: 0 0 auto;
  width: clamp(96px, 12vw, 150px);
  aspect-ratio: 1;
  --crest: var(--gold);
  filter: drop-shadow(0 0 24px #d6b87722);
}
.noir-members .account-intro .seal .c-text {
  font-size: 12px;
}
.noir-members .account-notice {
  margin: 24px 0;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  color: var(--cream);
  font: 550 15px/1.5 var(--sans);
}
.noir-members .account-notice.is-error {
  border-left-color: var(--bad);
  background: #ff9d8c12;
  color: #ffd3ca;
}
.noir-members .account-notice:empty {
  display: none;
}
/* Panels */
.noir-members .account-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 24px 60px #0007;
  color: var(--cream);
}
.noir-members .account-panel h2 {
  font: 800 24px/1.15 var(--sans);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--cream);
}
.noir-members .account-page .commitment-card,
.noir-members .commitment-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-color: color-mix(in srgb, var(--gold) 26%, transparent);
  color: var(--cream);
  transform: none;
}
.noir-members .account-grid {
  gap: 18px;
}
.noir-members .small,
.noir-members .muted {
  color: var(--soft);
}
.noir-members .small {
  font-size: 14px;
}
.noir-members label {
  color: var(--cream);
  font: 600 14px var(--sans);
}
.noir-members input[type="email"],
.noir-members input:not([type]),
.noir-members #code,
.noir-members #display-name,
.noir-members textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--input);
  color: var(--cream);
  font: 600 17px/1.4 var(--sans);
  box-shadow: none;
}
.noir-members input:focus,
.noir-members textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}
.noir-members ::placeholder {
  color: var(--faint);
}
/* Buttons */
.noir-members .button {
  border-radius: 14px;
  min-height: 50px;
  padding: 0 22px;
  font: 700 15px/1 var(--sans);
  letter-spacing: -0.005em;
  text-transform: none;
  box-shadow: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.noir-members .button.primary {
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: var(--btn-fg);
  border: 1px solid var(--gold);
}
.noir-members .button.primary:hover {
  transform: translateY(-1px);
}
.noir-members .button.secondary,
.noir-members .google-signin {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}
.noir-members .button.secondary:hover,
.noir-members .google-signin:hover {
  border-color: var(--gold);
}
.noir-members .button:disabled {
  background: var(--wash-2);
  color: var(--faint);
  border-color: var(--line);
  cursor: not-allowed;
  transform: none;
}
.noir-members .text-button {
  color: var(--gold-2);
  font: 600 14px var(--sans);
}
.noir-members .edit-button {
  border-color: var(--line-2);
  color: var(--cream);
  border-radius: 12px;
  font: 650 14px var(--sans);
}
.noir-members .edit-button:hover {
  border-color: var(--gold);
}
/* Identity row */
.noir-members .account-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
  margin-bottom: 18px;
}
.noir-members #account-email {
  margin: 0;
  color: var(--soft);
  font: 600 14px var(--sans);
}
/* Goal */
.noir-members #saved-goal {
  font: 700 24px/1.3 var(--sans);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 4px 0 6px;
}
.noir-members .goal-visibility {
  border: 0;
  padding: 0;
  margin: 12px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.noir-members .goal-visibility legend {
  color: var(--gold);
  font: 650 12px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.noir-members .goal-visibility label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
}
.noir-members input[type="radio"],
.noir-members input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}
.noir-members .website-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--wash);
}
.noir-members .website-preview .eyebrow {
  color: var(--gold);
  font: 650 11px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Subscription */
.noir-members .subscription-status .subscription-amount {
  font: 800 26px/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--cream);
}
.noir-members .subscription-status .subscription-meta {
  color: var(--soft);
}
.noir-members .subscription-status .status-badge {
  background: var(--wash-2);
  color: var(--cream);
}
.noir-members .subscription-status .status-badge.is-active {
  background: #8fc9a41f;
  color: var(--ok);
}
.noir-members .subscription-status .status-badge.is-pending {
  background: #e6c27a1f;
  color: var(--warn);
}
.noir-members .subscription-status .status-badge.is-failed {
  background: #ff9d8c1f;
  color: var(--bad);
}
.noir-members #billing-management {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.noir-members #billing-management summary {
  color: var(--gold-2);
  font: 650 14px var(--sans);
}
.noir-members fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.noir-members fieldset legend {
  color: var(--gold);
  font: 650 12px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* Plan cards */
.noir-members .amounts {
  gap: 10px;
}
.noir-members .amounts input + span {
  background: var(--tile);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--cream);
  padding: 14px 8px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.noir-members .amounts label:hover input + span {
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
}
.noir-members .amounts input:checked + span {
  background: var(--tile-sel);
  border-color: var(--gold);
  color: var(--gold-2);
  box-shadow:
    0 0 0 1px var(--gold),
    0 10px 30px #d6b87718;
  transform: translateY(-2px);
}
.noir-members .account-panel .amounts strong {
  font: 800 22px/1 var(--sans);
  letter-spacing: -0.02em;
}
.noir-members .account-panel .amounts small {
  color: var(--soft);
  font: 600 12px var(--sans);
}
.noir-members .amounts .plan-name {
  color: var(--soft);
  font: italic 600 14px/1.3 var(--serif);
}
.noir-members .amounts input:checked + span .plan-name,
.noir-members .amounts input:checked + span small {
  color: var(--gold-2);
}
.noir-members .plan-description {
  color: var(--cream);
  font: italic 500 17px/1.4 var(--serif);
}
.noir-members .checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  font: 500 14px/1.5 var(--sans);
  color: var(--soft);
}
.noir-members .fee-notice {
  color: var(--soft);
}
.noir-members .policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.noir-members .policy-links a {
  font: 600 13px var(--sans);
}
/* Profile */
.noir-members .profile-summary strong {
  font: 800 20px var(--sans);
  letter-spacing: -0.02em;
  color: var(--cream);
}
.noir-members .profile-summary .board-avatar,
.noir-members .board-avatar {
  background: var(--tile-sel);
  color: var(--gold-2);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.noir-members .board-avatar img {
  filter: invert(1) sepia(0.4) saturate(1.4) hue-rotate(5deg) brightness(0.95);
}
.noir-members .board-prompt {
  border-left: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--cream);
}
.noir-members .avatar-options label {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--tile);
  color: var(--cream);
}
.noir-members .avatar-options img {
  filter: invert(1) sepia(0.4) saturate(1.4) hue-rotate(5deg) brightness(0.95);
}
.noir-members .initial-avatar {
  background: var(--tile-sel);
  color: var(--gold-2);
}
.noir-members .preview-row {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
}
.noir-members .preview-row .board-goal,
.noir-members .preview-row .preview-amount {
  color: var(--soft);
}
.noir-members #profile-locked,
.noir-members .account-limits {
  color: var(--faint);
  font-size: 14px;
}
/* Footer */
.noir-members .site-footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
  padding-block: 28px 40px;
  font-size: 13px;
}
.noir-members .site-footer p {
  color: var(--faint);
}
.noir-members .site-footer .email-privacy p:first-child {
  color: var(--soft);
  font-weight: 600;
}
.noir-members .site-footer .wordmark {
  color: var(--cream);
  font: 800 18px var(--sans);
  letter-spacing: 0.24em;
  text-decoration: none;
}
.noir-members .site-footer .wordmark span {
  color: var(--gold);
}
.noir-members .site-footer .mono {
  color: var(--faint);
  font: 600 11px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.noir-members .brand-loading {
  color: var(--soft);
}
@media (max-width: 700px) {
  .noir-members .site-header .header-note {
    display: none;
  }
  .noir-members .site-header .wordmark {
    letter-spacing: 0.18em;
    font-size: 19px;
  }
  .noir-members .site-header {
    justify-content: space-between;
  }
  .noir-members .account-intro .seal {
    width: 76px;
  }
  .noir-members .account-intro .seal .c-text {
    display: none;
  }
  .noir-members .account-intro .seal .crest * {
    stroke-width: 1;
  }
  .noir-members .account-intro .seal .crest .c-outer {
    stroke-width: 0.8;
  }
  .noir-members .account-intro .seal .crest :is(.c-brows, .c-nose, .c-fill),
  .noir-members .account-intro .seal .crest .c-face > path:nth-of-type(-n + 2) {
    display: none;
  }
  .noir-members .account-intro h1 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noir-members * {
    transition: none !important;
  }
}

/* Crest */

.crest {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.crest * {
  fill: none;
  stroke: var(--crest, currentColor);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.crest .c-dot {
  fill: var(--crest, currentColor);
  stroke: none;
}
.crest text,
.crest textPath {
  stroke: none;
  fill: var(--crest, currentColor);
}
.crest .c-fill {
  stroke-width: 1.2;
}
.crest .c-text {
  fill: var(--crest, currentColor);
  stroke: none;
  /* First letters of many scripts: system fonts supply the non-Latin glyphs. */
  font:
    500 13px "Manrope",
    "Noto Sans",
    system-ui,
    sans-serif;
  letter-spacing: 1px;
}
.crest .c-outer {
  stroke-width: 0.8;
}
.crest.draw [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: c-draw 2.2s cubic-bezier(0.6, 0.1, 0.2, 1) forwards;
}
/* Dash lengths in the drawing's own units, so every line finishes drawing (with non-scaling
   strokes the draw-in stopped short and left gaps). */
.crest.draw [pathLength] {
  vector-effect: none;
}
.crest.draw .c-rings circle {
  animation-delay: 0.2s;
}
.crest.draw .c-text,
.crest.draw .c-monk,
.crest.draw .c-eyes,
.crest.draw .c-brows,
.crest.draw .c-mouth,
.crest.draw .c-dot {
  opacity: 0;
  animation: c-in 0.8s 1.4s forwards;
}
@keyframes c-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes c-in {
  to {
    opacity: 1;
  }
}
.crest .c-ring {
  transform-origin: 100px 100px;
  animation: c-turn 90s linear infinite;
}
.crest .c-eyes {
  transform-box: fill-box;
  transform-origin: center;
}
.crest.blink .c-eyes {
  animation: c-blink 0.28s;
}
@keyframes c-blink {
  50% {
    transform: scaleY(0.1);
  }
}
@keyframes c-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .crest *,
  .crest {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}
/* Leftovers from the classic theme. */
.noir-members .commitment-card::before,
.noir-members .commitment-card::after {
  display: none;
}
.noir-members .local-banner a {
  display: none;
}
.noir-members .edit-button svg {
  display: block;
  margin: auto;
}

/* Light theme: ivory paper, ink text, darker gold so small text stays readable. */
html[data-mode="light"] body.noir-members {
  color-scheme: light;
  --bg: #f4f0e7;
  --panel: #fffdf8;
  --panel-2: #fbf7ee;
  --cream: #16140f;
  --soft: #4f4a42;
  --faint: #736c61;
  --line: #16140f1a;
  --line-2: #16140f2e;
  --gold: #97742f;
  --gold-2: #6b5020;
  --gold-3: #6b5020;
  --ok: #1f6b4f;
  --warn: #7a4d00;
  --bad: #a42e23;
  --glow: #fffaf0;
  --input: #ffffff;
  --tile: #ffffff;
  --tile-sel: linear-gradient(180deg, #fbf1dc, #f4e6c6);
  --wash: #16140f06;
  --wash-2: #16140f0f;
  --btn-a: #b8913f;
  --btn-b: #8f6c26;
  --btn-fg: #fffaf0;
}
html[data-mode="light"] body.noir-members::after {
  opacity: 0.04;
}
html[data-mode="light"] .noir-members .account-panel {
  box-shadow: 0 18px 40px #5a4a2a1f;
}
html[data-mode="light"] .noir-members .board-avatar img,
html[data-mode="light"] .noir-members .avatar-options img {
  filter: none;
}
html[data-mode="light"] .noir-members .account-notice.is-error {
  color: #82281e;
  background: #fff0e9;
}
.noir-members .theme-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.noir-members .theme-btn:hover {
  border-color: var(--gold);
}
.noir-members .theme-btn svg {
  width: 18px;
  height: 18px;
}
.noir-members .theme-btn .sun {
  display: none;
}
html:not([data-mode="light"]) .noir-members .theme-btn .sun {
  display: block;
}
html:not([data-mode="light"]) .noir-members .theme-btn .moon {
  display: none;
}
.noir-members .site-header .nav-link {
  margin-left: 4px;
}
/* Founding-list member: the seat leads, the dues preview is optional and sits lower. */
.noir-members.is-founding #account-mode,
.noir-members.is-founding #profile-locked {
  display: none;
}
.noir-members .founding {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin: 8px 0 28px;
}
.noir-members .founding[hidden] {
  display: none;
}
.noir-members .f-card {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1.586;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3vw, 28px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 6px;
  overflow: hidden;
  color: #e9dfc9;
  background:
    radial-gradient(120% 90% at 85% 0%, #3a3120 0%, transparent 55%),
    linear-gradient(135deg, #1c1912, #0d0c0a 70%);
  border: 1px solid #d6b87740;
  box-shadow:
    0 30px 70px #0009,
    inset 0 1px 0 #ffffff14;
  animation: f-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.noir-members .f-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, #f0dca61c 48%, transparent 60%);
  transform: translateX(-100%);
  animation: f-sheen 5s 1.2s ease-in-out infinite;
  pointer-events: none;
}
.noir-members .f-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.noir-members .f-emb {
  width: 42px;
  height: 42px;
  --crest: #d6b877;
}
.noir-members .f-emb .c-text {
  display: none;
}
.noir-members .f-brand {
  font: 800 18px var(--sans);
  letter-spacing: 0.32em;
}
.noir-members .f-goal {
  align-self: center;
  margin: 0;
  font: italic 400 clamp(22px, 2.6vw, 30px)/1.15 var(--serif);
  color: #f0e2bd;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noir-members .f-name {
  margin: 0;
  font: 600 12px var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cfc4ad;
}
.noir-members .f-name:empty {
  display: none;
}
.noir-members .f-meta {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  font: 600 9.5px var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a79d88;
}
.noir-members .f-meta b {
  display: block;
  margin-top: 3px;
  font: 700 16px var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: #e9dfc9;
}
.noir-members .f-foil {
  position: absolute;
  right: clamp(18px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 24px);
  font: 800 10px var(--sans);
  letter-spacing: 0.24em;
  background: linear-gradient(90deg, #98773a, #f0dca6, #c9a55c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.noir-members .f-next h2 {
  font: 800 22px/1.2 var(--sans);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.noir-members .f-next ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.noir-members .f-next li {
  position: relative;
  padding-left: 34px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}
.noir-members .f-next li b {
  display: block;
  color: var(--cream);
  font-weight: 700;
}
.noir-members .f-next li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
.noir-members .f-next li.done::before {
  border-color: var(--gold);
  background:
    url("/noir/check.svg") center / 12px no-repeat,
    color-mix(in srgb, var(--gold) 18%, transparent);
}
.noir-members .founding-optional {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wash);
  border: 1px dashed var(--line-2);
}
/* Put the goal first and the dues preview after it, visually quieter. */
.noir-members.is-founding .commitment-card {
  border-color: var(--line);
  box-shadow: none;
}
@keyframes f-rise {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-1.5deg);
  }
}
@keyframes f-sheen {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@media (max-width: 760px) {
  .noir-members .founding {
    grid-template-columns: 1fr;
  }
  .noir-members .f-card {
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noir-members .f-card,
  .noir-members .f-card::after {
    animation: none;
  }
}
/* Club Green, the default look. */
html[data-mode="green"] body.noir-members {
  --bg: #0c2219;
  --panel: #10291f;
  --panel-2: #143227;
  --glow: #1b4636;
  --input: #0a1c15;
  --tile: #0e2519;
  --tile-sel: linear-gradient(180deg, #24321c, #16271a);
  --soft: #c3cbbd;
  --faint: #93a092;
  --cream: #f2ead8;
  --line: #f2ead81f;
  --line-2: #f2ead830;
}
.noir-members .site-header .nav-link {
  white-space: nowrap;
}
@media (max-width: 520px) {
  .noir-members .site-header .header-note {
    display: none;
  }
  .noir-members .f-foil {
    top: 52px;
    bottom: auto;
  }
}
/* On small phones the logo already goes home; keep the header to one row. */
@media (max-width: 420px) {
  .noir-members .site-header .nav-link[href="/"] {
    display: none;
  }
}
.noir-members .f-next h2 {
  color: var(--cream);
}
/* The foil sits under the wordmark at every size, clear of the meta row. */
.noir-members .f-foil {
  top: clamp(56px, 7vw, 64px);
  bottom: auto;
}
/* Founding members: goal, then the optional dues preview, full width, no lopsided gap. */
.noir-members.is-founding .account-grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 520px) {
  .noir-members .f-card {
    aspect-ratio: auto;
    min-height: 210px;
    row-gap: 12px;
  }
  .noir-members .f-goal {
    margin-top: 14px;
  }
}
/* Founding view: no checkout, no lopsided grid. Only the goal and the account controls. */
.noir-members.is-founding .account-grid > * {
  grid-column: auto;
  grid-row: auto;
}
.noir-members.is-founding-clean .commitment-card,
.noir-members.is-founding-clean .account-limits,
.noir-members.is-founding-clean .local-banner {
  display: none;
}
/* Founding view order: seat, goal, then account controls at the bottom. */
.noir-members.is-founding-clean #signed-in {
  display: flex;
  flex-direction: column;
}
.noir-members.is-founding-clean #signed-in > .founding {
  order: 1;
}
.noir-members.is-founding-clean #signed-in > .account-grid {
  order: 2;
}
.noir-members.is-founding-clean #signed-in > .account-identity {
  order: 3;
  margin-top: 18px;
  background: transparent;
  box-shadow: none;
}
.noir-members.is-founding-clean
  #signed-in
  > :not(.founding):not(.account-grid):not(.account-identity) {
  order: 4;
}
.noir-members .theme-btn {
  flex: none;
}
/* Phones: logo, light/dark, Why and Members on one line without sideways scrolling. */
@media (max-width: 420px) {
  .noir-members .site-header {
    gap: 10px;
  }
  .noir-members .site-header .nav-link {
    margin-left: 0;
  }
  .noir-members .site-header .theme-btn {
    margin-left: auto;
  }
  .noir-members .site-header .wordmark {
    letter-spacing: 0.18em;
  }
}
@media (max-width: 350px) {
  .noir-members .site-header .wordmark {
    font-size: 0;
    gap: 0;
  }
}
/* Header links are plain text, like the homepage: no underline; hover brightens to gold. */
.noir-members .site-header .nav-link {
  border-bottom: 0;
  text-decoration: none;
}
.noir-members .site-header .nav-link:hover,
.noir-members .site-header .nav-link:focus-visible {
  color: var(--gold-2);
}

/* Dues picker: the homepage's dues list (a radio dot, the amount, its name) beside the stake
   panel where the coins stack up. Replaces the old grid of plan tiles. */
.noir-members .dues-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.noir-members .amounts {
  display: block;
  margin: 0;
  border-top: 1px solid var(--line);
}
.noir-members .amounts label {
  display: block;
  cursor: pointer;
}
.noir-members .amounts input + span {
  display: grid;
  grid-template-columns: 14px minmax(88px, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  min-height: 0;
  padding: 13px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--cream);
  text-align: left;
  box-shadow: none;
  transform: none;
  transition:
    background 0.4s,
    padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.noir-members .amounts label:hover input + span {
  padding-left: 14px;
  border-color: var(--line);
}
.noir-members .amounts input:checked + span {
  padding-left: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 15%, transparent), transparent);
  border-color: var(--line);
  color: var(--gold-2);
  box-shadow: none;
  transform: none;
}
.noir-members .amounts input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.noir-members .amounts input + span > i {
  width: 11px;
  height: 11px;
  align-self: center;
  border: 1px solid var(--soft);
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.noir-members .amounts input:checked + span > i {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  transform: scale(1.3);
}
.noir-members .account-panel .amounts strong {
  font: 800 26px/1 var(--sans);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.noir-members .amounts .plan-name {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
  text-align: left;
  color: var(--soft);
  font: 700 15px/1.3 var(--sans);
}
.noir-members .account-panel .amounts small {
  color: var(--faint);
  font: 600 12px var(--sans);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.noir-members .amounts input:checked + span .plan-name,
.noir-members .amounts input:checked + span small {
  color: var(--gold-2);
}
/* The stake panel: coins land on a plate and the figure follows the chosen dues. */
.noir-members .acct-stake {
  position: sticky;
  top: 20px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent);
  text-align: center;
}
.noir-members .acct-stake .stake-k {
  margin: 0;
  color: var(--gold);
  font: 650 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.noir-members .acct-stake > .small {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint);
}
.noir-members .acct-stake .stack {
  position: relative;
  width: 150px;
  height: 180px;
}
.noir-members .acct-stake .plate {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 132px;
  height: 22px;
  margin-left: -66px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--gold) 26%, transparent),
    transparent
  );
}
.noir-members .acct-stake .ghost {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  transition: opacity 0.3s;
}
.noir-members .acct-stake .stack.filled .ghost {
  opacity: 0;
}
.noir-members .acct-stake .coin {
  position: absolute;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  border-radius: 50%;
  transform: translateX(var(--dx, 0)) rotate(var(--rot, 0deg));
  background: linear-gradient(180deg, #f7e7b8, #d6b877 45%, #98773a);
  box-shadow:
    0 3px 0 #6f5420,
    0 8px 14px #0006,
    inset 0 1px 0 #fff9;
  animation: acct-drop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) backwards;
}
.noir-members .acct-stake .coin::after {
  content: "";
  position: absolute;
  inset: 4px 14px;
  border-radius: 50%;
  border: 1px solid #fff6;
}
@keyframes acct-drop {
  from {
    transform: translate(var(--dx, 0), -150px) rotateX(60deg);
    opacity: 0;
  }
}
html[data-mode="light"] .noir-members .acct-stake .coin {
  box-shadow:
    0 3px 0 #8a6a2c,
    0 8px 14px #5a4a2a33,
    inset 0 1px 0 #fff9;
}
.noir-members .stake-amt {
  margin: 4px 0 0;
  display: grid;
  gap: 4px;
}
.noir-members .stake-amt b {
  font: 800 28px/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--gold-2);
}
.noir-members .stake-amt span {
  font: 500 13px/1.45 var(--sans);
  color: var(--soft);
}
/* Every plan shares one description, so the name on each row says it instead. */
.noir-members #selected-plan-description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.noir-members #checkout-form {
  display: grid;
  gap: 14px;
}
.noir-members #checkout-form > * {
  margin: 0;
}
.noir-members #pay-button {
  width: 100%;
  min-height: 56px;
  font-size: 16.5px;
}
/* Fine print under the pay button: billing terms, fee notice and policy links, quietly. */
.noir-members .checkout-fine {
  display: grid;
  gap: 8px;
}
.noir-members .checkout-fine p,
.noir-members .checkout-fine .fee-notice {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.noir-members .checkout-fine .policy-links {
  margin: 0;
  font-size: 12.5px;
}
/* Choosing dues: the membership card leads, full width; the goal follows; the email row and
   sign-out sit at the foot of the page. */
.noir-members #signed-in {
  display: flex;
  flex-direction: column;
}
.noir-members.is-paying .account-grid {
  grid-template-columns: minmax(0, 1fr);
}
.noir-members.is-paying .account-grid > .commitment-card {
  order: -1;
}
.noir-members #signed-in > .account-identity {
  order: 5;
  margin: 18px 0 0;
}
.noir-members.is-paying #profile-locked {
  display: none;
}
.noir-members.is-pending #resume-button {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
  margin-block: 8px 4px;
}
/* The dues list follows the width of its own panel, not the screen: on a wide screen the panel
   can sit beside the goal editor at half width, where the stake column left the list ~190 px and
   every tier line collapsed to one letter per row (4 Oct 2026). Below 660 px of panel the stake
   becomes a slim strip above the list and each tier takes two lines, as on phones. */
.noir-members #checkout-form {
  container: dues / inline-size;
}
@container dues (max-width: 660px) {
  .noir-members .dues-pick {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  /* Narrow panels: the stake is a slim strip above the list, so the coins land in view. */
  .noir-members .acct-stake {
    order: -1;
    position: static;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-areas:
      "stack label"
      "stack amount"
      "stack note";
    justify-items: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 10px 14px;
    text-align: left;
  }
  .noir-members .acct-stake .stake-k {
    grid-area: label;
  }
  .noir-members .acct-stake .stack {
    grid-area: stack;
    zoom: 0.46;
  }
  .noir-members .stake-amt {
    grid-area: amount;
    margin: 0;
    gap: 0;
  }
  .noir-members .stake-amt b {
    font-size: 24px;
  }
  .noir-members .acct-stake > .small {
    grid-area: note;
    margin: 0;
  }
  .noir-members .amounts input + span {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas:
      "dot amt inr"
      ". name name";
    gap: 2px 12px;
    padding: 11px 6px;
  }
  .noir-members .amounts input + span > i {
    grid-area: dot;
  }
  .noir-members .account-panel .amounts strong {
    grid-area: amt;
    font-size: 23px;
  }
  .noir-members .amounts .plan-name {
    grid-area: name;
    font-size: 14px;
  }
  .noir-members .account-panel .amounts small {
    grid-area: inr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noir-members .acct-stake .coin {
    animation: none;
  }
}
.noir-members.is-paying .account-grid > * {
  grid-column: 1;
  grid-row: auto;
}
.noir-members.is-paying .account-limits {
  display: none;
}
.noir-members #subscription-status:empty,
.noir-members #subscription-details:empty {
  display: none;
}
/* An unfinished payment: the membership card leads too, without the locked-profile note. */
.noir-members.is-pending .account-grid {
  grid-template-columns: minmax(0, 1fr);
}
.noir-members.is-pending .account-grid > * {
  grid-column: 1;
  grid-row: auto;
}
.noir-members.is-pending .account-grid > .commitment-card {
  order: -1;
}
.noir-members.is-pending #profile-locked,
.noir-members.is-pending .account-limits {
  display: none;
}
/* Anything that stops a payment is said quietly under the pay button, not only at the top. */
.noir-members .pay-msg {
  margin: 0;
  color: var(--soft);
  font: 500 14px/1.45 var(--sans);
  text-align: center;
}
/* Live: tapping Pay is the agreement, so the terms read as a quiet line above the button
   (no tick box), as on the homepage's summary step. */
html[data-billing-mode="razorpay_live"] .noir-members #checkout-form .checkbox-label {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font: 500 13px/1.55 var(--sans);
  color: var(--soft);
}
html[data-billing-mode="razorpay_live"] .noir-members #policy-accept {
  display: none;
}
/* Pay before a tier is chosen: the button still reads as the button, in a muted solid gold. */
.noir-members #pay-button:disabled {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--gold) 38%, transparent),
      color-mix(in srgb, var(--gold) 26%, transparent)
    ),
    var(--panel);
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

/* Welcome: the moment after paying (account.js showWelcome). The seat card stamps down,
   coins fly out of it, then the words arrive. Reduced motion shows the finished state. */
.noir-members .welcome {
  position: relative;
  margin: 18px 0 22px;
  padding: 26px 22px 22px;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, var(--glow), transparent 70%), var(--panel);
  overflow: hidden;
  isolation: isolate;
}
.noir-members .welcome[hidden] {
  display: none;
}
.noir-members .welcome-kicker {
  color: var(--gold);
  letter-spacing: 0.14em;
}
.noir-members .welcome h2 {
  margin: 6px 0 8px;
  font: 800 clamp(28px, 7.4vw, 40px) / 1.05 var(--sans);
  letter-spacing: -0.02em;
  color: var(--cream);
}
.noir-members .welcome-line {
  color: var(--soft);
  margin: 0 0 18px;
}
.noir-members .welcome-seat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--tile-sel);
  overflow: hidden;
}
.noir-members .welcome-seat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #fff3 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.noir-members .welcome-av {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: var(--btn-fg);
  font: 800 18px var(--sans);
}
.noir-members .welcome-who {
  display: grid;
  min-width: 0;
}
.noir-members .welcome-no {
  color: var(--gold);
  font: 700 12px var(--sans);
  letter-spacing: 0.12em;
}
.noir-members .welcome-who strong {
  color: var(--cream);
  font-size: 17px;
}
.noir-members .welcome-goal {
  color: var(--faint);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noir-members .welcome-dues {
  color: var(--gold);
  font: 800 16px var(--sans);
}
.noir-members .welcome-board {
  margin: 14px 0 16px;
  color: var(--soft);
}
.noir-members .welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.noir-members .welcome-actions .text-button {
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
}
.noir-members .welcome-burst {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}
.noir-members .welcome-coin {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4cf, var(--btn-a) 40%, var(--btn-b) 75%);
  box-shadow: 0 0 0 1px #0003 inset;
  opacity: 0;
}
.noir-members .welcome.is-playing .welcome-coin {
  animation: welcome-coin 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d) forwards;
}
.noir-members .welcome.is-playing {
  animation: welcome-in 0.5s ease-out both;
}
.noir-members .welcome.is-playing .welcome-seat {
  animation: welcome-stamp 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.7s both;
}
.noir-members .welcome.is-playing .welcome-seat::after {
  animation: welcome-shine 1s ease-in-out 1.35s;
}
.noir-members .welcome.is-playing .welcome-kicker,
.noir-members .welcome.is-playing h2,
.noir-members .welcome.is-playing .welcome-line,
.noir-members .welcome.is-playing .welcome-board,
.noir-members .welcome.is-playing .welcome-actions {
  animation: welcome-rise 0.6s ease-out both;
}
.noir-members .welcome.is-playing .welcome-kicker {
  animation-delay: 0.1s;
}
.noir-members .welcome.is-playing h2 {
  animation-delay: 0.2s;
}
.noir-members .welcome.is-playing .welcome-line {
  animation-delay: 0.4s;
}
.noir-members .welcome.is-playing .welcome-board {
  animation-delay: 1.3s;
}
.noir-members .welcome.is-playing .welcome-actions {
  animation-delay: 1.45s;
}
@keyframes welcome-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes welcome-stamp {
  0% {
    opacity: 0;
    transform: scale(1.45) rotate(-4deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.97) rotate(0.5deg);
  }
  100% {
    transform: none;
  }
}
@keyframes welcome-shine {
  to {
    transform: translateX(120%);
  }
}
@keyframes welcome-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes welcome-coin {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.4);
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), calc(var(--y) + 70px)) rotate(var(--r)) scale(0.9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .noir-members .welcome.is-playing,
  .noir-members .welcome.is-playing * {
    animation: none !important;
  }
}
/* Cancellation confirmation: one honest question, keep is the default. */
.noir-members .cancel-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel, #0f231b);
  color: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.noir-members .cancel-dialog::backdrop {
  background: rgba(4, 10, 8, 0.66);
  backdrop-filter: blur(2px);
}
.noir-members .cancel-dialog h2 {
  margin: 0 0 12px;
  font: 800 24px/1.2 var(--sans);
  letter-spacing: -0.02em;
}
.noir-members .cancel-dialog p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}
.noir-members .cancel-dialog p.small {
  font-size: 14px;
  color: var(--soft);
}
.noir-members .cancel-dialog-acts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.noir-members .cancel-dialog-acts .button {
  width: 100%;
  min-height: 48px;
}
/* Light paper: the gold ring and letters around Monk in deeper brass, a touch heavier, so they
   hold their own next to the dark medallion (9 Oct 2026). */
[data-mode="light"] .crest {
  --crest: var(--brass-3);
}
[data-mode="light"] .crest .c-text {
  font-weight: 700;
}
[data-mode="light"] .crest .c-rings circle {
  stroke-width: 2;
}
[data-mode="light"] .crest .c-outer {
  stroke-width: 1.3;
}
