/* Pinteza — pinteza.app. Premium dark brand, animated, mobile-first, zero dependencies. */
:root {
  --bg: #0a0a0b;
  --bg-soft: #121216;
  --surface: #16161b;
  --surface-2: #1d1d24;
  --line: #2a2a33;
  --line-2: #3a3a45;
  --text: #f5f5f7;
  --muted: #a2a2ad;        /* ~6.4:1 on --bg (WCAG AA body) */
  --muted-2: #8a8a94;      /* ~4.6:1 on --bg (clears AA for small text) */
  --green: #34a860;        /* brand emerald (the logo P) — deliberately distinct from Wordle's #6aaa64 */
  --green-deep: #2a8b4f;
  --green-ink: #06140b;
  --amber: #e0a32e;        /* brand chip amber (secondary + Chaos accent) */
  --amber-deep: #c4861c;
  --gold: #f0b429;         /* the logo star gold — used ONLY for the star/logo/Chaos halo */
  --cream: #ece4d2;        /* the keepsake-tile cream */
  --radius: 16px;
  --maxw: 1060px;
  /* one type scale */
  --fs-display: clamp(34px, 5.4vw, 56px);
  --fs-h2: clamp(25px, 4vw, 34px);
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 13.5px;
  /* one vertical rhythm */
  --sec: clamp(30px, 3.6vw, 46px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .25, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh;
  overflow-x: hidden; position: relative;
}
/* animated aurora backdrop */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 16%, rgba(52,168,96,0.15), transparent 60%),
    radial-gradient(38% 38% at 82% 10%, rgba(224,163,46,0.11), transparent 60%),
    radial-gradient(45% 45% at 62% 88%, rgba(52,168,96,0.07), transparent 60%);
  /* No blur filter: a blurred position:fixed layer re-rasterizes on every scroll
     frame on mobile (the "static" jank). The gradient stops are already soft, so
     promote to its own GPU layer and let the drift composite without repaint. */
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.section-eyebrow { text-align: center; }

/* ── header ── */
header.site { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10,10,11,0.72); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.16em; font-size: 15px; color: #cdd8c5; }
.wordmark .wm-img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav > a { transition: color .15s; } .nav > a:hover { color: var(--text); }
.nav > a:not(.nav-cta) { position: relative; }
.nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav .nav-cta { color: var(--green); font-weight: 600; }
.nav .nav-cta:hover { color: #5fd089; }

/* ── language dropdown (native <details>, no-JS accessible) ── */
.langpick { position: relative; }
.langpick > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.langpick > summary::-webkit-details-marker { display: none; }
.langpick[open] > summary, .langpick > summary:hover { color: var(--text); border-color: var(--green); background: var(--surface); }
.langpick .globe { width: 15px; height: 15px; flex: none; opacity: .85; }
.langpick .chev { width: 11px; height: 11px; transition: transform .2s var(--ease); opacity: .7; }
.langpick[open] .chev { transform: rotate(180deg); }
.langpick .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; padding: 6px;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.75); z-index: 50; animation: pop-in .16s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.langpick .menu a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: background .12s, color .12s; }
.langpick .menu a:hover { background: var(--surface-2); color: var(--text); }
.langpick .menu a[aria-current="true"] { color: var(--text); }
.langpick .menu .code { width: 30px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--cream); }
.langpick .menu a[aria-current="true"] .code { background: rgba(52,168,96,0.16); border-color: var(--green); color: #7fd79f; }
.langpick .menu .nm { display: flex; flex-direction: column; line-height: 1.2; }
.langpick .menu .nm small { font-size: 11.5px; color: var(--muted-2); }
.langpick .menu .check { margin-left: auto; color: var(--green); opacity: 0; }
.langpick .menu a[aria-current="true"] .check { opacity: 1; }
.langpick .menu .soon { padding: 8px 10px 4px; font-size: 11.5px; color: var(--muted-2); border-top: 1px solid var(--line); margin-top: 4px; }
/* footer picker opens upward */
.langpick.up .menu { top: auto; bottom: calc(100% + 8px); }
.langpick[open] .menu a { animation: pop-in .18s var(--ease) both; }
.langpick[open] .menu a:nth-child(2) { animation-delay: .04s; }

/* ── hero ── */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "top phone" "cta phone";
  gap: 22px 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
/* faint dot-grid texture, masked so it fades before the content below */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 82%);
          mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 82%);
}
.hero-top { grid-area: top; animation: rise-in .8s var(--ease) both; }
.hero-cta { grid-area: cta; animation: rise-in .8s var(--ease) .10s both; }
.phone-wrap { grid-area: phone; display: grid; place-items: center; align-self: center;
  animation: rise-in 1s var(--ease) .18s both; position: relative; }
