/* ============================================================
   Design tokens — a warm cream/blush base (bridging fitout's
   cream/tan and juju's pink/cream) with one terracotta-coral
   accent as the single "thing you click" color, per jinder's
   own design-token philosophy.
   ============================================================ */
:root {
  --color-cream: #fbf1e6;
  --color-blush: #ffe9f0;
  --color-ink: #332a22;
  --color-ink-soft: #6f6258;
  --color-ink-faint: #a89a8d;

  --color-accent: #cf5d3b;
  --color-accent-dark: #a8482c;
  --color-accent-soft: #f7ded2;

  /* One extra tone beyond the accent, jinder-style: enough for a step or a
     card to have its own identity without turning into a rainbow. "Black"
     reuses --color-ink itself further down, so nothing new to add for that. */
  --color-tone-brown: #8a5a3c;
  --color-tone-brown-soft: #ecdcc9;
  --color-ink-soft-bg: #e7e1d8;

  --color-border: #ecdfc9;
  --color-border-strong: #ddc6a0;
  --color-surface: #ffffff;

  --shadow-card: 0 1px 2px rgba(51, 42, 34, 0.06);
  --shadow-pop: 0 22px 44px -26px rgba(51, 42, 34, 0.35);

  /* One heavy, uppercase, tight-tracked face reserved for headlines and the
     wordmark only, Swire-style — never body copy, since a paragraph of
     shouting is unreadable. */
  --font-display: "Archivo Black", Georgia, "Times New Roman", serif;

  /* The signature wash: used sparingly, one or two moments per page that
     should stop somebody scrolling, never a background-everywhere gradient.
     Drawn from our own accent + brown, not borrowed from anyone else's. */
  --wash-from: var(--color-accent);
  --wash-to: var(--color-tone-brown);
  --wash: linear-gradient(135deg, var(--wash-from), var(--wash-to));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Full-bleed home-page bands use calc(50% - 50vw) margins; clip stops any
     sub-pixel rounding from ever producing a horizontal scrollbar. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--color-blush) 0%, var(--color-cream) 420px, var(--color-cream) 100%);
  color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

img, svg {
  max-width: 100%;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
  /* Pins the footer to the bottom of the viewport on short pages instead of
     leaving the decorative .page-bg blobs (position: fixed, so they always
     cover the full viewport regardless of content height) exposed as a big
     empty-looking gap below a short page on a tall screen. Has no effect on
     pages tall enough to scroll — flex just gives the footer nowhere to go
     but its normal spot. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  padding-block: clamp(24px, 4vw, 48px);
  position: relative;
}

.section-tight {
  padding-block: clamp(16px, 2.5vw, 28px);
}

/* A visible line between stacked sections instead of relying on whitespace
   alone to separate them — the hero (first section on a page) never gets
   one, since there's nothing above it to divide from. */
.section + .section,
.section + .section-tight,
.section-tight + .section,
.section-tight + .section-tight {
  border-top: 1px solid var(--color-border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink);
}

/* Headlines get the display face: heavy, uppercase, tight. Card/tier titles
   (h3) stay a normal-case bold system font — uppercase everywhere would be
   shouting at every card, not just the moments that deserve it. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
h2 { font-size: clamp(23px, 3.2vw, 32px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }

/* The signature wash, for the one or two places on a page that should stop
   somebody scrolling. Used sparingly on purpose: a gradient everywhere is a
   gradient nowhere. */
.wash {
  background-image: var(--wash);
  color: #fff;
}
.wash-text {
  background-image: var(--wash);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  color: var(--color-ink-soft);
  line-height: 1.55;
}

/* Decorative blurred blobs for depth on a plain warm ground. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.page-bg__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
}
.page-bg__blob--1 {
  top: -8%;
  right: -6%;
  width: min(50vw, 620px);
  height: min(50vw, 620px);
  background: radial-gradient(circle, rgba(255, 233, 240, 0.9) 0%, rgba(255, 233, 240, 0) 70%);
}
.page-bg__blob--2 {
  top: 40%;
  left: -12%;
  width: min(55vw, 680px);
  height: min(55vw, 680px);
  background: radial-gradient(circle, rgba(207, 93, 59, 0.14) 0%, rgba(207, 93, 59, 0) 70%);
}

/* ============================================================
   Scroll reveal — ported from jinder's [data-reveal] mechanism:
   plain CSS + a small IntersectionObserver script (public/js/reveal.js),
   gated behind html.js so no-JS clients still see everything.
   ============================================================ */
html.js [data-reveal],
html.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-visible,
html.js [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal-stagger] > * {
    transition-delay: 0ms !important;
  }
}

