/* ============================================================
   Frog Jump - fan-site (pt-PT)
   Flat poster language on the Citrus field. Hand-written CSS.
   Palette base: theme "carrot" (chartreuse #d4e04a, ink #000, white cards, olive #535521)
   ============================================================ */

:root {
  /* Colors */
  --citrus: #d4e04a;      /* full-page canvas */
  --citrus-deep: #c3cf3d; /* only for the hero dotted texture / quiet blocks */
  --ink: #101010;         /* off-black ink (not pure #000) */
  --paper: #ffffff;       /* white cards */
  --moss: #535521;        /* quiet secondary */
  --moss-soft: #6b6d33;

  /* Frog mascot greens */
  --frog: #5c9b28;
  --frog-deep: #47801d;
  --frog-belly: #eef3cf;

  /* Fonts */
  --font-display: 'Baloo 2', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);
  --step-5:  clamp(3.2rem, 2.1rem + 5.2vw, 6.4rem);

  /* Fluid spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.85rem);
  --space-s:  clamp(0.85rem, 0.7rem + 0.7vw, 1.25rem);
  --space-m:  clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem);
  --space-l:  clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  --space-xl: clamp(3.6rem, 2.6rem + 4.4vw, 7rem);

  --gutter: clamp(16px, 5vw, 88px);
  --measure: 66ch;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --border: 3px solid var(--ink);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--citrus);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: var(--citrus);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  z-index: 200;
  transition: top 160ms ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { padding-inline: var(--gutter); }
.section { padding-block: var(--space-xl); }
.stack > * + * { margin-top: var(--space-s); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 var(--space-s);
}

.lead {
  font-size: var(--step-1);
  max-width: var(--measure);
  color: var(--ink);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-s); }

/* ---------- Buttons (droplet pills, black contour) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: var(--border);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 140ms cubic-bezier(0.23,1,0.32,1),
              box-shadow 140ms cubic-bezier(0.23,1,0.32,1),
              background-color 140ms ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn--lg { font-size: var(--step-1); padding: 1em 1.9em; }

.btn__frog { width: 1.4em; height: 1.4em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--citrus);
  border-bottom: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 64px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none;
  border: var(--border);
  background: var(--paper);
  width: 46px; height: 46px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 3px;
  background: var(--ink);
  position: relative;
  transition: transform 180ms ease, opacity 120ms ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav[data-open="true"] .nav__toggle span { background: transparent; }
.nav[data-open="true"] .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--citrus);
    border-bottom: var(--border);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    padding: var(--space-m) var(--gutter) var(--space-l);
  }
  .nav[data-open="true"] .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__links a { font-size: var(--step-1); }
}
@media (min-width: 861px) {
  .nav__menu { display: flex; align-items: center; gap: clamp(14px,2.4vw,32px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.4rem, 1.6rem + 4vw, 5.5rem) var(--space-xl);
}
.hero__grid {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); }
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.04;
  max-width: 15ch;
  margin-bottom: var(--space-s);
}
.hero h1 .accent { color: var(--frog-deep); }
.hero__lead { font-size: var(--step-1); max-width: 42ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.hero__trust {
  margin-top: var(--space-m);
  font-size: var(--step--1);
  color: var(--moss);
  max-width: 46ch;
}

/* Mascot panel with signature dotted texture */
.hero__art {
  position: relative;
  border: var(--border);
  background:
    radial-gradient(var(--ink) 1.6px, transparent 1.7px) 0 0 / 22px 22px,
    var(--citrus-deep);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.4rem, 1rem + 3vw, 3rem);
  display: grid;
  place-items: center;
}
.hero__art svg { width: min(86%, 380px); height: auto; }
.hero__badge {
  position: absolute;
  top: -18px; left: -12px;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  transform: rotate(-5deg);
  box-shadow: var(--shadow-hard-sm);
}

/* ---------- Game panel (click to play) ---------- */
.play {
  background: var(--citrus);
}
.play__panel {
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}
.play__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  border-bottom: var(--border);
}
.play__head h2 { font-size: var(--step-2); }
.play__meta { font-size: var(--step--1); color: var(--moss); }

.play__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16,16,16,0.04) 0%, rgba(16,16,16,0.10) 55%, rgba(16,16,16,0.30) 100%),
    url('../img/frog-jump-bg.webp') center / cover no-repeat,
    var(--frog-deep);
}
@media (min-width: 720px) { .play__stage { aspect-ratio: 16 / 10; } }

.play__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-s);
  text-align: center;
  padding: var(--space-m);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.play__cover svg { width: clamp(96px, 20vw, 150px); height: auto; }
