/* Chase campaign landing page (index.html). privacy.html keeps style.css.
   Served under a strict CSP (style-src 'self'): no inline styles anywhere, and
   the font is self-hosted, not loaded from Google Fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --navy: #0a1a33;
  --blue: #173e7a;
  --gold: #f7b928;
  --gold-deep: #d8960f;
  --purple: #b794ff;
  --purple-deep: #7a56d6;
  --cream: #fbf7ef;
  --ink: #14213d;
  --muted: #5b6478;
  --red: #e5484d;
  --chase: #117aca;
  --ground: 46px;
  --sky: linear-gradient(180deg, #02050d 0%, #060f24 40%, #0e2350 66%, #7a4a3a 92%, #c9852f 100%);
  --dw: clamp(170px, 24vw, 300px);
  --font: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.locked { overflow: hidden; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: #02050d var(--sky) fixed; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; z-index: 1;
  transition: transform .95s cubic-bezier(.65, 0, .25, 1); }
.hero.away { transform: translateX(-100%); }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; opacity: .8;
  background:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 22% 28%, #fff, transparent 60%),
    radial-gradient(2px 2px at 35% 9%, #fff, transparent 60%),     radial-gradient(1.5px 1.5px at 51% 22%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 67% 8%, #fff, transparent 60%), radial-gradient(2px 2px at 78% 26%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 14%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 14% 40%, #fff, transparent 60%); }
.hero-copy { position: relative; z-index: 5; text-align: center; padding: clamp(84px, 11vh, 120px) 20px 8px; max-width: 880px; margin: 0 auto; }
.eyebrow { display: inline-block; max-width: 100%; white-space: nowrap; font-weight: 700; font-size: clamp(.46rem, calc((100vw - 64px) / 44), .78rem); letter-spacing: .06em; text-transform: uppercase; color: var(--purple); background: rgba(183,148,255,.14); border: 1px solid rgba(183,148,255,.45); padding: .55em 1.2em; border-radius: 12px; }
.m-br { display: none; }
h1 { margin: 0 0 20px; font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.chase-badge { display: inline-flex; align-items: center; gap: .3em; margin-right: .12em; vertical-align: .06em; background: #fff; color: #111; border-radius: 12px; padding: .22em .4em .22em .35em; font-size: .9em; letter-spacing: .06em; box-shadow: 0 6px 0 rgba(0,0,0,.25); transform: rotate(-4deg); animation: wobble 3s ease-in-out infinite; }
.chase-badge svg { width: 1em; height: 1em; }
@keyframes wobble { 50% { transform: rotate(3deg) translateY(-2px); } }
h1 em { font-style: normal; color: var(--purple); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--navy); background: var(--purple); border: 0; padding: 15px 28px; border-radius: 12px; cursor: pointer; text-decoration: none; box-shadow: 0 6px 0 var(--purple-deep), 0 14px 30px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple-deep), 0 6px 14px rgba(0,0,0,.25); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ---------- game stage ---------- */
.stage { position: relative; flex: 1; min-height: 420px; overflow: hidden; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.cloud { position: absolute; height: 34px; width: 120px; background: rgba(255,255,255,.85); border-radius: 40px; filter: blur(.4px); opacity: .55; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.cloud::after  { width: 40px; height: 40px; left: 62px; top: -18px; }
.cloud-1 { top: 18%; animation-duration: 70s; animation-delay: -20s; }
.cloud-2 { top: 44%; animation-duration: 95s; animation-delay: -60s; scale: .8; }
.cloud-3 { top: 30%; animation-duration: 120s; animation-delay: -5s; scale: 1.2; }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 200px)); } }

