/* Locksquad site. Tokens mirror the app (docs/DESIGN.md). The world: a squad is a row of lockers. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  /* neutrals */
  --canvas: #F2F3F5;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --fill: #E7E9ED;
  --hairline: #DFE2E6;
  --ink: #121316;
  --ink-2: #5C6370;
  --ink-3: #767C86;
  --action: #121316;
  --on-action: #FFFFFF;
  --action-pressed: #2A2C31;
  /* floor under the lockers */
  --floor-top: #E3E5E8;
  --floor-bottom: #F2F3F5;
  --locker-shadow: rgba(18, 19, 22, 0.22);
  /* status */
  --done: #127A47;      --done-tint: #E3F4EA;
  --track: #1A63C2;     --track-tint: #E5EEFB;
  --over: #C23A1A;      --over-tint: #FCE9E3;
  --escaped: #C21F4C;   --escaped-tint: #FBE4EA;
  --idle: #5C6370;      --idle-tint: #ECEEF1;
  /* earned */
  --streak: #B54708;
  --xp: #8F6400;
  --xp-fill: #FFC23D;
  /* enamel (same in both modes) */
  --violet: #7059F5; --violet-deep: #5A43D9;
  --coral: #FF6A4D;  --coral-deep: #E2502F;
  --mint: #2CC99B;   --mint-deep: #18A87F;
  --sky: #39A2F7;    --sky-deep: #1F86DA;
  --sun: #FFC23D;    --sun-deep: #E5A51A;
  --rose: #FF5E98;   --rose-deep: #E2427D;
  --slate: #64748B;  --slate-deep: #4E5D72;
  --lime: #A9DD2C;   --lime-deep: #8CBF14;
  /* elevation */
  --e1: 0 0 0 1px rgba(18, 19, 22, 0.04), 0 2px 8px rgba(18, 19, 22, 0.06);
  --e2: 0 8px 24px rgba(18, 19, 22, 0.14);
  --e3: 0 16px 40px rgba(18, 19, 22, 0.18);
  /* type */
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-stretch: 62%;
  /* rhythm */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section: clamp(88px, 10vw, 144px);
  --r-xs: 6px; --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B0C0F;
    --surface: #16171B;
    --raised: #1D1E23;
    --fill: #24262C;
    --hairline: #2A2C33;
    --ink: #F4F5F7;
    --ink-2: #A3A9B4;
    --ink-3: #8A909B;
    --action: #F4F5F7;
    --on-action: #121316;
    --action-pressed: #D9DCE1;
    --floor-top: #17181C;
    --floor-bottom: #0B0C0F;
    --locker-shadow: rgba(0, 0, 0, 0.6);
    --done: #3DDC84;      --done-tint: #13301F;
    --track: #6AB0FF;     --track-tint: #14243D;
    --over: #FF7A5C;      --over-tint: #3A1A12;
    --escaped: #FF6B8E;   --escaped-tint: #3A1220;
    --idle: #A3A9B4;      --idle-tint: #23252B;
    --streak: #FF8A3D;
    --xp: #FFD25E;
    --e1: 0 0 0 1px rgba(255, 255, 255, 0.05);
    --e2: 0 8px 24px rgba(0, 0, 0, 0.5);
    --e3: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--sun); color: #121316; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--action); color: var(--on-action); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display, h1, h2 {
  font-stretch: var(--display-stretch);
  font-weight: 900;
  letter-spacing: -0.005em;
  word-spacing: 0.1em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 1.6rem + 6.2vw, 6rem); }
h2 { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.75rem); }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.plate-text { font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.num { font-stretch: 62%; font-weight: 900; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--action); color: var(--on-action);
  font-weight: 650; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-snap);
}
.btn:hover { background: var(--action-pressed); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.btn--ghost:hover { background: var(--fill); }
.store { display: inline-block; border-radius: 9px; transition: transform .2s var(--ease-snap); }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(0.97); }