/* Cards that lift on hover or keyboard focus, never hover only. */
.lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.lift:hover, .lift:focus-within {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-pop);
}

@media (prefers-reduced-motion: reduce) {
  .lift:hover, .lift:focus-within {
    transform: none;
  }
  .step__marker {
    transition: none;
  }
  .step:hover .step__marker {
    transform: none;
  }
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
}

/* The real wordmark artwork (public/images/jouejoue-wordmark.svg) —
   height-constrained, width follows its own ~3.7:1 aspect ratio. */
.site-nav__wordmark-img {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-underline {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink-soft);
}
.nav-underline::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav-underline:hover::after {
  transform: scaleX(1);
}

/* Hamburger toggle — hidden on wide screens, where the links show inline. */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.site-nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__toggle.is-open .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle.is-open .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle.is-open .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 719px) {
  .site-nav__toggle {
    display: flex;
  }
  .site-nav__links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-pop);
    padding: 8px 24px 16px;
    z-index: 20;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .site-nav__links.is-open {
    max-height: 320px;
    opacity: 1;
  }
  .site-nav__links li {
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav__links li:last-child {
    border-bottom: none;
  }
  .nav-underline {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }
  .nav-underline::after {
    display: none;
  }
  .site-nav {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__links {
    transition: none;
  }
  .site-nav__toggle-bar {
    transition: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, filter 0.2s ease;
}
.btn:active {
  transform: scale(0.94);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.btn:disabled:active {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
}
/* Higher specificity than .btn-primary so a wash button (a deliberately rare,
   high-stakes moment like checkout) actually gets the gradient. */
.btn.wash {
  background-image: var(--wash);
  background-color: transparent;
}
.btn.wash:hover {
  filter: brightness(0.92);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   Home page — full-screen scroll narrative (lp-*). Big type, one
   idea per screenful, alternating bold full-bleed bands, JoueJoue's
   own warm identity rather than a stock hero.
   ============================================================ */

/* Full-bleed helper: break a child of .container out to the whole
   viewport width, then re-constrain its own inner content. */
.lp-bleed {
  margin-inline: calc(50% - 50vw);
}

/* One vertical rhythm for every home-page section, so the spacing reads
   the same all the way down and matches between desktop and phone. */
:root { --lp-rhythm: clamp(60px, 11vh, 120px); }
@media (max-width: 640px) { :root { --lp-rhythm: 56px; } }

/* 1 · Hero — the headline leads; the nav is the ordinary site nav, same as
   every other page. */
.lp-hero {
  min-height: 62svh;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: clamp(28px, 7vh, 72px);
  padding-bottom: clamp(28px, 7vh, 72px);
}
.lp-hero__headline {
  font-size: clamp(26px, 4.6vw, 52px);
  line-height: 1.05;
  margin: 0;
  animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.lp-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(26px, 5vh, 44px);
  animation: lp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.lp-hero__cue {
  position: absolute;
  bottom: clamp(14px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.lp-hero__cue:hover { color: var(--color-accent); }
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero__headline, .lp-hero__actions { animation: none; }
}

/* Shared page header — every marketing page opens with this now, so the
   whole site carries the home page's weight, not just the home page. */
.page-head {
  text-align: center;
  padding-block: clamp(40px, 9vh, 92px) clamp(26px, 5vh, 46px);
}
.page-head h1 {
  font-size: clamp(32px, 6.2vw, 62px);
  line-height: 1.03;
  max-width: 20ch;
  margin-inline: auto;
}
.page-head p {
  max-width: 500px;
  margin: 16px auto 0;
}
@media (max-width: 640px) {
  .page-head { padding-block: 40px 22px; }
}

/* Shared section shell */
.lp-section {
  padding-block: var(--lp-rhythm);
}
/* 4-across variant of the card grid, for the how-it-works steps. These are
   short steps, not the landing's tall feature cards, so they size to
   content and the icon isn't pushed to the top. */
.lp-cards--four {
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .lp-cards--four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .lp-cards--four { grid-template-columns: repeat(4, 1fr); }
}
.lp-cards--four .lp-card {
  min-height: 0;
}
.lp-cards--four .lp-card__icon {
  margin: 14px 0 12px;
}
.lp-section__title {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.06;
  text-align: center;
  margin: 0 0 clamp(28px, 5vh, 48px);
}

/* 2 · Three cards */
.lp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 860px) {
  .lp-cards { grid-template-columns: repeat(3, 1fr); }
}
.lp-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: clamp(24px, 3vw, 38px);
  min-height: 360px;
}
/* When the whole card is a link — colour still comes from the variant
   (a.lp-card would otherwise out-specify .lp-card--ink and kill its text). */
a.lp-card {
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.lp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(49, 42, 35, 0.16);
}
a.lp-card:hover .lp-card__link { text-decoration: underline; }
.lp-card--accent { background: var(--color-accent); color: #fff; }
.lp-card--ink    { background: var(--color-ink); color: #f5ede1; }
.lp-card--cream  { background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-border); }
.lp-card__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}
.lp-card__icon {
  font-size: clamp(46px, 6vw, 68px);
  line-height: 1;
  margin: clamp(20px, 4vh, 40px) 0 auto;
}
.lp-card__headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.12;
  margin: 18px 0 8px;
  color: inherit; /* the h1,h2,h3 rule forces --color-ink; on the dark card that's invisible */
}
.lp-card p { color: inherit; opacity: 0.9; font-size: 14px; margin: 0; }
.lp-card__link {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}
.lp-card__link:hover { opacity: 1; text-decoration: underline; }

/* 3 · Statement */
.lp-statement {
  text-align: center;
  padding-block: var(--lp-rhythm);
}
.lp-statement p {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  font-size: clamp(28px, 6vw, 66px);
  line-height: 1.04;
  margin: 0;
}
.lp-statement p.lp-statement__sig {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--color-ink-soft);
  margin: clamp(16px, 3vh, 28px) 0 0;
}

/* 4 · Full-bleed band — dark, with drifting emoji behind the words. */
.lp-band {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  padding-block: calc(var(--lp-rhythm) * 1.2);
  position: relative;
  overflow: hidden;
}
.lp-band__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}
.lp-band__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 5.4vw, 58px);
  line-height: 1.1;
  margin: 0;
  color: #fff;
}
/* A row of emoji tiles under the band title. Laid out with flex (wraps on
   narrow screens) so they can never escape the band or pile onto the text;
   each one just rocks left-and-right in place. Tapping one pops confetti. */
