/* Boxdini pages of the PuffyWings Studio site: the landing page (/boxdini/) and the invite page (/boxdini/join/).
   Stand-alone: it does not use site.css. The privacy, terms and support pages keep the studio look from site.css.

   Palette comes from the Boxdini identity: warm indigo ground, cream text, packing-tape yellow for buttons and labels,
   violet for accents, kraft cardboard only for thin edges. Fonts are self-hosted (Bricolage Grotesque for display,
   Instrument Sans for text, both under the SIL Open Font License, see assets/fonts/boxdini/). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/boxdini/bricolage-grotesque-latin.woff") format("woff");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/boxdini/instrument-sans-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --indigo: #151834;
  --night: #0F1129;
  --surface: #1D2150;
  --line: rgba(255, 244, 220, .13);
  --cream: #FFF4DC;
  --text: rgba(255, 244, 220, .88);
  --muted: rgba(255, 244, 220, .74);

  --tape: #FFC21A;
  --tape-deep: #B88A00;
  --tape-light: #FFD95C;
  --violet: #7357F2;
  --violet-deep: #5439C9;
  --violet-light: #9A86FF;
  --kraft: #D8A56F;

  --radius-m: 22px;
  --radius-l: 30px;

  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--indigo);
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--indigo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; color: var(--cream); text-wrap: balance; }
h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
a:focus-visible, button:focus-visible { border-radius: 8px; }
.bx-btn:focus-visible, .bx-also-link:focus-visible, .bx-links a:focus-visible, .bx-brand:focus-visible { border-radius: 999px; }
.bx-brand:focus-visible { border-radius: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--tape); color: var(--indigo); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.bx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.bx-header.is-stuck {
  background: rgba(21, 24, 52, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.bx-nav { height: 100%; display: flex; align-items: center; gap: 20px; }
.bx-brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; border-radius: 10px; }
.bx-brand img { height: 52px; width: auto; }
.bx-links { display: flex; gap: 2px; }
.bx-links a {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; color: var(--cream); text-decoration: none;
  transition: background .2s ease;
}
.bx-links a:hover { background: rgba(255, 244, 220, .12); }
.bx-links a[aria-current="page"] { background: rgba(255, 244, 220, .16); }

/* ---------- Tape: labels, pill, buttons ---------- */
.bx-eyebrow {
  display: inline-block;
  padding: 8px 20px 8px 18px;
  background: var(--tape); color: var(--indigo);
  font-family: var(--font-display); font-weight: 800; font-size: .8rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  rotate: -1.5deg;
  clip-path: polygon(0 0, 100% 0, 98.4% 25%, 100% 50%, 98.4% 75%, 100% 100%, 0 100%, 1.6% 75%, 0 50%, 1.6% 25%);
}
.bx-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.bx-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tape-light) 0%, var(--tape) 46%);
  color: var(--indigo);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -.005em;
  box-shadow: 0 4px 0 var(--tape-deep), 0 14px 28px rgba(0, 0, 0, .32);
  cursor: default; user-select: none;
}
.bx-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); flex: none; }
.bx-soon-note { color: var(--muted); font-weight: 500; font-size: 1.02rem; }

.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--tape); color: var(--indigo);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--tape-deep), 0 10px 22px rgba(0, 0, 0, .3);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease;
}
.bx-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--tape-deep), 0 14px 26px rgba(0, 0, 0, .32); }
.bx-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tape-deep); }

/* "Lid off!" as a strip of packing tape: a label, never a button. */
.bx-tape-wrap { display: inline-block; rotate: -2deg; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .3)); }
.bx-tape {
  display: inline-block; padding: 14px 34px 14px 30px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 72%, rgba(0, 0, 0, .07)), var(--tape);
  color: var(--indigo);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1; letter-spacing: -.01em;
  clip-path: polygon(0 0, 100% 0, 98.2% 17%, 100% 34%, 98.2% 51%, 100% 68%, 98.2% 84%, 100% 100%, 0 100%, 1.8% 84%, 0 68%, 1.8% 51%, 0 34%, 1.8% 17%);
}