.play__cover .play__hint { font-size: var(--step--1); color: #eef3cf; max-width: 34ch; text-shadow: 0 1px 3px rgba(16,16,16,0.55); }
.play__cover:hover .btn { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

.play__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play__stage[data-live="true"] .play__cover { display: none; }

.play__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  border-top: var(--border);
}
.play__foot .btn--ghost:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }
.play__note { font-size: var(--step--1); color: var(--moss); max-width: 52ch; }

/* ---------- Editorial "O que é" ---------- */
.about__inner {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.about h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
.callout {
  border: var(--border);
  background: var(--ink);
  color: var(--citrus);
  box-shadow: var(--shadow-hard);
  padding: var(--space-m);
}
.callout p { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.callout .callout__frog { width: 60px; height: auto; margin-bottom: var(--space-s); }

/* ---------- Como se joga (steps) ---------- */
.steps { background: var(--citrus); }
.steps h2 { font-size: var(--step-3); margin-bottom: var(--space-l); max-width: 20ch; }
.steps__grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__grid .step:nth-child(2) { transform: translateY(clamp(16px, 3vw, 40px)); }
}
.step {
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  padding: var(--space-m);
}
.step__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-4);
  color: var(--frog-deep);
  line-height: 0.9;
}
.step h3 { font-size: var(--step-1); margin: var(--space-xs) 0; }
.step p { font-size: var(--step-0); }

/* ---------- FAQ ---------- */
.faq h2 { font-size: var(--step-3); margin-bottom: var(--space-l); }
.faq__list { max-width: 78ch; }
.faq__item {
  border-top: var(--border);
}
.faq__item:last-child { border-bottom: var(--border); }
.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--ink);
  padding: var(--space-m) 2.4rem var(--space-m) 0;
  position: relative;
  display: block;
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6em;
  line-height: 1;
  transition: transform 180ms ease;
}
.faq__q[aria-expanded="true"]::after { content: "\2212"; }
.faq__a {
  overflow: hidden;
  max-width: var(--measure);
  padding: 0 0 var(--space-m);
}
.faq__a p + p { margin-top: var(--space-s); }
/* JS-collapsed default */
[data-js] .faq__a[hidden] { display: none; }

/* ---------- Contact form ---------- */
.form-wrap {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 880px) {
  .form-wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.contact-card {
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  padding: var(--space-l);
}
.field { display: grid; gap: 6px; margin-bottom: var(--space-m); }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); }
.field input, .field textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--citrus);
  border: var(--border);
  border-radius: 0;
  padding: 0.7em 0.85em;
}
.field input::placeholder, .field textarea::placeholder { color: var(--moss); opacity: 1; }
.field input:focus, .field textarea:focus { background: #dbe65e; outline: 3px solid var(--ink); outline-offset: 2px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--step--1);
  margin-bottom: var(--space-m);
}
.consent input { width: 22px; height: 22px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.contact-aside .lead { margin-bottom: var(--space-m); }
.contact-aside a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--citrus);
  padding-block: var(--space-l);
  border-top: var(--border);
}
.site-footer a { color: var(--citrus); }
.footer__top {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 820px) {
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer__brand { display: flex; gap: var(--space-s); align-items: flex-start; }
.footer__brand svg { width: 54px; height: auto; flex: none; }
.footer__brand p { font-size: var(--step--1); color: #d7e26a; max-width: 34ch; margin-top: var(--space-xs); }
.footer h2, .footer__col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aeb84a;
  margin-bottom: var(--space-s);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__disclaimer {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 2px solid #3a3a1c;
  font-size: var(--step--1);
  color: #b9c257;
  max-width: 92ch;
  line-height: 1.5;
}
.footer__legal {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  font-size: var(--step--1);
  color: #b9c257;
}
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ---------- Legal / content pages ---------- */
.page-hero {
  padding-block: clamp(2rem, 1.4rem + 3vw, 4rem) var(--space-l);
  border-bottom: var(--border);
}
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero p { margin-top: var(--space-s); font-size: var(--step-1); max-width: 52ch; color: var(--moss); }
.legal { padding-block: var(--space-l) var(--space-xl); }
.legal .prose { max-width: 74ch; }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-l); margin-bottom: var(--space-s); }
.legal h3 { font-size: var(--step-1); margin-top: var(--space-m); margin-bottom: var(--space-xs); font-family: var(--font-display); }
.legal p, .legal li { font-size: var(--step-0); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal .meta { font-size: var(--step--1); color: var(--moss); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-xl);
}
.notfound svg { width: min(60%, 230px); margin: 0 auto var(--space-m); }
.notfound h1 { font-size: var(--step-5); }
.notfound p { margin: var(--space-s) auto var(--space-m); max-width: 42ch; font-size: var(--step-1); }