/* emerald halo so the phone floats in brand light */
.phone-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -8% -8% -8%;
  background:
    radial-gradient(46% 42% at 50% 42%, rgba(52,168,96,0.28), transparent 70%),
    radial-gradient(30% 28% at 66% 26%, rgba(240,180,41,0.14), transparent 70%);
  filter: blur(34px); animation: halo-breathe 9s ease-in-out infinite alternate; pointer-events: none;
  will-change: opacity;
}
/* Opacity-only breathe: scaling a 34px-blurred layer would re-rasterize the blur
   every frame; opacity composites cheaply and reads the same. */
@keyframes halo-breathe { from { opacity: .78; } to { opacity: 1; } }
/* While actively scrolling, freeze the two paint-heavy hero animations (the
   headline gradient sweep and the phone halo) so scroll frames stay free.
   A passive scroll listener toggles html.scrolling and clears it 140ms after
   scrolling stops, so the animations resume the moment you settle. */
html.scrolling body::before,
html.scrolling h1 .accent,
html.scrolling .phone-wrap::before { animation-play-state: paused; }
h1 { font-size: var(--fs-display); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
h1 .accent {
  color: var(--green); /* fallback */
  background: linear-gradient(100deg, var(--green) 0%, var(--green) 30%, #7fe0a3 44%, var(--gold) 52%, #7fe0a3 60%, var(--green) 74%, var(--green) 100%);
  background-size: 220% 100%; background-position: var(--sweep) 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: accent-sweep 7s var(--ease) 1.2s infinite;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { h1 .accent { -webkit-text-fill-color: var(--green); } }
@keyframes accent-sweep { 0%, 22% { --sweep: 0%; } 60%, 100% { --sweep: 100%; } }
.tagline { color: var(--muted); font-size: clamp(16px, 2.1vw, 19px); margin: 18px 0 0; max-width: 470px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #7fd79f; background: rgba(52,168,96,0.12); border: 1px solid rgba(52,168,96,0.22); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow.gold { color: var(--gold); background: rgba(240,180,41,0.12); border-color: rgba(240,180,41,0.22); }

/* ── CTA: one primary + coming-soon store chips ── */
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border-radius: 13px;
  background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: transform .16s var(--ease), background .16s, box-shadow .16s; box-shadow: 0 12px 30px -8px rgba(52,168,96,0.5); }
.btn:hover { transform: translateY(-3px); background: var(--green-deep); box-shadow: 0 16px 36px -8px rgba(52,168,96,0.6); }
.btn svg { width: 17px; height: 17px; position: relative; z-index: 1; }
/* diagonal sheen wipe on hover (primary only) */
.btn:not(.btn-ghost)::after {
  content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-160%) skewX(-18deg); }
.btn:not(.btn-ghost):hover::after { transition: transform .6s var(--ease); transform: translateX(240%) skewX(-18deg); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--green); box-shadow: none; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.store { display: inline-flex; align-items: center; gap: 11px; padding: 10px 16px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .18s, background .18s; }
.store:not([aria-disabled="true"]):hover { transform: translateY(-3px); border-color: var(--green); background: var(--surface-2); }
.store svg { width: 22px; height: 22px; flex: none; }
.store .l { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store .l small { font-size: 10px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.store .l span { font-size: 15px; font-weight: 700; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; position: relative; }
.store[aria-disabled="true"] .l small { color: var(--amber); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted-2); }
.note b { color: var(--green); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }

/* ── phone mockup + self-playing board ── */
.phone { width: 272px; max-width: 80vw; aspect-ratio: 9 / 18.6; border-radius: 40px; padding: 13px;
  background: linear-gradient(160deg, #24242b, #111116); border: 1px solid #35353f;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(255,255,255,0.02); position: relative; transform: translateZ(0); }
.phone::after { /* emerald floor glow */
  content: ""; position: absolute; inset: auto 8% -26px 8%; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52,168,96,0.35), transparent); filter: blur(14px); z-index: -1; }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; border-radius: 0 0 14px 14px; background: #0a0a0b; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 29px; background: radial-gradient(120% 80% at 50% 0%, #15151b, var(--bg));
  overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 38px 16px 16px; }
.pill-stack { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; }
.mini-mark { font-size: 11px; letter-spacing: .22em; color: #8fa285; font-weight: 800; transition: opacity .16s; }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 999px; color: var(--gold); background: rgba(240,180,41,0.12);
  border: 1px solid rgba(240,180,41,0.4); opacity: 0; transform: translateY(-6px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.mode-pill.show { opacity: 1; transform: none; }
.mode-pill .mp-glyph { font-size: 12px; }
.storm-bar { width: 120px; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.09); overflow: hidden; opacity: 0; transition: opacity .2s; }
.storm-bar.show { opacity: 1; }
.storm-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--amber), var(--gold));
  transform: scaleX(1); transform-origin: left; }
