/* trybagwork.fun (2026-11-28): halfway between Bagwork (black, the white money bag, the points box, X posts) and Pair
   (trypair.app: Apple-clean bands, a centred top nav, huge tight headlines, white and #f5f5f7 sections).
   Light by default like Pair; anything inside .dk is Bagwork's black. Loaded after bw.css, which only uses these tokens. */
:root, .lt {
  --bg: #fff; --bg2: #f5f5f7; --card: #fff; --card2: #fafafa; --well: #f5f5f7; --ph: #e8e8ed;
  --tint: 0, 0, 0;
  --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .13); --line3: rgba(0, 0, 0, .26);
  --text: #1d1d1f; --oninv: #fff; --mut: #515154; --dim: #86868b; --faint: #aeaeb2;
  --good: #1f9d55; --bad: #d93c3c; --goodt: #136c3a; --badt: #b42525;
  --hdr: rgba(255, 255, 255, .78);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease2: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  color: var(--text);
}
.dk {
  --bg: #000; --bg2: #0a0a0a; --card: #111; --card2: #161616; --well: #0b0b0b; --ph: #1c1c1c;
  --tint: 255, 255, 255;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --line3: rgba(255, 255, 255, .26);
  --text: #fff; --oninv: #000; --mut: rgba(255, 255, 255, .64); --dim: rgba(255, 255, 255, .44); --faint: rgba(255, 255, 255, .26);
  --good: #4ade80; --bad: #ff6b6b; --goodt: #b8f5cd; --badt: #ffb3b3;
  --hdr: rgba(0, 0, 0, .72);
  color-scheme: dark;
  background: var(--bg); color: var(--text);
}
body { background: var(--bg); }
::selection { background: var(--text); color: var(--oninv); }
.msg { color: var(--badt); }
.msg.ok { color: var(--goodt); }
.post .pt { color: var(--text); opacity: .92; }

/* ------------------------------------------------------------ top nav (Pair's layout, Bagwork's bag) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: 60px; background: var(--hdr); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line); color: var(--text); transition: background .4s, color .4s, border-color .4s; }
.hdr-in { max-width: none; height: 60px; padding: 0 28px; position: relative; }
.brand { font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.brand img { height: 26px; }
.lt .brand img, :root:not(.navdk) .hdr .brand img { filter: invert(1); }
.nav { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; gap: 30px; }
.nav a { padding: 0; border-radius: 0; font-size: 14px; font-weight: 400; color: var(--mut); }
.nav a.on { background: none; color: var(--text); }
.hdr .pill { height: 36px; font-size: 14px; }
.hdr .pill.ic { width: 36px; border-color: transparent; }
.hdr .pill.ic:hover { border-color: var(--line2); }
.mnav { display: none !important; }
.burger { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; place-items: center; padding: 0; }
.burger i, .burger i::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease2); }
.burger i::before { content: ""; position: absolute; top: 6px; left: 0; }
.burger i { transform: translateY(-3px); }
html.sheet-on .burger i { transform: rotate(45deg); }
html.sheet-on .burger i::before { transform: translateY(-6px) rotate(-90deg); }
/* over a black band the nav is Bagwork's: black glass, white text */
html.navdk .hdr { --hdr: rgba(0, 0, 0, .55); --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16); --line3: rgba(255, 255, 255, .3);
  --text: #fff; --oninv: #000; --mut: rgba(255, 255, 255, .66); --tint: 255, 255, 255; color-scheme: dark; }
