/* ---- Rewardify — Planetono-inspired: red + yellow + black, bold cartoony ---- */
:root {
  --bg-0: #EB3322;
  --bg-1: #d72a18;
  --bg-2: #FCC634;
  --ink: #0a0a0a;
  --ink-muted: #2a1410;
  --ink-dim: #5a2a22;
  --paper: #FCC634;
  --paper-soft: #ffd96a;
  --glass: rgba(0, 0, 0, 0.05);
  --glass-strong: rgba(0, 0, 0, 0.10);
  --glass-border: rgba(0, 0, 0, 0.85);
  --glass-border-strong: #0a0a0a;
  --gold: #FCC634;
  --gold-deep: #e3a91a;
  --leaf: #FCC634;
  --leaf-deep: #e3a91a;
  --coral: #ffffff;
  --iri-pink: #ff8fd1;
  --iri-violet: #b48bff;
  --iri-cyan: #7ee8ff;
  --iri-peach: #ffc78a;
  --iri-mint: #9fffd5;
  --shadow-glow: 0 30px 80px -30px rgba(246, 198, 116, 0.35);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html, body { color: var(--ink); background: var(--bg-0); }
body { min-height: 100vh; background: var(--bg-0); }
::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.iri-text { font-style: normal; font-weight: 800; color: #fff; background: var(--ink); padding: 0 0.18em; display: inline-block; border-radius: 4px; }

/* ---- Grain ---- */
.grain { display: none;
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.78  0 0 0 0 0.45  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.7);
  font-family: var(--font-display); font-size: 14px;
  max-width: calc(100vw - 24px);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.nav .brand .by { color: var(--ink-dim); font-weight: 400; }
.nav .brand .logo {
  width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 200deg, var(--gold), var(--leaf), var(--gold-deep), var(--leaf-deep), var(--gold));
  box-shadow: 0 0 18px rgba(246, 198, 116, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.45);
}
.nav ul { display: flex; list-style: none; gap: 4px; }
.nav ul a { display: inline-block; padding: 8px 14px; border-radius: 999px; color: #fff; opacity: 0.75; font-weight: 600; transition: opacity 0.2s; font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.nav ul a:hover { opacity: 1; }
.nav .brand { color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.nav .brand .by { color: rgba(255,255,255,0.55); font-weight: 500; }
.nav .cta { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; box-shadow: 3px 3px 0 var(--paper); }
.nav .cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--gold);
  color: #0a1612; font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(246, 198, 116, 0.6);
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav .cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(246, 198, 116, 0.85); }

@media (max-width: 860px) {
  .nav { gap: 12px; padding: 8px 8px 8px 16px; }
  .nav ul { display: none; }
  .nav .brand .by { display: none; }
}

/* ---- Sections ---- */
section { position: relative; z-index: 2; padding: clamp(90px, 12vw, 140px) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 10px var(--leaf); }

h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 18px 0 22px;
}

.head-lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink); line-height: 1.6; max-width: 620px; font-weight: 500; }

.footnote { color: var(--ink); font-size: 13px; margin-top: 24px; font-weight: 500; opacity: 0.7; }

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  padding: 110px 0 80px;
  display: grid;
  align-items: center;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Hero is now split: text col + tray with canvas */