.lp-band__playfield {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  margin-top: clamp(28px, 6vh, 52px);
}
.emoji-field--band .emoji-field__item {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 14vw, 78px);
  height: clamp(52px, 14vw, 78px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: none;
  pointer-events: auto;
  cursor: pointer;
  animation-name: emoji-rock;
}
@keyframes emoji-rock {
  0%, 100% { transform: translateY(var(--lift, 0)) rotate(var(--rock, 9deg)); }
  50% { transform: translateY(var(--lift, 0)) rotate(calc(var(--rock, 9deg) * -1)); }
}
@media (prefers-reduced-motion: reduce) {
  .emoji-field--band .emoji-field__item { animation: none; transform: rotate(-4deg); }
}

/* 5 · For companies callout */
.lp-pro {
  padding-block: var(--lp-rhythm);
}
.lp-pro__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.lp-pro__title {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.08;
  margin: 10px 0 12px;
}
.lp-pro__inner p {
  margin: 0;
  font-size: 15px;
}

/* 6 · Final CTA */
.lp-final {
  text-align: center;
  padding-block: var(--lp-rhythm);
}
.lp-final h2 { font-size: clamp(26px, 4.5vw, 46px); margin: 0 0 12px; }
.lp-final p { max-width: 440px; margin: 0 auto; }
.lp-final .lp-hero__actions { animation: none; }