/* ---------- icons ---------- */
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.brand span { font-stretch: 62%; font-weight: 900; font-size: 1.6rem; letter-spacing: 0.01em; word-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 550; font-size: 0.9375rem; color: var(--ink-2); border-radius: 999px; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(20px, 3vw, 40px); }
.hero__copy { display: grid; gap: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.hero__note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.hero__note .i { color: var(--done); font-size: 1.1rem; }

/* the locker row */
.row-stage { position: relative; margin-top: clamp(28px, 3.5vw, 48px); overflow: clip; padding-top: 8px; }
.lockers {
  --door-w: minmax(0, 1fr);
  display: grid; grid-template-columns: repeat(5, var(--door-w)); gap: 7px;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  position: relative; z-index: 1;
}
.floor { height: clamp(56px, 7vw, 96px); background: var(--floor-top); position: relative; margin-top: -2px; }
.floor::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: color-mix(in srgb, var(--ink) 8%, transparent); }

.locker {
  --enamel: var(--violet); --deep: var(--violet-deep); --on: #FFFFFF; --stamp: #3A2D81;
  position: relative; aspect-ratio: 0.58; min-height: 0;
  border-radius: var(--r-s) var(--r-s) 4px 4px;
  color: var(--on);
  perspective: 1400px;
}
.locker::after { /* contact shadow on the floor */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--locker-shadow), transparent); z-index: -1;
}
.door, .cavity { position: absolute; inset: 0; border-radius: inherit; }
.door {
  background: var(--enamel);
  box-shadow: inset 0 0 0 1.5px var(--deep);
  display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center; align-content: start;
  padding: 9% 10% 10%;
  transform-origin: 100% 50%;
  transition: filter .35s var(--ease-out);
  backface-visibility: hidden;
}
.door::before { /* stamped door panel line */
  content: ""; position: absolute; inset: 5.5%; border-radius: 6px;
  border: 1.5px solid var(--deep);
  pointer-events: none;
}
.vents { display: grid; gap: clamp(3px, 0.45vw, 6px); width: 46%; margin-top: 6%; }
.vents i { display: block; height: clamp(3px, 0.5vw, 7px); border-radius: 99px; background: var(--deep); }
.nameplate {
  margin-top: 18%; padding: 4px 10px; border-radius: 3px; min-width: 52%; text-align: center;
  background: #F7F8FA; color: #121316;
  font-size: clamp(0.5625rem, 0.4rem + 0.35vw, 0.8125rem);
}
.stamp { font-size: clamp(2.6rem, 1rem + 4.8vw, 6.25rem); line-height: 0.9; margin-top: 10%; color: var(--stamp, var(--deep)); }
.state {
  align-self: start; margin-top: 8%; display: inline-flex; align-items: center; gap: 6px; font-weight: 650;
  font-size: clamp(0.6875rem, 0.45rem + 0.45vw, 1rem); color: var(--on); white-space: nowrap;
}
.state .i { font-size: 1.1em; }
.handle {
  position: absolute; left: 9%; top: 47%; width: clamp(6px, 0.8vw, 11px); height: 13%; border-radius: 4px;
  background: var(--deep);
}
.locker--violet { --enamel: var(--violet); --deep: var(--violet-deep); --on: #FFFFFF; --stamp: #3A2D81; }
.locker--coral  { --enamel: var(--coral);  --deep: var(--coral-deep);  --on: #121316; --stamp: #843524; }
.locker--sky    { --enamel: var(--sky);    --deep: var(--sky-deep);    --on: #121316; --stamp: #195282; }
.locker--mint   { --enamel: var(--mint);   --deep: var(--mint-deep);   --on: #121316; --stamp: #156550; }
.locker--sun    { --enamel: var(--sun);    --deep: var(--sun-deep);    --on: #121316; --stamp: #866318; }
.locker--rose   { --enamel: var(--rose);   --deep: var(--rose-deep);   --on: #121316; --stamp: #842D4F; }
.locker--slate  { --enamel: var(--slate);  --deep: var(--slate-deep);  --on: #FFFFFF; --stamp: #333C49; }
.locker--lime   { --enamel: var(--lime);   --deep: var(--lime-deep);   --on: #121316; --stamp: #557215; }
.locker:hover > .door { filter: brightness(1.05) saturate(1.04); }

/* the open locker: cavity + door swung on its right hinge */
.cavity { overflow: hidden; }
.cavity::before { /* the locker interior, painted behind whatever sits on the shelf */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--stamp);
  box-shadow: inset 0 0 0 6px var(--enamel), inset 0 0 0 7.5px var(--deep);
}
.cavity::after { /* shelf */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6%; height: 3.4%;
  background: var(--enamel);
  box-shadow: 0 1.5px 0 var(--deep);
}
.swing { position: absolute; inset: 0; border-radius: inherit; transform-origin: 100% 50%; transform-style: preserve-3d; z-index: 3; animation: swing 1.3s 0.45s var(--ease-out) both; pointer-events: none; }
.swing .door { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.swing .door--back { transform: rotateY(180deg); transform-origin: 50% 50%; background: var(--deep); box-shadow: inset 0 0 0 1.5px var(--stamp); }
.swing .door--back::before { border-color: var(--stamp); }
.swing .door--back .vents i, .swing .door--back .handle { background: var(--stamp); }
.locker:has(.swing) { perspective: 2600px; perspective-origin: 100% 45%; }
@keyframes swing {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(96deg); }
}

/* ---------- the phone (HTML mock of the app) ---------- */
.phone {
  --pw: 100%;
  position: absolute; left: 50%; bottom: 9.4%; width: 70%; transform: translateX(-50%);
  aspect-ratio: 0.49; border-radius: 15% / 7.4%; overflow: hidden;
  border: 6px solid #0A0B0D; background: #F2F3F5; color: #121316;
  outline: 1px solid #3A3D44; filter: drop-shadow(0 16px 14px rgba(0,0,0,0.45));
  container-type: inline-size;
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  font-size: 6.2cqw; line-height: 1.25;
  display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .phone { background: #0B0C0F; color: #F4F5F7; }
}
.island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; background: #000; border-radius: 99px; z-index: 2; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 5% 9% 0; font-weight: 650; font-size: 0.82em; }
.sb svg { height: 0.9em; width: auto; }
.scr { padding: 6% 6.5% 0; display: grid; gap: 0.6em; }
.scr__title { font-stretch: 62%; font-weight: 900; font-size: 2.15em; line-height: 1.05; margin-bottom: 0.15em; }
.scr__sub { color: var(--ink-2); font-size: 0.78em; }
.tile { padding: 0.55em 0; border-top: 1px solid var(--hairline); }
.hdr { display: flex; align-items: center; gap: 0.6em; }
.flame { width: 1.55em; height: 1.55em; }
.hdr .num { font-size: 2.3em; line-height: 0.9; }
.hdr__lbl { font-size: 0.72em; color: var(--ink-2); line-height: 1.15; }
.hdr__tier { margin-left: auto; display: grid; justify-items: center; gap: 0.15em; font-weight: 800; font-stretch: 75%; font-size: 0.72em; color: var(--xp); }
.hdr__tier svg { width: 2.4em; height: auto; }
.bar { height: 0.42em; border-radius: 99px; background: var(--fill); overflow: hidden; margin-top: 0.55em; }
.bar > i { display: block; height: 100%; width: var(--p, 50%); border-radius: inherit; background: var(--xp-fill); }
.bar__cap { font-size: 0.66em; color: var(--ink-2); margin-top: 0.35em; display: flex; justify-content: space-between; }
.board { display: grid; gap: 0; padding: 0.1em 0; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.55em; padding: 0.5em 0; border-top: 1px solid var(--hairline); }
.mrow:first-child { border-top: 0; }
.strip { width: 0.32em; height: 2.2em; border-radius: 0.2em; background: var(--c); }
.av { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 0.95em; line-height: 1; }
.mrow__name { font-weight: 700; font-size: 0.86em; line-height: 1.1; }
.mrow__meta { font-size: 0.64em; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 0.3em; border-radius: 99px; padding: 0.22em 0.6em; font-weight: 650; font-size: 0.64em; white-space: nowrap; }
.pill .i { font-size: 1.05em; stroke-width: 2.6; }
.pill--done { color: var(--done); background: var(--done-tint); }
.pill--track { color: var(--track); background: var(--track-tint); }
.pill--over { color: var(--over); background: var(--over-tint); }
.pill--escaped { color: var(--escaped); background: var(--escaped-tint); }
.pill--idle { color: var(--idle); background: var(--idle-tint); }
.pill.is-flip { animation: flip .6s var(--ease-snap); }
@keyframes flip { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0.5em 0.4em 1.25em; border-top: 1px solid var(--hairline); background: var(--surface); }
.tabbar span { display: grid; justify-items: center; gap: 0.15em; font-size: 0.55em; color: var(--ink-2); font-weight: 600; }
.tabbar span.on { color: var(--ink); }
.tabbar .i { font-size: 1.9em; }
.counted { font-size: 0.66em; color: var(--ink-2); display: flex; align-items: center; gap: 0.35em; }
.counted b { color: var(--ink); }
.toast {
  position: absolute; left: 6%; right: 6%; top: 11%; z-index: 3;
  background: var(--raised); color: var(--ink); border-radius: 1em; padding: 0.6em 0.75em; box-shadow: var(--e2);
  display: flex; gap: 0.55em; align-items: center; font-size: 0.72em; line-height: 1.25;
  transform: translateY(-140%); opacity: 0; transition: transform .6s var(--ease-snap), opacity .3s;
}
.toast.is-on { transform: none; opacity: 1; }
.toast .av { width: 2.2em; height: 2.2em; }
.toast b { display: block; }
.xpchip { color: var(--xp); font-weight: 800; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: var(--section) 0; }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head .lead { max-width: 60ch; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.pillar { padding: 28px clamp(16px, 2.4vw, 36px) 8px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; border-left: 1px solid var(--hairline); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__word { font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.85; }
.pillar p { color: var(--ink-2); max-width: 36ch; }
.pillar__demo { margin-top: 22px; align-self: end; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; padding: 28px 0 40px; border-top: 1px solid var(--hairline); }
  .pillar:first-child { border-top: 0; }
}

/* shield demo */
.shield {
  border-radius: var(--r-l); padding: 22px 20px 18px; color: #F4F5F7;
  background: #121316;
  display: grid; justify-items: center; text-align: center; gap: 8px; box-shadow: var(--e2);
  max-width: 340px;
}
.shield__icon { display: grid; place-items: center; padding: 4px 0; }
.shield__icon svg { height: 40px; width: auto; color: #F4F5F7; }
.shield b { font-size: 1.125rem; }
.shield small { color: #A3A9B4; font-size: 0.875rem; }
.shield__btn { width: 100%; margin-top: 8px; min-height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 650; background: #F4F5F7; color: #121316; font-size: 0.9375rem; }
.shield__btn--2 { background: transparent; color: #A3A9B4; margin-top: 0; }

/* 30-day map (the contents map is true) */
.map { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; max-width: 360px; }
.map span { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); background: var(--surface); box-shadow: var(--e1); font-stretch: 75%; }
.map span.d { background: var(--ink); color: var(--canvas); box-shadow: none; }
.map span.t { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.map__cap { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.map__cap b { color: var(--ink); }

/* mini locker strip */
.mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; max-width: 360px; }
.mini .locker { aspect-ratio: 0.42; }
.mini .door { padding: 10% 8% 12%; grid-template-rows: auto auto 1fr; }
.mini .vents { width: 52%; gap: 3px; margin-top: 8%; }
.mini .vents i { height: 3px; }
.mini .av { margin-top: 22%; width: 66%; height: auto; aspect-ratio: 1; font-size: 1.15rem; background: rgba(255,255,255,0.35); }
.mini .state { font-size: 0.6875rem; justify-self: center; }
.mini .door::before { inset: 6%; }
.mini .locker::after { display: none; }

/* how a squad works */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__board { position: sticky; top: 100px; }
.boardpanel { background: var(--surface); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--e1); font-size: 1rem; }
.boardpanel .hdr .num { font-size: 3rem; }
.boardpanel .hdr__lbl { font-size: 0.875rem; }
.boardpanel .hdr__tier { font-size: 0.875rem; }
.boardpanel .hdr__tier svg { width: 52px; }
.boardpanel .mrow { gap: 12px; padding: 12px 0; }
.boardpanel .strip { width: 6px; height: 44px; }
.boardpanel .av { width: 40px; height: 40px; font-size: 1.25rem; }
.boardpanel .mrow__name { font-size: 1.0625rem; }
.boardpanel .mrow__meta { font-size: 0.8125rem; }
.boardpanel .pill { font-size: 0.8125rem; padding: 4px 10px; }
.boardpanel .bar { height: 8px; margin-top: 14px; }
.boardpanel .bar__cap { font-size: 0.8125rem; margin-top: 8px; }
.boardpanel .poke { font-size: 0.8125rem; font-weight: 650; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--fill); display: inline-flex; align-items: center; gap: 6px; }
.rules { display: grid; gap: 0; }
.rule { padding: 30px 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 32px 1fr; gap: 6px 18px; }
.rule:first-child { border-top: 1.5px solid var(--ink); }
.rule__ic { grid-row: span 2; display: block; padding-top: 2px; font-size: 1.6rem; line-height: 1; }
.rule__ic svg { width: 1.6rem; height: 1.6rem; }
.rule p { color: var(--ink-2); max-width: 54ch; }
.rule .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; grid-column: 2; }
.rule .pills .pill { font-size: 0.875rem; padding: 5px 12px; }
.rule__fine { grid-column: 2; margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.rule__fine .i { margin-top: 0.25em; color: var(--ink); }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how__board { position: static; }
}

/* ranks: the graphite band */
.ranks { background: #0B0C0F; color: #F4F5F7; --ink-2: #A3A9B4; --hairline: #2A2C33; --surface: #16171B; --fill: #24262C; --xp: #FFD25E; }
@media (prefers-color-scheme: dark) { .ranks { background: #111216; } }
.ranks h2 { color: #F4F5F7; }
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 20px); align-items: end; padding-bottom: 28px; border-bottom: 1px solid #2A2C33; }
.tier { display: grid; justify-items: center; gap: 12px; text-align: center; }
.tier svg { width: calc(46% + var(--step) * 9%); height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.5)); }
.tier__name { font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(0.6875rem, 0.5rem + 0.4vw, 0.9375rem); }
.tier__xp { color: #A3A9B4; font-size: clamp(0.75rem, 0.6rem + 0.35vw, 0.9375rem); }
.tier--you .tier__name { color: #FFD25E; }
.ladder__you { grid-column: 2 / span 3; justify-self: center; margin-top: 6px; display: grid; gap: 6px; width: 100%; max-width: 260px; font-size: 0.8125rem; color: #A3A9B4; text-align: center; }
.ladder__you .bar { margin-top: 0; height: 6px; background: #24262C; }
.ranks__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.ranks__grid h3 { margin-bottom: 12px; }
.ranks__grid p { color: #A3A9B4; max-width: 50ch; }
.xptable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.xptable caption { text-align: left; font-weight: 700; font-size: 1.375rem; margin-bottom: 12px; }
.xptable th, .xptable td { text-align: left; padding: 12px 0; border-top: 1px solid #2A2C33; font-weight: 450; }
.xptable td { text-align: right; font-stretch: 75%; font-weight: 800; white-space: nowrap; padding-left: 16px; }
.xptable td.pos { color: #3DDC84; }
.xptable td.neg { color: #FF7A5C; }
.xptable small { color: #A3A9B4; font-weight: 500; font-stretch: 100%; }
@media (max-width: 760px) {
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .tier svg { width: 58%; }
  .ladder__you { grid-column: 1 / -1; }
  .ranks__grid { grid-template-columns: 1fr; }
}

/* earn your scroll */
.earn { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rates { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.rates li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.rates .what { font-stretch: 75%; font-weight: 800; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.1; }
.rates .gets { font-stretch: 62%; font-weight: 900; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); white-space: nowrap; }
.rates .how { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.9375rem; display: block; }
.rates .free { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 0.6875rem; font-stretch: 100%; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--done-tint); color: var(--done); letter-spacing: 0.02em; }
.earn__fine { margin-top: 18px; color: var(--ink-2); font-size: 0.9375rem; }

.camphone { position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 0.49; border-radius: 48px; border: 10px solid #0A0B0D; overflow: hidden; background: #16171B; box-shadow: 0 0 0 1px #3A3D44, var(--e3); }
.cam { position: relative; height: 100%; color: #F4F5F7; display: grid; grid-template-rows: auto auto 1fr auto; padding: 46px 22px 26px; }
.cam__top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: #A3A9B4; }
.cam__top b { color: #F4F5F7; font-size: 0.9375rem; }
.cam__count { text-align: center; display: grid; align-content: center; justify-items: center; }
.cam__count .num { font-size: 7.5rem; line-height: 0.85; }
.cam__count small { color: #A3A9B4; font-size: 0.875rem; }
.cam svg.pose { position: absolute; left: 6%; right: 6%; bottom: 23%; width: 88%; height: auto; opacity: 0.9; }
.cam__ring { height: 6px; border-radius: 99px; background: #24262C; overflow: hidden; margin-bottom: 14px; }
.cam__ring i { display: block; height: 100%; width: 70%; background: #3DDC84; border-radius: inherit; }
.cam__btn { min-height: 48px; border-radius: 999px; background: #F4F5F7; color: #121316; display: grid; place-items: center; font-weight: 650; font-size: 0.9375rem; }
.cam__priv { margin-top: 10px; text-align: center; font-size: 0.75rem; color: #A3A9B4; }
.cam__priv .i { display: inline-block; vertical-align: -0.15em; margin-right: 4px; }
.cam__frame { justify-self: center; margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #13301F; color: #3DDC84; font-size: 0.8125rem; font-weight: 650; }
.cam__count .num { font-size: 9rem; }
@media (max-width: 900px) { .earn { grid-template-columns: 1fr; } }

/* privacy strip */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding: 32px 0 0; border-top: 1px solid var(--hairline); margin-top: clamp(48px, 6vw, 80px); }
.promise div { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.promise .i { font-size: 1.4rem; grid-row: span 2; margin-top: 2px; }
.promise b { font-weight: 700; }
.promise p { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border-radius: var(--r-l); padding: 26px 24px 24px; box-shadow: var(--e1); display: grid; gap: 10px; align-content: start; position: relative; }
.plan--pro { background: var(--ink); color: var(--canvas); --ink-2: #A3A9B4; box-shadow: var(--e2); }
@media (prefers-color-scheme: dark) { .plan--pro { --ink-2: #5C6370; } }
.plan__name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; }
.pro { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--sun); color: #121316; font-stretch: 75%; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.06em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price .num { font-size: clamp(3rem, 2rem + 2.4vw, 4rem); line-height: 0.9; }
.plan__price span:not(.num) { color: var(--ink-2); font-size: 0.9375rem; }
.plan p { color: var(--ink-2); font-size: 0.9375rem; }
.plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan li .i { margin-top: 0.22em; color: var(--done); }
.plan--pro li .i { color: var(--mint); }
.plan .alt { margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: 0.9375rem; }
.plan .alt b { font-stretch: 75%; font-weight: 800; }
.plan__vents { display: grid; gap: 3px; width: 44px; position: absolute; right: 24px; top: 30px; }
.plan__vents i { height: 3px; border-radius: 99px; background: var(--fill); }
.plan--pro .plan__vents i { background: color-mix(in srgb, var(--canvas) 22%, var(--ink)); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.compare { margin-top: clamp(40px, 5vw, 64px); width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { text-align: left; font-weight: 700; font-size: 1.375rem; margin-bottom: 14px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--hairline); }
.compare thead th { border-top: 1.5px solid var(--ink); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; color: var(--ink-2); }
.compare tbody th { font-weight: 650; width: 26%; }
.compare td { color: var(--ink-2); width: 37%; }
.compare td.y { color: var(--ink); }
.compare .i { display: inline-block; vertical-align: -0.15em; margin-right: 6px; color: var(--done); }
.compare .x { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.price-fine { margin-top: 18px; color: var(--ink-2); font-size: 0.875rem; max-width: 80ch; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); padding: 12px 0; gap: 4px 16px; }
  .compare tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 4px; }
  .compare td { border: 0; padding: 0; width: auto; }
  .compare td::before { content: attr(data-h); display: block; font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6875rem; color: var(--ink-2); margin-bottom: 2px; }
}

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { position: relative; padding-top: 4px; }
.faq__list::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.5px; background: var(--ink); }
details { border-bottom: 1px solid var(--hairline); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 650; font-size: 1.125rem; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary .i { font-size: 1.25rem; transition: transform .3s var(--ease-out); color: var(--ink-2); }
details[open] summary .i { transform: rotate(45deg); }
details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; display: grid; gap: 10px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* close */
.close { padding: 0; text-align: left; }
.close__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.close .mini { max-width: none; }
.locker--empty .door { --enamel: var(--fill); --deep: var(--hairline); background: var(--surface); box-shadow: none; outline: 1.5px dashed var(--ink-3); outline-offset: -1.5px; color: var(--ink-2); }
.locker--empty .door::before { box-shadow: none; }
.locker--empty .vents i { background: var(--fill); box-shadow: none; }
.locker--empty .state { color: var(--ink-2); }
@media (max-width: 900px) { .close__in { grid-template-columns: 1fr; } }

/* footer */
.foot { margin-top: var(--section); border-top: 1px solid var(--hairline); padding: 40px 0 48px; font-size: 0.9375rem; color: var(--ink-2); }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0; padding: 0; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { display: block; color: var(--ink-2); font-size: 0.8125rem; margin-top: 18px; width: 100%; }

/* ---------- reading pages (privacy, terms, support) ---------- */
.doc { padding: clamp(40px, 6vw, 88px) 0 0; }
.doc__head { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1.5px solid var(--ink); margin-bottom: 40px; }
.doc__head h1 { font-size: clamp(3rem, 2rem + 4vw, 5rem); }
.doc__meta { color: var(--ink-2); font-size: 0.9375rem; }
.doc__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: 0.875rem; }
.toc b { display: block; font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--ink-2); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); margin: 56px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--hairline); }
.prose thead th { border-top: 1.5px solid var(--ink); font-weight: 700; }
.callout { background: var(--surface); border-radius: var(--r-l); padding: 20px 22px; box-shadow: var(--e1); margin: 0 0 24px; }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .doc__grid { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
  .toc ol { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.contact a.card { display: grid; gap: 6px; text-decoration: none; background: var(--surface); border-radius: var(--r-l); padding: 22px; box-shadow: var(--e1); transition: transform .25s var(--ease-snap); }
.contact a.card:hover { transform: translateY(-2px); }
.contact a.card b { font-size: 1.125rem; }
.contact a.card span { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: calc(100vh - 68px); display: grid; align-content: center; gap: 28px; padding-top: 48px; padding-bottom: 80px; }
.lost__row { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 7px; }
.lost__row .locker { aspect-ratio: 0.5; }
.lost__row .stamp { font-size: 3.4rem; }

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .tier.reveal { transition-delay: calc(var(--step) * 70ms); }
}
@media (prefers-reduced-motion: reduce) {
  .swing { animation: none; transform: rotateY(96deg); }
  .toast { transition: opacity .2s; transform: none; }
  .pill.is-flip { animation: none; }
}

/* ---------- small screens: the row bleeds off both edges, centred on YOU ---------- */
@media (max-width: 760px) {
  .lockers { --door-w: 150px; justify-content: center; padding: 0; gap: 6px; }
  .row-stage { margin-left: 0; margin-right: 0; }
  .stamp { font-size: 4.2rem; }
  .nameplate { font-size: 0.6875rem; }
  .state { font-size: 0.75rem; }
  .vents { gap: 5px; }
  .vents i { height: 5px; }
  .store img { height: 50px; }
}
.locker:has(.swing) { z-index: 2; }


.cavity__plate { position: absolute; top: 3.2%; left: 50%; transform: translateX(-50%); z-index: 1; padding: 3px 10px; border-radius: 3px; background: #F7F8FA; color: #121316; white-space: nowrap; font-size: clamp(0.5625rem, 0.4rem + 0.35vw, 0.8125rem); }

/* the padlock: hung on every closed door's hasp (the product is the lock) */
.padlock { position: absolute; left: 6%; top: 50%; width: clamp(14px, 1.9vw, 26px); height: auto; color: var(--stamp); }
.handle { display: none; }
.mini .padlock { display: none; }
