/* Soolla — Partner Pouch Builder access landing */

html, body { margin: 0; }
body {
  overflow-x: clip;
  font-family: 'National 2 Narrow', 'Helvetica Neue', Arial, sans-serif;
  color: #000;
  background: #fdfbf0;
}
a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

#pa-mesh {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}
#root { position: relative; z-index: 2; }

/* ── stage ─────────────────────────────────────────────── */
.pa-stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 108px 24px 72px;
  box-sizing: border-box;
}
.pa-logo {
  position: absolute; top: 24px; left: 50%; z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
}
.pa-logo img { height: 50px; display: block; }

.pa-col {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 30px;
  width: 100%; max-width: 860px;
}

/* ── hero graphic slot ─────────────────────────────────── */
.pa-heroslot {
  height: 264px;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%;
}

/* ── copy ──────────────────────────────────────────────── */
.pa-swap {
  display: flex; flex-direction: column;
  align-items: center; gap: 26px;
  width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .pa-swap { animation: pa-in .32s cubic-bezier(.2,.9,.3,1.15) both; }
}
@keyframes pa-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pa-badge {
  display: inline-flex;
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase;
  font-size: 22px; line-height: 1; color: #000;
  border: 3px solid #000; border-radius: 999px;
  padding: 12px 22px 14px;
  box-shadow: 3px 4px 0 0 #000;
  transform: rotate(-3deg);
}
.pa-badge.tone-sky   { background: #B9DBF7; }
.pa-badge.tone-yellow{ background: #FCE523; transform: rotate(2deg); }
.pa-badge.tone-mint  { background: #C7F39F; transform: rotate(-2deg); }

.pa-h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(52px, 7.6vw, 86px);
  line-height: .96;
  letter-spacing: -0.01em;
  max-width: 900px;
  text-wrap: balance;
}
.pa-hl { position: relative; display: inline-block; white-space: nowrap; }
.pa-hl::before {
  content: '';
  position: absolute; z-index: -1;
  left: -0.12em; right: -0.12em; top: 0.1em; bottom: -0.02em;
  background: #FFB0EE;
  border-radius: 0.18em 0.35em 0.22em 0.4em;
  transform: rotate(-1.2deg);
}

.pa-sub {
  margin: 0; max-width: 600px;
  font-size: 17.5px; line-height: 1.45;
  color: rgba(0,0,0,.62);
  text-wrap: pretty;
}
.pa-sub strong { color: #000; font-weight: 700; }

.pa-fine {
  font-size: 14px; font-weight: 500;
  color: rgba(0,0,0,.55);
  text-transform: lowercase;
}

/* ── email form ────────────────────────────────────────── */
.pa-form {
  display: flex; align-items: center; gap: 10px;
  width: 620px; max-width: 100%;
  background: #fff;
  border: 3px solid #000; border-radius: 999px;
  box-shadow: 5px 7px 0 0 #000;
  padding: 8px 8px 8px 0;
  box-sizing: border-box;
}
.pa-form.shake { animation: pa-shake .4s ease both; border-color: #EE371E; }
@keyframes pa-shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.pa-input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font-family: 'National 2 Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600; font-size: 19px; color: #000;
  padding: 14px 10px 14px 28px;
}
.pa-input::placeholder { color: rgba(0,0,0,.38); text-transform: lowercase; }

.pa-send, .pa-cta {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase;
  font-size: 21px; line-height: 1;
  color: #FCE523; background: #000;
  border: 0; border-radius: 999px;
  padding: 15px 26px 17px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.pa-send svg, .pa-cta svg { transform: translateY(1px); }
.pa-send:hover, .pa-cta:hover { transform: translate(-1px, -1px); }
.pa-send:active, .pa-cta:active { transform: translate(1px, 1px); }
.pa-send[disabled] { cursor: default; opacity: .85; }

.pa-cta {
  border: 3px solid #000;
  box-shadow: 5px 7px 0 0 #000;
  padding: 17px 32px 19px;
  font-size: 23px;
  text-decoration: none;
}
.pa-cta:hover { text-decoration: none; box-shadow: 6px 8px 0 0 #000; }
.pa-cta:active { box-shadow: 2px 3px 0 0 #000; }

.pa-dots span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #FCE523; margin: 0 2px;
  animation: pa-dot 1s ease-in-out infinite;
}
.pa-dots span:nth-child(2) { animation-delay: .15s; }
.pa-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes pa-dot { 40% { transform: translateY(-4px); } }

/* ── code boxes ────────────────────────────────────────── */
.pa-code { display: flex; gap: 12px; justify-content: center; }
.pa-codebox {
  width: 54px; height: 66px;
  border: 3px solid #000; border-radius: 14px;
  background: #fff;
  box-shadow: 3px 4px 0 0 #000;
  font-family: 'National 2 Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800; font-size: 30px; text-align: center;
  color: #000; outline: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  caret-color: #EE371E;
  padding: 0;
}
.pa-codebox:focus {
  transform: translate(-1px, -1px);
  box-shadow: 4px 5px 0 0 #000;
  background: #FFFDE7;
}
.pa-code.checking .pa-codebox {
  animation: pa-check .5s ease infinite alternate;
  background: #C7F39F;
}
.pa-code.checking .pa-codebox:nth-child(2n) { animation-delay: .12s; }
.pa-code.checking .pa-codebox:nth-child(3n) { animation-delay: .24s; }
@keyframes pa-check { to { transform: translateY(-4px); } }

.pa-links { display: flex; gap: 22px; align-items: center; }
.pa-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: 'National 2 Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15.5px; font-weight: 700; color: #000;
  text-decoration: underline; text-underline-offset: 3px;
  text-transform: lowercase;
}
.pa-link:hover { color: #003A91; }

/* ── toast ─────────────────────────────────────────────── */
.pa-toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 60;
  transform: translateX(-50%);
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase;
  font-size: 17px; color: #FCE523;
  background: #000; border-radius: 999px;
  padding: 13px 24px 15px;
  animation: pa-in .25s ease both;
}

/* ── confetti ──────────────────────────────────────────── */
.pa-confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: clip; }
.pa-confetti > div { position: absolute; will-change: transform; }

/* ══ HERO A · peekaboo porthole ═════════════════════════ */
.pa-hero { position: relative; display: flex; flex-direction: column; align-items: center; }

.pa-porthole {
  position: relative;
  width: 224px; height: 224px;
  border-radius: 50%;
  background: #B9DBF7;
  border: 3px solid #000;
  box-shadow: 6px 8px 0 0 #000;
  overflow: hidden;
}
.pa-peek-riser {
  position: absolute; left: 50%; bottom: -66px;
  width: 216px; margin-left: -108px;
}
@media (prefers-reduced-motion: no-preference) {
  .pa-peek.phase-email .pa-peek-riser { animation: pa-duck 9s ease-in-out infinite; }
  .pa-peek .pa-porthole { animation: pa-bob 3.4s ease-in-out infinite alternate; }
}
@keyframes pa-bob { to { transform: translateY(-5px); } }
@keyframes pa-duck {
  0%, 56% { transform: translateY(0); }
  63%, 74% { transform: translateY(105%); }
  82%, 100% { transform: translateY(0); }
}
.pa-peek.phase-unlocked .pa-peek-riser { animation: pa-hop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pa-hop {
  0% { transform: translateY(24px); }
  55% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}
.pa-peek-pouch { width: 100%; display: block; }
.pa-peek .pa-eyes { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); }

.pa-nopeek {
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%) rotate(3deg) scale(0);
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase; font-size: 15px; line-height: 1;
  background: #FFB0EE; border: 2.5px solid #000; border-radius: 999px;
  padding: 8px 14px 10px;
  box-shadow: 2px 3px 0 0 #000;
  transition: transform .25s cubic-bezier(.3,1.5,.5,1);
  white-space: nowrap;
}
.pa-nopeek.show { transform: translateX(-50%) rotate(3deg) scale(1); }

/* googly eyes */
.pa-eyes { display: flex; gap: 9px; --px: 0px; --py: 0px; }
.pa-eye {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 3px solid #000;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform .25s ease;
}
.pa-pupil {
  position: absolute; left: 50%; top: 50%;
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: #000;
  transform: translate(var(--px), var(--py));
}
.pa-gleam {
  position: absolute; right: 1px; top: 1.5px;
  width: 4px; height: 4px; border-radius: 50%; background: #fff;
}
.pa-lid {
  position: absolute; inset: -3px;
  background: #2E8894;
  border-bottom: 3px solid #000;
  transform: translateY(-101%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.pa-eyes.mood-closed .pa-lid { transform: translateY(-24%); }
.pa-eyes.mood-happy .pa-eye { transform: scaleY(.52); }
@media (prefers-reduced-motion: no-preference) {
  .pa-eyes.auto-glance.mood-open .pa-pupil { animation: pa-glance 6s ease-in-out infinite; }
  .pa-eyes.mood-open .pa-eye { animation: pa-blink 5.2s infinite; }
}
@keyframes pa-glance {
  0%, 22%, 100% { transform: translate(0, 0); }
  30%, 44% { transform: translate(-5px, 1px); }
  56%, 72% { transform: translate(5px, 0); }
  82% { transform: translate(0, 2px); }
}
@keyframes pa-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94.5% { transform: scaleY(.1); }
}

/* ══ HERO B · mystery silhouette ════════════════════════ */
.pa-sil { width: 340px; height: 100%; }
.pa-sil-swing {
  position: absolute; top: 0; left: 50%;
  transform-origin: 50% -40px;
}
@media (prefers-reduced-motion: no-preference) {
  .pa-sil-swing { animation: pa-sway 3.4s ease-in-out infinite alternate; }
  .pa-sil.phase-unlocked .pa-sil-swing { animation-duration: 5.4s; }
}
@keyframes pa-sway { from { rotate: -4.5deg; } to { rotate: 4.5deg; } }
.pa-sil-string {
  position: absolute; top: -12px; left: 50%;
  width: 3px; height: 46px; margin-left: -1.5px;
  background: #000; border-radius: 2px;
}
.pa-sil-body { position: relative; transform: translateX(-50%); padding-top: 32px; }
.pa-sil-pouch {
  width: 268px; display: block;
  filter: brightness(0);
  transition: filter .9s ease .25s;
}
.pa-sil.phase-unlocked .pa-sil-pouch { filter: none; }
.pa-sil-q {
  position: absolute; top: 66px; left: 50%;
  width: 78px; height: 78px; margin-left: -39px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ohno Softie', system-ui, sans-serif;
  font-size: 44px; padding-bottom: 6px; box-sizing: border-box;
  background: #FCE523; color: #000;
  border: 3px solid #000; border-radius: 50%;
  box-shadow: 3px 4px 0 0 #000;
  rotate: -8deg;
}
@media (prefers-reduced-motion: no-preference) {
  .pa-sil-q { animation: pa-qbob 2.6s ease-in-out infinite alternate; }
}
@keyframes pa-qbob { from { transform: translateY(0) } to { transform: translateY(-7px) } }
.pa-sil-tag {
  position: absolute; right: -18px; bottom: 14px;
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase; font-size: 16px; line-height: 1;
  background: #FFB0EE; border: 2.5px solid #000; border-radius: 999px;
  padding: 9px 15px 11px;
  box-shadow: 2px 3px 0 0 #000;
  rotate: 5deg;
  white-space: nowrap;
}
.pa-sil.phase-unlocked .pa-sil-tag { background: #C7F39F; }
.pa-sil-star, .pa-sil-heart { position: absolute; }
.pa-sil-star { width: 40px; left: 6px; top: 48px; rotate: -12deg; }
.pa-sil-heart { width: 36px; right: 10px; top: 26px; rotate: 10deg; }
@media (prefers-reduced-motion: no-preference) {
  .pa-sil-star { animation: pa-float 3.8s ease-in-out infinite alternate; }
  .pa-sil-heart { animation: pa-float 3.1s .4s ease-in-out infinite alternate-reverse; }
}
@keyframes pa-float { from { transform: translateY(0) } to { transform: translateY(-10px) } }

/* ══ HERO C · wholesale vault ═══════════════════════════ */
.pa-vault { padding-top: 14px; }
.pa-vault-scene {
  position: relative;
  width: 308px; height: 226px;
  perspective: 900px;
}
.pa-vault-inside {
  position: absolute; inset: 0;
  background: #101014;
  border: 3px solid #000; border-radius: 24px;
  box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.pa-vault-prize { width: 190px; display: block; margin-bottom: -26px; }
.pa-vault-inside .pa-eyes {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
}
.pa-vault-door {
  position: absolute; inset: 0;
  background: #F7F1EE;
  border: 3px solid #000; border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 6px 8px 0 0 #000;
  transform-origin: 0% 50%;
  transition: transform .95s cubic-bezier(.55,-.12,.25,1.05), box-shadow .4s ease;
  display: flex; align-items: center; justify-content: center;
}
.pa-vault.open .pa-vault-door {
  transform: rotateY(-84deg);
  box-shadow: 0 0 0 0 #000;
}
.pa-rivet {
  position: absolute; width: 9px; height: 9px;
  border-radius: 50%; background: #000;
}
.pa-rivet.r1 { top: 12px; left: 12px; }
.pa-rivet.r2 { top: 12px; right: 12px; }
.pa-rivet.r3 { bottom: 12px; left: 12px; }
.pa-rivet.r4 { bottom: 12px; right: 12px; }
.pa-keyhole {
  position: relative;
  width: 96px; height: 132px;
  clip-path: path('M48 8 a 36 36 0 1 0 0.02 0 Z M 36 64 L 20 128 L 76 128 L 60 64 Z');
  background: #101014;
  overflow: hidden;
}
.pa-key-strip {
  position: absolute; top: 0; left: -40px;
  display: flex; height: 132px;
}
.pa-key-strip img { width: 206px; height: 132px; object-fit: contain; flex: none; opacity: .96; }
@media (prefers-reduced-motion: no-preference) {
  .pa-key-strip { animation: pa-slide 15s linear infinite; }
  .pa-vault-plaque { animation: pa-bob 3.6s ease-in-out infinite alternate; }
}
@keyframes pa-slide { to { transform: translateX(-824px); } }
.pa-vault-plaque {
  position: absolute; top: -16px; left: 50%; z-index: 3;
  transform: translateX(-50%) rotate(-3deg);
  font-family: 'Ohno Softie', system-ui, sans-serif;
  text-transform: lowercase; font-size: 17px; line-height: 1;
  background: #FFB0EE; border: 2.5px solid #000; border-radius: 999px;
  padding: 10px 17px 12px;
  box-shadow: 2px 3px 0 0 #000;
  white-space: nowrap;
}
.pa-vault-spark { position: absolute; width: 26px; right: 34px; top: 34px; rotate: 14deg; }
@media (prefers-reduced-motion: no-preference) {
  .pa-vault-spark { animation: pa-twinkle 2.2s ease-in-out infinite alternate; }
}
@keyframes pa-twinkle { from { transform: scale(.75); opacity: .55; } to { transform: scale(1.1); opacity: 1; } }
.pa-vault.open .pa-vault-prize { animation: pa-hop .55s .5s cubic-bezier(.3,1.6,.5,1) both; }

/* ── small screens ─────────────────────────────────────── */
@media (max-width: 620px) {
  .pa-stage { padding: 92px 18px 56px; }
  .pa-logo { top: 18px; width: min(320px, 78vw); }
  .pa-logo img { height: auto; width: 100%; }
  .pa-heroslot { height: 216px; }
  .pa-heroslot .pa-hero { transform: scale(.82); transform-origin: bottom center; }
  .pa-col { gap: 24px; }
  .pa-swap { gap: 22px; }
  .pa-h1 { font-size: clamp(40px, 13vw, 56px); }
  .pa-sub { font-size: 16.5px; }
  .pa-badge { font-size: 19px; padding: 10px 18px 12px; }
  .pa-form {
    flex-direction: column; gap: 8px;
    border-radius: 34px; padding: 8px;
  }
  .pa-input { width: 100%; box-sizing: border-box; text-align: center; padding: 13px 14px; }
  .pa-send { width: 100%; }
  .pa-cta { font-size: 21px; padding: 15px 26px 17px; }
  .pa-code { gap: 6px; }
  .pa-codebox { width: 42px; height: 56px; font-size: 24px; border-radius: 12px; box-shadow: 2px 3px 0 0 #000; }
  .pa-links { flex-direction: column; gap: 12px; }
  .pa-toast { max-width: calc(100vw - 40px); box-sizing: border-box; text-align: center; }
}

/* production addition: shake treatment for a rejected one-time code */
.pa-codewrap.shake { animation: pa-shake .4s ease both; }