/* ---------- Thank you ---------- */
.thanks {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-xl);
}
.thanks svg { width: min(55%, 200px); margin: 0 auto var(--space-m); }
.thanks h1 { font-size: var(--step-4); }
.thanks p { margin: var(--space-s) auto var(--space-m); max-width: 44ch; font-size: var(--step-1); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms cubic-bezier(0.23,1,0.32,1),
              transform 560ms cubic-bezier(0.23,1,0.32,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq__q::after { transition: none; }
}

/* Small utilities */
.center { text-align: center; }
.mt-l { margin-top: var(--space-l); }
.mt-m { margin-top: var(--space-m); }

/* ============================================================
   ENRICHMENT LAYER  (real imagery, richer rhythm, micro-detail)
   Stays inside the carrot family: citrus field, ink contour,
   white cards, hard offset shadows. No gradients as decoration.
   ============================================================ */

/* ---- Custom easing tokens (Emil: built-in easings are too weak) ---- */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- Section intro (eyebrow + heading + kicker, used sparingly) ---- */
.s-head { max-width: 40ch; margin-bottom: var(--space-l); }
.s-head h2 { font-size: var(--step-3); }
.s-head .kicker { margin-top: var(--space-s); font-size: var(--step-1); color: var(--moss); max-width: 52ch; }

/* ---- Framed media (poster figure with caption) ---- */
.figure {
  position: relative;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.figure > img {
  width: 100%; height: auto; display: block;
  transition: transform 520ms var(--ease-out);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .figure:hover > img { transform: scale(1.035); }
}
.figure figcaption {
  border-top: var(--border);
  background: var(--citrus);
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--ink);
  padding: 0.7em 1em;
  line-height: 1.4;
}
.figure__tag {
  position: absolute; z-index: 2;
  top: 12px; right: 12px;
  background: var(--ink); color: var(--citrus);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step--1);
  transform: rotate(3deg);
  box-shadow: var(--shadow-hard-sm);
}

/* ---- Trust chips (honest, non-money signals) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: var(--space-m); }
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.42em 0.95em;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step--1);
  box-shadow: 3px 3px 0 var(--ink);
}
.chip svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---- Hero art now frames the real promo poster ---- */
.hero__art { overflow: visible; }
.hero__art .figure { width: 100%; }
.hero__art .figure > img { aspect-ratio: 900 / 575; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__badge { animation: badge-bob 4.6s var(--ease-in-out) infinite; }
  @keyframes badge-bob {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50%      { transform: rotate(-5deg) translateY(-7px); }
  }
}

/* ---- Split section (media + text), rhythm-friendly ---- */
.split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); }
  .split--rev .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media .figure { rotate: -1.2deg; }
.split--rev .split__media .figure { rotate: 1.2deg; }
.split h2 { font-size: var(--step-3); margin-bottom: var(--space-s); }

/* Fact strip inside split */
.facts { display: grid; gap: var(--space-s); margin-top: var(--space-m); }
@media (min-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact {
  border-left: 5px solid var(--frog);
  padding: 0.2em 0 0.2em 0.9em;
}
.fact strong { font-family: var(--font-display); display: block; font-size: var(--step-1); }
.fact span { font-size: var(--step--1); color: var(--moss); }

/* ---- Features grid (what makes it pleasant) ---- */
.features { background: var(--citrus); }
.features__grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  padding: var(--space-m);
  display: grid; gap: 0.55rem; align-content: start;
  transition: transform 170ms var(--ease-out), box-shadow 170ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
}
.feature__ic {
  width: 54px; height: 54px;
  border: var(--border); border-radius: 16px;
  display: grid; place-items: center;
  background: var(--citrus);
  box-shadow: var(--shadow-hard-sm);
}
.feature__ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: var(--step-1); }
.feature p { font-size: var(--step-0); color: var(--ink); }

/* Image feature tile (bento diversity: at least one real photo cell) */
.feature--media {
  grid-column: 1 / -1;
  padding: 0; position: relative; overflow: hidden;
  min-height: clamp(220px, 30vw, 300px);
  color: var(--paper);
  display: flex; align-items: flex-end;
}
@media (min-width: 980px) { .feature--media { grid-column: span 1; } }
.feature--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature--media .feature__cap {
  position: relative; z-index: 1;
  width: 100%;
  padding: var(--space-m);
  background: linear-gradient(0deg, rgba(16,16,16,0.82) 8%, rgba(16,16,16,0.35) 60%, transparent);
}
.feature--media h3 { color: var(--paper); font-size: var(--step-1); }
.feature--media p { color: #eef3cf; font-size: var(--step--1); }

/* ---- Gallery (real screenshots, bento) ---- */
.gallery__grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .gallery__grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .gallery__item--tall { grid-row: span 2; }
}
.gallery .figure { rotate: -0.8deg; }
.gallery .figure:nth-child(2) { rotate: 1deg; }
.gallery .figure:nth-child(3) { rotate: -1.4deg; }
.gallery__note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--moss); max-width: 60ch; }

