/* Pocket toys v2. The tokens and public components follow DESIGN.md. */
:root {
  color-scheme: light dark;
  --t-surface: #ecebe6; --t-surface-2: #e1dfd8; --t-card: #f7f6f2;
  --t-ink: #141414; --t-ink-2: #5d5b55; --t-line: rgba(20,20,20,.12);
  --t-cobalt: #2f55ff; --t-cobalt-deep: #1a33b8;
  --t-lemon: #ffd23f; --t-lemon-deep: #c79a00;
  --t-mint: #17c787; --t-mint-deep: #0b8a5b;
  /* Bricolage is kept only for the toy pages builds/<slug>/; every other v2 page (catalogue, /links, blog) sets Geist. */
  --t-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --t-mono: "Geist Mono", ui-monospace, monospace;
  --t-r-s: 12px; --t-r-m: 18px; --t-r-l: 28px;
  --t-spring: cubic-bezier(.34,1.56,.64,1); --t-out: cubic-bezier(.22,1,.36,1);
  --t-fast: 120ms; --t-base: 240ms; --t-slow: 450ms; --t-sheet: 700ms;
  --toy: var(--t-cobalt); --toy-deep: var(--t-cobalt-deep); --toy-ink: #fff; --toy-text: #1a33b8;
}
@media (prefers-color-scheme: dark) { :root {
  --t-surface: #171716; --t-surface-2: #262624; --t-card: #20201e;
  --t-ink: #f2f0ea; --t-ink-2: #a3a097; --t-line: rgba(255,255,255,.1);
} }
[data-accent="cobalt"] { --toy: var(--t-cobalt); --toy-deep: var(--t-cobalt-deep); --toy-ink: #fff; --toy-text: #1a33b8; }
[data-accent="lemon"] { --toy: var(--t-lemon); --toy-deep: var(--t-lemon-deep); --toy-ink: #141414; --toy-text: #806100; }
[data-accent="mint"] { --toy: var(--t-mint); --toy-deep: var(--t-mint-deep); --toy-ink: #141414; --toy-text: #096b47; }
@media (prefers-color-scheme: dark) {
  :root, [data-accent="cobalt"] { --toy-text: #8da2ff; }
  [data-accent="lemon"] { --toy-text: #ffd23f; }
  [data-accent="mint"] { --toy-text: #17c787; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; background: var(--t-surface); color: var(--t-ink); font: 400 17px/1.45 var(--t-display); font-variation-settings: "wdth" 100, "opsz" 14; }
body.v2::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.v2 a { color: inherit; text-underline-offset: .2em; }
body.v2 button, body.v2 input, body.v2 textarea { font: inherit; }
body.v2 :focus-visible, .t-toy:focus-visible { outline: 4px solid var(--t-ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.t-wrap, body.v2 .container-wide { width: min(100% - 32px, 1240px); margin-inline: auto; }
.t-display-xxl, .t-display-xl, .t-display-l { font-weight: 800; font-variation-settings: "wdth" 88, "opsz" 96; letter-spacing: -.012em; text-wrap: balance; }
.t-display-xxl { font-size: clamp(56px,13vw,170px); line-height: .86; }
.t-display-xl { font-size: clamp(44px,9vw,120px); line-height: .88; }
.t-display-l { font-size: clamp(30px,4.6vw,48px); line-height: .95; }
.t-label { font: 500 12px/1.4 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; }
.t-lede { font-size: clamp(18px,2.2vw,23px); line-height: 1.35; font-variation-settings: "wdth" 92, "opsz" 20; }
.t-live { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 999px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); font: 500 13px/1.3 var(--t-mono); }
.t-live::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-mint); animation: t-ping 1.5s var(--t-out) 3; }
@keyframes t-ping { 70% { box-shadow: 0 0 0 9px rgba(23,199,135,0); } 0% { box-shadow: 0 0 0 0 rgba(23,199,135,.6); } }
.t-toy { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--t-r-l); padding: 22px; background: var(--toy); color: var(--toy-ink) !important; text-decoration: none; overflow: hidden; isolation: isolate; box-shadow: inset 0 -8px 0 rgba(0,0,0,.18), 0 20px 40px -24px rgba(0,0,0,.45); transition: transform var(--t-slow) var(--t-spring); animation: t-rise .8s var(--t-spring) both; }
.t-toy:nth-child(2) { animation-delay: 80ms; }
.t-toy:nth-child(3) { animation-delay: 160ms; }
@keyframes t-rise { from { transform: translateY(40px) scale(.96); } }
@media (hover: hover) { .t-toy:hover { transform: translateY(-6px) rotate(-.6deg); } }
.t-toy:active { transform: translateY(3px) scale(.985); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition-duration: var(--t-fast); }
.t-toy h2 { margin: 14px 0 8px; font-size: clamp(44px,6vw,84px); line-height: .9; font-weight: 800; letter-spacing: -.012em; font-variation-settings: "wdth" 88, "opsz" 96; text-wrap: balance; }
.t-toy p { margin: 0; max-width: 32ch; line-height: 1.35; }
.t-toy .t-label { display: flex; justify-content: space-between; gap: 12px; }
.t-feat { min-height: 520px; }
.t-soon { min-height: 260px; padding-bottom: 100px; background: var(--t-card); color: var(--t-ink) !important; box-shadow: inset 0 0 0 2px var(--t-line); }
.t-soon h2 { font-size: clamp(32px,5vw,48px); }
.t-soon::after { content: ""; position: absolute; right: -25px; bottom: -55px; width: 150px; height: 130px; border-radius: 42% 58% 61% 39%; background: var(--t-lemon); z-index: -1; animation: t-morph 1.2s ease-in-out 4 alternate; }
@keyframes t-morph { to { border-radius: 61% 39% 33% 67%; transform: rotate(40deg); } }
.t-chip { padding: 9px 11px; background: rgba(255,255,255,.88); border-radius: 999px; color: #141414; font: 500 12.5px/1.2 var(--t-mono); font-variant-numeric: tabular-nums; }
.t-stage { background: var(--toy); color: var(--toy-ink); border-radius: 34px; box-shadow: inset 0 -10px 0 rgba(0,0,0,.16); }
.t-bubble { background: #fff; color: #141414; border-radius: 22px 22px 22px 6px; padding: 14px 16px; max-width: 34ch; min-height: 110px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); font-size: 17px; line-height: 1.35; }
.t-bubble small { display: flex; align-items: center; gap: 8px; color: #5d5b55; font: 600 11px/1 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.t-bubble small i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: #141414; color: #fff; font-style: normal; }
.t-btn3d { --growth: 1; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 34%, #ff8a9b, #e3173d 58%, #b0102c); color: #fff; font: 800 clamp(24px,5.5vw,30px)/1 var(--t-display); box-shadow: 0 20px 0 #6f0a1c, 0 34px 34px -6px rgba(0,0,0,.42), inset 0 8px 14px rgba(255,255,255,.4); transform: translateY(-6px) scale(var(--growth)); transition: transform var(--t-slow) var(--t-spring), box-shadow var(--t-slow) var(--t-spring); }
.t-btn3d:hover { transform: translateY(-10px) scale(var(--growth)); }
.t-btn3d:active { transform: translateY(14px) scale(var(--growth)); box-shadow: 0 4px 0 #6f0a1c, 0 10px 14px -6px rgba(0,0,0,.4); transition-duration: 80ms; }
.t-btn3d.wobble { animation: t-wobble .5s var(--t-spring); }
@keyframes t-wobble { 20% { transform: translateY(-6px) rotate(-5deg) scale(var(--growth)); } 50% { transform: translateY(-6px) rotate(4deg) scale(var(--growth)); } 80% { transform: translateY(-6px) rotate(-2deg) scale(var(--growth)); } }
.t-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; padding: 14px 22px; border-radius: 999px; background: #141414; color: #fff !important; font-weight: 700 !important; cursor: pointer; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(255,255,255,.12); transition: transform var(--t-base) var(--t-spring); }
.t-pill:active { transform: scale(.94); }
.t-pill.light { background: #fff; color: #141414 !important; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.t-reveal { position: fixed; inset: auto 0 0; width: 100%; max-width: none; margin: 0; max-height: 92svh; overflow: auto; border: 0; border-radius: 30px 30px 0 0; padding: 22px 18px 26px; color: var(--t-ink); background: var(--t-card); box-shadow: 0 -30px 60px -20px rgba(0,0,0,.4); }
.t-reveal[open] { animation: t-sheet var(--t-sheet) var(--t-spring); }
.t-reveal::backdrop { background: rgba(0,0,0,.25); }
@keyframes t-sheet { from { transform: translateY(105%); } }
@media (min-width: 900px) { .t-reveal { inset: 50% auto auto 50%; width: 560px; transform: translate(-50%,-50%); border-radius: 30px; } @keyframes t-sheet { from { transform: translate(-50%,calc(-50% + 30px)); } } }
.t-reveal h2 { margin: 0 0 18px; font: 500 12px/1.5 var(--t-mono); text-transform: uppercase; letter-spacing: .08em; }
.t-stat { font-size: clamp(88px,28vw,150px); font-weight: 800; line-height: .8; letter-spacing: -.02em; margin: 6px 0 12px; font-variation-settings: "wdth" 88, "opsz" 96; font-variant-numeric: tabular-nums; }
.t-verdict { font-size: 21px; line-height: 1.25; margin: 12px 0 28px; max-width: 32ch; font-weight: 600; }
.t-hist { display: flex; align-items: flex-end; gap: 3px; height: 92px; margin: 28px 0 6px; }
.t-hist i { flex: 1; min-width: 0; border-radius: 4px 4px 2px 2px; background: var(--t-surface-2); transition: height 900ms var(--t-out); }
.t-hist .me { background: var(--toy); position: relative; }
.t-hist .me::after { content: 'you'; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: var(--t-ink); font: 600 11px var(--t-mono); }
.t-axis { display: flex; justify-content: space-between; font: 500 11px var(--t-mono); color: var(--t-ink-2); margin-bottom: 18px; }
.t-share { display: flex; gap: 14px; align-items: center; background: var(--toy); color: var(--toy-ink); border-radius: 22px; padding: 14px; margin-bottom: 14px; }
.t-share .mini { flex: none; width: 70px; height: 70px; border-radius: 16px; background: #141414; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.t-share p { margin: 0; font-weight: 600; line-height: 1.25; }
.t-next { margin-top: 40px; border-radius: var(--t-r-l); background: #141414; color: #f2f0ea; padding: 28px 22px; }
.t-digit { display: inline-block; }
.t-digit.changed { animation: t-digit .3s var(--t-out); }
@keyframes t-digit { from { transform: translateY(-35%); } }
/* Shared partial markup is skinned only on toys pages. */
body.v2 .site-foot { padding: 48px 0 40px; background: transparent; border: 0; color: var(--t-ink-2); font-size: 14px; }
body.v2 .site-foot-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
body.v2 .foot-brand { color: var(--t-ink); font-weight: 700; margin: 0; }
body.v2 .foot-line, body.v2 .foot-legal { margin: 0; }
body.v2 .foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
body.v2 .foot-nav a { display: inline-flex; min-height: 44px; align-items: center; }
body.v2 .foot-legal { width: 100%; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .t-toy, .t-btn3d, .t-btn3d:hover, .t-btn3d:active, .t-pill:active { transform: none !important; }
}
/* Button typography wins over the native-control font reset. */
body.v2 button.t-btn3d { font: 800 clamp(24px,5.5vw,30px)/1 var(--t-display); }
.t-stat { color: var(--toy-text); }
