/* from design/tokens.json */
:root { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F7F7F7; --stage: #F3EEFF; --on-stage: #1E1147; --line: #E5E5E5; --line-strong: #E5E5E5; --track: #E5E5E5; --ink: #3C3C3C; --ink-muted: #666666; --ink-subtle: #AFAFAF; --violet: #7A4DFF; --violet-edge: #5A2EE0; --violet-ink: #5A2EE0; --violet-tint: #EEE8FF; --on-violet: #FFFFFF; --win: #8BD400; --win-edge: #6FAE00; --win-ink: #3E6A00; --win-tint: #EAF8CC; --on-win: #FFFFFF; --streak: #FF9F1C; --streak-edge: #F07A00; --streak-ink: #A85200; --streak-tint: #FFEBCC; --freeze: #3DB8F5; --freeze-edge: #1D8BE0; --freeze-ink: #0A6596; --freeze-tint: #DDF3FF; --reward: #FFC12E; --reward-edge: #E59A00; --reward-ink: #8A5A00; --reward-tint: #FFF1C7; --on-streak: #FFFFFF; --on-freeze: #FFFFFF; --on-reward: #FFFFFF; --crystal: #9A7BFF; --crystal-ink: #5A2EE0; --ruby: #D92A52; --ruby-edge: #A8173D; --ruby-ink: #B5173F; --ruby-tint: #FFE3EA; --on-ruby: #FFFFFF; --medal-silver: #C9C2E3; --medal-bronze: #E89A5C; --danger: #D33A2E; --danger-edge: #A42A20; --danger-ink: #B3291E; --locked: #E5E5E5; --locked-edge: #B7B7B7; --focus: #7A4DFF; --scrim: rgba(18, 11, 38, 0.4); --night-top: #1A1150; --night-bottom: #3B1C86; --glass: rgba(255, 255, 255, 0.08); --glass-line: rgba(255, 255, 255, 0.2); --on-night: #FFFFFF; --on-night-muted: #CFC6FF; --apex-violet: #8F6BFF; --apex-orchid: #D86BFF; --apex-pink: #FF6FA8; --apex-gold: #FFB648; --apex-night-top: #1A1150; --apex-night-bottom: #0D0A26; --camera-scrim: rgba(18, 11, 38, 0.72); --camera-ink: #FFFFFF; --camera-ok: #B5F23D; --camera-wait: #FFD25E; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --radius-s: 12px; --radius-m: 16px; --radius-l: 20px; --radius-xl: 28px; --radius-pill: 999px; --duration-instant: 90ms; --duration-fast: 150ms; --duration-base: 220ms; --duration-slow: 360ms; --duration-celebrate: 600ms; --ease-standard: cubic-bezier(0.2, 0, 0, 1); --ease-enter: cubic-bezier(0, 0, 0.2, 1); --ease-exit: cubic-bezier(0.4, 0, 1, 1); --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (prefers-color-scheme: dark) { :root { --bg: #15131D; --surface: #1E1B29; --surface-2: #2A2638; --stage: #D6CCF7; --line: #38334A; --line-strong: #38334A; --track: #38334A; --ink: #F2F0F7; --ink-muted: #A9A3BA; --ink-subtle: #6E6880; --violet-edge: #5228D6; --violet-ink: #C2AEFF; --violet-tint: #2E2654; --win: #9BE01A; --win-ink: #B5F23D; --win-tint: #24321A; --streak: #FFA733; --streak-ink: #FFBE5C; --streak-tint: #3D2614; --freeze: #5CC3FF; --freeze-ink: #94DAFF; --freeze-tint: #12304A; --reward-ink: #FFD25E; --reward-tint: #3A2D0E; --crystal: #B9A0FF; --crystal-ink: #C2AEFF; --ruby-ink: #FF8FA8; --ruby-tint: #3D1424; --danger-ink: #FF9F96; --locked: #38334A; --locked-edge: #252033; --focus: #C2AEFF; --scrim: rgba(6, 3, 15, 0.6); } }
:root { --rainbow: conic-gradient(#FF5252, #FF9A1F, #FFD60A, #3DDC6B, #22CCEE, #3D7DFF, #9452FF, #FF5252); --rainbow-line: linear-gradient(90deg, #FF5252, #FF9A1F, #FFD60A, #3DDC6B, #22CCEE, #3D7DFF, #9452FF); --prism: conic-gradient(#8BD400, #3DB8F5, #7A4DFF, #FF7EB6, #FFC12E, #8BD400); }
/* Fitly site. The colour, radius, spacing and motion tokens above this line come from design/tokens.json (build.mjs
   writes them), so the site and the app always match. Light first; dark follows the system. */

@font-face { font-family: "Nunito"; src: url("/fonts/nunito-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1160px;
  --hdr: 64px;
  --h1: clamp(38px, 3.6vw + 22px, 66px);
  --h2: clamp(32px, 2.4vw + 21px, 50px);
  --h3: clamp(21px, 0.6vw + 17px, 24px);
  --lead: clamp(18px, 0.3vw + 16.5px, 21px);
  --section: clamp(56px, 5vw + 24px, 104px);
  --store-ink: #15131D;
  --store-edge: #000000;
  --stage-2: #F8F5FF;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --hdr: 76px; --gutter: 40px; } }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --store-ink: #000000; --store-edge: #38334A; --stage-2: #1E1B29; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
@media (min-width: 960px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--violet-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong, b { font-weight: 800; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet-tint); color: var(--ink); }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-m); background: var(--violet); color: var(--on-violet); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

/* ---------- type ---------- */
.h1 { font-size: var(--h1); line-height: 1.06; font-weight: 900; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.h2 { font-size: var(--h2); line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; color: var(--violet-ink); text-wrap: balance; }
.h3 { font-size: var(--h3); line-height: 1.25; font-weight: 800; color: var(--ink); }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 900 13px/16px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-ink); }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 1.5; }
.fine { font-size: 13px; line-height: 18px; font-weight: 800; color: var(--ink-muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons: everything you can touch is raised, on a 4 px lip ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border: 0; border-radius: var(--radius-m); font: 800 15px/20px var(--font); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: transform var(--duration-instant) var(--ease-standard), box-shadow var(--duration-instant) var(--ease-standard), filter var(--duration-fast) var(--ease-standard); margin-bottom: 4px; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--violet); color: var(--on-violet); box-shadow: 0 4px 0 0 var(--violet-edge); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: var(--surface); color: var(--violet-ink); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 0 var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-win { background: var(--win); color: var(--on-win); box-shadow: 0 4px 0 0 var(--win-edge); }
.btn-apex { background: linear-gradient(100deg, var(--apex-violet), var(--apex-orchid) 35%, var(--apex-pink) 70%, var(--apex-gold)); color: var(--apex-night-bottom); box-shadow: 0 4px 0 0 #A33DB8; }
.btn-night { background: var(--on-night); color: var(--night-top); box-shadow: 0 4px 0 0 var(--on-night-muted); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; line-height: 18px; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; font: 800 15px/20px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-ink); text-decoration: none; padding: 12px 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn .i { width: 18px; height: 18px; }

/* ---------- store buttons. TODO(owner): official badges. Apple and Google require their own badge artwork for
   store links: these are placeholders, swapped in one place (storeButtons() in build.mjs). ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; min-height: 60px; padding: 9px 22px 9px 16px; border-radius: 14px; background: var(--store-ink); color: #FFFFFF; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24), 0 4px 0 0 var(--store-edge); margin-bottom: 4px; transition: transform var(--duration-instant) var(--ease-standard), box-shadow var(--duration-instant) var(--ease-standard); -webkit-tap-highlight-color: transparent; }
.store:active { transform: translateY(4px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); }
.store .i { width: 30px; height: 30px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font: 800 12px/14px var(--font); letter-spacing: 0.02em; opacity: 0.86; }
.store b { font: 900 21px/26px var(--font); letter-spacing: -0.005em; white-space: nowrap; }
@media (max-width: 599px) {
  .stores { gap: 10px; }
  .store { flex: 1 1 0; min-width: 148px; max-width: 220px; justify-content: center; gap: 8px; padding: 9px 10px; }
  .store .i { width: 22px; height: 22px; }
  .store b { font-size: 17px; line-height: 22px; }
}

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid transparent; transition: border-color var(--duration-fast) var(--ease-standard); }
.hdr.scrolled, .hdr.open { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 16px; height: var(--hdr); }
.logo { display: block; flex: none; border-radius: 12px; }
.logo img { width: auto; height: 40px; }
@media (min-width: 960px) { .logo img { height: 46px; } }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-m); color: var(--ink-muted); font: 800 16px/20px var(--font); text-decoration: none; }
.nav li a:hover { color: var(--violet-ink); background: var(--violet-tint); }
.nav li a[aria-current="page"] { color: var(--violet-ink); }
.nav li a img { width: 22px; height: 22px; }
.nav-get { display: none; }
.hdr-cta { flex: none; margin-bottom: 4px; }
.menu-btn { display: none; order: 3; flex: none; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: var(--radius-m); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 0 var(--line-strong); cursor: pointer; place-items: center; margin-bottom: 4px; }
.menu-btn:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--line); }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .x { display: none; }
.hdr.open .menu-btn .x { display: block; }
.hdr.open .menu-btn .bars { display: none; }
@media (max-width: 959px) {
  .js .menu-btn { display: grid; }
  .js .hdr-cta { display: none; }
  .js .nav { position: fixed; inset: var(--hdr) 0 auto 0; max-height: calc(100dvh - var(--hdr)); overflow-y: auto; background: var(--bg); border-bottom: 2px solid var(--line); padding: 8px var(--gutter) 28px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), visibility 0s linear var(--duration-fast); }
  .js .hdr.open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav li + li { border-top: 2px solid var(--line); }
  .js .nav li a { display: flex; padding: 18px 4px; font-size: 20px; line-height: 24px; color: var(--ink); border-radius: 0; }
  .js .nav li a[aria-current="page"] { color: var(--violet-ink); background: none; }
  .js .nav li a:hover { background: none; }
  .js .nav li a img { width: 26px; height: 26px; }
  .js .nav-get { display: block; padding-top: 20px; }
  .js .nav-get .stores { flex-direction: column; align-items: stretch; }
  .js .nav-get .store { flex: none; max-width: none; justify-content: center; }
  .no-js .hdr-in { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .no-js .nav { width: 100%; order: 3; }
  .no-js .nav ul { flex-wrap: wrap; }
  .no-js .hdr-cta { margin-left: auto; }
}
@media (max-width: 380px) { .logo img { height: 36px; } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section.tight { padding: 48px 0; }
.band { background: var(--stage-2); }
.feature { display: grid; gap: 36px; align-items: center; }
.feature-art { position: relative; display: grid; place-items: center; }
.feature-text { max-width: 520px; }
.feature-text .lead { margin-top: 18px; }
.feature-text .points { margin-top: 24px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-art { order: 2; }
  .feature-text { padding: 0 8px; }
}
@media (min-width: 900px) { .feature.top { align-items: start; } .feature-art.sticky { position: sticky; top: calc(var(--hdr) + 32px); } }
.invite-card { width: 100%; max-width: 440px; padding: 28px; text-align: center; box-shadow: 0 4px 0 0 var(--line-strong); }
.invite-card .who { display: flex; gap: 12px; align-items: center; text-align: left; }
.invite-card .who img { width: 56px; height: 56px; }
.invite-card .who b { display: block; color: var(--ink); font-size: 18px; }
.invite-card .who span { display: block; color: var(--ink-muted); font-size: 15px; }
.invite-card .code-pill { margin-top: 10px; }
.invite-card .link { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font: 800 15px/20px var(--font); color: var(--violet-ink); }
@media (max-width: 899px) { .feature-text { margin: 0 auto; text-align: left; } .feature-art { max-width: 520px; margin: 0 auto; width: 100%; } }

.points { list-style: none; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.points .tick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--win); color: var(--on-win); margin-top: -2px; }
.points .tick .i { width: 18px; height: 18px; }
.points .pic { width: 32px; height: 32px; }
.points b { display: block; color: var(--ink); }
.points span { color: var(--ink-muted); }

/* Mo's stage: the pale disc he stands on, so he is never on violet */
.stage-disc { position: absolute; inset: 6% 6% 4%; border-radius: 50%; background: var(--stage); z-index: -1; }

/* a white card with the 2 px line, raised when it opens something */
.card { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.card.raised { box-shadow: 0 4px 0 0 var(--line-strong); }
a.card { display: block; color: inherit; text-decoration: none; box-shadow: 0 4px 0 0 var(--line-strong); transition: transform var(--duration-instant) var(--ease-standard), box-shadow var(--duration-instant) var(--ease-standard), border-color var(--duration-fast); }
a.card:hover { border-color: var(--violet); box-shadow: 0 4px 0 0 var(--violet); }
a.card:active { transform: translateY(4px); box-shadow: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); font: 900 12px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; background: var(--violet-tint); color: var(--violet-ink); white-space: nowrap; }
.chip .i { width: 15px; height: 15px; }
.chip.win { background: var(--win-tint); color: var(--win-ink); }
.chip.streak { background: var(--streak-tint); color: var(--streak-ink); }
.chip.freeze { background: var(--freeze-tint); color: var(--freeze-ink); }
.chip.gold { background: #FFF3D1; color: var(--reward-ink); }
.chip.apex { background: var(--apex-night-top); color: var(--on-night); }
.chip.apex img { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark) { .chip.gold { background: #3A2E10; } }

/* a sticker: a little raised UI pill that floats near the art, like a piece of the app */
.sticker { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: var(--radius-pill); background: var(--surface); border: 2px solid var(--line); box-shadow: 0 4px 0 0 var(--line-strong); font: 900 16px/20px var(--font); color: var(--ink); white-space: nowrap; }
.sticker img { width: 30px; height: 30px; }
.sticker .s-streak { color: var(--streak-ink); }
.sticker .s-win { color: var(--win-ink); }
.sticker .s-crystal { color: var(--crystal-ink); }
.sticker .s-reward { color: var(--reward-ink); }
.float { animation: float 6s var(--ease-standard) infinite; }
.float.d1 { animation-delay: -1.5s; } .float.d2 { animation-delay: -3s; } .float.d3 { animation-delay: -4.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Mo's speech bubble */
.bubble { position: relative; display: inline-block; padding: 12px 18px; border-radius: var(--radius-m); background: var(--surface); border: 2px solid var(--line); font: 800 17px/24px var(--font); color: var(--ink); max-width: 280px; }
.bubble::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--surface); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); left: 50%; bottom: -9px; margin-left: -7px; }
.bubble.left::after { left: -9px; top: 50%; bottom: auto; margin: -7px 0 0; transform: rotate(135deg); }
.bubble.right::after { left: auto; right: -9px; top: 50%; bottom: auto; margin: -7px 0 0; transform: rotate(-45deg); }
.bubble em { font-style: normal; }
.hl-win { color: var(--win-ink); } .hl-streak { color: var(--streak-ink); } .hl-crystal { color: var(--crystal-ink); } .hl-freeze { color: var(--freeze-ink); } .hl-reward { color: var(--reward-ink); }

/* ---------- home: hero ---------- */
.hero { padding: clamp(24px, 4vw, 64px) 0 clamp(32px, 4vw, 64px); overflow: clip; }
.hero-in { display: grid; gap: 28px; align-items: center; }
.hero-art { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1 / 1; isolation: isolate; }
.hero-art .stage-disc { inset: 8%; }
.hero-mo { position: absolute; left: 50%; bottom: 3%; width: 66%; translate: -50% 0; }
.hero-art .sticker { font-size: clamp(14px, 1vw + 9px, 17px); }
.hero-art .st-1 { left: 0; top: 16%; }
.hero-art .st-2 { right: 0; top: 34%; }
.hero-art .st-3 { left: 2%; bottom: 18%; }
.hero-text { text-align: center; }
.hero-text .lead { margin: 20px auto 0; max-width: 560px; }
.hero-text .stores { justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 18px; display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--ink-muted); font-weight: 800; font-size: 15px; }
.hero-note .i { width: 18px; height: 18px; color: var(--win-ink); }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-text { text-align: left; }
  .hero-text .lead { margin-left: 0; }
  .hero-text .stores { justify-content: flex-start; }
  .hero-note { justify-content: flex-start; }
}
@media (max-width: 899px) { .hero-art { width: min(100%, 420px); } }
@media (max-width: 420px) { .hero-art .sticker { padding: 6px 10px 6px 7px; gap: 6px; } .hero-art .sticker img { width: 24px; height: 24px; } }

/* ---------- home: a phone, built from the app's own art and live text ---------- */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; border-radius: 40px; overflow: hidden; background: #1A1424; box-shadow: 0 0 0 8px #15131D, 0 24px 48px rgba(18, 11, 38, 0.18); margin: 8px; }
.phone > img.feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .count { position: absolute; left: 7%; top: 8%; color: #FFFFFF; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.phone .count .ex { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--camera-scrim); font: 800 12px/16px var(--font); }
.phone .count .n { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font: 900 64px/1 var(--font); font-variant-numeric: tabular-nums; }
.phone .count .of { font: 800 17px/1 var(--font); }
.phone .count .plus { font: 900 26px/1 var(--font); color: var(--camera-ok); }
.phone .count .bar { width: 120px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); margin-top: 8px; overflow: hidden; }
.phone .count .bar i { display: block; height: 100%; width: 47%; background: var(--camera-ok); border-radius: 4px; }
.phone .trackbar { position: absolute; left: 5%; right: 5%; bottom: 3.5%; height: 13%; border-radius: 22px; background: var(--camera-scrim); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #FFFFFF; }
.phone .trackbar .b { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
.phone .trackbar .b .i { width: 20px; height: 20px; }
.phone .trackbar .dots { display: flex; gap: 6px; align-items: center; }
.phone .trackbar .dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); }
.phone .trackbar .dots i.on { background: var(--camera-ok); }
.phone .trackbar .dots i.now { width: 22px; background: #FFFFFF; }
.cam-art { position: relative; width: min(100%, 500px); margin: 0 auto; padding-top: 24px; isolation: isolate; }
.cam-art .phone { width: 56%; max-width: 280px; margin: 0 0 0 6%; }
.cam-art .mo { position: absolute; right: 0; bottom: -1%; width: 42%; max-width: 210px; z-index: 2; }
.cam-art .stage-disc { inset: 34% -2% 0 34%; }
.privacy-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: var(--radius-m); background: var(--surface); border: 2px solid var(--line); box-shadow: 0 4px 0 0 var(--line-strong); font: 800 15px/20px var(--font); color: var(--ink); }
.privacy-pill .lock { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--win); color: var(--on-win); display: grid; place-items: center; }
.privacy-pill .lock .i { width: 18px; height: 18px; }
.cam-art .privacy-pill { position: absolute; right: 0; top: 16%; z-index: 3; }
@media (max-width: 520px) { .cam-art .privacy-pill { position: relative; right: auto; top: auto; display: flex; width: fit-content; margin: 0 auto 18px; } .cam-art .privacy-pill br { display: none; } .cam-art .stage-disc { inset: 40% -2% 0 34%; } }

/* ---------- home: the path ---------- */
.path { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 22px 0 0; isolation: isolate; }
.path-ground { position: absolute; inset: 0; border-radius: 48px; background: color-mix(in srgb, var(--win) 13%, var(--bg)); z-index: -2; }
.path-banner { position: relative; margin: 0 22px 30px; padding: 14px 18px; border-radius: var(--radius-m); background: var(--win); color: var(--on-win); box-shadow: 0 4px 0 0 var(--win-edge); }
.path-banner .eyebrow { color: var(--on-win); opacity: 0.85; font-size: 12px; }
.path-banner b { display: block; font: 900 19px/24px var(--font); }
.path-rows { position: relative; }
.trail { position: absolute; left: 50%; top: 0; width: 440px; max-width: none; height: 640px; margin-left: -220px; z-index: -1; overflow: visible; }
.trail path { fill: none; stroke-width: 30; stroke-linecap: round; }
.trail .lip { stroke: color-mix(in srgb, var(--locked-edge) 60%, var(--bg)); }
.trail .ahead { stroke: var(--locked); }
.trail .walked { stroke: color-mix(in srgb, var(--win) 46%, var(--bg)); }
.trail .dots { stroke: var(--bg); stroke-width: 6; stroke-dasharray: 0 18; opacity: 0.75; }
.path { overflow: hidden; border-radius: 48px; }
.path-row { position: relative; height: 92px; }
.node { position: absolute; top: 10px; left: 50%; width: 72px; height: 64px; margin-left: -36px; border-radius: 50%; display: grid; place-items: center; background: var(--win); color: var(--on-win); box-shadow: 0 8px 0 0 var(--win-edge); }
.node::before { content: ""; position: absolute; left: 14px; top: 9px; width: 18px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: rotate(-20deg); }
.node .i { width: 32px; height: 32px; }
.node.locked { background: var(--locked); color: var(--ink-muted); box-shadow: 0 8px 0 0 var(--locked-edge); }
.node.locked::before { display: none; }
.node.today { box-shadow: 0 8px 0 0 var(--win-edge), 0 0 0 14px color-mix(in srgb, var(--win) 13%, var(--bg)), 0 0 0 22px var(--track); }
.node.today::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; background: conic-gradient(var(--win) 0 33%, transparent 33% 100%); -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 56%, #000 57%, #000 70%, transparent 71%); }
.node-bubble { position: absolute; left: 50%; top: -66px; translate: -50% 0; padding: 6px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); font: 800 14px/18px var(--font); letter-spacing: 0.06em; color: var(--win-ink); text-transform: uppercase; }
.node-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px; background: var(--surface); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.path-row.today { height: 150px; }
.path-row.today .node { top: 70px; }
.path-chest { position: absolute; top: 4px; left: 50%; width: 72px; margin-left: -36px; }
.path-trophy { position: absolute; top: 0; left: 50%; width: 88px; margin-left: -44px; }
.path-mo { position: absolute; width: 118px; z-index: 1; }
.path-deco { position: absolute; z-index: -1; }
.path-deco.tree { width: 64px; } .path-deco.bush { width: 70px; } .path-deco.flowers { width: 60px; } .path-deco.flag { width: 36px; }

/* ---------- home: streak ---------- */
.streak-art { position: relative; width: min(100%, 480px); margin: 0 auto; padding: 8px 0; isolation: isolate; }
.streak-glow { position: absolute; left: 50%; top: 4%; width: 74%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, var(--streak-tint) 0 58%, transparent 72%); z-index: -1; }
.streak-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding-left: 4%; }
.streak-head .flame { width: 150px; }
.streak-head .big { font: 900 clamp(64px, 6vw + 32px, 96px)/0.9 var(--font); color: var(--streak-ink); font-variant-numeric: tabular-nums; }
.streak-head .lbl { font: 900 22px/26px var(--font); color: var(--streak-ink); }
.week { margin-top: 26px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 2px solid var(--line); }
.week .d { display: grid; justify-items: center; gap: 6px; }
.week .d small { font: 900 12px/16px var(--font); letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase; }
.week .d span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--streak-tint); }
.week .d span img { width: 26px; height: 26px; }
.week .d.ice span { background: var(--freeze-tint); }
.week .d.today span { background: var(--streak); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--streak); }
.week .d.next span { background: var(--surface-2); }
.week .d.next span img { opacity: 0.9; }
.milestones { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ms { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: var(--radius-pill); background: var(--surface); border: 2px solid var(--line); font: 900 15px/20px var(--font); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ms img { width: 24px; height: 24px; }
.ms.done { color: var(--streak-ink); border-color: var(--streak); }
.streak-art .mo { position: absolute; right: 0; top: 0; width: 26%; max-width: 128px; }
@media (max-width: 520px) { .streak-head .flame { width: 104px; } .week { padding: 12px 8px; gap: 2px; } .week .d span { width: 34px; height: 34px; } }

/* ---------- home: friends ---------- */
.friends-art { position: relative; width: min(100%, 500px); margin: 0 auto; isolation: isolate; }
.friends-art .scene { width: 100%; }
.friends-art .stage-disc { inset: 4% 8% 10%; background: var(--freeze-tint); }
.claim { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface); }
.claim p.big { font: 900 22px/28px var(--font); color: var(--ink); }
.claim p.big em { font-style: normal; color: var(--violet-ink); }
.claim p.src { margin-top: 10px; font: 800 13px/18px var(--font); color: var(--ink-muted); }
.claim p.src a { color: inherit; }
.split-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.split-states figure { text-align: center; padding: 14px 6px 12px; border-radius: var(--radius-m); border: 2px solid var(--line); background: var(--surface); }
.split-states img { width: 52px; height: 52px; margin: 0 auto 8px; }
.split-states figcaption { font: 800 14px/18px var(--font); color: var(--ink-muted); }

/* ---------- home: compete ---------- */
.trio { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.trio .card { padding: 24px; display: flex; flex-direction: column; }
.trio .card .h3 { margin-top: 18px; }
.trio .card p { margin-top: 8px; color: var(--ink-muted); }
.trio .art { height: 168px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-radius: var(--radius-m); background: var(--stage-2); padding: 14px; overflow: hidden; }
.badges img { width: 56px; } .badges img:nth-child(2) { width: 64px; margin-bottom: 10px; } .badges img:nth-child(3) { width: 74px; margin-bottom: 20px; } .badges img:nth-child(4) { width: 86px; margin-bottom: 30px; }
.quest-list { width: 100%; align-self: center; display: grid; gap: 10px; }
.quest { display: grid; grid-template-columns: 36px 1fr 40px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-m); background: var(--surface); border: 2px solid var(--line); }
.quest img { width: 36px; height: 36px; }
.quest b { display: block; font: 800 15px/18px var(--font); color: var(--ink); }
.quest .qbar { position: relative; height: 16px; border-radius: 8px; background: var(--track); margin-top: 5px; overflow: hidden; }
.quest .qbar i { position: absolute; inset: 0 auto 0 0; background: var(--streak); border-radius: 8px; }
.quest .qbar.done i { background: var(--win); }
.quest .qbar span { position: relative; display: block; text-align: center; font: 900 13px/16px var(--font); color: var(--on-streak); font-variant-numeric: tabular-nums; }
.awards img { width: 92px; } .awards img:nth-child(2) { width: 108px; margin-bottom: 8px; }

/* ---------- home: Mo ---------- */
.mo-art { position: relative; width: min(100%, 500px); margin: 0 auto; padding-top: 70px; isolation: isolate; }
.mo-art .mo { width: 58%; margin: 0 0 0 2%; }
.mo-art .stage-disc { inset: 24% 36% 0 -4%; }
.mo-art .bubble { position: absolute; left: 4%; top: 0; }
.mo-art .call { position: absolute; right: 0; bottom: 8%; width: 32%; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--stage); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line); }
.mo-art .call img { width: 100%; height: 100%; object-fit: cover; }
.mo-art .call .tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--camera-scrim); color: #FFFFFF; font: 800 12px/16px var(--font); }
.mo-art .call .tag .i { width: 14px; height: 14px; }
.apex-row { margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-l); background: linear-gradient(160deg, var(--apex-night-top), var(--apex-night-bottom)); color: var(--on-night); }
.apex-row img { width: 48px; height: 48px; flex: none; }
.apex-row b { display: block; font: 900 18px/24px var(--font); }
.apex-row p { color: var(--on-night-muted); font-size: 16px; line-height: 1.5; margin-top: 4px; }
.apex-row a { color: var(--on-night); }