/* ---------- Hero ---------- */
.bx-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: calc(var(--header-h) + clamp(20px, 4.5vw, 52px)) 0 clamp(48px, 6vw, 80px);
  text-align: center;
  background: radial-gradient(62% 58% at 50% 36%, #2C3182 0%, #1C2058 46%, var(--indigo) 100%);
}
/* soft stage light behind the lockup */
.bx-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 24%;
  width: 190vmax; height: 190vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 3deg, rgba(255, 194, 26, .07) 0deg 5deg, rgba(255, 194, 26, 0) 5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 14%, transparent 34%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 14%, transparent 34%);
}
.bx-lockup { width: min(92%, 800px); margin: 0 auto; }
.bx-lockup svg { width: 100%; height: auto; overflow: visible; }
.bx-lockup .lk-stacked { display: none; }
.bx-tagline {
  margin: clamp(10px, 2.2vw, 22px) 0 14px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(2.1rem, 1.2rem + 3.9vw, 3.9rem);
  color: var(--cream);
}
.bx-tagline em { font-style: normal; color: var(--tape); }
.bx-hero-copy { max-width: 34em; margin: 0 auto clamp(22px, 3vw, 30px); font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--text); }

.bx-spark { position: absolute; z-index: -1; width: var(--s, 22px); height: var(--s, 22px); fill: currentColor; }
.bx-spark.s1 { --s: 26px; left: 9%; top: 24%; color: var(--tape); }
.bx-spark.s2 { --s: 16px; left: 17%; top: 58%; color: var(--cream); opacity: .8; }
.bx-spark.s3 { --s: 20px; right: 10%; top: 22%; color: var(--violet-light); }
.bx-spark.s4 { --s: 28px; right: 7%; top: 52%; color: var(--tape); }
.bx-spark.s5 { --s: 14px; right: 22%; top: 66%; color: var(--cream); opacity: .7; }

/* ---------- Sections ---------- */
.bx-section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.bx-hero + .bx-section { padding-top: clamp(40px, 6vw, 72px); }
.bx-section.alt { background: var(--surface); }
.bx-head { max-width: 920px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.bx-head .bx-lead { max-width: 52ch; }
.bx-nowrap { display: inline-block; }
.bx-head h2 { margin: 16px 0 14px; font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem); }
.bx-lead { max-width: 56ch; margin-inline: auto; font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--text); }
.bx-accent { color: var(--tape); }
.bx-link { color: var(--tape); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.bx-link:hover { color: var(--cream); }

/* ---------- How it works ---------- */
.bx-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.bx-step {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .25);
}
.bx-stage {
  position: relative; aspect-ratio: 832 / 820; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(108% 92% at 50% 36%, #3640A8 0%, #232A72 52%, #181C4C 100%);
  border-bottom: 5px solid var(--kraft);
}
.bx-stage img { width: 100%; height: 100%; object-fit: contain; }
.bx-stage.pair { display: block; }
.bx-stage.pair img { position: absolute; bottom: 0; width: 58%; height: auto; }
.bx-stage.pair img:first-of-type { left: -3%; }
.bx-stage.pair img:last-of-type { right: -3%; }
.bx-num {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--tape); color: var(--indigo); border-radius: 12px; rotate: -5deg;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 3px 0 var(--tape-deep), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.bx-dots { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; gap: 6px; }
.bx-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--tape); }
.bx-dots i:nth-child(1) { opacity: .45; } .bx-dots i:nth-child(2) { opacity: .6; } .bx-dots i:nth-child(3) { opacity: .75; }
.bx-dots i:nth-child(4) { opacity: .9; } .bx-dots i:nth-child(5) { opacity: 1; }
.bx-step-body { padding: 20px 22px 26px; }
.bx-step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.bx-step h3 { font-size: clamp(1.2rem, 1.05rem + .45vw, 1.4rem); padding-top: 1px; }
.bx-step p { color: var(--text); font-size: 1rem; line-height: 1.5; }

.bx-score {
  margin-top: clamp(20px, 2.6vw, 30px);
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr minmax(0, 1.05fr); align-items: center;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(22px, 3.4vw, 40px) clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, var(--violet-deep), #3B2A94);
  border-radius: var(--radius-l);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.bx-score-art img { width: 100%; max-width: 220px; margin-inline: auto; }
.bx-score h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); margin-bottom: 10px; }
.bx-score p { color: rgba(255, 244, 220, .94); max-width: 34ch; }
.bx-ladder { list-style: none; padding: 0; display: grid; gap: 10px; }
.bx-ladder li { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 12px; }
.bx-hint { font-family: var(--font-display); font-weight: 700; color: var(--tape); }
.bx-ladder .bar {
  display: block; width: max(6.6rem, var(--w)); padding: 8px 16px; border-radius: 999px;
  background: var(--indigo); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--cream); white-space: nowrap;
}
.bx-ladder .bar b { font-size: 1.25rem; margin-right: .12em; color: var(--tape); }