.storm-bar.run i { transform: scaleX(0); transition: transform 2.6s linear; }

.board { --cols: 5; width: 100%; max-width: 214px; display: grid;
  grid-template-rows: repeat(2, auto); gap: 6px; margin-inline: auto; transition: transform .35s var(--ease); }
.board.mirrored { transform: scaleX(-1); }
.board.mirrored .bt { transform: scaleX(-1); }
.brow { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; }
.bt { aspect-ratio: 1 / 1; min-width: 0; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--text); background: transparent; border: 2px solid #303039; }
.bt.filled { border-color: #565663; animation: pop .12s var(--ease); }
.bt.flip { animation: flip .5s ease forwards; }
.bt.g { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.bt.a { background: var(--amber); border-color: var(--amber); color: #2a1c05; }
.bt.x { background: #3a3a42; border-color: #3a3a42; color: #d8d8de; }
.bt.solved { animation: solved-glow .7s var(--ease); }
@keyframes pop { from { transform: scale(.82); } to { transform: scale(1); } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes solved-glow { 0% { box-shadow: 0 0 0 0 rgba(52,168,96,0.6); } 100% { box-shadow: 0 0 0 10px rgba(52,168,96,0); } }
.keys { margin-top: auto; display: grid; gap: 5px; width: 100%; opacity: .5; }
.krow { display: flex; gap: 4px; justify-content: center; }
.key { height: 26px; flex: 1; max-width: 22px; border-radius: 5px; background: #2a2a31; }

/* ── generic sections ── */
section { padding-top: var(--sec); padding-bottom: var(--sec); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 26px; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* card base with lit-dark depth */
.card, .mode, .diff-card { position: relative; background: linear-gradient(180deg, #17171d, #131318); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 12px 30px -18px rgba(0,0,0,0.6);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
/* emerald edge-light on hover so the lift feels lit */
.card::after, .mode::after, .diff-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(52,168,96,0.10), transparent 60%); opacity: 0; transition: opacity .2s var(--ease); }
.card:hover::after, .mode:hover::after, .diff-card:hover::after { opacity: 1; }

/* ── differentiator strip ── */
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.diff-card { padding: 24px 22px; }
.diff-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.diff-card .di { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; background: rgba(52,168,96,0.14); }
.diff-card:nth-child(2) .di { background: rgba(224,163,46,0.16); }
.diff-card h3 { font-size: var(--fs-h3); margin-bottom: 7px; }
.diff-card p { color: var(--muted); font-size: 14.5px; }
.diff-tiles { display: flex; gap: 3px; margin-top: 14px; }
.diff-tiles .lt { width: 20px; height: 23px; font-size: 11px; border-radius: 6px; }

/* ── modes grid (Daily has primacy) ── */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.mode { padding: 22px; position: relative; overflow: hidden; }
.mode:hover { transform: translateY(-4px); border-color: var(--green); }
.mode .mi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 13px; background: rgba(52,168,96,0.14); }
.mode:nth-child(2n) .mi { background: rgba(224,163,46,0.16); }
.mode h3 { font-size: var(--fs-h3); margin-bottom: 5px; } .mode p { color: var(--muted); font-size: 14px; }
.mode.hero-mode { border-left: 3px solid var(--green); border-color: rgba(52,168,96,0.4); }
.mode .badge-daily { position: absolute; top: 14px; right: 14px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-ink); background: var(--green); padding: 3px 8px; border-radius: 999px; }

/* ── chaos band ── */
.band { background: linear-gradient(160deg, rgba(52,168,96,0.08), rgba(224,163,46,0.06)); border: 1px solid var(--line); border-radius: 24px; padding: 42px 28px; }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.mod { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; padding: 13px 15px; transition: transform .18s var(--ease), border-color .18s; }
.mod:hover { transform: translateY(-3px); border-left-color: var(--gold); }
.mod .mx { font-size: 22px; flex: none; }
.mod b { display: block; font-size: 14.5px; } .mod span { color: var(--muted); font-size: 13px; }
.chaos-note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 20px; }

/* variable-length tile row */
.lenrow { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin: 6px 0; }
.lenset { text-align: center; }
.lentiles { display: flex; gap: 5px; justify-content: center; margin-bottom: 8px; }
.lt { width: 30px; height: 34px; border-radius: 7px; background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--cream); }
.lt.g { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.lenset small { color: var(--muted); font-size: 13px; }

/* ── progression feature cards ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 16px; }
.card { padding: 22px; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card h3 { font-size: var(--fs-h3); margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex: none; }
.ico.g { background: rgba(52,168,96,0.16); } .ico.a { background: rgba(224,163,46,0.16); }

/* ── "how a round works" mini steps ── */
.steps { counter-reset: step; padding: 0; margin: 18px 0; list-style: none; }
.steps.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps.row li { background: linear-gradient(180deg, #17171d, #131318); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 12px 30px -18px rgba(0,0,0,0.6);
  padding: 22px 20px 22px 64px; transition: transform .2s var(--ease), border-color .2s; }
.steps.row li:hover { transform: translateY(-4px); border-color: var(--line-2); }
.steps.row li::before { left: 18px; top: 20px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 46px; color: var(--muted); font-size: 15px; }
.steps:not(.row) li { padding-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; background: rgba(52,168,96,0.16); color: var(--green); font-weight: 800; display: grid; place-items: center; }
.steps li b { color: var(--text); }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(1){transition-delay:0s} .reveal:nth-child(2){transition-delay:.05s} .reveal:nth-child(3){transition-delay:.1s}
.reveal:nth-child(4){transition-delay:.15s} .reveal:nth-child(5){transition-delay:.2s} .reveal:nth-child(6){transition-delay:.25s}
.reveal:nth-child(7){transition-delay:.3s} .reveal:nth-child(n+8){transition-delay:.35s}

/* ── cta strip ── */
.cta { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, var(--surface), var(--bg-soft)); border: 1px solid var(--line); border-radius: 24px; padding: 52px 24px; margin: 10px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.cta::after { content: ""; position: absolute; left: 50%; top: -30%; width: 72%; height: 90%; transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52,168,96,0.16), transparent 72%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: var(--fs-h2); }
.cta .cta-row, .cta .stores { justify-content: center; }
.cta .cta-row { display: inline-flex; }

/* ── sticky mobile CTA bar ── */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; text-align: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12,12,14,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform .3s var(--ease);
  /* Stay on its own GPU layer in BOTH states so the browser repositions it
     smoothly as the mobile address bar hides/shows, instead of repainting
     (repaint = the bottom-bar jitter). */
  will-change: transform; }
.mobile-cta.show { transform: translateY(0); }
/* wrap-safe so a long localized label (e.g. PT/BR) never overflows the viewport */
/* two-part bar: teaser copy on the left, compact CTA on the right, centered as a unit */
.mcta-inner { max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mcta-copy { text-align: left; line-height: 1.25; min-width: 0; }
.mcta-copy b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.mcta-copy span { display: block; font-size: 12px; color: var(--muted); }
.mobile-cta .btn { width: auto; flex: 0 0 auto; white-space: nowrap; }

/* ── footer ── */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: 14px; text-align: center; }
.frow { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.frow .wordmark { justify-content: center; }
.frow .wordmark .wm-img { height: 46px; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; } .flinks a { transition: color .15s; } .flinks a:hover { color: var(--text); }
.made { color: var(--muted-2); font-size: 13px; margin-top: 18px; }
.made a { color: var(--muted); } .made a:hover { color: var(--text); }
.fnote { color: var(--muted-2); font-size: 12.5px; margin-top: 8px; max-width: 680px; margin-left: auto; margin-right: auto; }
.fnote a { color: var(--muted); } .fnote a:hover { color: var(--text); }

/* ── legal ── */
.legal { padding-top: 44px; padding-bottom: 90px; max-width: 760px; }
.legal h1 { font-size: 32px; margin-bottom: 6px; letter-spacing: -0.02em; }
.legal .lead { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }
.legal .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 26px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 15.5px; margin: 18px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 22px; margin: 8px 0; } .legal li { margin: 4px 0; }
.legal a { color: var(--green); }
.legal a:hover { color: #5fd089; }
.legal a.btn { color: var(--green-ink); }
.legal a.btn:hover { color: var(--green-ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); color: var(--text); } .legal td { color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 14px 16px; margin: 18px 0; color: var(--muted); font-size: 14px; }

/* ── breadcrumb ── */
.crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--text); }
.crumb .sep { margin: 0 8px; opacity: .6; }

/* ── FAQ / how-to-play content ── */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; background: var(--surface); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted-2); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); font-size: 15px; padding-bottom: 14px; }
.faq .faq-group { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 28px 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── contact / studio page ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.contact-card h3 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.contact-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.contact-card a { color: var(--green); font-weight: 600; font-size: 14.5px; word-break: break-word; }

/* ── guides hub + articles ── */
.guide-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin: 6px 0; }
.guide-card { display: block; background: linear-gradient(180deg, #17171d, #131318); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 12px 30px -18px rgba(0,0,0,0.6); padding: 22px; transition: transform .2s var(--ease), border-color .2s; }
.guide-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.guide-card .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7fd79f; }
.guide-card h3 { font-size: 18px; margin: 9px 0 6px; letter-spacing: -0.01em; color: var(--text); }
.guide-card p { color: var(--muted); font-size: 14px; }
.guide-card .rt { color: var(--muted-2); font-size: 12.5px; margin-top: 13px; }
.readmeta { color: var(--muted-2); font-size: 13px; margin: -4px 0 24px; }
.readmeta a { color: var(--muted); }
.readmeta a:hover { color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin: 22px 0; }
.toc b { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.toc ul { margin: 9px 0 0; padding-left: 18px; } .toc li { margin: 3px 0; } .toc a { color: var(--green); font-size: 14.5px; }
.toc a:hover { color: #5fd089; }

/* ranked listicle */
.rank-list { list-style: none; padding: 0; margin: 24px 0; counter-reset: rank; }
.rank-item { counter-increment: rank; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 20px 68px; margin: 12px 0; }
.rank-item::before { content: counter(rank); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(52,168,96,0.14); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.rank-item.us { border-color: rgba(52,168,96,0.4); border-left: 3px solid var(--green); }
.rank-item h3 { font-size: 18px; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--text); }
.rank-item h3 .meta { color: var(--muted-2); font-size: 12.5px; font-weight: 600; }
.rank-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.rank-item p + p { margin-top: 8px; }
.tagchip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cream);
  background: var(--surface-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }

/* in-article download nudge */
.guide-cta { background: linear-gradient(160deg, var(--surface), var(--bg-soft)); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; text-align: center; margin: 32px 0; }
.guide-cta h3 { font-size: 19px; margin-bottom: 6px; color: var(--text); }
.guide-cta p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

/* ── resolver (duo) ── */
.resolve { text-align: center; padding-top: 70px; padding-bottom: 70px; min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: rise .7s var(--ease) both; }
.code-pill { font-size: 30px; font-weight: 800; letter-spacing: 0.3em; padding: 15px 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin: 22px 0 6px; }
.muted { color: var(--muted); font-size: 14px; }

/* ── press / media kit ── */
.kit-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.kit-asset { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.kit-asset img { max-width: 100%; height: 72px; object-fit: contain; margin-bottom: 10px; }
.kit-asset a { color: var(--green); font-size: 13px; font-weight: 600; }
.facts { list-style: none; padding: 0; } .facts li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts li b { color: var(--text); }

/* ── root splash (x-default) ── */
.splash { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; padding: 40px 22px; }
.splash h1 { font-size: clamp(26px, 5vw, 40px); }
.splash .pick { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.splash .pick a { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform .18s var(--ease), background .18s, border-color .18s; }
.splash .pick .en { background: var(--green); color: var(--green-ink); box-shadow: 0 12px 30px -8px rgba(52,168,96,0.4); }
.splash .pick .en:hover { transform: translateY(-3px); background: var(--green-deep); }
.splash .pick .pt { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.splash .pick .pt:hover { transform: translateY(-3px); border-color: var(--green); }
.gold { color: var(--gold); }

/* ── responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "top" "phone" "cta"; gap: 24px; padding: 38px 0 26px; text-align: center; }
  .hero-top .eyebrow { margin-left: auto; margin-right: auto; }
  .tagline { margin-left: auto; margin-right: auto; }
  .cta-row, .stores, .trust { justify-content: center; }
  .phone { max-width: 68vw; }
  .diff { grid-template-columns: 1fr; }
  .frow { justify-content: center; text-align: center; }
  .flinks { justify-content: center; }
  .mobile-cta { display: block; }
  body:has(.mobile-cta) { padding-bottom: 66px; } /* reserve room for the sticky bar (landing pages only) */
  /* Drop backdrop-filter on mobile: a fixed blurred surface re-blurs the content
     scrolling behind it every frame (the header + bottom-bar "static"). A near-solid
     background reads the same and composites for free. */
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,11,0.96); }
  .mobile-cta { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12,12,14,0.98); }
}
/* Any touch device (incl. tablets and landscape phones wider than 860px): drop the
   sticky header's backdrop-filter, which re-blurs the scrolling content every frame. */
@media (hover: none) and (pointer: coarse) {
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,11,0.96); }
}
@media (max-width: 560px) {
  .nav > a[data-collapse] { display: none; } /* keep nav clean on tiny screens; footer carries the links */
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  /* keep a motion-free opacity fade-in (no slide) so the page still feels alive */
  .reveal { transform: none; transition: opacity .5s var(--ease); }
  .hero-top, .hero-cta, .phone-wrap, .resolve { animation: none; }
  .phone-wrap::before { animation: none; }
  h1 .accent { animation: none; }
  .langpick .menu, .langpick[open] .menu a { animation: none; }
  .btn:not(.btn-ghost)::after, .btn:not(.btn-ghost):hover::after { transition: none; display: none; }
  html { scroll-behavior: auto; }
}