.ground { position: absolute; overflow: hidden; left: 0; right: 0; bottom: 0; height: var(--ground); background: linear-gradient(#262d49, #121830); border-top: 3px solid #3d4770; }
.ground::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: repeating-linear-gradient(90deg, #f7b92866 0 28px, transparent 28px 60px); }

.hud { position: absolute; top: 12px; left: 12px; z-index: 12; background: rgba(8,20,42,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 7px 12px; font-size: .85rem; font-weight: 600; }
.hud b { color: var(--purple); font-size: 1.05rem; margin: 0 7px 0 0; }

#toast { position: absolute; z-index: 12; top: 12px; left: 50%; transform: translateX(-50%); max-width: min(92%, 520px); text-align: center; background: #fff; color: var(--navy); font-weight: 800; padding: 9px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; pointer-events: none; }
#toast.show { animation: toast 6.75s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -12px) scale(.9); } 5.93% { opacity: 1; transform: translate(-50%, 0) scale(1); } 88.89% { opacity: 1; } 100% { opacity: 0; } }

.controls { position: absolute; z-index: 12; left: 12px; bottom: calc(var(--ground) + 14px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.drop { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 11px 16px; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 5px 0 #a8282d; }
.drop.curry { background: #ff7a1a; box-shadow: 0 5px 0 #b34d00; }
.drop.curry:active { box-shadow: 0 2px 0 #b34d00; }
.drop:active { transform: translateY(3px); box-shadow: 0 2px 0 #a8282d; }

/* eagle */
#eagle { position: absolute; left: 0; top: 0; z-index: 6; width: clamp(150px, 17vw, 210px); will-change: transform; pointer-events: none; }
#eagle svg { display: block; width: 100%; height: auto; transition: transform .18s; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
#eagle.left svg { transform: scaleX(-1); }
.mad { position: absolute; left: 44%; top: -14px; font-size: 1.6rem; animation: mad .5s ease-in-out infinite alternate; }
@keyframes mad { from { scale: .8; rotate: -10deg; } to { scale: 1.25; rotate: 10deg; } }
#eagle.throw svg { animation: throw .45s ease-out; }
@keyframes throw { 35% { translate: 0 -16px; rotate: -10deg; } }
.stage.rumble { animation: rumble .45s; }
@keyframes rumble { 15% { translate: -6px 4px; } 30% { translate: 6px -4px; } 45% { translate: -4px -3px; } 60% { translate: 4px 3px; } }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 11; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 40%, rgba(229,72,77,.55)); }
.stage.flash::after { animation: flash .5s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.wing-near, .wing-far { transform-origin: 108px 64px; animation: flap .7s ease-in-out infinite alternate; }
.wing-far { animation-delay: -.12s; }
@keyframes flap { from { transform: rotate(-26deg); } to { transform: rotate(30deg); } }

/* Chase logo sign */
#logo { position: absolute; left: 0; top: 0; z-index: 2; width: max-content; white-space: nowrap; background: #fff; border-radius: 12px; padding: 10px 20px 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.35); will-change: transform; pointer-events: none; }
#logo svg { width: 30px; height: 30px; flex: none; }
#logo span { font-weight: 800; letter-spacing: .06em; line-height: 1; font-size: clamp(.8rem, 2.4vw, .95rem); color: #111; }
#logo.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }

/* rubbish truck */
#truck { position: absolute; left: 0; bottom: calc(var(--ground) - 6px); width: calc(var(--dw) * 1.8); z-index: 5; display: none; pointer-events: none; will-change: transform; }
#truck svg { display: block; width: 100%; height: auto; overflow: visible; }
#truck.driving svg { animation: rattle .16s linear infinite; }
@keyframes rattle { 50% { transform: translateY(-2px); } }
.arm { transform-origin: 16px 128px; }
.dump.fresh { animation: fresh .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes fresh { from { scale: .2; opacity: 0; } }

/* dumpster (split in two so the logo can drop *between* the layers) */
.dump { position: absolute; width: var(--dw); aspect-ratio: 240 / 170; left: calc(66% - var(--dw) / 2); bottom: calc(var(--ground) - 6px); pointer-events: none; }
.dump svg { display: block; width: 100%; height: 100%; overflow: visible; }
#dumpBack { z-index: 1; }
#dumpFront { z-index: 3; }
.lid { transform-origin: 120px 62px; }
.dump.hit { animation: shake .5s; }
.dump.hit .lid { animation: slam .55s; }
@keyframes shake { 20% { transform: translateX(-7px) rotate(-1.5deg); } 40% { transform: translateX(7px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes slam { 25% { transform: scaleY(.15); } 45% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }

.p { position: absolute; z-index: 8; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; animation: burst .95s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes burst { 50% { transform: translate(calc(var(--dx) * .7), var(--dy)) rotate(calc(var(--r) * .5)); } to { transform: translate(var(--dx), calc(var(--dy) + 150px)) rotate(var(--r)); opacity: 0; } }
.clang { position: absolute; z-index: 9; font-weight: 800; font-size: 1.7rem; color: var(--purple); text-shadow: 0 3px 0 #3b1f7a, 0 0 18px rgba(0,0,0,.4); transform: translate(-50%, 0); pointer-events: none; animation: clang 1s ease-out forwards; }
@keyframes clang { from { opacity: 1; margin-top: 0; scale: .6; } 30% { scale: 1.15; } to { opacity: 0; margin-top: -90px; } }

/* ---------- sign-up ---------- */
.join { position: fixed; inset: 0; z-index: 50; overflow: auto; display: grid; place-items: center; padding: 24px 20px 80px; color: #fff;
  transform: translateX(100%); visibility: hidden; transition: transform .95s cubic-bezier(.65, 0, .25, 1), visibility 0s .95s; }
.join.open { transform: none; visibility: visible; transition: transform .95s cubic-bezier(.65, 0, .25, 1), visibility 0s; }
.join-inner { position: relative; z-index: 1; }
.join-inner { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.join-inner > * { opacity: 0; translate: 0 24px; transition: opacity .6s, translate .6s; }
.join.open .join-inner > * { opacity: 1; translate: 0 0; transition-delay: .5s; }
.join.open .join-inner > .card { transition-delay: .65s; }
.join .ground { position: fixed; z-index: 2; }
.join .ground::after { left: calc(var(--gx, 0px) * -1); }
.join { --hf: clamp(1.2rem, 2.7vw, 2rem); --lf: calc(var(--hf) * .44); }
.join-copy { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.join-text { flex: 1; min-width: 0; }
.join-logo { flex: none; width: calc(var(--hf) * 3.93 + 12px); height: calc(var(--hf) * 3.93 + 12px); border-radius: 12px; display: block; box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 14px 30px rgba(0,0,0,.4); }
.join h2 { font-size: var(--hf); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.join h2 span, .join h2 em { display: block; white-space: nowrap; }
.join h2 em { font-style: normal; color: var(--purple); }
.join p.lead { color: rgba(255,255,255,.8); font-size: var(--lf); line-height: 1.4; margin: 0; }
.join p.lead span { display: block; white-space: nowrap; }
.card { color: var(--ink); background: #fff; border-radius: 12px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 24px 60px rgba(10,26,51,.14), 0 0 0 1px rgba(10,26,51,.06); }
.card h3 { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -.02em; }
.field { display: block; margin-bottom: 16px; font-weight: 700; font-size: .9rem; }
.field input { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 500; font-size: 1rem; padding: 13px 14px; border: 2px solid #dde2ec; border-radius: 12px; background: #f8f9fc; color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus { outline: 0; border-color: var(--blue); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--muted); margin: 4px 0 8px; cursor: pointer; }
.consent input { appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid #b8c0d0; border-radius: 7px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.consent input:checked { background: var(--navy); border-color: var(--navy); }
.consent input:checked::after { content: "✓"; color: var(--gold); font-weight: 800; font-size: 15px; line-height: 1; }
.field input:focus-visible { outline: 0; }
.consent input:focus-visible, .btn:focus-visible, .drop:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--red); }
.consent a { color: var(--blue); font-weight: 700; }
.err { min-height: 1.3em; margin: 0 0 8px; color: var(--red); font-weight: 700; font-size: .9rem; }
.card .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.turnstile-wrap { margin: 8px 0 12px; }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { text-align: center; padding: 18px 0; }
.done .big { font-size: 3.2rem; }
.done h3 { font-size: 1.6rem; }
.done p { color: var(--muted); line-height: 1.5; }

@media (max-width: 820px) {
  .join { place-items: center; padding: 16px 16px 64px; }
  .join-inner { grid-template-columns: 1fr; gap: 16px; }
  .join { --hf: clamp(1.1rem, calc((100vw - 64px) / 13.7), 2.4rem); }
  .card { padding: 16px; }
  .card h3 { font-size: 1.05rem; margin-bottom: 10px; }
  .field { margin-bottom: 10px; font-size: .8rem; }
  .field input { padding: 10px 12px; margin-top: 4px; font-size: 16px; }
  .consent { gap: 10px; font-size: .76rem; line-height: 1.35; margin: 2px 0 12px; }
  .consent input { width: 22px; height: 22px; }
  .err { min-height: 0; margin: 0 0 6px; }
  .err:empty { display: none; }
  .card .btn { padding: 12px; font-size: 1rem; }
}
@media (max-width: 700px) {
  html, body { overflow: hidden; height: 100%; }
  .hero { position: fixed; inset: 0; min-height: 0; }
  .hero-copy { padding: 80px 24px 0; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); line-height: 1.08; margin-bottom: 20px; }
  .stage { min-height: 0; margin-top: 10px; }
  .hud { top: 14px; left: 14px; }
  #toast { top: 64px; }
  .controls { left: 14px; bottom: calc(var(--ground) + 22px); gap: 12px; max-width: calc(66% - var(--dw) / 2 - 22px); }
  .drop { padding: 11px 14px; font-size: .85rem; }
  .m-br { display: inline; }
  .eyebrow { font-size: clamp(.62rem, calc((100vw - 56px) / 28), .9rem); line-height: 1.15; padding: .65em 1.3em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .chase-badge, .mad { animation: none; }
  .wing-near, .wing-far { animation-duration: 1.2s; }
}
