/* ==========================================================================
   The Prestige — public site styles.
   The look the site has always had: charcoal base, purple header bar, lavender
   type, Archivo Black headings, Manrope body, pill buttons, glassy purple cards.
   Used by index, mentorship, join, dashboard, terms, privacy, purchase-success.
   (admin, client and pay still load styles.css.)
   ========================================================================== */

:root {
  --bg: #151515;
  --lav: #e7ddff;            /* headings and main text on dark */
  --soft: #d5c8f3;           /* body copy inside cards */
  --muted: #b7a8d8;
  --brand: #7f5bbc;
  --brand-dark: #65459f;
  --brand-bright: #b98eff;
  --brand-glow: #caa5ff;
  --silver: #c1c1db;
  --line: rgba(185, 142, 255, 0.44);
  --line-soft: rgba(185, 142, 255, 0.22);
  --card-bg: linear-gradient(165deg, rgba(185, 142, 255, 0.12), rgba(21, 21, 21, 0.9));
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
  --radius: 20px;
  --success: #6dd28a;
  --warn: #f3c969;
  --danger: #ff6f7a;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html, body { margin: 0; padding: 0; max-width: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 520px at 92% -60px, rgba(185, 142, 255, 0.34), rgba(185, 142, 255, 0)),
    radial-gradient(900px 420px at -10% 640px, rgba(185, 142, 255, 0.2), rgba(185, 142, 255, 0)),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--lav);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; min-width: 0; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0 0 14px; line-height: 1.15; color: var(--lav); overflow-wrap: anywhere; }