@media (max-width: 640px) {
  /* On a phone the desktop clamp minimums (360px cards, tall hero) leave
     the page mostly empty air. --lp-rhythm already drops to 56px above;
     these fix the pieces that don't scale off it. */
  .lp-hero {
    min-height: auto;
    padding-top: clamp(24px, 7vh, 48px);
    padding-bottom: clamp(36px, 9vh, 60px);
  }
  .lp-hero__cue {
    position: static;
    transform: none;
    display: block;
    margin-top: 28px;
  }
  .lp-cards {
    gap: 12px;
  }
  .lp-card {
    min-height: 0;
  }
  .lp-card__icon {
    margin: 14px 0 12px;
  }
  .lp-pro__inner {
    gap: 16px;
  }
}
.hero__subhead {
  margin-top: 16px;
  font-size: 17px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero__actions .btn {
  padding: 17px 30px;
  font-size: 17px;
}

.btn-lg {
  padding: 20px 36px !important;
  font-size: 18px !important;
  border-radius: 14px;
}

@media (max-width: 480px) {
  .hero__logo {
    width: min(320px, 72vw);
  }
  /* A tighter, denser rhythm on phones — less side margin, smaller
     headline/body sizes, less vertical air between sections — instead of
     relying on someone pinch-zooming out to get a page that reads as one
     tidy screenful rather than a lot of scroll. Zoom is now locked off
     (see the viewport meta tag), so this has to be the real default. */
  .container {
    padding-inline: 18px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.5vw, 34px);
  }
  .hero__subhead {
    font-size: 15px;
  }
  .section {
    padding-block: clamp(16px, 5vw, 32px);
  }
  .section-tight {
    padding-block: clamp(10px, 3vw, 18px);
  }
  /* The bigger .btn padding (from making CTAs "more inciting") no longer
     fits two hero buttons on one line under ~380px — they wrapped to a
     full-width stack instead of sitting side by side. */
  .hero__actions .btn {
    padding: 12px 18px;
    font-size: 15px;
  }
  .hero__actions--big .btn-lg {
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
}

/* ============================================================
   How it works — fitout's numbered-step pattern
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
}
.step {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  transition: background 0.2s ease;
}
.step:hover {
  background: rgba(255, 255, 255, 0.5);
}
@media (min-width: 860px) {
  .step {
    border-bottom: none;
    border-left: 1px solid var(--color-border);
  }
  .step:first-child {
    border-left: none;
  }
}
.step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  background: var(--step-tone-soft, var(--color-accent-soft));
  color: var(--step-tone, var(--color-accent));
  transition: transform 0.2s ease;
}
.step:hover .step__marker {
  transform: scale(1.1);
}
.step--brown { --step-tone: var(--color-tone-brown); --step-tone-soft: var(--color-tone-brown-soft); }
.step--black { --step-tone: var(--color-ink); --step-tone-soft: var(--color-ink-soft-bg); }

/* A small connecting arrow per step (not one long background line) so it
   naturally stays correct even when steps wrap to a second row. */
.steps--rail .step {
  position: relative;
}
@media (min-width: 860px) {
  .steps--rail .step:not(:first-child)::before {
    content: "→";
    position: absolute;
    top: 22px;
    left: -9px;
    color: var(--color-border-strong);
    font-size: 14px;
    font-weight: 700;
  }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  text-align: center;
}
@media (max-width: 640px) {
  /* Below this width the four items wrap unevenly (2 fit a row, then 1,
     then 1), which reads as random, oversized gaps even though the row-gap
     itself is small. A single predictable column looks tidier than
     whatever way four different-length items happen to wrap. */
  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.trust-item__icon {
  color: var(--color-accent);
  font-weight: 700;
}

/* ============================================================
   Next-step cards — home page's only other job besides the hero:
   point to the two dedicated pages (how it works / pricing) instead of
   explaining either of them here. One thing to think about at a time.
   ============================================================ */
.next-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  /* A swipeable one-card-at-a-time carousel instead of squeezing two
     cards into one row (or stacking them full-width) — each card is 86%
     of the viewport, snapped to center, with a deliberate peek of the
     next card's edge as the visual cue that there's more to swipe to. */
  .next-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .next-strip::-webkit-scrollbar {
    display: none;
  }
  .next-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
}
.next-card {
  position: relative;
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.next-card__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.next-card h3 {
  margin-bottom: 4px;
}
.next-card p {
  margin: 0;
  font-size: 14px;
}
.next-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--color-border-strong);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.next-card:hover .next-card__arrow, .next-card:focus-visible .next-card__arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}
@media (prefers-reduced-motion: reduce) {
  .next-card:hover .next-card__arrow, .next-card:focus-visible .next-card__arrow {
    transform: none;
  }
}