/* ---------- home: body ---------- */
.body-art { width: min(100%, 520px); margin: 0 auto; }
.body-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 24px 12px 0; border-radius: var(--radius-l); background: var(--stage); }
.body-steps figure { display: grid; justify-items: center; gap: 4px; min-width: 0; }
@media (max-width: 359px) { .body-steps { gap: 4px; padding: 20px 8px 0; } .body-steps figcaption { font-size: 11px; padding: 3px 6px; } }
.body-steps img { width: 100%; }
.body-steps figcaption { margin: 6px 0 14px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface); color: var(--on-stage); font: 900 13px/16px var(--font); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .body-steps figcaption { background: #FFFFFF; } }
.tiers { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.tier { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: var(--surface); font: 800 13px/16px var(--font); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.tier i { width: 14px; height: 14px; border-radius: 50%; }
.tier.prism i { background: var(--prism); }

/* ---------- a closing call to action, with Mo ---------- */
.cta { text-align: center; }
.cta .mo { width: 210px; margin: 0 auto 8px; }
.cta .h2 { color: var(--ink); }
.cta .lead { margin: 16px auto 0; max-width: 560px; }
.cta .stores { justify-content: center; margin-top: 30px; }
.cta-stage { position: relative; width: 260px; margin: 0 auto; isolation: isolate; }
.cta-stage .stage-disc { inset: 12% 4% 6%; }

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(32px, 4vw, 72px) 0 clamp(32px, 4vw, 56px); }
.page-head.split .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .page-head.split .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.page-head .lead { margin-top: 18px; max-width: 620px; }
.page-head .art { position: relative; width: min(100%, 420px); margin: 0 auto; isolation: isolate; }
.page-head .stores { margin-top: 28px; }

/* ---------- friends page ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps.three { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps > li { position: relative; padding: 22px 22px 22px 76px; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface); }
.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: var(--on-violet); font: 900 19px/1 var(--font); box-shadow: 0 3px 0 0 var(--violet-edge); }
.steps > li b { display: block; font-size: 19px; line-height: 1.3; color: var(--ink); }
.steps > li span { display: block; margin-top: 6px; color: var(--ink-muted); }
.ladder { list-style: none; padding: 0; display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface); }
.rung .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet-ink); font: 900 22px/1 var(--font); font-variant-numeric: tabular-nums; }
.rung b { display: block; color: var(--ink); font-size: 18px; line-height: 1.35; }
.rung span { display: block; color: var(--ink-muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.rung span.chip { display: inline-flex; margin-top: 8px; }
.rung > img { width: 64px; height: 64px; object-fit: contain; }
.rung > img.wide { height: 40px; object-fit: cover; border-radius: 10px; }
@media (max-width: 420px) { .rung { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; padding: 12px; } .rung .n { width: 48px; height: 48px; font-size: 19px; } .rung > img { width: 48px; height: 48px; } .rung > img.wide { height: 30px; } }
.rung.big { border: 3px solid var(--reward); box-shadow: 0 4px 0 0 var(--reward-edge); }
.rung.big .n { background: var(--reward); color: var(--on-reward); }
.status-band { position: relative; overflow: hidden; margin-top: 28px; padding: 30px 22px 24px; border-radius: var(--radius-xl); background: linear-gradient(160deg, #1C1733, #0B0A14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.status-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow-line); }
.status-band .eyebrow { color: transparent; background: var(--rainbow-line) text; -webkit-background-clip: text; }
.status-band h3 { margin-top: 8px; font: 900 24px/30px var(--font); }
.status-band > p { margin-top: 8px; color: #C9C3DE; }
.status-band .ladder { margin-top: 20px; }
.status-band .rung { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.status-band .rung .n { border: 3px solid transparent; background: linear-gradient(#0B0A14, #0B0A14) padding-box, var(--rainbow) border-box; color: #FFFFFF; }
.status-band .rung b { color: var(--on-night); }
.status-band .rung span { color: #C9C3DE; }
.crew-tree { padding: 24px 16px; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface); }
.crew-tree .lvl { display: grid; grid-template-columns: 1fr; gap: 10px; justify-items: center; text-align: center; }
.crew-tree .lvl + .lvl { margin-top: 10px; padding-top: 14px; border-top: 2px dashed var(--line); }
.crew-tree .who { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.crew-tree .who img { width: 56px; height: 56px; border-radius: 50%; }
.crew-tree .who .more { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 900 16px/1 var(--font); color: var(--ink-muted); }
.crew-tree .lbl { font: 900 12px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-ink); }
.crew-tree .lbl + span { font-size: 15px; color: var(--ink-muted); }
.pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack figure { text-align: center; padding: 16px 8px; border-radius: var(--radius-m); border: 2px solid var(--line); background: var(--surface); }
.pack img { width: 48px; height: 48px; margin: 0 auto 8px; }
.pack figcaption { font: 800 15px/20px var(--font); color: var(--ink); }

/* ---------- Apex: the night ---------- */
.night { --bg: var(--apex-night-bottom); --surface: rgba(255, 255, 255, 0.06); --line: rgba(255, 255, 255, 0.16); --line-strong: rgba(255, 255, 255, 0.1); --ink: var(--on-night); --ink-muted: var(--on-night-muted); --violet-ink: #D9CCFF; --focus: #FFB648; color-scheme: dark; }
body.night { background: var(--apex-night-bottom); }
.night .hdr { background: var(--apex-night-top); }
.night .hdr.scrolled, .night .hdr.open { border-bottom-color: rgba(255, 255, 255, 0.12); }
.night .nav li a { color: var(--on-night-muted); }
.night .nav li a:hover, .night .nav li a[aria-current="page"] { color: var(--on-night); background: rgba(255, 255, 255, 0.08); }
.night .menu-btn { background: rgba(255, 255, 255, 0.06); color: var(--on-night); }
@media (max-width: 959px) { .night.js .nav { background: var(--apex-night-top); } .night.js .nav li a { color: var(--on-night); background: none; } }
.apex-hero { position: relative; background: linear-gradient(180deg, var(--apex-night-top) 0%, #130D3A 60%, var(--apex-night-bottom) 100%); overflow: clip; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 96px); }
.apex-hero::before { content: ""; position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(216, 107, 255, 0.18), transparent 62%); pointer-events: none; }
.apex-hero .wrap { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .apex-hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; } }
.apex-hero .lockup { width: min(280px, 64%); }
.apex-hero .h1 { color: var(--on-night); margin-top: 20px; }
.apex-hero .lead { color: var(--on-night-muted); margin-top: 16px; }
.apex-hero .stores { margin-top: 28px; }
.night .ftr { background: var(--apex-night-top); border-top: 2px solid var(--glass-line); }
.night .ftr-brand .store { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), 0 4px 0 0 #000; }
.apex-hero .mo { width: min(100%, 380px); margin: 0 auto; }
.apex-mo { position: relative; isolation: isolate; }
.apex-mo::before { content: ""; position: absolute; inset: 10% 8% 2%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #3A2A7A, rgba(26, 17, 80, 0) 70%); z-index: -1; }
.perks { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .perks { grid-template-columns: 1fr 1fr; } }
.perk { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius-l); background: var(--glass); border: 2px solid var(--glass-line); }
.perk img { width: 56px; height: 56px; }
.perk b { display: block; font: 900 19px/24px var(--font); color: var(--on-night); }
.perk span { display: block; margin-top: 6px; color: var(--on-night-muted); font-size: 16px; line-height: 1.5; }
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.plan { position: relative; padding: 26px 24px; border-radius: var(--radius-l); background: var(--glass); border: 2px solid var(--glass-line); color: var(--on-night); }
.plan.best { border: 0; padding: 28px 26px; background: linear-gradient(var(--apex-night-top), var(--apex-night-top)) padding-box, linear-gradient(120deg, var(--apex-violet), var(--apex-orchid), var(--apex-pink), var(--apex-gold)) border-box; border: 3px solid transparent; }
.plan .tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--apex-gold); color: var(--apex-night-bottom); font: 900 12px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.plan h3 { margin-top: 14px; font: 900 22px/28px var(--font); }
.plan .price { margin-top: 10px; font: 900 44px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.plan .price small { font: 800 17px/1 var(--font); color: var(--on-night-muted); letter-spacing: 0; }
.plan .per { margin-top: 10px; color: var(--on-night-muted); font-weight: 800; }
.plan .per b { color: var(--apex-gold); }
.plan ul { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--on-night-muted); font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { width: 18px; height: 18px; margin-top: 4px; color: var(--camera-ok); }
.price-note { margin-top: 18px; color: var(--on-night-muted); font-size: 15px; line-height: 1.55; }
.night .card { background: var(--glass); border-color: var(--glass-line); }
.night .h2 { color: var(--on-night); }
.night .h3 { color: var(--on-night); }
.night .stores .store { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 4px 0 0 #000; }
.night .chip { background: rgba(255, 255, 255, 0.1); color: var(--on-night); }
.gift-art { position: relative; width: min(100%, 360px); margin: 0 auto; isolation: isolate; }
.gift-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 168, 0.22), transparent 66%); z-index: -1; }
.never { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-l); border: 2px dashed var(--glass-line); color: var(--on-night-muted); }
.never b { color: var(--on-night); }