/* Archivo Black ships one weight; the headings have always been set bold on top
   of it, which is what gives them their extra-heavy look. */
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); max-width: 15ch; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.08rem; font-weight: 800; }
p { margin: 0 0 12px; }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.77rem;
  color: var(--lav);
  margin: 0 0 12px;
}
.subhead { max-width: 64ch; margin: 0 0 26px; font-size: 1.03rem; color: var(--lav); }
.lead { max-width: 70ch; margin: 0; color: var(--soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center h1, .center h2, .center .lead, .center .subhead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 800 0.92rem/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; transform: none; }
.btn svg { flex: none; }
.btn-solid { background: var(--brand-bright); color: #151515; box-shadow: 0 8px 20px rgba(92, 93, 165, 0.35); }
.btn-solid:hover { background: var(--brand-glow); }
.btn-ghost { background: transparent; border-color: rgba(185, 142, 255, 0.56); color: var(--lav); }
.btn-ghost:hover { background: rgba(185, 142, 255, 0.2); }
.btn-block { display: flex; width: 100%; }

/* ---------- header: the purple bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #8f60df, #7448c6);
  border-bottom: 1px solid rgba(21, 21, 21, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
/* One header for every page: brand, the three places to go, the social icons,
   Login (or the member's avatar) and one button. */
.nav { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-right: auto; text-decoration: none; color: #151515; }
.brand-mark { display: block; width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.brand-logo { font-family: var(--display); font-size: 0.95rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-social { display: flex; align-items: center; gap: 6px; margin: 0 6px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-account { display: contents; }
.menu-only { display: none; }

.site-header .btn-ghost { color: #151515; border-color: rgba(21, 21, 21, 0.34); background: rgba(255, 255, 255, 0.28); }
.site-header .btn-ghost:hover { color: #151515; background: rgba(21, 21, 21, 0.14); }
/* the page you are on */
.site-header .btn-ghost[aria-current="page"] {
  background: rgba(21, 21, 21, 0.16);
  border-color: rgba(21, 21, 21, 0.5);
  box-shadow: inset 0 0 0 2px rgba(92, 93, 165, 0.48), 0 8px 18px rgba(0, 0, 0, 0.24);
}
.site-header .btn-solid { background: #151515; border-color: #151515; color: var(--lav); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }
.site-header .btn-solid:hover { background: #2a2a2a; }
.site-header .btn-dark { background: #151515; color: var(--lav); border-color: var(--lav); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }
.site-header .btn-dark:hover { background: #2b2140; border-color: var(--brand-bright); color: #fff; }

.nav-icon, .nav-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.34);
  background: rgba(255, 255, 255, 0.28);
  color: #151515;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-icon:hover { background: rgba(21, 21, 21, 0.14); transform: translateY(-2px); }
.nav-icon svg, .nav-toggle svg { display: block; }
.nav-toggle { display: none; }
.nav-toggle:hover { background: rgba(21, 21, 21, 0.14); }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* signed-in avatar and its menu */
.nav-profile-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-profile-trigger {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--silver);
  background: var(--silver);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
.nav-profile-trigger img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
.nav-profile-trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 10px 24px rgba(92, 93, 165, 0.35); }
.nav-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 210px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(193, 193, 219, 0.32);
  background: linear-gradient(168deg, #33264f, #171419);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  color: #ece5ff;
}
.nav-profile-meta { font-size: 0.78rem; color: #d0c3f2; padding: 4px 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.nav-profile-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(193, 193, 219, 0.32);
  background: linear-gradient(168deg, rgba(127, 91, 188, 0.24), rgba(21, 21, 21, 0.95));
  color: #ece5ff;
  font: 700 0.9rem/1.3 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.nav-profile-item:hover { border-color: rgba(193, 193, 219, 0.6); background: linear-gradient(168deg, rgba(127, 91, 188, 0.4), rgba(21, 21, 21, 0.95)); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 48px; overflow: hidden; }
.hero-bg-shape { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.hero-bg-shape-a { width: 560px; height: 560px; right: -220px; top: -120px; background: radial-gradient(circle at center, rgba(185, 142, 255, 0.45), rgba(185, 142, 255, 0)); }
.hero-bg-shape-b { width: 460px; height: 460px; left: -180px; top: 180px; background: radial-gradient(circle at center, rgba(185, 142, 255, 0.24), rgba(185, 142, 255, 0)); }
.hero-grid { position: relative; display: grid; gap: 30px; grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { margin: -8px 0 24px; font-size: 0.92rem; color: var(--soft); }
.hero-note a { color: var(--brand-glow); font-weight: 700; text-underline-offset: 3px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-stats li { display: flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--lav); }
.hero-stats span { font-family: var(--display); font-size: 1.02rem; white-space: nowrap; }
.hero-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }

/* jump links for a long page (the mentorship page), under its hero */
.page-nav { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.page-nav-label { margin-right: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.page-nav a { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(185, 142, 255, 0.45); font-size: 0.84rem; font-weight: 700; text-decoration: none; color: var(--lav); transition: background-color 0.2s ease; }
.page-nav a:hover { background: rgba(185, 142, 255, 0.2); }

/* ---------- cards ---------- */
.hero-card, .card, .result-card, .proof-card, .cta-box, .tier-card, .client {
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--lav);
}
.hero-card, .card, .result-card, .cta-box { border-radius: var(--radius); }
.hero-card { padding: 24px; }
.card { padding: 20px; }
.card > :last-child, .hero-card > :last-child { margin-bottom: 0; }
.card p { color: var(--soft); }
.hero-card ul, .card ul { margin: 0; padding-left: 18px; }
.hero-card li, .card li { margin: 0 0 8px; }
.hero-card li:last-child, .card li:last-child { margin-bottom: 0; }
.card li { color: var(--soft); }
.card li b, .card p b { color: var(--lav); }

.proof-strip { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.proof-card { border-radius: 14px; padding: 14px 16px; }
.proof-card span { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--lav); }
.proof-card p { margin: 6px 0 0; font-size: 0.9rem; color: var(--soft); }
.hero-proof .proof-card span { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.1; }

/* ---------- sections ---------- */
.section { padding: 62px 0; }
.section-alt { background: linear-gradient(180deg, rgba(185, 142, 255, 0.14), rgba(21, 21, 21, 0.18)); border-block: 1px solid var(--line-soft); }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 10px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; align-items: center; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--lav); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- our clients ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.client {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.client:hover { transform: translateY(-2px); border-color: rgba(185, 142, 255, 0.85); }
.client img, .client-plus {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(185, 142, 255, 0.55);
  background: #221b31;
}
.client h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.02em; }
.client p { margin: 4px 0 0; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.client-cta { border-style: dashed; box-shadow: none; background: rgba(185, 142, 255, 0.06); }
.client-cta p { color: var(--brand-glow); }
.client-plus { display: grid; place-items: center; font: 800 1.6rem/1 var(--body); color: var(--brand-bright); }

/* ---------- campaign steps and the campaign example ---------- */
.step-num { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--brand-bright); margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.campaign { padding: 0; overflow: hidden; }
.campaign-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.campaign-head img { width: 52px; height: 52px; flex: none; border-radius: 14px; object-fit: cover; border: 1px solid rgba(185, 142, 255, 0.55); }
.campaign-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1rem; text-transform: uppercase; }
.campaign-head p { margin: 3px 0 0; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.campaign-tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 142, 255, 0.5);
  background: rgba(185, 142, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rows { margin: 0; padding: 4px 20px 8px; }
.rows > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.rows dd { margin: 0; text-align: right; font-weight: 700; color: var(--lav); }
.rows dd small { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 500; color: var(--muted); }

/* ---------- call to action box ---------- */
.cta-box { padding: 34px; text-align: center; }
.cta-box h2 { margin-left: auto; margin-right: auto; }
.cta-box p { max-width: 66ch; margin: 0 auto 18px; color: var(--soft); }
.cta-box .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; color: var(--brand-glow); text-decoration: none; }
.contact-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mentors, features ---------- */
.mentor-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.mentor-top h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; }
.mentor-top a { font-size: 0.86rem; font-weight: 700; color: var(--brand-glow); text-underline-offset: 3px; }
.mentor-role { margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted) !important; }
.feature p { margin-bottom: 10px; }

/* ---------- pricing tiers ---------- */
.tier-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-card { position: relative; padding: 22px; border-radius: 18px; display: grid; gap: 12px; align-content: start; }
.tier-card.highlight { border-color: rgba(202, 165, 255, 0.8); }
/* /join?plan=... arrives with one tier already chosen on the mentorship page */
.tier-card.is-picked { border-color: var(--brand-glow); box-shadow: 0 0 0 2px rgba(202, 165, 255, 0.75), 0 18px 36px rgba(0, 0, 0, 0.5); }
.tier-badge {
  justify-self: center;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 142, 255, 0.5);
  background: rgba(185, 142, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-price { margin: 0; text-align: center; font-size: clamp(1.7rem, 3.8vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.tier-price span { margin-left: 4px; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.tier-desc { margin: 0; text-align: center; font-size: 0.95rem; color: var(--soft); }
.tier-list { margin: 0 auto; padding-left: 18px; display: grid; gap: 6px; width: 100%; max-width: 640px; font-size: 0.92rem; }
.tier-list a, .faq-item a, .prose a, .tier-note a { color: var(--brand-glow); font-weight: 700; text-underline-offset: 2px; }
.tier-cta { display: flex; margin-top: 4px; }
.tier-cta .btn { flex: 1; min-width: 0; }
.tier-note { margin: 16px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ---------- member results ---------- */
.results-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-card { padding: 18px; }
.result-card h3 { margin-bottom: 6px; text-transform: uppercase; }
.result-card p { margin: 0 0 6px; color: var(--lav); }
.result-card .meta { font-size: 0.87rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
blockquote { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid rgba(185, 142, 255, 0.5); font-style: italic; color: var(--lav); }

/* The results slide across. Without the script (or with reduced motion) they
   stay a plain sideways scroller. */
.marquee { overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; scrollbar-color: rgba(185, 142, 255, 0.4) transparent; }
.marquee + .marquee { margin-top: 6px; }
.marquee-track { display: flex; width: max-content; padding-left: 16px; }
.marquee .result-card { flex: none; width: 340px; margin-right: 14px; white-space: normal; }
.marquee.is-live {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee.is-live .marquee-track { padding-left: 0; animation: slide 60s linear infinite; }
.marquee.reverse.is-live .marquee-track { animation-direction: reverse; }
.marquee.is-live:hover .marquee-track, .marquee.is-live:focus-within .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 16px 20px; }
.faq-item h3 { margin-bottom: 6px; }
.faq-item p { margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 28px;
  background: linear-gradient(180deg, rgba(33, 25, 47, 0.9), rgba(21, 21, 21, 0.96));
  border-top: 1px solid rgba(185, 142, 255, 0.28);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--lav); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.footer-legal { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--lav); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--brand-bright); }
.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { display: block; flex: none; }
.footer-copy { width: 100%; margin: 0; padding-top: 16px; border-top: 1px solid rgba(185, 142, 255, 0.16); color: var(--muted); font-size: 0.9rem; }

/* ---------- join ---------- */
.join-shell { display: grid; gap: 18px; }
.join-hero-card { display: grid; gap: 12px 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; padding: 20px 22px; }
.join-hero-card h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.16; max-width: 24ch; }
.join-hero-card .subhead { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--soft); }
ul.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.join-points li { margin: 0; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(21, 21, 21, 0.52); font-weight: 600; font-size: 0.92rem; color: var(--soft); }
.join-points span { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 0.95rem; color: var(--lav); }
.join-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(21, 21, 21, 0.6);
  font-size: 0.92rem;
  color: var(--soft);
}
.join-status:empty { display: none; }
.join-status.success { border-color: rgba(109, 210, 138, 0.55); background: rgba(20, 49, 34, 0.42); color: #d8ffec; }
.join-status.error { border-color: rgba(255, 111, 122, 0.55); background: rgba(61, 20, 20, 0.45); color: #ffd9d9; }

/* ---------- member dashboard ---------- */
.page { padding: 44px 0 20px; }
.page h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: none; margin-bottom: 20px; }
.stack { display: grid; gap: 16px; }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who img { width: 48px; height: 48px; flex: none; border-radius: 999px; border: 2px solid var(--silver); background: var(--silver); object-fit: cover; }
.who b { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.who span { display: block; font-size: 0.9rem; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 193, 219, 0.4);
  background: rgba(193, 193, 219, 0.12);
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-ok { color: #c9f5d6; border-color: rgba(109, 210, 138, 0.55); background: rgba(109, 210, 138, 0.14); }
.badge-warn { color: #fbe6ae; border-color: rgba(243, 201, 105, 0.55); background: rgba(243, 201, 105, 0.14); }
.badge-bad { color: #ffc9ce; border-color: rgba(255, 111, 122, 0.55); background: rgba(255, 111, 122, 0.14); }
.due { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.due .eyebrow { margin-bottom: 6px; color: var(--muted); }
.due-date { margin: 0 0 8px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.7rem, 5.4vw, 2.7rem); line-height: 1.1; color: var(--lav) !important; }
.due-sub { margin: 0; color: var(--soft); }
.due-sub b { color: var(--lav); }
.due-sub.late b { color: var(--danger); }
.due-sub.soon b { color: var(--warn); }
.due-extra { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--muted); }
.due-extra b { color: var(--lav); }
.renew h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: 6px; }
.option-list { display: grid; gap: 10px; margin-top: 14px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(21, 21, 21, 0.5); }
.option-info { flex: 1; min-width: 0; }
.option-info b { display: block; font-size: 1rem; color: var(--lav); }
.option-info span { display: block; font-size: 0.88rem; color: var(--muted); }
.option-price { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; color: var(--lav); }
.option-price small { font: 600 0.8rem var(--body); color: var(--muted); }
.notice { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(21, 21, 21, 0.5); }
.notice b { display: block; margin-bottom: 4px; color: var(--lav); }
.notice p { margin: 0 0 12px; }
.notice > :last-child { margin-bottom: 0; }
.invoice { margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px solid rgba(243, 201, 105, 0.5); background: rgba(243, 201, 105, 0.06); }
.invoice-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.invoice dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.invoice dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.invoice dd { margin: 3px 0 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lav); }
.invoice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.msg { min-height: 1.4em; margin: 14px 0 0; font-size: 0.92rem; color: var(--soft); }
.msg:empty { display: none; }
.msg.ok { color: #c9f5d6; }
.msg.err { color: #ffc9ce; }
.page-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 0.9rem; }
.page-foot a, .page-foot button { color: var(--brand-glow); font-weight: 700; text-underline-offset: 3px; }
.page-foot button { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; }
.skeleton { color: transparent !important; border-radius: 8px; background: rgba(185, 142, 255, 0.16); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* full-screen note while the browser is sent to the checkout */
.redirecting {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 21, 21, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.redirecting .card { width: min(420px, 100%); text-align: center; padding: 28px 24px; }
.redirecting h2 { font-size: 1.3rem; margin: 14px 0 8px; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border-radius: 999px; border: 3px solid rgba(185, 142, 255, 0.3); border-top-color: var(--brand-bright); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal pages ---------- */
.prose { padding: 26px 28px; }
.prose p { margin: 0 0 14px; line-height: 1.65; color: var(--soft); }
.prose strong { color: var(--lav); }
.updated { margin: -10px 0 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- payment received ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-processing { color: #fbe6ae; border-color: rgba(243, 201, 105, 0.55); background: rgba(243, 201, 105, 0.14); }
.status-success { color: #c9f5d6; border-color: rgba(109, 210, 138, 0.55); background: rgba(109, 210, 138, 0.14); }
.status-failed { color: #ffc9ce; border-color: rgba(255, 111, 122, 0.55); background: rgba(255, 111, 122, 0.14); }
.receipt-title { margin: 0; font-size: clamp(1.3rem, 2.8vw, 1.7rem); max-width: none; }
.receipt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.receipt dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.receipt dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; color: var(--lav); }
.receipt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.receipt-foot p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- smaller screens ---------- */
/* A little tighter before the header has to fold. */
@media (max-width: 1100px) {
  .site-header .btn { padding: 11px 14px; }
  .nav { gap: 8px; }
  .nav-links, .nav-actions { gap: 8px; }
}

/* Small screens: the bar keeps the brand, the member's avatar, JOIN DISCORD and a
   menu button. The links, Member Login and the social icons fold into the menu,
   which opens inside the bar. Without the script the menu simply stays open. */
@media (max-width: 1020px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: grid; }
  #nav-login-btn { display: none; }
  .menu-only { display: inline-flex; }
  .nav-menu { display: grid; gap: 12px; order: 3; flex: 0 0 100%; padding: 6px 0 4px; }
  html.js .site-header:not(.menu-open) .nav-menu { display: none; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { position: static; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-links .btn { width: 100%; padding: 12px 18px; }
  .nav-social { justify-content: center; gap: 10px; margin: 0; }
}

@media (max-width: 980px) {
  .section { padding: 44px 0; }
  .grid-3, .grid-4, .results-grid, .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split, .join-hero-card { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .nav { padding: 10px 0; gap: 8px; }
  .nav-actions { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-logo { font-size: 0.85rem; letter-spacing: 0.1em; }
  .nav-actions .btn { padding: 9px 13px; font-size: 0.84rem; }
  .nav-profile-trigger, .nav-toggle { width: 38px; height: 38px; }
  .hero { padding: 44px 0 34px; }
  .hero-bg-shape-a { width: 380px; height: 380px; right: -200px; }
  .hero-bg-shape-b { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .grid-2, .grid-3, .grid-4, .results-grid, .tier-grid, ul.join-points { grid-template-columns: 1fr; }
  .client { flex-basis: 100%; }
  .cta-box { padding: 26px 18px; }
  .marquee .result-card { width: 290px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .option { flex-wrap: wrap; }
  .option .btn { width: 100%; }
  .invoice dl, .receipt { grid-template-columns: 1fr; }
  .invoice-actions .btn, .receipt-foot .btn { width: 100%; }
  .prose { padding: 20px 18px; }
  .rows { padding: 2px 16px 6px; }
  .campaign-head { padding: 16px; flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .brand-logo { display: none; }
  .proof-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .client { transition: none; }
  .btn:hover, .client:hover { transform: none; }
  .skeleton, .spinner { animation: none; }
}