/* ============================================================
   Idea chips
   ============================================================ */
.idea-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.idea-chip {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
}
.idea-chip:hover, .idea-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  .idea-chip:hover, .idea-chip:focus-visible {
    transform: none;
  }
}

/* ============================================================
   Pricing tiers — fitout's Tiers.tsx: a bordered/divided row,
   one tier highlighted.
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--color-surface);
}
@media (min-width: 640px) {
  .tiers { grid-template-columns: 1fr 1fr; }
}
/* Three tiers (Bank Game / Custom Game / Monthly Plan) need more room per
   card than two do — jumping straight from 1 to 3 columns at a wider
   breakpoint avoids an awkward 2-then-1 wrap in between. */
@media (min-width: 900px) {
  .tiers--three { grid-template-columns: 1fr 1fr 1fr; }
}
.tier {
  padding: 22px;
  border-top: 1px solid var(--color-border);
  position: relative;
}
@media (min-width: 640px) {
  .tier { border-top: none; }
  .tier + .tier { border-left: 1px solid var(--color-border); }
}
.tier--highlighted::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--color-accent);
}
.tier__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tier__price {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 2px;
}
.tier__features {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.tier__features li::before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: 700;
}

/* ============================================================
   Catalog grid
   ============================================================ */
.catalog-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--card-tone, var(--color-accent));
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-card--brown { --card-tone: var(--color-tone-brown); }
.game-card--black { --card-tone: var(--color-ink); }
.game-card__icon {
  align-self: center;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-card.lift:hover .game-card__icon, .game-card.lift:focus-within .game-card__icon {
  transform: scale(1.15) rotate(-8deg);
}
.game-card__description {
  min-height: 4.6em;
}
.game-card__footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .game-card.lift:hover .game-card__icon, .game-card.lift:focus-within .game-card__icon {
    transform: none;
  }
}

/* A slightly louder button for the one action a demo page really wants
   you to take — bigger than the standard .btn, with a little icon that
   nudges forward on hover so it feels like a "go" button, not just text. */
.btn-fun {
  padding: 16px 28px;
  font-size: 17px;
  gap: 10px;
}
.btn-fun__icon {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-fun:hover .btn-fun__icon, .btn-fun:focus-visible .btn-fun__icon {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-fun:hover .btn-fun__icon, .btn-fun:focus-visible .btn-fun__icon {
    transform: none;
  }
}

.game-card__price {
  font-weight: 700;
  color: var(--card-tone, var(--color-accent));
  font-size: 14px;
}

/* ============================================================
   Forms
   ============================================================ */
.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px;
}
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 12px 0 5px;
}
label:first-of-type { margin-top: 0; }
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-ink);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}
input:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.form-card .btn {
  width: 100%;
  margin-top: 14px;
}

