/* ==========================================================================
   Norm the Normie ($NORM)
   90s primetime cartoon look: flat colors, fat black outlines, hard shadows.
   No gradients, no blur, no glass. Every value worth changing lives in
   :root below, so restyling the whole site means editing this one block.
   ========================================================================== */

:root {
  /* --- palette --- */
  --sky:    #5cc3f0;
  --yellow: #e2fb00;   /* sampled from the banner + pfp ground (sRGB) */
  --accent: #ff8fc7;   /* donut pink: every primary button + step badge */
  --ink:    #0b0b12;   /* the outline black. also all body text */
  --cream:  #fff8e1;
  --grass:  #6fc23c;
  --white:  #ffffff;

  /* --- the cartoon "look" knobs --- */
  --bw:     6px;                        /* border width on cards + frames */
  --bw-sm:  5px;                        /* border width on buttons + bars */
  --shadow: 8px 8px 0 var(--ink);       /* hard offset, never blurred */
  --shadow-lg: 12px 12px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);    /* the "pressed" state */
  --radius: 24px;
  --radius-pill: 999px;

  /* --- type --- */
  --font-head: "Luckiest Guy", system-ui, sans-serif;
  --font-body: "Fredoka", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* The banner art is a Display P3 JPEG. On wide-gamut screens, use its exact P3 ground
   (231 250 81) so page yellow and art meet with no seam; everyone else gets the hex above. */
@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root { --yellow: color(display-p3 0.906 0.980 0.318); }
  }
}

/* border-box means padding never blows out a width. Always do this. */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* stops the sticky header covering a heading you just jumped to */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  /* the hill is wider than the screen on purpose: kill sideways scroll */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;      /* Luckiest Guy only ships one weight */
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem); }
p  { margin: 0 0 1rem; }

/* Headings sitting on sky blue: white fill with a drawn-on black outline.
   paint-order puts the stroke behind the fill so letters stay readable. */
.stroked {
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Visible only to screen readers (used for the "Copied" announcement) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Keyboard focus must always be obvious */
:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;              /* comfortably over the 44px touch target */
  padding: 0.6rem 1.6rem;
  font-family: var(--font-head);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--bw-sm) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-pink  { background: var(--accent); }
.btn-white { background: var(--white); }
.btn-sm    { min-height: 44px; padding: 0.4rem 1.1rem; box-shadow: 5px 5px 0 var(--ink); }
.btn-lg    { min-height: 62px; padding: 0.8rem 2.4rem; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); }

/* Hover + active: nudge it down-right and shrink the shadow, so the button
   looks physically pressed into the page. */
.btn:hover,
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-sm);
}
.btn-sm:hover, .btn-sm:active { box-shadow: 2px 2px 0 var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row.center { justify-content: center; margin-top: 2.5rem; }

/* ============================ 1. HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(0.9rem, 3vw, 2rem);
  background: var(--yellow);
  border-bottom: var(--bw-sm) solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-pfp {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  object-fit: cover;
  display: block;
}
.brand-ticker { font-family: var(--font-head); font-size: 1.5rem; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }

/* Below 760px the nav links go away, logo + buy button stay */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ============================ 2. HERO ============================ */
.hero {
  position: relative;
  background: var(--sky);
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem calc(110px + clamp(2rem, 5vw, 4rem));
  overflow: hidden;            /* clips the drifting clouds */
  text-align: center;
}
.clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Four clouds, four speeds. Slow, small drifts so it reads as idle sky. */
.cloud-1 { animation: drift 26s ease-in-out infinite; }
.cloud-2 { animation: drift 34s ease-in-out infinite reverse; }
.cloud-3 { animation: drift 44s ease-in-out infinite; }
.cloud-4 { animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift {
  from { transform: translateX(-3%); }
  50%  { transform: translateX(3%); }
  to   { transform: translateX(-3%); }
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; }

/* The banner in a yellow billboard frame, tilted slightly off-square */
.billboard {
  max-width: 880px;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  padding: 14px;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.billboard img { display: block; width: 100%; height: auto; border-radius: 12px; }

.hero-sub {
  max-width: 44ch;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
}
.hero .btn-row { justify-content: center; }

/* Grass hill: a strip wider than the viewport with an elliptical top, so the
   curve looks like a hill instead of a circle. */
.hill {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 110px;
  background: var(--grass);
  border-top: var(--bw) solid var(--ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ============================ 3. CONTRACT ============================ */
.band-yellow {
  background: var(--yellow);
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.ca-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
}
.ca-text {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.75rem + 0.7vw, 1.1rem);
  /* long addresses must wrap instead of pushing the card wide */
  overflow-wrap: anywhere;
  text-align: left;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.chip {
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  background: var(--white);
  border: var(--bw-sm) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.fineprint { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* ============================ 4. REWARDS ============================ */
.band-cream { background: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0; }
.rewards-grid {
  display: grid;
  /* two columns on desktop, stacks automatically on narrow screens */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.rewards-left { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

/* Speech bubble with a tail poking out the bottom */
.bubble {
  position: relative;
  max-width: 360px;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bubble p { margin: 0; font-weight: 600; font-size: 1.15rem; text-align: center; }
/* Two stacked triangles: the black one is the outline, the white one sits on
   top of it and 6px higher, which fakes a bordered tail. */
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  border-style: solid;
  border-color: transparent;
  border-width: 26px 20px 0;
}
.bubble::before { bottom: -26px; transform: translateX(-50%); border-top-color: var(--ink); }
.bubble::after  { bottom: -18px; transform: translateX(-50%); border-top-color: var(--white); }

.norm-portrait {
  width: min(340px, 78vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 7px solid var(--ink);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); font-weight: 500; margin-bottom: 2rem; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.25rem; }
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.step-card h3 { margin-bottom: 0.3rem; }
.step-card p  { margin: 0; }
.badge {
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  background: var(--accent);
  border: var(--bw-sm) solid var(--ink);
  border-radius: 50%;
}

/* ============================ 5. HOW TO BUY ============================ */
.band-sky {
  background: var(--sky);
  border-top: var(--bw) solid var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.buy-grid {
  display: grid;
  /* auto-fit means 3 across on desktop, 1 across on a phone, no media query */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.buy-card {
  padding: 1.6rem;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.buy-card p { margin: 0; }
.step-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.9rem;
  font-family: var(--font-head);
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius-pill);
}

/* ============================ 6. FOOTER ============================ */
.site-footer {
  background: var(--ink);
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.pill {
  display: inline-flex; align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.6rem;
  font-family: var(--font-head);
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: var(--bw-sm) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.pill:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--accent); }
.disclaimer {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #f2efe4;
}

/* ====================== MOTION PREFERENCES ======================
   Anyone who asked their OS for less motion gets no cloud drift and no
   smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Tighten the heavy borders and shadows on small phones so nothing
   feels cramped at 360px wide. */
@media (max-width: 420px) {
  :root { --bw: 5px; --shadow: 6px 6px 0 var(--ink); --shadow-lg: 8px 8px 0 var(--ink); }
  .stroked { -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 var(--ink); }
  .step-card { gap: 0.8rem; padding: 1.1rem; }
  .badge { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.25rem; }
}