/* ---------- Four ways ---------- */
.bx-way-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.bx-way {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--indigo); border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, .22);
}
.bx-way .ico {
  width: 62px; height: 62px; margin-bottom: 2px; display: grid; place-items: center;
  background: var(--violet); color: #fff; border-radius: 18px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}
.bx-way .ico svg { width: 36px; height: 36px; }
.bx-way h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); }
.bx-way p { color: var(--text); max-width: 46ch; }
.bx-tags { list-style: none; padding: 6px 0 0; margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chip {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 194, 26, .13); color: var(--tape); box-shadow: inset 0 0 0 1px rgba(255, 194, 26, .4);
  font-weight: 600; font-size: .84rem; line-height: 1.3;
}
.bx-fine { margin-top: 28px; text-align: center; color: var(--muted); font-size: .98rem; }

/* ---------- Packs ---------- */
.bx-pack-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.bx-pack {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 270px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--pc); color: var(--pi); border-radius: var(--radius-l);
  box-shadow: 0 6px 0 var(--ps), 0 16px 30px rgba(0, 0, 0, .28);
}
.bx-pack-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bx-pack h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); color: var(--pi); }
.bx-price {
  padding: 3px 11px; border-radius: 999px; background: var(--pi); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; line-height: 1.4;
}
.bx-pack p { font-weight: 600; font-size: 1rem; line-height: 1.4; max-width: 24ch; }
.bx-count { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.bx-pics { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.bx-pics figure { margin: 0; text-align: center; }
.bx-pics img { width: clamp(72px, 8.4vw, 108px); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .22)); }
.bx-pics figure:nth-child(1) img { rotate: -5deg; }
.bx-pics figure:nth-child(2) img { rotate: 5deg; }
.bx-pics figcaption { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; line-height: 1.2; }