/* Delivery-method choice on the buy form (send it myself vs. email the
   recipient directly) — a fieldset of two big tappable option cards rather
   than a plain radio list, so the tradeoff each one implies is readable at
   a glance, not just a one-line label. */
.delivery-choice {
  border: none;
  padding: 0;
  margin: 14px 0 0;
}
.delivery-choice legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 0;
}
.delivery-choice__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
}
.delivery-choice__option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-cream);
}
.delivery-choice__option input {
  margin-top: 3px;
  flex-shrink: 0;
}
.delivery-choice__option span {
  color: var(--color-ink-soft);
}
.delivery-choice__option strong {
  color: var(--color-ink);
}

/* Difficulty picker — a segmented row of three pills instead of a native
   <select>, which reads as a plain OS control that clashes with everything
   else on this form. Same "card that fills in when checked" trick as
   .delivery-choice, just laid out side by side since these labels are one
   word each. */
.level-choice {
  border: none;
  padding: 0;
  margin: 14px 0 0;
}
.level-choice legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 0;
}
.level-choice__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.level-choice__option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 76px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
}
.level-choice__option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-cream);
}
.level-choice__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* A fixed-size box around the glyph itself, not just font-size + line-height
   — different emoji carry different built-in vertical metrics in most
   fonts (🔥 sits taller/lower than 😌 at the same font-size), which without
   this reads as misaligned/uneven cards even though the cards themselves
   are the same size. Centering the glyph inside its own fixed box removes
   that per-character variance. */
.level-choice__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
}
.level-choice__label {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-ink);
}
.level-choice__caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-ink-soft);
  text-align: center;
}

/* ============================================================
   Mock checkout
   ============================================================ */
.order-summary {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: var(--color-cream);
}
.order-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.order-summary__row--currency {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.order-summary__row--currency label {
  font-weight: 600;
}
.order-summary__row--currency select {
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-surface);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row label {
  margin-top: 12px;
}
.form-fineprint {
  font-size: 12px;
  color: var(--color-ink-faint);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* ============================================================
   Confirmation / share link
   ============================================================ */
.share-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.share-box input {
  flex: 1;
  min-width: 200px;
  background: var(--color-cream);
}

.confirm-qr {
  margin-top: 24px;
}
.confirm-qr__img {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 8px;
}
.confirm-qr__caption {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin: 10px auto 14px;
  max-width: 340px;
}
.confirm-qr__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.confirm-qr__actions .btn {
  font-size: 14px;
  padding: 10px 18px;
}

/* ============================================================
   Play page — juju-style catch mechanics
   ============================================================ */
.play-shell,
.play-shell * {
  /* Every game element gets this explicitly, not just .play-shell itself —
     touch-action isn't inherited, so without this a rapid double-tap on a
     bird/pipe/falling-item (anything the games add at runtime) still
     triggers Safari's native double-tap-to-zoom gesture. */
  touch-action: none;
}
.play-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-blush) 0%, var(--color-cream) 100%);
}

/* Demo page controls float over the game itself rather than sitting in a
   solid header bar: a back link top-left, the game switcher bottom-center
   so it's out of the way of the instructions banner up top. */
.demo-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.75);
}
.demo-switch {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 92%;
}
.play-instructions {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 5;
  text-align: center;
  max-width: 90%;
}

@media (max-width: 640px) {
  /* On a phone the back button (top-left) and the centered instructions
     banner (up to 90% wide) occupy the same top:16px band and visibly
     collide. Stack them instead: a smaller back button, instructions
     pushed below it, everything else that anchors off "top" pushed down
     to match. */
  .demo-back-btn {
    top: 10px;
    left: 10px;
    padding: 7px 12px;
    font-size: 13px;
  }
  .play-instructions {
    top: 56px;
    max-width: calc(100% - 20px);
    font-size: 14px;
    padding: 7px 14px;
  }
  .cooking-target-badge {
    top: 112px;
  }
  .flappy-score {
    top: 10px;
    right: 10px;
    font-size: 14px;
    padding: 7px 12px;
  }
  .demo-switch {
    bottom: 12px;
    gap: 6px;
  }
  .demo-switch .btn {
    padding: 7px 12px;
    font-size: 13px;
  }
}
.critter {
  position: absolute;
  font-size: 62px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  /* Slow on purpose right now: this is a prototype and we're still testing
     the win flow, not tuning difficulty. Speed this back up later. A playful
     overshoot bounce instead of flat ease-out — it's a game, not a form. */
  transition: top 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25));
  z-index: 10;
}
.critter.grabbed {
  cursor: grabbing;
  transition: none;
  z-index: 20;
  transform: scale(1.15);
}
.critter.click-catch {
  cursor: pointer;
}
#play-mouse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8;
}
#play-mouse .mouse-emoji {
  font-size: 88px;
  line-height: 1;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25));
}
#play-mouth {
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* ============================================================
   Cook the Dish — catch the falling target, one shot
   ============================================================ */
