/* The ambassador portal, in the website's colours and its font, Poppins, served by this server from fonts/ (nothing is
   loaded from anywhere else). A night-sky band across the top holds the brand and the greeting, the code sits on a dark
   membership card, and everything else is on light cards, so the page reads as the website does: light, with dark navy
   bands at the top and the bottom. */

/* Only the weights the page uses. swap: the text shows at once in the fallback font and changes when Poppins arrives. */
@font-face { font-family: "Poppins"; src: url(fonts/Poppins-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/Poppins-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/Poppins-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(fonts/Poppins-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* The website's palette (apps/web/webflow/shared.css and native.css); no colour here that the site doesn't use. */
:root {
  --font: "Poppins", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --navy: #1B1446;
  --night: #120E2B;
  --deep: #0E0B1F;
  --purple: #6B4EE6;
  --purple-deep: #4A33B8;
  --indigo: #2B1F7A;
  --violet: #8A72F0;
  --lavender: #A994FF;
  --sky: #7CC4F5;
  --sky-pale: #BFE3FB;
  --page: #F7F5FC;
  --card: #FFFFFF;
  --line: #ECE8F6;
  --line-2: #E6E1FA;
  --ink: #1E1B2E;
  --ink-soft: #5B5670;
  --on-night: #CFC8EE;
  /* The site's hero accent. Its blue end is about 3.8:1 on white, so it is only ever used on large bold numbers. */
  --accent: linear-gradient(100deg, #3B28A8 0%, #6B4EE6 45%, #2F86DA 100%);
  --hairline: linear-gradient(90deg, #7CC4F5, #A994FF);
  /* The site's starfield (.fs-stars). */
  --stars:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #cfe8ff, transparent),
    radial-gradient(1px 1px at 230px 190px, #fff, transparent),
    radial-gradient(1px 1px at 300px 90px, #fff, transparent),
    radial-gradient(2px 2px at 370px 220px, #e9e4fb, transparent);
  /* How far the night band runs past its last line of text, under the first card. */
  --band-tail: 150px;
  /* The band's height where the browser can't tie it to that line (no anchor positioning): enough for the usual text. */
  --band-height: 400px;
}

* { box-sizing: border-box; }
/* The hidden attribute always wins: the flex rules on buttons and elsewhere would otherwise show hidden elements. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; z-index: 10; left: -9999px; top: 8px; background: #fff; color: var(--navy); font-weight: 600; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The night band ----------
   One decorative element behind the header and the greeting. Where the browser has anchor positioning, its bottom is
   tied to the last line in the band (the greeting, or the sign-in line, class band-end) plus --band-tail, so the band
   always covers that text, however long the name or the status line. Elsewhere it is --band-height tall. The cards
   that follow are painted over it, which makes the overlap. */
.sky {
  position: absolute;
  z-index: 0;
  top: 0; left: 0; right: 0;
  height: var(--band-height);
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(520px 300px at 82% 100%, rgba(124, 196, 245, 0.30), rgba(124, 196, 245, 0) 70%),
    radial-gradient(760px 420px at 14% 100%, rgba(107, 78, 230, 0.42), rgba(107, 78, 230, 0) 70%),
    linear-gradient(180deg, #0E0B1F 0%, #120E2B 40%, #1B1446 75%, #241A5E 100%);
}
/* The sign-in line needs less tail: its card is lower. */
body:has(#dashboard[hidden]) { --band-tail: 96px; }
@supports (anchor-name: --band-end) {
  .band-end { anchor-name: --band-end; }
  .sky { height: auto; min-height: 240px; bottom: calc(anchor(--band-end bottom) - var(--band-tail)); }
}
/* A thin sky-to-lavender line where the night ends. */
.sky::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 196, 245, 0) 0%, rgba(124, 196, 245, 0.7) 30%, rgba(169, 148, 255, 0.7) 70%, rgba(169, 148, 255, 0) 100%);
}
.sky-stars, .sky-stars::after { position: absolute; inset: 0; background-image: var(--stars); background-size: 400px 260px; }
.sky-stars { opacity: 0.6; }
.sky-stars::after { content: ""; background-size: 520px 340px; background-position: 130px 70px; animation: fs-twinkle 6s ease-in-out infinite; }
@keyframes fs-twinkle { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.sky-glow { position: absolute; border-radius: 50%; filter: blur(30px); }
.sky-glow-a { width: 420px; height: 220px; left: -120px; top: 40px; background: radial-gradient(closest-side, rgba(124, 196, 245, 0.28), transparent); }
.sky-glow-b { width: 520px; height: 260px; right: -160px; top: -60px; background: radial-gradient(closest-side, rgba(169, 148, 255, 0.30), transparent); }

/* ---------- Header ---------- */
.top { position: relative; z-index: 1; color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }
/* The wordmark (the founder, 2026-10-29): "Free and Sober" with a small trademark sign, and under it "AMBASSADOR PORTAL"
   in small spaced capitals. Left in the dashboard's top bar; centred and larger on the sign-in screens (below). */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}
.brand .word { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.brand sup { margin-left: 2px; font-size: 10px; font-weight: 500; line-height: 0; vertical-align: super; color: var(--sky-pale); }
.brand .tag { font-size: 11px; font-weight: 500; letter-spacing: 0.32em; white-space: nowrap; text-transform: uppercase; color: var(--sky-pale); }
body:has(#sign-in:not([hidden])) .top-row { justify-content: center; min-height: 120px; }
body:has(#sign-in:not([hidden])) .brand { align-items: center; text-align: center; }
body:has(#sign-in:not([hidden])) .brand .word { font-size: 30px; }
/* The spacing after the last letter would push the line off centre: the same space before it evens it out. */
body:has(#sign-in:not([hidden])) .brand .tag { font-size: 12px; letter-spacing: 0.4em; padding-left: 0.4em; }

main { position: relative; z-index: 1; flex: 1 0 auto; padding-top: 28px; padding-bottom: 48px; outline: none; }
h1 { margin: 8px 0 16px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: #fff; outline: none; overflow-wrap: anywhere; }
h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
p { margin: 0 0 14px; }
a { color: var(--purple-deep); font-weight: 500; text-underline-offset: 3px; }

.status { min-height: 1.7em; margin: 0 0 8px; font-weight: 500; color: var(--sky-pale); }
.status:empty { min-height: 0; margin: 0; }

/* ---------- Sign in ---------- */
#sign-in { max-width: 560px; margin: 0 auto; text-align: center; }
#sign-in h1 { margin-top: 32px; font-size: 40px; }
.lede { margin: 0 auto; max-width: 30em; color: var(--on-night); font-size: 18px; line-height: 1.65; }
#sign-in .card { margin-top: 56px; text-align: left; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  margin: 0 0 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(30, 27, 46, 0.04), 0 24px 60px -28px rgba(43, 31, 122, 0.18);
}
.card-lift { box-shadow: 0 1px 2px rgba(30, 27, 46, 0.05), 0 40px 90px -20px rgba(43, 31, 122, 0.30), 0 0 0 6px rgba(169, 148, 255, 0.14); }
/* A short sky-to-lavender bar over each card's heading. */
.card > h2::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin: 0 0 16px;
  border-radius: 3px;
  background: var(--hairline);
}

/* ---------- The membership card (Share) ---------- */
#hello { margin: 16px 0 28px; font-size: 40px; }
.member {
  overflow: hidden;
  isolation: isolate;
  padding: 36px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 30px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(124, 196, 245, 0.22), rgba(124, 196, 245, 0) 70%) padding-box,
    radial-gradient(460px 320px at 0% 100%, rgba(107, 78, 230, 0.38), rgba(107, 78, 230, 0) 70%) padding-box,
    linear-gradient(160deg, #1B1446 0%, #120E2B 60%, #0E0B1F 100%) padding-box,
    linear-gradient(135deg, #7CC4F5 0%, rgba(169, 148, 255, 0.85) 30%, rgba(169, 148, 255, 0.12) 60%, rgba(124, 196, 245, 0.7) 100%) border-box;
  box-shadow: 0 0 0 6px rgba(124, 196, 245, 0.06), 0 30px 80px -12px rgba(124, 196, 245, 0.32), 0 50px 110px -20px rgba(14, 11, 31, 0.55);
}
.member-stars { position: absolute; inset: 0; z-index: -1; background-image: var(--stars); background-size: 400px 260px; opacity: 0.45; pointer-events: none; }
/* The website's vault ring, as a mark in the corner: a full ring, sky to lavender, with a soft glow inside. */
.member-ring, .feature::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: conic-gradient(from -90deg, #7CC4F5, #A994FF, #7CC4F5);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  pointer-events: none;
}
.member-ring { top: 30px; right: 30px; width: 76px; height: 76px; }
.member::after, .feature::after {
  content: "";
  position: absolute; z-index: -1;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(124, 196, 245, 0.35), rgba(124, 196, 245, 0));
  filter: blur(6px);
  pointer-events: none;
}
.member::after { top: 30px; right: 30px; width: 76px; height: 76px; }
.member h2 { margin: 0 0 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lavender); }
.member h2::before { display: none; }
.member .label { margin: 0 0 2px; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--on-night); }
.member .code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 28px;
  font-size: clamp(34px, 10.5vw, 64px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums lining-nums;
  color: #fff;
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 35%, #BFE3FB 65%, #A994FF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(124, 196, 245, 0.35));
  overflow-wrap: anywhere;
}
.member .small { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-night); }
.member button { color: var(--navy); background: #fff; background-image: none; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.6); }
.member button:hover { background: #E9E4FB; }

/* ---------- Say you're paid, every time (the founder, 2026-11-04) ----------
   The agreement's Required Disclosure (docs/legal-review/ambassador-agreement.md, section 5.2), each statement word for
   word in a light box with its own Copy, between hairlines as the announcements are. */
.say-list { list-style: none; margin: 4px 0 18px; padding: 0; }
.say-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.say-list li:first-child { border-top: 0; padding-top: 4px; }
.say-list .label { margin: 0 0 8px; }
.say-words { margin: 0 0 12px; font-weight: 500; overflow-wrap: anywhere; }
.say-list button { margin: 0; }

/* ---------- Why it matters, and the paused note ----------
   The founder, 2026-10-29 (R7): its first line large, in the hero accent. */
.why {
  background:
    linear-gradient(160deg, #FFFFFF 0%, #F6F3FE 100%) padding-box,
    linear-gradient(135deg, #BFE3FB, #E6E1FA 40%, #E6E1FA 70%, #A994FF) border-box;
  border: 1px solid transparent;
}
/* Large and bold, so the accent's blue end (about 3.8:1 on white) is only ever on large text. */
.why-line {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--purple-deep);
  background: var(--accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-more { margin: 0; color: var(--ink); }
/* A light box, so it reads the same over the night band or below it. */
.note { padding: 16px 20px; border-radius: 20px; background: #F1EEFC; border: 1px solid var(--line-2); color: var(--indigo); }
#paused { margin: 0 0 20px; }

/* ---------- Announcements (the founder, 2026-10-30) ----------
   The team's news, newest first: each a quiet block between hairlines, its title in navy, a "New" pill until seen, the
   message as it was typed. The email switch below them is a plain checkbox, not the page's tall fields. */
.news-list { list-style: none; margin: 4px 0 18px; padding: 0; }
.news-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; padding-top: 4px; }
.news-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.news-head h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.news-new { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); }
.news-when { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.news-body { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.news-list li.is-new .news-body { color: var(--ink); }
label.news-email { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
label.news-email input { display: inline-block; flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--purple); box-shadow: none; }
.news-note { margin: 0; font-size: 14px; }
.off-page { margin-top: 40px; }

/* ---------- Numbers ---------- */
.label { margin: 12px 0 4px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.small { font-size: 16px; color: var(--ink-soft); }
.stats { display: grid; gap: 0; margin: 8px 0 20px; }
.stats dt { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.stats dd {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  color: var(--purple-deep);
  background: var(--accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Phones: each figure is a row, its label on the left and the number on the right, between hairlines. */
.stats > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.stats > div:first-child { border-top: 0; padding-top: 4px; }
.stats-money dd { font-size: 24px; }
/* Ready for a payout: a dark tile, like the website's featured plan card, with the vault ring beside the figure. */
.stats-money .feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  /* On phones the next row sits close below: a shorter, lighter shadow and room under it, so its figure keeps its contrast. */
  margin: 10px 0 18px;
  padding: 20px 96px 20px 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, #4A33B8 0%, rgba(74, 51, 184, 0) 70%) padding-box,
    linear-gradient(160deg, #1B1446, #120E2B) padding-box,
    linear-gradient(135deg, #7CC4F5, #A994FF) border-box;
  box-shadow: 0 16px 30px -18px rgba(43, 31, 122, 0.35);
}
.stats-money .feature + div { border-top: 0; }
.feature::before, .feature::after { top: 50%; right: 22px; width: 60px; height: 60px; margin-top: -30px; }
.stats-money .feature dt { color: var(--on-night); }
.stats-money .feature dd {
  font-size: 32px;
  color: #fff;
  background: linear-gradient(100deg, #FFFFFF 0%, #BFE3FB 100%);
  -webkit-background-clip: text;
          background-clip: text;
}

.activity-state {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 18px 6px 14px;
  border-radius: 18px;
  background: rgba(124, 196, 245, 0.16);
  border: 1px solid rgba(124, 196, 245, 0.45);
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
}
.activity-state::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #2F86DA;
  box-shadow: 0 0 0 4px rgba(124, 196, 245, 0.35);
  transform: translateY(-1px);
}
.activity-state:empty { display: none; }

/* ---------- Your tier: the trophy case (the founder, 2026-10-29, R2 and R10) ---------- */
.tier-now { margin: 4px 0 22px; padding: 20px 22px; border-radius: 22px; color: #fff; background: radial-gradient(ellipse at 100% 0%, rgba(124, 196, 245, 0.18), rgba(124, 196, 245, 0) 60%), linear-gradient(160deg, #1B1446, #120E2B); }
.tier-name {
  width: fit-content;
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #FFFFFF, #BFE3FB 55%, #A994FF);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bar { height: 8px; margin: 0 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
/* Its width is set by the script, as a share of the way to the next tier. */
.bar span { display: block; width: 2%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7CC4F5, #A994FF); }
.tier-line { margin: 0; color: var(--on-night); }
.trophies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin: 0; padding: 0; list-style: none; }
.trophy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--page);
}
.trophy p { margin: 0; }
.trophy.current {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #FFFFFF, #F6F3FE) padding-box,
    linear-gradient(135deg, #7CC4F5, #A994FF 45%, #6B4EE6) border-box;
  box-shadow: 0 18px 40px -18px rgba(74, 51, 184, 0.45);
}
/* Over the card's top edge, so every crest in the row stays level. */
.trophy-now { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--purple-deep); }
.crest { position: relative; display: block; width: 96px; height: 96px; margin: 0 0 10px; }
.crest img { display: block; width: 100%; height: 100%; }
.earned .crest img { filter: drop-shadow(0 10px 14px rgba(43, 31, 122, 0.22)); }
.locked .crest img { filter: grayscale(1); opacity: 0.4; }
/* A small padlock, drawn here: a navy disc, a shackle and a body. */
.lock { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 999px; background: var(--navy); box-shadow: 0 0 0 3px var(--page); }
.lock::before { content: ""; position: absolute; left: 10px; top: 6px; width: 10px; height: 9px; border: 2px solid var(--sky-pale); border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.lock::after { content: ""; position: absolute; left: 8px; top: 14px; width: 14px; height: 10px; border-radius: 3px; background: var(--sky-pale); }
.trophy-name { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.trophy-at { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.trophy-reward { margin-top: 6px !important; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--indigo); }
.trophy-reward.soon { font-weight: 400; color: var(--ink-soft); }

/* ---------- Top ambassadors (the founder, 2026-10-29, R5) ---------- */
.board-list { margin: 8px 0 0; padding: 0; list-style: none; }
.board-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; }
.rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--page); color: var(--indigo); }
.board-list li:first-child .rank { background: linear-gradient(135deg, #7CC4F5, #A994FF); color: var(--night); }
.who { font-size: 18px; font-weight: 600; letter-spacing: 0.06em; color: var(--navy); }
/* The tier chips, as approved: value rises from a tint, to an outline, to a platinum frame. */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 4px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--indigo); background: #E9E4FB; }
.pill img { display: block; width: 20px; height: 20px; }
.pill-rising { background: rgba(191, 227, 251, 0.45); }
.pill-elite { color: #241A5E; background: rgba(169, 148, 255, 0.22); border-color: #A994FF; }
.pill-founders-circle { color: var(--navy); background: linear-gradient(90deg, #E9E4FB, #FFFFFF 55%, #E6E1FA) padding-box, linear-gradient(120deg, #FFFFFF 0%, #A994FF 30%, #FFFFFF 50%, #BFE3FB 70%, #6B4EE6 100%) border-box; border-width: 1.5px; box-shadow: 0 2px 8px -2px rgba(74, 51, 184, 0.45); }
.n { justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--navy); }
.up { margin-left: 4px; font-size: 13px; color: #1F7A55; }
.you { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: #F1EEFC; color: var(--indigo); font-weight: 500; }

/* ---------- Choose your code (the founder, 2026-10-29, R8) ---------- */
#pick-code { max-width: 560px; margin: 0 auto; text-align: center; }
#pick-code h1 { margin-top: 32px; font-size: 40px; }
#pick-code .card { margin-top: 56px; text-align: left; }
#pick-input { font-size: 22px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pick-line { min-height: 1.7em; margin: -6px 0 14px; font-weight: 500; }
.pick-line.good { color: #1F7A55; }
.pick-line.bad { color: var(--indigo); }
#pick-submit { width: 100%; margin-right: 0; }

/* ---------- Forms and buttons ---------- */
label { display: block; margin: 0 0 8px; font-weight: 600; color: var(--navy); }
input {
  display: block; width: 100%; min-height: 56px; margin: 0 0 18px; padding: 12px 18px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff;
  border: 1px solid #CFC8E6;
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(30, 27, 46, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:hover { border-color: #A994FF; }
input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.15); }
/* The website's primary pill. The gradient's lightest point is #6B4EE6, about 5.4:1 under white text. */
button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; margin: 4px 10px 4px 0; padding: 10px 26px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3;
  color: #fff;
  background-color: var(--purple);
  background-image: linear-gradient(180deg, #6B4EE6 0%, #5A40DA 55%, #4A33B8 100%);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 27, 46, 0.2), 0 12px 28px rgba(107, 78, 230, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
button:hover { background-image: linear-gradient(180deg, #5E44DD 0%, #4A33B8 100%); }
button:active { transform: translateY(1px); }
#sign-in button[type="submit"] { width: 100%; margin-right: 0; }
button.quiet { color: var(--indigo); background: #fff; background-image: none; border: 1px solid #D9D2F3; box-shadow: none; }
button.quiet:hover { background: #F1EEFC; }
#sign-in button.quiet { width: 100%; margin-right: 0; }
#choose-hint, #reset-hint { margin: -8px 0 18px; }
#sign-out {
  flex: none; white-space: nowrap; margin: 0; min-height: 44px; padding: 8px 20px;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#sign-out:hover { background: rgba(255, 255, 255, 0.16); }
/* Purple on the light cards; the pale sky on anything dark. */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.top :focus-visible, .member :focus-visible, .foot :focus-visible, .skip:focus-visible { outline-color: var(--sky-pale); }
input:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---------- Payouts ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { position: relative; padding: 12px 0 12px 42px; border-top: 1px solid var(--line); color: var(--ink); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 999px; }
.checklist .done::before { background: linear-gradient(135deg, #8A72F0, #4A33B8); box-shadow: 0 6px 14px rgba(107, 78, 230, 0.25); }
.checklist .done::after {
  content: "";
  position: absolute; left: 9px; top: 18px;
  width: 8px; height: 13px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
/* Still needed: an open dashed ring in the purple (5.4:1 on white), and the words in indigo. */
.checklist .todo::before { border: 2px dashed var(--purple); background: #F1EEFC; }
.checklist .todo { color: var(--indigo); font-weight: 600; }
#payout-setup { margin: 0 0 16px; }
#payouts-empty { margin-top: 8px; }
.scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 20px; }
/* At the narrowest phones the table scrolls in its box: reachable by keyboard (tabindex on the box), and shown when focused. */
.scroll:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--page); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
/* The month and the amount stay on one line; only the status wraps. */
tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
tbody td:nth-child(2) { font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody td:last-child { color: var(--ink-soft); }

/* ---------- Footer: a navy band, as the website ends ----------
   The border image paints the band out to both edges of the window without widening the page (what it paints outside
   the footer's box is not part of the layout, so it never scrolls sideways). */
.foot {
  position: relative;
  z-index: 1;
  padding-top: 36px;
  padding-bottom: 40px;
  color: var(--on-night);
  text-align: center;
  border-image: linear-gradient(180deg, #1B1446 0%, #120E2B 55%, #0E0B1F 100%) fill 0 / / 0 100vw;
}
.foot p { max-width: 36em; margin: 0 auto; }
.foot a { color: var(--sky-pale); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --band-tail: 170px; --band-height: 440px; }
  main { padding-top: 40px; }
  h1, #hello { font-size: 52px; }
  #sign-in h1 { font-size: 52px; margin-top: 48px; }
  #hello { margin: 24px 0 36px; }
  .member { padding: 44px; }
  .member-ring, .member::after { top: 40px; right: 40px; width: 92px; height: 92px; }
  .stats-counts { grid-template-columns: repeat(3, 1fr); }
  .stats-counts > div { display: block; padding: 4px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .stats-counts > div:first-child { border-left: 0; padding-left: 0; }
  .stats-counts dd { display: inline-block; margin-top: 6px; font-size: 56px; }
  .stats-money { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-money > div, .stats-money > div:first-child { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--page); }
  .stats-money dd { display: inline-block; margin-top: 6px; font-size: 36px; }
  .stats-money .feature { display: flex; margin: 0; padding-right: 110px; border-color: transparent; box-shadow: 0 24px 50px -16px rgba(43, 31, 122, 0.45); }
  .stats-money .feature dd { font-size: 40px; }
  .feature::before, .feature::after { right: 26px; width: 72px; height: 72px; margin-top: -36px; }
  #sign-in .card, #pick-code .card { padding: 40px; }
  #pick-code h1 { font-size: 52px; margin-top: 48px; }
  .trophies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why-line { font-size: 28px; }
}
@media (max-width: 420px) {
  /* The wordmark stays one lockup beside Sign out, "AMBASSADOR PORTAL" on one line (the founder, 2026-10-29), down to 320. */
  .brand .word { font-size: 18px; }
  .brand .tag { letter-spacing: 0.2em; }
  #sign-out { padding: 8px 14px; }
  .card { padding: 26px 20px; border-radius: 24px; }
  .member { padding: 28px 22px; border-radius: 26px; }
  .member-ring, .member::after { top: 24px; right: 20px; width: 58px; height: 58px; }
  .member .code { letter-spacing: 0.08em; }
  .member button, #payout-setup { width: 100%; margin-right: 0; }
  /* The payouts table runs to the card's edges, so the status has room. */
  .scroll { margin: 12px -20px 0; border-width: 1px 0; border-radius: 0; }
  th, td { padding: 12px 6px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  thead th { letter-spacing: 0.04em; }
  .crest { width: 84px; height: 84px; }
  /* The chip goes under the initials, so the row keeps to the card. */
  .board-list li { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 6px; }
  .board-list .pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .board-list .n { grid-column: 3; grid-row: 1; }
}

/* No twinkle and no glow for anyone who asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .member .code { filter: none; }
}

/* ---------- Your creatives (the founder, 2026-10-30) ----------
   The studio's art with the ambassador's code drawn on, in a grid of thumbnails, each with its own Download. */
.creatives {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(124, 196, 245, 0.16), rgba(124, 196, 245, 0) 70%) padding-box,
    linear-gradient(160deg, #FFFFFF 0%, #F6F3FE 100%) padding-box,
    linear-gradient(135deg, #BFE3FB, #E6E1FA 40%, #E6E1FA 70%, #A994FF) border-box;
  border: 1px solid transparent;
}
.creatives-line { margin: 0 0 8px; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.creatives > .small { margin: 0 0 18px; }
.creatives-state { min-height: 1.7em; margin: 6px 0 4px; font-weight: 500; color: var(--indigo); }
.creatives-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin: 8px 0 24px; padding: 0; list-style: none; }
.creative { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
/* Each design whole, in a square frame of the same size, so the grid's rows line up whatever its shape. */
.creative-art {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(169, 148, 255, 0.18), rgba(169, 148, 255, 0)) , #F1EEFC;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.creative-name { margin: 10px 0 2px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--navy); }
/* What the size is good for ("Stories, Reels and TikTok"), under its name. */
.creative-use { flex: 1 0 auto; margin: 0 0 8px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.creative-use:empty { display: none; }
.creative button { width: 100%; min-height: 44px; margin: 0; padding: 8px 14px; font-size: 15px; }
.creative button + button { margin-top: 8px; }
.creative button[hidden] { display: none; }
.creatives .label { margin: 8px 0 10px; }
.creatives-row { margin: 0 0 22px; }
/* Each design's print row, made by creatives.js: the same gap as buttons written in the page have. */
#creatives-print .creatives-row button { margin-right: 14px; }
#creatives-print .creative-name { margin-bottom: 8px; }
.creatives-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.creatives-files:last-child { margin-bottom: 0; }
.file {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  font-size: 14px; font-weight: 500; color: var(--indigo); text-decoration: none; overflow-wrap: anywhere;
  background: #fff; border: 1px solid #D9D2F3; border-radius: 999px;
}
.file:hover { background: #F1EEFC; }
@media (min-width: 640px) {
  .creatives-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .creatives-line { font-size: 26px; }
}
@media (max-width: 420px) {
  .creatives-row button, #creatives-all, #creatives-print .creatives-row button { width: 100%; margin-right: 0; }
}
/* Their own row, in the top 5 (R5: each ambassador sees their own place). */
.board-list li.is-you .who { color: var(--indigo); }

/* A community partner's own page (community-partners.ts). The ambassador page's styles come first in the same file, so this
   page has that page's look; these are its own few additions. */
#partner-name { margin: 0; font-size: 34px; }
.partner-head { display: flex; align-items: center; gap: 16px; margin: 16px 0 28px; }
.partner-head img { flex: none; width: 72px; height: 72px; object-fit: contain; padding: 6px; border-radius: 18px; background: #fff; }
.partner-head h1 { min-width: 0; }
#paused { margin: 0 0 20px; }
.member button[hidden] { display: none; }

/* What the status line says stays on screen wherever on the page the partner is working. */
.status:not(:empty) { position: sticky; top: 8px; z-index: 5; padding: 10px 18px; border-radius: 20px; color: #fff; background: var(--navy); box-shadow: 0 12px 28px rgba(14, 11, 31, 0.28); }

select, textarea {
  display: block; width: 100%; margin: 0 0 18px; padding: 12px 18px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff;
  border: 1px solid #CFC8E6;
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(30, 27, 46, 0.05);
}
select { min-height: 56px; }
select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.15); }
input[type="file"] { padding: 14px 18px; font-size: 15px; }
#setup-qr svg { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 0 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* What a form adds to, each between hairlines. */
.items { list-style: none; margin: 12px 0 20px; padding: 0; }
.items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; }
.items li > div:first-child { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.items p { margin: 0 0 2px; }
.items .item-title { font-weight: 600; color: var(--navy); }
.items .item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.items .item-actions button { min-height: 44px; margin: 0; padding: 8px 18px; }
form + form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* The agreement's two facts, words rather than figures. A version can be one long word (CommunityPartnerAgreementNovember2026v2),
   so it may break anywhere rather than push the page sideways on a phone (the audit, CP-207). */
.stats-plain dd { font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; color: var(--navy); background: none; -webkit-text-fill-color: currentColor; }

/* The four notices. */
.notice-list { margin: 0 0 14px; padding-left: 1.2em; }
.notice-list li { margin: 0 0 10px; }
.notice-list li:last-child { margin-bottom: 0; }
.say-list button { min-height: 44px; }

/* The six columns of a month don't fit a phone or a small tablet at large sums, nor the three of a payout the narrowest phone,
   so up to that width each month and each payout is a short list of its own, with no sideways scroll, even in its box. */
@media (max-width: 820px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .stack tr:first-child { border-top: 0; }
  .stack td, .stack td:first-child, .stack td:last-child { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; font-weight: 500; color: var(--ink); white-space: normal; }
  .stack td::before { content: attr(data-label); font-weight: 400; color: var(--ink-soft); }
  .stack td:first-child { margin-bottom: 4px; font-weight: 600; color: var(--navy); }
  .stack td:first-child::before { content: none; }
}
@media (min-width: 640px) {
  #partner-name { font-size: 44px; }
  .partner-head { margin: 24px 0 36px; }
  .partner-head img { width: 96px; height: 96px; }
  .stats-counts { grid-template-columns: repeat(2, 1fr); }
  .stats-plain { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .items .item-actions { width: 100%; }
  .items .item-actions button { flex: 1 1 auto; }
  form button[type="submit"], form .quiet { width: 100%; margin-right: 0; }
  .stats-plain > div { flex-wrap: wrap; gap: 2px 16px; }
  .stats-plain dd { text-align: left; }
}