/* ---- Tips (timing advice, lily-pad markers) ---- */
.tips__grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 720px) { .tips__grid { grid-template-columns: 1fr 1fr; } }
.tip {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-s);
  border-top: var(--border);
  padding: var(--space-m) 0 0;
  align-items: start;
}
.tip__pad { width: 46px; height: 46px; flex: none; }
.tip h3 { font-size: var(--step-1); margin-bottom: 4px; }
.tip p { font-size: var(--step-0); }

/* ---- Curiosities (2-col editorial cards) ---- */
.curios { background: var(--citrus); }
.curios__grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 760px) { .curios__grid { grid-template-columns: 1fr 1fr; } }
.curio {
  border: var(--border);
  background: var(--citrus-deep);
  box-shadow: var(--shadow-hard-sm);
  padding: var(--space-m);
  background-image: radial-gradient(var(--ink) 1.4px, transparent 1.5px);
  background-size: 20px 20px;
  background-blend-mode: normal;
}
.curio > * { position: relative; }
.curio .curio__inner {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: var(--space-m);
}
.curio h3 { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.curio p { font-size: var(--step-0); }

/* ---- Play cover: subtle loader-style hint image ---- */
.play__cover .play__peek {
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  max-width: min(78%, 300px);
  margin-inline: auto;
}

/* ---- Reveal stagger helpers (Emil: 30-80ms between items) ---- */
.reveal--d1 { transition-delay: 70ms; }
.reveal--d2 { transition-delay: 140ms; }
.reveal--d3 { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal--d1, .reveal--d2, .reveal--d3 { transition-delay: 0ms; }
  .hero__badge { animation: none; }
}

/* ============================================================
   REAL-ART LAYER  (assets pulled from the game itself:
   jungle background, logo, lily-pads, lotus, grass mound)
   Poster language kept: ink contour, hard offset shadow.
   ============================================================ */

/* ---- Play preview = a real game scene, not a flat panel ---- */
.play__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.play__scene .float {
  position: absolute;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(16,16,16,0.28));
  opacity: 0.96;
}
.play__scene .float--pad-a  { left: 4%;  bottom: 15%; height: clamp(46px, 8vw, 92px); }
.play__scene .float--pad-b  { right: 5%; bottom: 26%; height: clamp(42px, 7vw, 82px); }
.play__scene .float--lotus  { right: 9%; top: 12%;   height: clamp(48px, 8vw, 96px); }
.play__scene .float--daisy  { left: 8%;  top: 16%;   height: clamp(44px, 7vw, 86px); }

@media (prefers-reduced-motion: no-preference) {
  .play__scene .float { animation: pad-float 6s var(--ease-in-out) infinite; }
  .play__scene .float--pad-b { animation-duration: 7.4s; animation-delay: -1.2s; }
  .play__scene .float--lotus { animation-duration: 8s;   animation-delay: -2.6s; }
  .play__scene .float--daisy { animation-duration: 6.8s; animation-delay: -0.6s; }
  @keyframes pad-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-10px) rotate(1.5deg); }
  }
}

/* Cover sits above the scene; real logo replaces the doodle */
.play__cover { position: absolute; inset: 0; z-index: 2; }
.play__logo {
  width: clamp(190px, 36vw, 320px);
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(16,16,16,0.22)) drop-shadow(0 10px 18px rgba(16,16,16,0.3));
}
.play__go svg { width: 1.1em; height: 1.1em; margin-inline-start: -0.15em; }
@media (prefers-reduced-motion: no-preference) {
  .play__logo { animation: logo-bob 4.4s var(--ease-in-out) infinite; }
  @keyframes logo-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-8px) scale(1.015); }
  }
}

/* Grass growing along the base of the game world */
.play__grass {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1;
  height: clamp(38px, 7vw, 74px);
  background: url('../img/frog-jump-grass.webp') repeat-x bottom center;
  background-size: auto 100%;
  pointer-events: none;
}

/* ---- Real grass band (page dividers) ---- */
.grass-band {
  height: clamp(52px, 8vw, 92px);
  background: url('../img/frog-jump-grass.webp') repeat-x bottom center;
  background-size: auto 100%;
  pointer-events: none;
}
.grass-band--divider { margin-block: var(--space-l) calc(-1 * var(--space-s)); opacity: 0.96; }
.grass-band--foot {
  margin: 0; height: clamp(46px, 7vw, 82px);
  background-color: var(--citrus);
  position: relative; z-index: 1;
  margin-bottom: -1px;
}
