/* hooodl.com/join: the creator application (with an optional ambassador part). Onboarding pages on a
   clean paper ground; each page opens with an animated scene that reacts to the
   answers. Fonts are self-hosted like the rest of the site (no third parties),
   and the page has no inline styles because of the site's Content-Security-Policy. */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800 900; font-display: swap; src: url("/fonts/archivo-900.woff2") format("woff2"); }
@font-face { font-family: "Dela Gothic One"; font-display: swap; src: url("/fonts/dela-gothic-one.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-display: swap; src: url("/fonts/permanent-marker.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #FAF8F2; --ink: #0B0B0A; --card: #FFFFFF; --muted: #6A665C; --line: #D9D4C7;
  --yellow: #FFE81A; --pink: #FF8FC0; --blue: #6FB7FF; --green: #1B9A57; --amber: #D99A00;
  --sign: #1F3F8C; /* Vienna street-sign blue */
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --col: 560px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--body); overflow: hidden; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- frame ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; max-width: calc(var(--col) + 32px); width: 100%; margin: 0 auto; padding: 12px 16px 8px; }
.logo { display: block; width: 84px; line-height: 0; }
.logo img { width: 100%; height: auto; }
.bar { flex: 1; display: flex; gap: 4px; min-width: 0; }
.bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .35s; }
.bar i.on { background: var(--ink); }
.bar i.now { background: var(--pink); }
.lang { font: 800 12px/1 var(--body); letter-spacing: .08em; padding: 8px 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.lang b { font-weight: 900; }
.lang span { opacity: .4; }

main { flex: 1; overflow-y: auto; overflow-x: hidden; }
.scene { max-width: var(--col); margin: 0 auto; padding: 6px 16px 44px; display: flex; flex-direction: column; gap: 18px; }
.scene[hidden] { display: none !important; }
.scene.fwd { animation: inR .45s cubic-bezier(.2,.8,.2,1) both; }
.scene.bwd { animation: inL .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes inR { from { opacity: 0; transform: translateX(48px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-48px); } }

/* ---------- hero scenes ---------- */
.hero { --hbg: var(--yellow); height: clamp(180px, 50vw, 250px); border-radius: 28px; background: var(--hbg); overflow: hidden; }
.hero > svg { display: block; width: 100%; height: 100%; }
.scene.fwd .hero > svg, .scene.bwd .hero > svg { animation: heroIn .6s .05s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes heroIn { from { transform: scale(.92); opacity: 0; } }
.hero text { font-family: var(--body); }
.st { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ground { stroke: var(--ink); stroke-width: 3; }

.bob { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.draw { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 5s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 1; } 18% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pop { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop 5s infinite; }
@keyframes pop { 0%, 18% { transform: scale(0); } 24% { transform: scale(1.25); } 28%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
.popin { transform-box: fill-box; transform-origin: center; animation: popin .45s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes popin { from { transform: scale(0); } }
.float { transform-box: fill-box; animation: float 3s ease-out infinite; opacity: 0; }
@keyframes float { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx, 0px), var(--dy, -70px)); opacity: 0; } }

/* platforms */
.bub { opacity: .38; transition: opacity .25s; }
.bub circle { fill: var(--card); transition: fill .25s; }
.bub.on { opacity: 1; animation: bob 2.2s ease-in-out infinite; transform-box: fill-box; }
.bub.on circle { fill: var(--yellow); }
.cn { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 4 6; opacity: 0; transition: opacity .25s; animation: flow 1s linear infinite; }
.cn.on { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* reach */
.pp circle, .pp path { fill: none; stroke: rgba(11,11,10,.22); stroke-width: 2; stroke-dasharray: 3 3; transition: fill .2s; }
.pp.on circle, .pp.on path { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: none; fill: var(--c); }
.pp.on { transform-box: fill-box; transform-origin: bottom center; animation: popin .4s cubic-bezier(.2,.9,.3,1.5) both; }
.wave { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: left center; animation: wave 1.8s ease-out infinite; opacity: 0; }
@keyframes wave { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }

/* districts */
.spin { transform-box: view-box; transform-origin: 82px 100px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flip { transform-box: fill-box; transform-origin: top center; animation: flip .45s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes flip { from { transform: scaleY(0); } }

/* fields */
.has-0 .when-has { opacity: 0; }
.when-has { transition: opacity .3s; }
.rise { transform-box: fill-box; animation: rise 2s ease-out infinite; opacity: 0; }
@keyframes rise { 0% { transform: translateY(24px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }

/* street */
.shop .aw { fill: #DDD8CB; transition: fill .3s; }
.shop.on .aw { fill: var(--c); }
.shop .win { fill: #E9E5DA; transition: fill .3s; }
.shop.on .win { fill: var(--yellow); }
.shop .ic { opacity: 0; transition: opacity .3s; }
.shop.on .ic { opacity: 1; }
.shop .chk { opacity: 0; }
.shop.on .chk { opacity: 1; transform-box: fill-box; transform-origin: center; animation: popin .45s cubic-bezier(.2,.9,.3,1.5) both; }
.shop.on .awg { transform-box: fill-box; transform-origin: top center; animation: flutter 1.8s ease-in-out infinite; }
@keyframes flutter { 50% { transform: scaleY(.82); } }

/* lead */
.door { transform-box: fill-box; transform-origin: left center; animation: door 4.5s ease-in-out infinite; }
@keyframes door { 0%, 20% { transform: scaleX(1); } 35%, 70% { transform: scaleX(.18); } 85%, 100% { transform: scaleX(1); } }
.walker { transform-box: fill-box; animation: walk 4.5s ease-in-out infinite; }
@keyframes walk { 0% { transform: translateX(80px); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateX(0); opacity: 1; } 68%, 100% { transform: translateX(-10px); opacity: 0; } }
.none .walker { display: none; }
.none .door { animation: none; }

/* signals */
.val { transition: stroke-dasharray .8s cubic-bezier(.2,.9,.3,1.1), stroke .4s; }
.marker { transform-box: view-box; transform-origin: 170px 176px; transition: transform .8s cubic-bezier(.2,.9,.3,1.25); }
.glass { transform-box: fill-box; animation: glass 3.2s ease-in-out infinite; }
@keyframes glass { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(14px, -6px) rotate(6deg); } }

/* done */
.conf { transform-box: fill-box; transform-origin: center; animation: fall var(--t, 3s) linear infinite; animation-delay: var(--d, 0s); }
@keyframes fall { from { transform: translate(0, -40px) rotate(0); } to { transform: translate(var(--dx, 0px), 260px) rotate(540deg); } }
.spray { animation: spray 1.1s steps(16) both; }
@keyframes spray { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stampin { transform-box: fill-box; transform-origin: center; animation: stamp .45s 1s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.4); } to { transform: rotate(-6deg); } }

/* ---------- copy ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 -8px; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.2; }
h2 { font-size: clamp(27px, 7.4vw, 38px); line-height: 1.2; }
/* the highlight sits behind the lower part of the letters only, so it never covers the line above */
mark { background: linear-gradient(transparent 30%, var(--yellow) 30%, var(--yellow) 92%, transparent 92%); color: var(--ink); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { margin: -4px 0 0; font-size: 17px; max-width: 42ch; }
.hint { margin: -6px 0 0; color: var(--muted); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 6px; font: 900 13px/1.2 var(--body); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sub { font: 800 15px/1.2 var(--body); margin: 6px 0 -6px; }

/* ---------- answers ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.stk { --bg: var(--card); position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 15px;
  background: var(--bg); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
  font: 800 15px/1.15 var(--body); text-align: left; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s; }
.stk:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.stk:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.stk svg { width: 20px; height: 20px; flex: none; }
.stk[aria-pressed="true"] { background: var(--sel, var(--yellow)); animation: tap .3s cubic-bezier(.2,.9,.3,1.5); }
.stk[aria-pressed="true"]::after { content: "✓"; margin-left: 2px; font-weight: 900; }
.stk[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
@keyframes tap { 40% { transform: scale(1.07); } }
.opts.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.grid2 .stk { width: 100%; min-width: 0; }
.stk .big { font-size: 16px; }
.stk small { display: block; font: 500 12px/1.3 var(--mono); color: var(--muted); margin-top: 3px; }
.stk .ib { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c, var(--card)); }
.stk .tx { min-width: 0; }
.opts.list { flex-direction: column; }
.opts.list .stk { width: 100%; justify-content: space-between; }
.opts.list .stk small { margin: 0; }

.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sign { display: flex; align-items: baseline; gap: 6px; min-height: 46px; padding: 9px 12px; background: var(--sign); color: #fff; min-width: 0;
  border: 3px solid #fff; outline: 2px solid var(--sign); border-radius: 6px; font: 800 14px/1.15 var(--body); text-align: left; cursor: pointer; transition: transform .15s, background .2s; }
.sign b { font-weight: 900; }
.sign span { min-width: 0; overflow-wrap: anywhere; }
.sign:hover { transform: translateY(-2px); }
.sign[aria-pressed="true"] { background: var(--yellow); color: var(--ink); outline-color: var(--ink); border-color: var(--ink); animation: tap .3s; }
.sign[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

.namefield { display: flex; flex-direction: column; gap: 6px; }
.namefield label { font: 800 15px/1.2 var(--body); }
.namefield small { font: 500 12px/1 var(--mono); color: var(--muted); }
input[type="text"]:focus-visible, input[type="email"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--pink); }
input[type="text"], input[type="email"] { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; font: 800 17px/1.2 var(--body); }
input::placeholder { color: #aaa497; font-weight: 400; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font: 900 17px/1 var(--body); color: var(--muted); }
.prefix input { padding-left: 32px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font: 700 15px/1.35 var(--body); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.check a { color: var(--ink); }

.fitrows { margin: 0; padding: 12px 14px; list-style: none; background: var(--card); border: 2px solid var(--line); border-radius: 14px; font: 500 13px/1.7 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fitrows li { display: flex; justify-content: space-between; gap: 10px; }
.fitrows b { color: var(--ink); font-weight: 500; }
.fitrows .tot { margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: 900 15px/1.4 var(--body); color: var(--ink); }
.fitrows .tot b { font-weight: 900; color: var(--st); }

/* intro */
.spots { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; }
.spots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.spots i.taken { background: var(--ink); }
.spots i.you { background: var(--pink); box-shadow: 0 0 0 2px var(--ink); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(1.35); } }
.spots-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.spots-cap b { color: var(--ink); font-weight: 500; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perk { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; min-width: 0; }
.perk .ic { width: 36px; height: 36px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; }
.perk .ic svg { width: 20px; height: 20px; }
.perk b { font: 900 15px/1.2 var(--body); }
.perk span { font: 400 13px/1.35 var(--body); color: var(--muted); }
.perk .when { align-self: flex-start; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; background: var(--ink); color: var(--yellow); }
.founding { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--yellow); font: 900 14px/1.3 var(--body); letter-spacing: .03em; padding: 12px 14px; border-radius: 14px; }
.founding svg { width: 20px; height: 20px; flex: none; }
.meta { font: 500 13px/1.4 var(--mono); color: var(--muted); margin: 0; }

/* done */
.next-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.next-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font: 700 15px/1.4 var(--body); }
.next-list li::before { content: counter(s); width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); border-radius: 50%; font: 900 14px/1 var(--body); }
.admin { background: var(--ink); color: #E9E4D6; border-radius: 16px; padding: 16px; font: 500 13px/1.5 var(--mono); }
.admin h3 { margin: 0 0 12px; font: 900 13px/1.35 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.admin dl { margin: 0; display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 4px 12px; }
.admin dt { color: #9d978a; }
.admin dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- bottom nav ---------- */
.nav { background: var(--bg); box-shadow: 0 -14px 18px -4px var(--bg); padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); position: relative; }
.nav-in { position: relative; max-width: var(--col); margin: 0 auto; display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 14px 20px; border: 2.5px solid var(--ink); border-radius: 16px;
  font: 900 16px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s; }
.btn-go { flex: 1; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-go:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-go:disabled { background: #ECE8DE; color: #9d978a; border-color: #CFC9BB; box-shadow: none; cursor: not-allowed; }
.btn-back { background: var(--card); color: var(--ink); padding-inline: 18px; }
.btn-back[hidden] { display: none; }
.note { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); text-align: center; font: 800 13px/1.3 var(--body); color: var(--muted); pointer-events: none; }
.note.err { color: #B3261E; }

@media (min-width: 720px) {
  .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
  .pop { transform: none; }
  .float, .rise, .wave, .conf { display: none; }
}

/* scene colours */
.hero-intro, .hero-lead-y, .hero-done { --hbg: #FFE81A; }
.hero-platforms { --hbg: #BFE0FF; }
.hero-reach, .hero-contact { --hbg: #FFD3E6; }
.hero-districts { --hbg: #D9E6FF; }
.hero-fields { --hbg: #C8F0DA; }
.hero-street { --hbg: #FFE7C4; }
.hero-lead { --hbg: #FFF3A0; }
.hero-signals { --hbg: #DDF2E5; }
.lead-groups { display: flex; flex-direction: column; gap: 10px; }
.spots.loading i { background: var(--line); box-shadow: none; animation: none; }
.fine { margin: 0; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.fine a { color: var(--ink); }
.btn-go.busy { cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* two-column cards: the tick sits in the corner so it doesn't squeeze the text */
.opts.grid2 .stk { padding: 10px 12px; }
.opts.grid2 .stk[aria-pressed="true"]::after { position: absolute; top: 6px; right: 9px; margin: 0; }

/* what you make / how you work / ambassador scenes */
.hero-make { --hbg: #FFE7C4; }
.hero-work { --hbg: #FFD3E6; }
.hero-role { --hbg: #FFF3A0; }
.day { transition: fill .25s; }
.day.on { fill: var(--pink); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: popin .4s cubic-bezier(.2,.9,.3,1.5) both; }
.amb-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 4 6; opacity: .15; transition: opacity .3s; }
.amb .amb-line { opacity: 1; animation: flow 1s linear infinite; }
.amb-shop { opacity: .35; transition: opacity .3s; }
.amb .amb-shop { opacity: 1; }
.amb-tick { opacity: 0; }
.amb .amb-tick { opacity: 1; transform-box: fill-box; transform-origin: center; animation: popin .45s cubic-bezier(.2,.9,.3,1.5) both; }
.opts.list .stk .big svg { vertical-align: -4px; margin-right: 4px; }
