/* Purple Hippos — QR landing (final: concept 20a)
   Mobile-first. Everything is sized in px on purpose: the type is display type and the
   layout is a single 430px-max column. Fonts: Anton (display), Archivo (UI). */

:root {
  --purple: #6B2FE0;
  --lime: #C6F135;
  --black: #000;
  --white: #fff;
  --lime-tint: #F4FBDD;          /* focused field background */
  --wall-stroke: rgba(255,255,255,.28);
  --prefix: rgba(0,0,0,.5);

  --font-display: 'Anton', Impact, sans-serif;
  --font-ui: 'Archivo', system-ui, sans-serif;

  --page-max: 430px;
  --gutter: 22px;
  --pad-top: calc(48px + env(safe-area-inset-top));
  --pad-bottom: calc(30px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  max-width: var(--page-max);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--purple);
}

.column {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--pad-top) var(--gutter) var(--pad-bottom);
}

/* ---------- Wallpaper (decorative) ---------- */
.wallpaper {
  position: absolute;
  left: 0; right: 0; top: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  font: 400 66px/1 var(--font-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--wall-stroke);
  white-space: nowrap;
  animation: fade 1s ease both;
}
.wallpaper__row {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 24s) linear infinite;
}
.wallpaper__row--reverse { animation-direction: reverse; }
.wallpaper__row span { padding-right: 24px; }

/* ---------- Brand line ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fade .5s ease both;
}
.welcome {
  margin: 0;
  font: 500 12px/1 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.welcome strong { font-weight: 800; }

/* CSS hippo mark (30×24). Swap for the real illustration. */
.hippo { position: relative; display: block; width: 30px; height: 24px; flex: none; animation: bob 2.4s ease-in-out infinite; }
.hippo i { position: absolute; display: block; border-radius: 50%; background: var(--white); }
.hippo__ear { top: 0; width: 8px; height: 8px; }
.hippo__ear--l { left: 2px; } .hippo__ear--r { right: 2px; }
.hippo__head { left: 0; top: 4px; width: 30px; height: 20px; border-radius: 10px 10px 9px 9px; }
.hippo__eye { top: 9px; width: 4px; height: 4px; background: var(--purple); animation: blink 4s ease-in-out infinite; }
.hippo__eye--l { left: 8px; } .hippo__eye--r { left: 18px; }
.hippo__nose { top: 18px; width: 3px; height: 2px; background: var(--purple); }
.hippo__nose--l { left: 10px; } .hippo__nose--r { left: 17px; }

/* ---------- Pitch ---------- */
.pitch { flex: 1; display: flex; flex-direction: column; }

.tag {
  margin: 0;
  align-self: flex-start;
  padding: 11px 14px;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag--black { background: var(--black); color: var(--lime); }
.tag--lime  { background: var(--lime);  color: var(--black); box-shadow: 5px 5px 0 var(--black); }
.tag--city  { margin-top: 44px; animation: slam .4s steps(3) both; }
.tag--trust { margin-top: 24px; animation: slam .4s steps(3) .65s both; }

/* Headline: lime face over three solid-black copies offset 8/16/24px = stepped extrude */
.headline {
  position: relative;
  margin: 22px 0 0;
  max-width: 300px;               /* keeps the 3-line UNLOCK / YOUR / TREAT stack at every width */
  font: 400 84px/.9 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.headline__ext {
  position: absolute; left: 0; right: 0; top: 0;
  color: var(--black);
}
.headline__ext--1 { animation: ext1 .5s cubic-bezier(.2,.8,.2,1) .3s both; }
.headline__ext--2 { animation: ext2 .5s cubic-bezier(.2,.8,.2,1) .4s both; }
.headline__ext--3 { animation: ext3 .5s cubic-bezier(.2,.8,.2,1) .5s both; }
.headline__face {
  position: relative;
  display: block;
  color: var(--lime);
  -webkit-text-stroke: 2px var(--black);
  animation: slam .4s steps(3) .15s both;
}

/* ---------- Form (black plate) ---------- */
.form {
  margin-top: auto;               /* pins the plate to the bottom on tall screens */
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--black);
  animation: slam .4s steps(3) .8s both;
}
.form__error {
  margin: 0;
  min-height: 12px;
  font: 700 11px/1.3 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
}

/* Honeypot: kept in the DOM and functional, but never visible or reachable by tab. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 3px solid var(--black);
}
.field__tab {
  flex: none;
  width: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--black);
  font: 700 9.5px/1 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.field__input { position: relative; flex: 1; min-width: 0; display: flex; }
.field__prefix {
  position: absolute; left: 12px; top: 0; bottom: 0;
  display: flex; align-items: center;
  font: 400 26px/1 var(--font-display);
  color: var(--prefix);
  pointer-events: none;
}
.field input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 10px 12px;
  font: 400 22px/1.2 var(--font-display);
  letter-spacing: .03em;
  color: var(--black);
  caret-color: var(--black);
  transition: background .15s steps(2);
}
.field__input--phone input { padding-left: 46px; font-size: 26px; letter-spacing: .04em; }
.field input::placeholder { color: inherit; opacity: .38; }
.field input:focus { background: var(--lime-tint); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--black); transition: background-color 9999s ease-out; }

.cta {
  height: 68px;
  width: 100%;
  border: 3px solid var(--lime);
  border-radius: 0;
  background: var(--lime);
  color: var(--black);
  font: 400 28px/1 var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .1s steps(1), opacity .15s;
}
.cta:active { transform: translate(2px, 2px); }
.cta:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.cta[disabled] { opacity: .6; cursor: default; }

.consent {
  margin: 16px 0 0;
  font: 600 10px/1.5 var(--font-ui);
  color: var(--white);
}

/* ---------- Success screen ---------- */
.done {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--lime);
  animation: fade .2s steps(2) both;
}
.done[hidden] { display: none; }
.headline--done { margin: 0; font-size: 96px; max-width: none; }
.headline--done .headline__face { color: var(--purple); animation-delay: .1s; }
.headline--done .headline__ext--1 { animation-delay: .25s; }
.headline--done .headline__ext--2 { animation-delay: .35s; }
.headline--done .headline__ext--3 { animation-delay: .45s; }

.done__copy {
  margin: 40px 0 0;
  max-width: 330px;
  font: 600 18px/1.35 var(--font-ui);
  color: var(--black);
  animation: slam .4s steps(3) .6s both;
}
.done__copy--2 { margin-top: 22px; animation-delay: .75s; }
.done__link {
  margin: 18px 0 0;
  align-self: flex-start;
  background: var(--black);
  color: var(--lime);
  padding: 14px 16px;
  font: 400 24px/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: slam .4s steps(3) .9s both;
}

/* ---------- Motion ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slam { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes ext1 { from { opacity: 0; transform: none; } to { opacity: 1; transform: translate(8px, 8px); } }
@keyframes ext2 { from { opacity: 0; transform: none; } to { opacity: 1; transform: translate(16px, 16px); } }
@keyframes ext3 { from { opacity: 0; transform: none; } to { opacity: 1; transform: translate(24px, 24px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (prefers-reduced-motion: reduce) {
  .wallpaper__row, .hippo, .hippo__eye { animation: none; }
  .tag, .headline__ext, .headline__face, .form, .done, .brand, .wallpaper { animation-duration: .01ms; }
}