/* ---------- blog ---------- */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } .post-grid .lead-post { grid-column: 1 / -1; } }
.post-card { padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column; }
.post-card .cover { position: relative; aspect-ratio: 16 / 9; background: var(--stage); }
.post-card .cover img { position: absolute; left: 8%; top: 9%; width: 84%; height: 82%; object-fit: contain; }
.post-card .body { padding: 22px 24px 26px; }
.post-card .meta { font: 800 14px/18px var(--font); color: var(--ink-muted); }
.post-card h2, .post-card h3 { margin-top: 8px; font: 900 24px/30px var(--font); color: var(--ink); }
.post-card p { margin-top: 8px; color: var(--ink-muted); }
@media (min-width: 760px) {
  .post-grid .lead-post { flex-direction: row !important; }
  .post-grid .lead-post .cover { flex: 1.1; aspect-ratio: auto; min-height: 340px; }
  .post-grid .lead-post .body { flex: 1; align-self: center; padding: 32px 36px; }
  .post-grid .lead-post h2 { font-size: 34px; line-height: 40px; }
}
.post-head { padding: clamp(28px, 4vw, 64px) 0 0; }
.post-head .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 800 15px/20px var(--font); color: var(--ink-muted); }
.post-head .meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.post-head .meta .by img { width: 32px; height: 32px; }
.post-cover { position: relative; margin-top: 32px; border-radius: var(--radius-xl); background: var(--stage); aspect-ratio: 2 / 1; overflow: hidden; }
.post-cover img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); padding-top: 40px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font: 900 28px/34px var(--font); color: var(--ink); }
.prose h3 { margin-top: 32px; font: 800 21px/28px var(--font); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--violet-ink); font-weight: 900; }
.prose blockquote { padding: 18px 22px; border-radius: var(--radius-l); background: var(--violet-tint); color: var(--ink); font-weight: 800; }
.prose blockquote p + p { margin-top: 10px; }
.prose blockquote small, .prose .cite { display: block; font: 800 14px/20px var(--font); color: var(--ink-muted); }
.prose figure img { margin: 0 auto; max-height: 320px; width: auto; }
.prose figcaption { margin-top: 10px; text-align: center; font: 800 14px/20px var(--font); color: var(--ink-muted); }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 40px 0; }
.prose code { font: 800 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- help ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.topics a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 0 var(--line-strong); color: var(--ink); font: 800 15px/20px var(--font); text-decoration: none; }
.topics a:hover { border-color: var(--violet); color: var(--violet-ink); }
.topics a img { width: 24px; height: 24px; }
.faq-group { padding-top: 44px; }
.faq-group h2 { display: flex; align-items: center; gap: 12px; font: 900 28px/34px var(--font); color: var(--ink); }
.faq-group h2 img { width: 40px; height: 40px; }
.faq { margin-top: 18px; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-m); border: 2px solid var(--line); background: var(--surface); box-shadow: 0 4px 0 0 var(--line-strong); }
.faq details[open] { border-color: var(--violet); box-shadow: 0 4px 0 0 var(--violet); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; font: 800 18px/24px var(--font); color: var(--ink); border-radius: var(--radius-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--violet-ink); transition: transform var(--duration-fast) var(--ease-standard); flex: none; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .a { padding: 0 18px 18px; color: var(--ink-muted); font-size: 17px; line-height: 1.6; }
.faq .a > * + * { margin-top: 10px; }
.faq .a ol, .faq .a ul { padding-left: 1.3em; }
.faq .a b { color: var(--ink); }
.contact { margin-top: 56px; display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-xl); background: var(--stage); color: var(--on-stage); }
.contact .h3 { color: var(--on-stage); }
.contact p { color: var(--on-stage); }
.contact a:not(.btn) { color: #5A2EE0; }
.contact img { width: 120px; margin: 0 auto; }
@media (min-width: 700px) { .contact { grid-template-columns: 120px 1fr; } }

/* ---------- legal ---------- */
.draft { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-l); background: var(--streak-tint); color: var(--ink); border: 2px solid var(--streak); }
.draft .i { width: 26px; height: 26px; color: var(--streak-ink); flex: none; margin-top: 2px; }
.draft b { display: block; color: var(--streak-ink); font-size: 18px; }
.summary { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface); }
.summary h2 { font: 900 22px/28px var(--font); color: var(--ink); }
.summary ul { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.summary li .i { width: 22px; height: 22px; color: var(--win-ink); margin-top: 2px; }
.legal { padding-top: 12px; }
.legal h2 { margin-top: 40px; font: 900 24px/30px var(--font); color: var(--ink); }
.legal h3 { margin-top: 24px; font: 800 19px/26px var(--font); color: var(--ink); }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal .todo { display: block; margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); font: 800 14px/20px var(--font); color: var(--ink-muted); }