.bx-bundle {
  margin-top: clamp(22px, 3vw, 34px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, #6247DE, var(--violet-deep));
  border-radius: var(--radius-l); box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.bx-bundle .bx-bundle-price {
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  font-size: clamp(2.8rem, 2rem + 3.4vw, 5rem); color: var(--tape-light); max-width: none; text-shadow: 0 .06em 0 rgba(0, 0, 0, .28);
}
.bx-bundle h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 6px; }
.bx-bundle p { color: var(--cream); max-width: 52ch; }
.bx-notes { margin: 24px auto 0; max-width: 62ch; text-align: center; color: var(--muted); font-size: .98rem; }

/* ---------- Good to know ---------- */
.bx-trust { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.bx-trust li {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 24px 22px 26px;
  background: var(--indigo); border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--line);
}
.bx-trust .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tape); color: var(--indigo); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); margin-bottom: 4px; }
.bx-trust .ico.v { background: var(--violet); color: #fff; }
.bx-trust .ico svg { width: 28px; height: 28px; }
.bx-trust h3 { font-size: 1.2rem; margin-bottom: 4px; }
.bx-trust p { color: var(--text); font-size: .98rem; line-height: 1.5; }
.bx-trust-note { margin: 26px auto 0; max-width: 60ch; text-align: center; color: var(--muted); }

/* ---------- Coming soon ---------- */
.bx-closing {
  padding-block: clamp(72px, 9vw, 120px); text-align: center;
  background: radial-gradient(80% 100% at 20% 0%, #8A72FF 0%, var(--violet) 40%, var(--violet-deep) 100%);
}
.bx-closing-inner { max-width: 760px; margin-inline: auto; }
.bx-closing .bx-tape-wrap { margin-bottom: 26px; }
.bx-closing h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: 14px; }
.bx-closing .bx-lead { color: rgba(255, 255, 255, .96); margin-bottom: 18px; }
.bx-help { color: rgba(255, 255, 255, .96); overflow-wrap: anywhere; }
.bx-help a { color: #fff; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bx-closing :focus-visible { outline-color: #fff; }

.bx-also { background: var(--night); padding: 40px 0 0; }
.bx-also-link {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px;
  border-radius: 999px; background: rgba(255, 244, 220, .07); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--cream); text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.bx-also-link:hover { background: rgba(255, 244, 220, .13); transform: translateY(-2px); }
.bx-also-link img { width: 52px; height: 52px; border-radius: 12px; }
.bx-also-link .txt { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.bx-also-link small { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); }
.bx-also-link svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.bx-footer { background: var(--night); color: var(--muted); padding: 56px 0 40px; font-size: .95rem; }
.bx-also + .bx-footer { padding-top: 40px; }
.bx-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.bx-footer .bx-brand img { height: 52px; }
.bx-footer p.tag { margin-top: 12px; max-width: 30ch; }
.bx-footer .footer-h { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 1rem; line-height: 1.3; letter-spacing: 0; margin-bottom: 12px; }
.bx-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.bx-footer a { text-decoration: none; color: rgba(255, 244, 220, .8); }
.bx-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bx-footer .follow a { display: inline-flex; align-items: center; gap: 9px; vertical-align: top; }
.bx-footer .follow svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.bx-legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}
.bx-legal p { max-width: 72ch; }
.bx-legal a { color: rgba(255, 244, 220, .85); text-decoration: underline; text-underline-offset: 3px; }
.bx-legal a:hover { color: #fff; }

/* ---------- Invite page (/boxdini/join/) ---------- */
.bx-join-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; text-align: center;
  padding: calc(var(--header-h) + clamp(24px, 5vw, 56px)) 0 clamp(36px, 5vw, 56px);
  background: radial-gradient(70% 90% at 50% 20%, #2C3182 0%, #1C2058 52%, var(--indigo) 100%);
}
.bx-join-hero .mascot { width: clamp(150px, 26vw, 220px); margin: 0 auto 6px; }
.bx-join-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); margin: 14px 0 12px; }
.bx-join-hero #lead { max-width: 34em; margin-inline: auto; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--text); }
.bx-join { max-width: 720px; padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.join-card {
  background: var(--surface); border-radius: var(--radius-l); text-align: center;
  padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 36px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 44px rgba(0, 0, 0, .32);
}
.join-card h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 12px; }
.join-card h2.code-label { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.join-card .code-big {
  /* a shipping label: cream paper, kraft dashed edge */
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: .1em;
  padding: .22em .1em .22em .2em; margin: 0 0 20px;
  background: var(--cream); color: var(--indigo);
  border: 3px dashed var(--kraft); border-radius: var(--radius-m);
  white-space: nowrap; -webkit-user-select: all; user-select: all;
}
.join-card .code-big[data-len="4"] { font-size: clamp(2.6rem, 16vw, 7rem); }
.join-card .code-big[data-len="6"] { font-size: clamp(2rem, 11vw, 5rem); }
.join-actions { display: flex; justify-content: center; margin-bottom: 8px; }
.join-status { min-height: 1.7em; margin: 0; font-weight: 600; color: var(--muted); }
.join-step { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: clamp(1.15rem, 1rem + .8vw, 1.4rem); line-height: 1.25; margin: 14px 0 8px; }
.join-kind, .join-card p { color: var(--text); }
.join-card p.join-step { color: var(--cream); }
.join-kind { margin: 0; }
.join-card p.join-status { margin: 0; color: var(--muted); }
.callout {
  margin: 24px 0 0; padding: 20px 24px;
  background: rgba(115, 87, 242, .2); border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px rgba(154, 134, 255, .5);
}
.callout p { color: var(--cream); font-weight: 600; margin: 0; }
.join-about { margin-top: 44px; }
.join-about h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 12px; }
.join-about p { margin-bottom: 14px; color: var(--text); }
.join-about a { color: var(--tape); text-underline-offset: 3px; }
.join-about a:hover { color: var(--cream); }