.hero-grid { width: min(1280px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero .content { position: relative; z-index: 3; max-width: 620px; padding: 0; text-align: left; }
.hero-tray { position: relative; border-radius: 28px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 22px; aspect-ratio: 1.1 / 1; overflow: hidden; }
.hero-tray::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(0,0,0,0.18); border-radius: 18px; pointer-events: none; }
.hero-tray .badge-corner { position: absolute; top: -12px; left: 22px; transform: rotate(-6deg); background: #fff; border: 2px solid var(--ink); padding: 6px 14px; border-radius: 8px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--ink); z-index: 4; box-shadow: 3px 3px 0 var(--ink); }
#hero-canvas { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); z-index: 1; border-radius: 18px; cursor: grab; }
.hero .stars-deco { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero .stars-deco svg { position: absolute; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero .content { max-width: 100%; text-align: center; margin: 0 auto; } .hero-tray { aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; } .hero .actions { justify-content: center; } }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.035em; margin: 22px 0 26px; color: var(--ink); text-transform: none; }
.hero h1 .iri { font-style: normal; font-weight: 800; color: var(--ink); position: relative; display: inline-block; }
.hero h1 .iri::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 14px; background: var(--bg-0); z-index: -1; transform: rotate(-1deg); }
.hero h1 .iri {
  background: linear-gradient(110deg, var(--gold) 0%, var(--leaf) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iri-shift 8s ease-in-out infinite;
  font-style: italic; font-weight: 400;
}
@keyframes iri-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p.lede { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink); max-width: 560px; margin: 0 0 32px; line-height: 1.55; font-weight: 500; }
@media (max-width: 900px) { .hero p.lede { margin-left: auto; margin-right: auto; } }
.hero .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--gold); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--gold); font-weight: 700; }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.btn-ghost { background: transparent; border: 3px solid var(--ink); color: var(--ink); font-weight: 700; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Stores / download */
.hero .actions { flex-direction: column; gap: 18px; align-items: center; }
.stores { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--ink); border: 3px solid var(--ink); color: #fff; font-family: var(--font-display); box-shadow: 4px 4px 0 var(--paper); transition: transform 0.2s, box-shadow 0.2s; }
.store-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--paper); }
.store-btn svg { color: var(--ink); }
.store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn small { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600; }
.store-btn strong { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: #fff; }

.trust-line { margin-top: 22px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); font-weight: 600; }
.trust-line::first-letter { color: var(--ink); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint { display: none; }
@keyframes pulse-bar { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---- Problem section ---- */
.problem .head { max-width: 760px; margin-bottom: 56px; }
.problem .head h2,
.solution .text-col > h2,
.how > .wrap > .head h2 {
  color: #fff;
  -webkit-text-stroke: 1.2px var(--ink);
  paint-order: stroke fill;
  text-shadow: none;
}
.problem .head .head-lede,
.solution .text-col > .head-lede {
  color: #fff5dc;
  text-shadow: none;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pcard { position: relative; padding: 28px 24px; border-radius: 22px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.pcard .big { font-family: var(--font-display); font-size: clamp(42px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.pcard .plabel { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---- Solution ---- */
.solution .layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.solution .text-col { min-width: 0; }
@media (max-width: 1000px) { .solution .layout { grid-template-columns: 1fr; gap: 40px; } }

#rewardify-canvas { width: 100%; height: clamp(420px, 56vw, 620px); border-radius: 28px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); position: relative; overflow: hidden; }

.garden-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 36px 34px 44px; background: radial-gradient(circle at 72% 18%, rgba(255,245,220,0.3), transparent 16%), var(--paper); transition: opacity 0.35s ease; }
#rewardify-canvas.has-webgl .garden-fallback { opacity: 0; pointer-events: none; }
#rewardify-canvas::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(110deg, transparent 10%, rgba(255,245,220,0.18), transparent 42%); transform: translateX(-120%); animation: canvas-shine 8s ease-in-out infinite; }
.gf-scene { width: 100%; height: 100%; display: block; overflow: visible; }
.gf-svg-sun { transform-origin: 92px 78px; animation: gf-soft-spin 16s linear infinite; }
.gf-svg-cloud { animation: gf-drift 7s ease-in-out infinite; }
.gf-svg-plant { transform-box: fill-box; transform-origin: center bottom; animation: gf-plant-breathe 4.6s ease-in-out infinite; }
.gf-svg-plant.p2 { animation-delay: -0.7s; }
.gf-svg-plant.p3 { animation-delay: -1.4s; }
.gf-svg-coin { transform-box: fill-box; transform-origin: center; animation: gf-coin-bob 4s ease-in-out infinite; }
.gf-svg-coin.c2 { animation-delay: -1.2s; }
.gf-svg-coin.c3 { animation-delay: -2.2s; }
@keyframes gf-soft-spin { to { transform: rotate(360deg); } }
@keyframes gf-drift { 0%,100% { transform: translate(438px,54px); } 50% { transform: translate(426px,62px); } }
@keyframes gf-plant-breathe { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1.5deg) translateY(-4px); } }
@keyframes gf-coin-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes canvas-shine { 0%,35%,100% { transform: translateX(-120%); } 50% { transform: translateX(120%); } }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--ink); border: 2px solid var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px;
}

.feature-list { margin-top: 32px; display: grid; gap: 12px; }
.feature { display: flex; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.feature:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.feature h4 { color: var(--ink); }
.feature p { color: var(--ink); }
.feature .chip { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: var(--bg-0); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  color: #0a1612; font-size: 16px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}
.feature:hover .chip { transform: rotate(-8deg) scale(1.05); }
.feature h4 { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--ink-muted); font-size: 14px; line-height: 1.55; }

.ages { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: #fff5dc; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; font-weight: 600; text-shadow: none; }
.ages strong { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; display:block; margin-bottom: 2px; -webkit-text-stroke: 0.6px var(--ink); paint-order: stroke fill; }
.ages .div { width: 2px; height: 36px; background: #fff5dc; box-shadow: none; }

/* Float tags */
.float-tag { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 4; pointer-events: none;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  animation: bob 6s ease-in-out infinite;
}
.float-tag .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }
.float-tag.t-pink .swatch { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.float-tag.t-cyan .swatch { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.float-tag.t-peach .swatch { background: var(--gold-deep); box-shadow: 0 0 8px var(--gold-deep); }
.float-tag.p1 { top: 8%; left: 5%; animation-delay: -1s; }
.float-tag.p2 { top: 16%; right: 4%; animation-delay: -3s; }
.float-tag.p3 { bottom: 18%; left: 6%; animation-delay: -2s; }
.float-tag.p4 { bottom: 8%; right: 6%; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .float-tag { font-size: 10px; padding: 6px 10px; } }
#rewardify-canvas:not(.has-webgl) .float-tag.p1 { top: 5%; left: 5%; }
#rewardify-canvas:not(.has-webgl) .float-tag.p2 { top: 10%; right: 4%; }
#rewardify-canvas:not(.has-webgl) .float-tag.p3 { bottom: 15%; left: 6%; }
#rewardify-canvas:not(.has-webgl) .float-tag.p4 { bottom: 11%; right: 6%; }

/* ---- How ---- */
.how .head { max-width: 760px; margin-bottom: 56px; }
.plants {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.plant { position: relative; padding: 22px 22px 24px; border-radius: 22px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 14px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; min-height: 320px; color: var(--ink); overflow: hidden; }
.plant::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 34%, rgba(255,245,220,0.42) 45%, transparent 56%); transform: translateX(-120%); opacity: 0; pointer-events: none; }
.plant::after { content: ""; position: absolute; inset: auto -20% -20% auto; width: 80px; height: 80px; border: 3px solid var(--ink); border-radius: 50%; background: rgba(255,245,220,0.34); transform: scale(0.4); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.plant:hover,
.plant.is-active { transform: translate(-4px, -4px) rotate(-0.6deg); box-shadow: 10px 10px 0 var(--ink); background: #ffd04a; }
.plant:hover::before,
.plant.is-active::before { opacity: 1; animation: plant-shine 0.9s ease forwards; }
.plant:hover::after,
.plant.is-active::after { transform: scale(1); opacity: 1; }
.plant > * { position: relative; z-index: 1; }
.plant .ptag { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--bg-0); display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.plant:hover .ptag,
.plant.is-active .ptag { transform: rotate(-2deg) translateY(-1px); box-shadow: 3px 3px 0 var(--ink); }
.plant .emblem { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; border: 3px solid var(--ink); animation: emblem-bob 4.8s ease-in-out infinite; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.plant:hover .emblem,
.plant.is-active .emblem { transform: translateY(-4px) scale(1.06) rotate(-4deg); box-shadow: 4px 4px 0 var(--ink); }
.plant:nth-child(2) .emblem { animation-delay: -0.7s; }
.plant:nth-child(3) .emblem { animation-delay: -1.4s; }
.plant:nth-child(4) .emblem { animation-delay: -2.1s; }
.plant:nth-child(5) .emblem { animation-delay: -2.8s; }
@keyframes emblem-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.plant h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.plant p { color: var(--ink); font-size: 14px; line-height: 1.55; flex: 1; font-weight: 500; }
.plant .rate { position: relative; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--ink); padding-top: 12px; border-top: 2px solid var(--ink); letter-spacing: 0.04em; overflow: hidden; }
.plant .rate::before { content: ""; position: absolute; left: 0; top: -2px; width: var(--rate-width, 44%); height: 2px; background: var(--bg-0); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.plant:hover .rate::before,
.plant.is-active .rate::before { transform: scaleX(1); }
.plant:nth-child(1) { --rate-width: 28%; }
.plant:nth-child(2) { --rate-width: 40%; }
.plant:nth-child(3) { --rate-width: 62%; }
.plant:nth-child(4) { --rate-width: 52%; }
.plant:nth-child(5) { --rate-width: 82%; }
.plant:nth-child(5):hover,
.plant:nth-child(5).is-active { animation: risk-rumble 0.32s ease; }
@keyframes plant-shine { to { transform: translateX(120%); } }
@keyframes risk-rumble { 0%,100% { transform: translate(-4px, -4px) rotate(-0.6deg); } 35% { transform: translate(-6px, -3px) rotate(-1.2deg); } 70% { transform: translate(-3px, -5px) rotate(0.4deg); } }
@media (max-width: 1100px) { .plants { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .plants { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .plants { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact { padding: clamp(80px, 12vw, 140px) 0 clamp(120px, 16vw, 200px); text-align: center; }
.contact .panel { position: relative; max-width: 880px; margin: 40px auto 0; padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 40px); border-radius: 32px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; color: var(--ink); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.contact .panel::before { content: ""; position: absolute; top: -80px; right: -80px; display: block; width: 190px; height: 190px; border: 4px solid var(--ink); border-radius: 50%; background: #fff5dc; opacity: 0.28; animation: panel-orbit 9s ease-in-out infinite; }
.contact .panel::after { content: "50"; position: absolute; right: 28px; top: 24px; width: 54px; height: 54px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--bg-0); color: #fff5dc; font-family: var(--font-display); font-weight: 900; box-shadow: 4px 4px 0 var(--ink); transform: rotate(8deg); }
.contact .panel.form-sent { transform: translate(-4px,-4px); box-shadow: 14px 14px 0 var(--ink); }
@keyframes panel-orbit { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-18px,16px) rotate(16deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.contact .panel > * { position: relative; }
.contact .form {
  margin: 32px auto 0;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 540px;
}
.contact .form-status {
  flex-basis: 100%;
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.contact .form.is-error .form-status { color: var(--bg-0); }
.contact input { flex: 1; min-width: 220px; padding: 16px 20px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-family: var(--font-body); font-size: 15px; outline: none; transition: box-shadow 0.2s, transform 0.2s; }
.contact input::placeholder { color: var(--ink-dim); }
.contact input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(10,10,10,0.12); transform: translateY(-2px); }
.contact .meta {
  margin-top: 30px;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-muted);
}

/* ---- Footer ---- */
.footer { border-top: 3px solid var(--ink); padding: 36px 0 50px; position: relative; z-index: 2; background: var(--ink); color: #fff; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,0.7); font-size: 13px; font-family: var(--font-display); letter-spacing: 0.04em; }
.footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer .brand .logo {
  width: 20px; height: 20px; border-radius: 6px;
  background: conic-gradient(from 200deg, var(--gold), var(--leaf), var(--gold-deep), var(--leaf-deep), var(--gold));
}

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .hero .content { padding: 110px 22px 90px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.03; margin: 14px 0 16px; }
  .head-lede { font-size: 14px; line-height: 1.45; }
  .eyebrow, .badge { font-size: 10px; letter-spacing: 0.16em; padding: 7px 12px; }

  .problem .head,
  .how .head { margin-bottom: 34px; }

  .solution .layout { gap: 28px; }
  #rewardify-canvas {
    height: min(78vw, 330px);
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .garden-fallback { padding: 20px 16px 28px; }
  .feature-list { margin-top: 22px; gap: 10px; }
  .feature { padding: 12px 13px; gap: 10px; border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .feature .chip { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .feature h4 { font-size: 14px; }
  .feature p { font-size: 12px; line-height: 1.4; }
  .ages { gap: 12px; font-size: 11px; }
  .ages strong { font-size: 17px; }
  .ages .div { height: 28px; }

  .float-tag { max-width: 150px; font-size: 9px; padding: 5px 8px; line-height: 1.15; }
  .float-tag.p2 { right: 2%; }
  .float-tag.p4 { right: 2%; bottom: 6%; }

  .plants { grid-template-columns: 1fr; gap: 12px; }
  .plant { min-height: 0; padding: 16px; gap: 10px; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .plant .ptag { font-size: 10px; letter-spacing: 0.12em; }
  .plant .emblem { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
  .plant h3 { font-size: 18px; }
  .plant p { font-size: 12.5px; line-height: 1.42; }
  .plant .rate { font-size: 11px; padding-top: 9px; }

  .contact { padding: 64px 0 88px; }
  .contact .panel { margin-top: 24px; padding: 72px 16px 28px; border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .contact .panel::before { width: 128px; height: 128px; top: -54px; right: -44px; }
  .contact .panel::after {
    top: 18px;
    right: 50%;
    width: 44px;
    height: 44px;
    font-size: 14px;
    transform: translateX(50%) rotate(8deg);
    box-shadow: 3px 3px 0 var(--ink);
  }
  .contact h2 {
    font-size: clamp(27px, 7.2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }
  .contact .form { margin-top: 24px; gap: 8px; }
  .contact input,
  .contact .btn { width: 100%; min-width: 0; justify-content: center; padding: 13px 16px; font-size: 14px; }
  .contact .meta { gap: 9px; margin-top: 22px; font-size: 12px; }

  .footer { padding: 26px 0 34px; }
  .footer .wrap { justify-content: center; text-align: center; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