/* ── cross-document View Transitions: smooth page-to-page morph (progressive enhancement, no JS) ── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  header .wordmark .wm-img { view-transition-name: pz-logo; }
}


/* ---- launch waitlist signup ---- */
.signup { max-width: 460px; margin: 0 auto; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.signup-email { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.signup-email::placeholder { color: var(--muted-2); }
.signup-email:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(52,168,96,0.25); }
.signup-row .btn { flex: 0 0 auto; }
.signup-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.signup-msg.ok { color: #5fd089; }
.signup-msg.err { color: var(--amber); }
.signup-msg a { color: var(--green); }

/* Report-a-word form (/report) */
.report-form { max-width: 540px; margin: 24px 0 0; }
.rf-label { display: block; font-weight: 600; font-size: 14px; margin: 20px 0 8px; color: var(--text); }
.rf-input, .rf-textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.rf-input:focus, .rf-textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(52,168,96,0.25); }
.rf-input { text-transform: uppercase; letter-spacing: 0.05em; }
.rf-textarea { resize: vertical; min-height: 74px; }
.rf-set { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.rf-set legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; color: var(--text); }
.rf-opt { display: flex; align-items: center; gap: 12px; padding: 12px 15px; margin: 9px 0 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 14.5px; color: var(--text); transition: border-color .15s, background .15s; }
.rf-opt:hover { border-color: var(--green); }
.rf-opt input { accent-color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.rf-opt:has(input:checked) { border-color: var(--green); background: rgba(52,168,96,0.08); }
.report-form .btn { margin-top: 22px; }
.rf-msg { text-align: left; }
.rf-ctx { margin: 12px 0 0; font-size: 12.5px; color: var(--muted-2); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ---- Chaos: centre the 7 modifier cards symmetrically ---- */
.mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mods .mod { flex: 0 1 210px; }
.mx { transition: transform .2s var(--ease); }
.mod:hover .mx { transform: scale(1.15) rotate(-5deg); }

/* ---- "Something to keep": the Dossie collection hook ---- */
.keep { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center;
  background: linear-gradient(160deg, rgba(52,168,96,0.06), rgba(240,180,41,0.05));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px 34px; }
.keep-copy h2 { margin: 12px 0 10px; }
.keep-copy p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.keep-cards { display: grid; gap: 12px; }
.dcard { position: relative; background: linear-gradient(158deg, #f4efe3, #e6dcc4); border-radius: 14px;
  padding: 15px 16px; box-shadow: 0 12px 28px -14px rgba(0,0,0,.65); transition: transform .18s var(--ease); }
.keep-cards:hover .dcard { transform: none; }
.dcard:hover { transform: translateY(-3px); }
.dcard b { display: block; font-size: 20px; letter-spacing: .07em; color: #1f1a12; }
.dcard .ddef { display: block; font-size: 13px; color: #5f5647; margin-top: 3px; position: relative; padding-left: 19px; }
/* big decorative quotation marks around the definition, like the in-game cream cards */
.dcard .ddef::before { content: "\201C"; position: absolute; left: -2px; top: 9px;
  font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 0;
  color: rgba(120,100,70,0.4); pointer-events: none; }
.dcard .ddef::after { content: "\201D"; margin-left: 2px; vertical-align: -0.38em;
  font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 0;
  color: rgba(120,100,70,0.4); pointer-events: none; }
.dcard .drank { position: absolute; top: 13px; right: 14px; font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.drank.common { background: rgba(90,80,60,.16); color: #6a5f49; }
.drank.rare { background: rgba(52,168,96,.20); color: #1c6b3f; }
.drank.legendary { background: rgba(240,180,41,.24); color: #7d5a10; }
.drank.uncommon { background: rgba(70,130,180,.18); color: #2f6690; }
.dfound { display: block; font-size: 11px; color: #8a7f6a; margin-top: 6px; letter-spacing: .01em; }
@media (max-width: 720px) { .keep { grid-template-columns: 1fr; padding: 30px 22px; } }


/* ---- wordmark tagline (category reinforcement beside the logo) ---- */
.wm-tag { font-size: 12.5px; font-weight: 500; letter-spacing: normal; color: var(--muted-2);
  padding-left: 11px; border-left: 1px solid var(--line-2); white-space: nowrap; }
@media (max-width: 720px) { .wm-tag { display: none; } }


/* ---- hero email capture ---- */
.hero-cta .cta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cta .signup { margin: 0; width: 100%; max-width: 440px; }
.hero-cta .signup-row { justify-content: flex-start; }
