:root {
  /* OHKEW brand: only these four colours + black shadow */
  --blue: #00CACF;
  --yellow: #FDE692;
  --white: #FFFFFF;
  --pink: #FE1DD1;
  /* Page background */
  --butter-tint: #FDE692;
  --ink: #000000;
  /* Brand shadow: 100% opacity, angle 135, distance 4, blur 0, black */
  /* One outline + shadow style for the whole page (matches the form card) */
  --line: 2px;
  --shadow: 2px 2px 0 var(--ink);
  /* Fonts: headings = Bricolage Grotesque (live site), body = Poppins */
  --font-normal: "Poppins", system-ui, sans-serif; /* body text: Poppins Regular */
  --font-bold: "Bricolage Grotesque", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-normal);
  color: var(--ink);
  /* Tile pattern recreated from the Canva design (DAHYnGzpc4U), in page colours:
     brand-yellow tiles #FDE692 with a slightly darker yellow #F5DB80 between them
     (monotone, subtle watermark look) */
  background: var(--butter-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%23F5DB80'/%3E%3Crect x='0.75' y='0.75' width='70.5' height='70.5' rx='30' fill='%23FDE692'/%3E%3C/svg%3E") 0 0 / 72px 72px repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-bold);
  font-weight: 800;
  letter-spacing: .08em;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 14px;
}
.marquee__track { display: inline-flex; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Hero */
.hero { position: relative; }
.logo {
  margin: 0 0 28px;
  display: inline-block;
  line-height: 0;
  background: var(--white);
  border: var(--line) solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  animation: logo-pop .7s cubic-bezier(.3,1.6,.5,1) .2s both;
}
/* OH KEW logo pops in on page load */
@keyframes logo-pop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(-3deg); opacity: 1; }
}
.logo img {
  display: block;
  width: 130px;
  height: auto;
  mix-blend-mode: multiply; /* hides the logo's white background on the yellow pill */
}

h1 {
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0 0 24px;
}
.hl {
  display: inline-block;
  padding: 0 .12em;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 6px 0;
}
.hl--pink { background: var(--pink); color: var(--white); transform: rotate(-2deg); }
.hl--blue { background: var(--blue); transform: rotate(1.5deg); }

.lede { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 0; }


/* Card */
.card {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
}
h2 {
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -.03em;
  margin: 0 0 6px;
}
.count { margin: 0 0 20px; font-size: 15px; }
.count strong { background: var(--yellow); padding: 0 6px; border-radius: 6px; }

form { display: grid; gap: 16px; margin-top: 18px; }
label { display: grid; gap: 6px; }
label > span { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

input, select {
  font: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  width: 100%;
  outline: none;
  transition: box-shadow .15s, transform .15s, background .15s;
}
input:focus, select:focus { background: var(--white); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; cursor: pointer; }

.row { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 12px; }
.at { position: relative; }
.at b { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; pointer-events: none; }
.at input { padding-left: 34px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

button {
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: 20px;
  padding: 16px 20px;
  background: var(--pink);
  color: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
button:hover { transform: translate(-2px, -2px) rotate(-1deg); }
button:active { transform: translate(2px, 2px); box-shadow: none; }
button:disabled { opacity: .7; cursor: wait; }
button.secondary { background: var(--blue); color: var(--ink); margin-top: 8px; }

.error { color: #d7003f; font-weight: 700; margin: 0; min-height: 1.2em; font-size: 15px; }
.fine { font-size: 13px; opacity: .7; margin: 0; text-align: center; }

#success-view { text-align: center; }
.big-emoji { font-size: 64px; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.position { font-family: var(--font-bold); font-size: 24px; font-weight: 700; }
.position span {
  display: inline-block;
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 2px 12px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  font-size: 36px;
  font-weight: 800;
}

footer { text-align: center; padding: 24px; font-weight: 700; font-size: 14px; }

/* Confetti */
.confetti {
  position: fixed; top: -20px; width: 12px; height: 18px;
  border: var(--line) solid var(--ink); pointer-events: none; z-index: 10;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 880px) {
  .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
        .card { padding: 28px 22px; }
}
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.nowrap { white-space: nowrap; }

/* Hide the "Powered by Netlify" badge injected by Netlify */
#nl-badge-frame { display: none !important; }