/* ---------- press ---------- */
.press-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.asset { padding: 0; overflow: hidden; }
.asset .pv { position: relative; height: 180px; background: var(--stage-2); }
.asset .pv.dark { background: #130B2E; }
.asset .pv.violet { background: var(--violet); }
.asset .pv img { position: absolute; left: 20px; top: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; }
.asset .info { padding: 14px 16px 16px; border-top: 2px solid var(--line); }
.asset .info b { display: block; color: var(--ink); }
.asset .dl { display: flex; gap: 14px; margin-top: 6px; }
.asset .dl a { font: 800 14px/20px var(--font); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.swatches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.swatch { border-radius: var(--radius-l); border: 2px solid var(--line); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 96px; }
.swatch div { padding: 12px 14px; }
.swatch b { display: block; color: var(--ink); }
.swatch span { display: block; font: 800 14px/20px var(--font); color: var(--ink-muted); }
.rules { display: grid; gap: 12px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 16px; border-radius: var(--radius-m); border: 2px solid var(--line); }
.rules .i { width: 22px; height: 22px; margin-top: 2px; }
.rules .do .i { color: var(--win-ink); }
.rules .dont .i { color: var(--ink-muted); }
.rules ul { padding: 0; }

/* ---------- short-link pages: invite, gift, profile ---------- */
.landing { padding: clamp(20px, 4vw, 48px) 0 var(--section); }
.landing-card { max-width: 560px; margin: 0 auto; text-align: center; }
.landing .art { position: relative; width: 240px; margin: 0 auto; isolation: isolate; }
.landing .art .stage-disc { inset: 10% 2% 2%; }
.landing .h1 { font-size: clamp(34px, 2.6vw + 24px, 50px); margin-top: 12px; }
.landing .lead { margin: 14px auto 0; max-width: 460px; }
.code-box { margin: 28px auto 0; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.code-pill { display: inline-block; padding: 14px 30px; border-radius: var(--radius-pill); background: var(--violet-tint); color: var(--violet-ink); border: 3px solid var(--violet); font: 900 clamp(36px, 4vw + 20px, 52px)/1 var(--font); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.copy-btn[data-done] { background: var(--win); color: var(--on-win); box-shadow: 0 4px 0 0 var(--win-edge); }
.landing .stores { justify-content: center; margin-top: 28px; }
.landing .how { margin: 36px auto 0; text-align: left; max-width: 520px; }
.landing .how h2 { font: 900 22px/28px var(--font); color: var(--ink); text-align: center; }
.gets { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .gets { grid-template-columns: 1fr 1fr; } }
.gets .card b { display: block; font: 900 13px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-ink); }
.gets .card ul { margin-top: 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.gets .card li { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 800; }
.gets .card li img { width: 30px; height: 30px; flex: none; }
.ios-note { margin-top: 18px; color: var(--ink-muted); font-size: 15px; }
.open-app { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.open-app .small { margin: 0; }
.avatar-ring { width: 128px; height: 128px; margin: 0 auto; border-radius: 50%; background: var(--stage); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--line); }
.avatar-ring img { width: 112px; height: 112px; }
.state-invalid { display: none; }
[data-state="invalid"] .state-ok { display: none; }
[data-state="invalid"] .state-invalid { display: block; }

/* ---------- the parent approval page, tryfitly.io/p/TOKEN ---------- */
/* its other states: done (just approved: Mo cheers), used and expired (the link is spent, with how to get a new one) */
.state-done, .state-used, .state-expired, .state-spent { display: none; }
[data-state="done"] .state-ok, [data-state="done"] .state-waiting, [data-state="used"] .state-ok, [data-state="expired"] .state-ok { display: none; }
[data-state="done"] .state-done, [data-state="used"] .state-used, [data-state="expired"] .state-expired { display: block; }
[data-state="used"] .state-spent, [data-state="expired"] .state-spent, [data-state="invalid"] .state-spent { display: block; }
/* what a kids account has, and what it never has */
.yesno { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .yesno { grid-template-columns: 1fr 1fr; } }
.yesno .card b { display: block; font: 900 13px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-ink); }
.yesno .card ul { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.yesno .card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink); }
.yesno .card li .i { width: 22px; height: 22px; margin-top: 2px; color: var(--win-ink); }
.yesno .no li .i { color: var(--ink-muted); }
/* the form: the parent's email (read-only, the link was sent to it), the checkbox and APPROVE */
.approve { margin-top: 28px; }
.field { display: block; }
.field > span { display: block; margin-bottom: 8px; font: 900 13px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-ink); }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); font: 800 17px/24px var(--font); }
.field input[readonly] { background: var(--surface-2); color: var(--ink-muted); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--ink); font-weight: 800; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--violet); cursor: pointer; }
.approve .btn { margin-top: 20px; }
.landing-min .nav, .landing-min .hdr-cta, .landing-min .menu-btn, .landing-min .ftr-top { display: none !important; }
.landing-min .ftr { padding: 8px 0 28px; }
.landing-min .ftr-bottom { margin-top: 0; border-top: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 16px; opacity: 0; padding: 12px 20px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); font: 800 16px/20px var(--font); transition: opacity var(--duration-fast) var(--ease-standard), translate var(--duration-fast) var(--ease-standard); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: clamp(32px, 6vw, 96px) 0 var(--section); }
.lost .mo { width: 220px; margin: 0 auto; }
.lost .lead { margin: 16px auto 0; max-width: 480px; }
.lost .go { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer: Fitly violet, the site map ---------- */
.ftr { background: var(--violet); color: var(--on-violet); padding: 64px 0 32px; }
.ftr a { color: var(--on-violet); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-top { display: grid; gap: 40px; }
@media (min-width: 960px) { .ftr-top { grid-template-columns: 1.2fr 2fr; gap: 56px; } }
.ftr-brand img { height: 52px; width: auto; }
.ftr-brand p { margin-top: 16px; max-width: 340px; font-size: 16px; line-height: 1.55; }
.ftr-brand .stores { margin-top: 22px; }
.ftr-brand .store { background: #15131D; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), 0 4px 0 0 var(--violet-edge); }
.ftr-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 600px) { .ftr-cols { grid-template-columns: repeat(4, 1fr); } }
.ftr-cols h2 { font: 900 13px/16px var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.ftr-cols ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 4px; }
.ftr-cols a { display: inline-block; padding: 6px 0; font-weight: 800; font-size: 16px; }
.ftr-bottom { margin-top: 48px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, 0.26); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font: 800 14px/20px var(--font); }
.ftr-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- dark: the tokens switch above; these few need a hand ---------- */
@media (prefers-color-scheme: dark) {
  .ftr { background: #241B4D; }
  .ftr-brand .store { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), 0 4px 0 0 #120D2B; }
  .phone { box-shadow: 0 0 0 8px #000000, 0 0 0 10px var(--line), 0 24px 48px rgba(0, 0, 0, 0.4); }
  .path-banner .eyebrow { opacity: 1; }
  .mo-art .call { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line); }
}

/* ---------- the launch video: the reel in a phone, on its stage disc, beside what it shows ---------- */
.watch { padding-top: 0; }
.reel { position: relative; width: min(100%, 440px); margin: 0 auto; padding: 20px 0 12px; isolation: isolate; }
.reel .stage-disc { inset: 10% 1% 4%; }
.phone-video { position: relative; width: min(100%, 304px); margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; background: #1A1424; box-shadow: 0 0 0 8px #15131D, 0 24px 48px rgba(18, 11, 38, 0.18); }
.phone-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1A1424; }
@media (max-width: 599px) { .phone-video { width: min(100%, 270px); border-radius: 34px; } }
@media (prefers-color-scheme: dark) { .phone-video { box-shadow: 0 0 0 8px #000000, 0 0 0 10px var(--line), 0 24px 48px rgba(0, 0, 0, 0.4); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