html.navdk.attop .hdr { --hdr: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet { position: fixed; inset: 0; z-index: 45; background: #000; color: #fff; padding: 84px 24px 30px; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-100%); visibility: hidden; transition: transform .55s var(--ease2), visibility 0s linear .55s; overflow-y: auto; }
.sheet.on { transform: none; visibility: visible; transition: transform .55s var(--ease2), visibility 0s; }
.sheet a { font-size: 34px; font-weight: 650; letter-spacing: -.035em; padding: 6px 0; }
.sheet a.on { color: rgba(255, 255, 255, .45); }
html.sheet-on, html.sheet-on body { overflow: hidden; }
html.sheet-on .hdr { --hdr: #000; --text: #fff; --oninv: #000; --mut: rgba(255, 255, 255, .66); --line: transparent; --line2: rgba(255, 255, 255, .16); color-scheme: dark; }
@media (max-width: 860px) {
  .nav, .hdr .pill.ca, .hdr .pill.ic { display: none !important; }
  .burger { display: grid; }
  .hdr-in { padding: 0 14px; gap: 8px; }
  .hdr .pill { height: 34px; padding: 0 12px; font-size: 13px; }
}

/* ------------------------------------------------------------ pages under the fixed nav (Pair's page heads) */
.page { max-width: 1240px; padding: 104px clamp(16px, 4vw, 40px) 20px; }
.page > .eyebrow:first-child, .page [data-page] > .eyebrow:first-child { color: var(--dim); }
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
h2 { letter-spacing: -.03em; font-weight: 650; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--mut); }
.card { border-radius: 22px; }
.coin { border-radius: 18px; }
.coin:hover { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
.dk .coin:hover { box-shadow: none; }
.post { border-radius: 16px; }
.prose code { background: var(--well); }

/* ------------------------------------------------------------ footer: Bagwork black */
.foot { max-width: none; margin: 0; padding: 44px clamp(16px, 4vw, 40px) 40px; border-top: 0; background: #000; color: rgba(255, 255, 255, .45); }
.foot a:hover { color: #fff; }
main { padding-bottom: 72px; }
main.home { padding-bottom: 0; }

/* ------------------------------------------------------------ home: the hero (Pair's composition around the bag) */
.home { max-width: none; padding: 0; }
.hero { position: relative; overflow: hidden; min-height: min(100svh, 960px); display: grid; place-items: center; text-align: center; padding: 116px 20px 96px; isolation: isolate; }
.hero .glow { position: absolute; left: 50%; top: 34%; width: 1000px; height: 1000px; transform: translate(-50%, -50%) scale(.8); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .11), transparent 60%); opacity: 0; pointer-events: none; z-index: -1; transition: opacity 2s var(--ease2), transform 2.4s var(--ease2); }
html.ready .hero .glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero .bag { position: relative; width: clamp(118px, 12vw, 170px); height: auto; aspect-ratio: 659 / 831; margin: 0 auto 40px; opacity: 0; transform: translateY(-26px) scale(.92); filter: blur(8px); }
html.ready .hero .bag { animation: bagIn 1.3s var(--ease2) .05s forwards; }
@keyframes bagIn { 60% { opacity: 1; filter: none; } 78% { transform: translateY(5px) scale(1.02); } to { opacity: 1; transform: none; filter: none; } }
.hero .bag img { width: 100%; height: 100%; object-fit: contain; }
.hero .bag::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 70%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.hero h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1; letter-spacing: -.05em; font-weight: 700; margin: 0; }
.hero h1 .l2 { color: rgba(255, 255, 255, .5); }
.hero p { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.45; color: rgba(255, 255, 255, .6); margin: 24px auto 0; max-width: 560px; text-wrap: balance; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.pill.xl { height: 52px; padding: 0 28px; font-size: 17px; font-weight: 500; }
.pill.xl svg { width: 17px; height: 17px; }
.dk .pill.w:hover { opacity: 1; box-shadow: 0 12px 40px -12px rgba(255, 255, 255, .5); }
.hero .live { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero .live span { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px; align-items: center; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--dim); font-size: 13px; }
.hero .live b { color: #fff; font: 500 13px var(--mono); }
.hero .ti { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1s var(--ease2), transform 1s var(--ease2), filter 1s var(--ease2); }
html.ready .hero .ti { opacity: 1; transform: none; filter: none; transition-delay: calc(.55s + var(--i, 0) * .12s); }
.hero .cue { position: absolute; bottom: 26px; left: 50%; width: 1px; height: 40px; background: linear-gradient(rgba(255, 255, 255, .5), transparent); transform-origin: top; animation: cue 2.4s var(--ease2) 2.6s infinite both; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------ bands (Pair) */
.band { padding: clamp(84px, 10vw, 136px) clamp(16px, 4vw, 40px); }
.band.grey { background: #f5f5f7; --card: #fff; }
.band .in { max-width: 1200px; margin: 0 auto; }
.band h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; margin: 0; text-align: center; }
.band .sub { text-align: center; color: var(--dim); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; margin: 16px auto 0; max-width: 600px; text-wrap: balance; }
.band .body { margin-top: 56px; }
.band .ptbox { margin: 0; border-radius: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; font-size: 17px; color: var(--text); }
.more::after { content: "→"; transition: transform .3s var(--ease2); }
.more:hover::after { transform: translateX(4px); }
.center { display: flex; justify-content: center; }

.duo { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.duo .tile { padding: 24px; min-height: 0; }
.lt .duo .tile, .band:not(.dk) .duo .tile { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.duo .post { background: var(--card); }
.duo .post:hover { background: var(--well); }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 > div { padding: 34px 30px; border-radius: 24px; background: #111; position: relative; overflow: hidden; }
.steps3 .n { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .45); }
.steps3 h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 650; margin: 70px 0 10px; }
.steps3 p { margin: 0; color: rgba(255, 255, 255, .58); font-size: 16px; line-height: 1.5; }
.steps3 .ic { position: absolute; right: 24px; top: 26px; width: 30px; height: 30px; color: rgba(255, 255, 255, .5); }
.steps3 .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps3 .ic img { width: 100%; height: 100%; object-fit: contain; opacity: .7; }

.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stats3 b { display: block; font-size: clamp(56px, 6.4vw, 92px); font-weight: 700; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats3 b small { font-size: .34em; letter-spacing: -.02em; font-weight: 600; margin-left: 6px; color: var(--dim); }
.stats3 span { display: block; color: var(--dim); font-size: 16px; margin-top: 12px; }
.splitbox { max-width: 760px; margin: 64px auto 0; padding: 26px 28px; }
.splitbox .note { margin: 4px 0 0; font-size: 14px; }

.band .coins { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.band .coins .coin { flex-direction: column; align-items: stretch; text-align: left; padding: 12px; }
.band .coins .coin img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
.band .coins .coin .cn { padding: 2px 4px 4px; }

.endcta { text-align: center; }
.endcta .bagsm { width: 64px; margin: 0 auto 30px; opacity: .95; }

/* reveal on scroll */
.up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease2), transform 1s var(--ease2); transition-delay: var(--d, 0s); }
.up.seen { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .duo { grid-template-columns: 1fr; }
  .band .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3, .stats3 { grid-template-columns: 1fr; }
  .steps3 h3 { margin-top: 34px; }
}
@media (max-width: 860px) {
  .hero { padding: 96px 18px 80px; min-height: 100svh; }
  .hero .bag { margin-bottom: 30px; }
  .page { padding-top: 88px; }
  .band .coins { gap: 10px; }
  .stats3 { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .ti, .up, .hero .bag, .hero .glow { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}
.foot .fb { display: inline-flex; align-items: center; gap: 10px; }
.foot .fb img { height: 22px; width: auto; opacity: .9; }
.foot { max-width: none; width: 100%; align-items: center; }