/* ---------- Gentle motion (all of it off for people who ask for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes bx-float-svg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  @keyframes bx-blink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.07); } }
  @keyframes bx-twinkle { 0%, 100% { opacity: .35; scale: .72; rotate: 0deg; } 50% { opacity: 1; scale: 1; rotate: 18deg; } }
  @keyframes bx-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }

  .bx-lockup .mascot { animation: bx-float-svg 6s ease-in-out infinite; }
  .bx-lockup .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: bx-blink 5.5s ease-in-out infinite 1.2s; }
  .bx-spark { animation: bx-twinkle 3.6s ease-in-out infinite; }
  .bx-spark.s2 { animation-delay: -1.2s; } .bx-spark.s3 { animation-delay: -2.1s; }
  .bx-spark.s4 { animation-delay: -.6s; } .bx-spark.s5 { animation-delay: -2.8s; }
  .bx-stage img { animation: bx-float 6.4s ease-in-out infinite; }
  .bx-step:nth-child(2) .bx-stage img { animation-delay: -1.6s; }
  .bx-step:nth-child(3) .bx-stage img { animation-delay: -3.1s; }
  .bx-step:nth-child(4) .bx-stage img { animation-delay: -4.5s; animation-name: bx-pulse; transform-origin: 50% 70%; }
  .bx-stage.pair img:last-of-type { animation-delay: -2.4s; }
  .bx-score-art img { animation: bx-float 5.6s ease-in-out infinite -2s; }
  .bx-join-hero .mascot { animation: bx-float 6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .bx-footer-grid > :first-child { grid-column: 1 / -1; }
  .bx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  /* the lockup nearly fills the width here, so only the two sparkles above it stay */
  .bx-spark.s2, .bx-spark.s4, .bx-spark.s5 { display: none; }
}
@media (max-width: 860px) {
  .bx-links { display: none; }
  .bx-score { grid-template-columns: minmax(120px, 190px) 1fr; }
  .bx-score .bx-ladder { grid-column: 1 / -1; }
  .bx-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bx-way-grid { grid-template-columns: 1fr; }
  .bx-way { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; padding: 22px 20px; }
  .bx-way .ico { width: 52px; height: 52px; margin: 0; border-radius: 15px; }
  .bx-way .ico svg { width: 30px; height: 30px; }
  .bx-way h3 { font-size: 1.35rem; }
  .bx-way p, .bx-way .bx-tags { grid-column: 1 / -1; }
  .bx-lockup { width: min(78%, 360px); }
  .bx-lockup .lk-horizontal { display: none; }
  .bx-lockup .lk-stacked { display: block; }
  .bx-spark.s4 { display: block; }
  .bx-spark.s1 { left: 5%; top: 17%; } .bx-spark.s3 { right: 6%; top: 15%; } .bx-spark.s4 { right: 5%; top: 45%; }
}
@media (max-width: 640px) {
  .bx-bundle { grid-template-columns: 1fr; text-align: center; }
  .bx-bundle p { margin-inline: auto; }
  .bx-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .bx-footer-grid > :first-child { grid-column: 1 / -1; }
  .bx-score { grid-template-columns: 1fr; text-align: center; }
  .bx-score p { margin-inline: auto; }
  .bx-score-art img { max-width: 170px; }
  .bx-ladder { justify-items: start; }
}
@media (max-width: 560px) {
  /* Steps become a list: a small picture on the left, the step on the right. */
  .bx-steps { grid-template-columns: 1fr; }
  .bx-step { flex-direction: row; align-items: stretch; }
  .bx-stage { aspect-ratio: auto; width: 124px; flex: none; border-bottom: 0; border-right: 5px solid var(--kraft); }
  .bx-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
  .bx-stage.pair img:first-of-type { display: none; }
  .bx-stage.pair img { inset: 0; width: 100%; height: 100%; }
  .bx-num { width: 34px; height: 34px; border-radius: 11px; font-size: 1.15rem; }
  .bx-dots { left: 12px; top: auto; bottom: 8px; gap: 4px; }
  .bx-dots i { width: 9px; height: 9px; }
  .bx-step-body { padding: 16px 18px 18px; }
  .bx-step h3 { font-size: 1.2rem; }
  .bx-step p { font-size: .96rem; }
  .bx-trust { grid-template-columns: 1fr; }
  .bx-trust li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .bx-trust .ico { flex: none; margin: 0; }
  .bx-trust li > div { min-width: 0; }
}
@media (max-width: 520px) {
  .bx-pack-grid { grid-template-columns: 1fr; }
  .bx-pack { min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; }
  .bx-pack-top, .bx-pack p, .bx-pack .bx-count { grid-column: 1; }
  .bx-pack .bx-pics { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; align-self: center; }
  .bx-pics img { width: 76px; }
  .bx-notes, .bx-fine, .bx-trust-note { text-align: left; }
}
@media (max-width: 350px) {
  /* The smallest phones: the steps stack again, a picture band on top, so the text keeps the full width. */
  .bx-step { flex-direction: column; }
  .bx-stage { width: auto; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 5px solid var(--kraft); }
  .bx-stage.pair img:first-of-type { display: block; left: 4%; right: auto; }
  .bx-stage.pair img:last-of-type { right: 4%; left: auto; }
  .bx-stage.pair img { top: auto; bottom: 0; width: 50%; height: auto; }
  .bx-dots { left: 12px; top: 10px; bottom: auto; }
}
@media (max-width: 420px) {
  .bx-brand img { height: 42px; }
  .bx-pics img { width: 66px; }
  .bx-pill { padding: 12px 22px; font-size: 1.08rem; }
}