.cooking-target-badge {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cooking-target-emoji {
  font-size: 26px;
  line-height: 1;
}
.cooking-target-count {
  padding-left: 4px;
  border-left: 2px solid var(--color-border);
}
.cooking-target-timer {
  padding-left: 8px;
  border-left: 2px solid var(--color-border);
  color: var(--color-accent);
}
.falling-item {
  position: absolute;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.2));
  z-index: 4;
}

/* ============================================================
   Flap to 20
   ============================================================ */
.flappy-score {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 20px;
}
.flappy-bird-el {
  position: absolute;
  width: 50px;
  height: 50px;
  font-size: 42px;
  line-height: 50px;
  text-align: center;
  z-index: 4;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25));
}
.flappy-pipe {
  position: absolute;
  background: var(--color-tone-brown);
  border: 3px solid var(--color-ink);
  border-radius: 6px;
  z-index: 3;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 42, 34, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.overlay.hidden { display: none; }

/* ============================================================
   Confetti — a small celebratory burst, spawned from JS
   (GameLib.confetti in shared.js) on any "you won" moment.
   ============================================================ */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 300;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ============================================================
   Floating emoji background — games page only. A fixed, full-
   viewport layer like .page-bg (same z-index tier, so it never
   covers nav/headings/text — only shows through gaps and behind
   translucent areas), each item wandering a wide, randomized path;
   tapping one freezes it and pops a confetti burst.
   ============================================================ */
.emoji-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.emoji-field__item {
  position: absolute;
  /* Non-interactive: they drift over the hero and its buttons now, so a
     tap must always reach the CTA underneath, not pop a confetti burst. */
  pointer-events: none;
  user-select: none;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  animation-name: emoji-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}
.emoji-field__item.is-paused {
  animation-play-state: paused;
}
/* Waypoints come from per-item CSS custom properties (set in JS) so every
   emoji wanders its own randomized path across the viewport instead of
   all following one identical loop just offset in time. */
@keyframes emoji-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(var(--dx1), var(--dy1)) rotate(14deg); }
  40% { transform: translate(var(--dx2), var(--dy2)) rotate(-10deg); }
  60% { transform: translate(var(--dx3), var(--dy3)) rotate(12deg); }
  80% { transform: translate(var(--dx4), var(--dy4)) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .emoji-field__item {
    animation: none;
  }
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.modal-box .answer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.hidden { display: none !important; }

/* A company's own logo, top-left of the play screen, when the game came
   from one of their QR codes. */
.play-brand-logo {
  position: fixed;
  top: 14px;
  left: 14px;
  max-height: 34px;
  max-width: 130px;
  width: auto;
  height: auto;
  z-index: 20;
  opacity: 0.92;
}

/* Reward-mode result: the discount line is the whole point, so make it
   the biggest thing in the modal. */
.reward-overlay__body {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 8px 0 0;
}

.play-intro-overlay__note {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  font-size: 15px;
  font-style: italic;
  color: var(--color-ink);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 28px;
  font-size: 13px;
  color: var(--color-ink-faint);
  text-align: center;
  margin-top: auto;
}

/* Simple centered page for expired / already-answered / 404-ish states */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.status-page__card {
  max-width: 420px;
}
