/* ─── Dungeons & Ducks Landing — Design Tokens ─── */
:root {
  /* Brand palette */
  --duck-yellow: #FFCE3D;
  --duck-yellow-bright: #FFE680;
  --duck-yellow-dark: #F4A726;
  --duck-red: #C8332A;
  --duck-red-dark: #8A1E16;
  --duck-red-soft: #E55840;
  --paper: #FFF8E8;
  --cream: #FFF3D6;
  --cream-soft: #FFEFC2;
  --ink: #1A1410;
  --ink-soft: #3A2A1C;
  --brown-wood: #6B4A2C;
  --brown-soft: #B78854;
  --brown-tan: #D9A86A;
  --leaf-green: #5A8D3A;

  /* Accent (tweakable) */
  --accent: var(--duck-yellow);
  --accent-ink: var(--ink);

  /* Type (tweakable) */
  --font-display: "Luckiest Guy", "Bangers", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Density */
  --section-pad: 120px;
  --container: 1200px;
  --container-wide: 1400px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Sunburst Background (signature D&D look) ─── */
.sunburst {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, var(--duck-yellow-bright) 0%, var(--duck-yellow) 55%, var(--duck-yellow-dark) 100%);
  pointer-events: none;
  overflow: hidden;
}
/* Rotating ray layer — sized in vmax so the rays always extend well past
   the hero's diagonal regardless of viewport aspect ratio. On a very tall
   mobile viewport, the prior percentage-based sizing was anchored to the
   parent's width and didn't reach the vertical edges as the element spun. */
.sunburst::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255, 230, 128, 0.55) 0deg 8deg,
    transparent 8deg 16deg);
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);
  animation: sunburst-spin 80s linear infinite;
  will-change: transform;
}
@keyframes sunburst-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sunburst::before { animation: none; }
}
.sunburst::after {
  content: "";
  position: absolute; inset: 0;
  /* soft vignette */
  background: radial-gradient(ellipse at center, transparent 30%, rgba(244, 167, 38, 0.4) 100%);
}
.sunburst-flat {
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.18) 0deg 6deg,
      transparent 6deg 14deg),
    var(--duck-yellow);
  pointer-events: none;
}

/* Display headings */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

/* Comic-style outlined title (D for Dungeons style) */
.outline-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--duck-red);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 var(--ink),
    -1px -1px 0 #fff;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--duck-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow.no-line::before, .eyebrow.no-line::after { display: none; }

/* Sections */
section { padding: var(--section-pad) 0; position: relative; }
section.pad-tight { padding: calc(var(--section-pad) * 0.6) 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--duck-red);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease, background 200ms ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--ink);
  background: var(--duck-red-soft);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}
.btn-large {
  padding: 26px 48px;
  font-size: 26px;
}
.btn-yellow {
  background: var(--duck-yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: var(--duck-yellow-bright); }

.btn .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ─── HERO ─── */
.hero {
  background: var(--duck-yellow);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.hero > .hero-marquee { margin-top: auto; }

/* Floating tokens (hearts, shields, swords) in hero */
.hero-tokens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-tokens img {
  position: absolute;
  width: 56px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.18));
  animation: float-token 6s ease-in-out infinite;
}
.hero-tokens img:nth-child(1) { top: 12%;  left:  6%; animation-delay: 0s;   transform: rotate(-15deg); }
.hero-tokens img:nth-child(2) { top: 22%;  right: 8%; animation-delay: 1.5s; transform: rotate(12deg); width: 64px; }
.hero-tokens img:nth-child(3) { top: 65%;  left:  4%; animation-delay: 0.7s; transform: rotate(8deg); width: 48px; }
.hero-tokens img:nth-child(4) { top: 78%;  right: 12%; animation-delay: 2.2s; transform: rotate(-20deg); width: 52px; }
.hero-tokens img:nth-child(5) { top: 8%;   right: 28%; animation-delay: 3.1s; transform: rotate(20deg); width: 42px; }
.hero-tokens img:nth-child(6) { top: 50%;  left:  2%; animation-delay: 2.8s; transform: rotate(-5deg); width: 44px; }
.hero-tokens img:nth-child(7) { bottom: 16%; left: 35%; animation-delay: 1.2s; transform: rotate(25deg); width: 38px; }

@keyframes float-token {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

/* ─── NAV ─── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  color: var(--ink);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cronicas-logo {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.18));
  transition: transform 200ms ease;
}
.nav-cronicas-logo:hover { transform: rotate(-2deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links a {
  opacity: 0.75;
  transition: opacity 200ms, color 200ms;
}
.nav-links a:hover { opacity: 1; color: var(--duck-red); }

/* ─── HERO GRID ─── */
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 40px 40px 80px;
  width: 100%;
  flex: 1;
}

.hero-text {
  position: relative;
}

.hero-logo-img {
  margin: 0 0 28px;
  max-width: 620px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
  animation: logo-bob 4s ease-in-out infinite;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}

.hero-sub {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
  font-weight: 600;
}
.hero-sub strong {
  color: var(--duck-red);
  font-weight: 900;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-microcopy {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 32px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
}
.hero-microcopy li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-microcopy li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--duck-red);
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}

/* ─── HERO RIGHT — box mockup ─── */
.hero-character {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-character-stack {
  position: relative;
  width: 100%;
}
.hero-character-img {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25)) drop-shadow(0 6px 14px rgba(138, 30, 22, 0.2));
  transform: rotate(-3deg);
  transition: transform 400ms ease;
  animation: box-tilt 6s ease-in-out infinite;
}
.hero-character:hover .hero-character-img {
  animation-play-state: paused;
  transform: rotate(0) scale(1.04);
}
@keyframes box-tilt {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-10px); }
}

/* Stickers */
.hero-sticker {
  position: absolute;
  font-family: var(--font-display);
  background: var(--duck-red);
  color: var(--paper);
  border: 3px solid var(--ink);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
  z-index: 4;
  line-height: 1;
}
.hero-sticker-1 {
  top: 6%;
  left: -8px;
  transform: rotate(-10deg);
}
.hero-sticker-2 {
  bottom: 8%;
  right: 0;
  transform: rotate(8deg);
  background: var(--paper);
  color: var(--ink);
}

/* ─── HERO BOTTOM MARQUEE ─── */
.hero-marquee {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--duck-yellow);
  padding: 18px 0;
  border-top: 4px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.hero-marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.12em;
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.hero-marquee-track .dot { color: var(--duck-red-soft); font-size: 22px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  color: var(--ink);
}
.section-header p {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Wave dividers between sections ─── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── SYNOPSIS (story sections) ─── */
.story-section {
  color: var(--ink);
  position: relative;
  overflow: hidden;
  /* More compact than default section pad */
  padding: calc(var(--section-pad) * 0.55) 0;
}

/* Section 1 — Patos: solid red, no rays */
.story-patos {
  background: var(--duck-red);
  color: var(--paper);
  /* No bottom border — a WaveDivider transitions into the next section */
}
.story-patos .eyebrow      { color: var(--duck-yellow); }
.story-patos .synopsis-headline { color: var(--paper); }
.story-patos .synopsis-body { color: rgba(255, 248, 232, 0.92); }
.story-patos .synopsis-body strong { color: var(--duck-yellow); }

/* Section 2 — Itens: solid yellow, no rays */
.story-itens {
  background: var(--duck-yellow);
  /* No bottom border — a WaveDivider transitions into the next section */
}

/* Section 3 — Patalha: sky blue with scrolling cloud band at bottom */
.story-patalha {
  background: #7CC0E8;
  color: var(--ink);
  border-bottom: 4px solid var(--ink);
}
.story-clouds {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  display: flex;
  z-index: 0;
  pointer-events: none;
  animation: clouds-scroll 70s linear infinite;
  will-change: transform;
}
.story-clouds img {
  width: 50%;
  height: auto;
  flex-shrink: 0;
  display: block;
}
@keyframes clouds-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.story-patalha > .container-wide { position: relative; z-index: 1; }

.synopsis-wrap {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Reverse order: image on left, text on right */
.synopsis-wrap.reverse {
  grid-template-columns: 1fr 1.05fr;
}
.synopsis-wrap.reverse .synopsis-image { order: 0; }
.synopsis-wrap.reverse .synopsis-text  { order: 1; }
.synopsis-text { text-align: left; }
.synopsis-text .eyebrow { justify-content: flex-start; }
.synopsis-headline {
  font-size: clamp(34px, 3.8vw, 52px);
  margin: 18px 0 28px;
  text-wrap: balance;
  line-height: 1.02;
  color: var(--ink);
}
.synopsis-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.synopsis-body strong { color: var(--duck-red); font-weight: 800; }

/* ─── Item types list (Section 2) ─── */
.item-types {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.item-types li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.item-types li:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.item-type-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
}
.item-type-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}
.item-type-icon[data-type="atk"]  { background: var(--duck-red-soft); }
.item-type-icon[data-type="def"]  { background: var(--duck-yellow-bright); }
.item-type-icon[data-type="life"] { background: #B7DC9F; }
.item-type-icon[data-type="fx"]   { background: #A5C4FF; color: var(--ink); }
.item-types li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item-types li strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.item-types li span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ─── Patalha stats grid (Section 3) ─── */
.patalha-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.patalha-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
.patalha-stat img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}
.patalha-stat-dot {
  width: 36px;
  height: 36px;
  background: var(--duck-red);
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}
.patalha-stat div {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-soft);
}
.patalha-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ─── Patalha board — spinning like a pizza on a tilted platter ─── */
.board-stage {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  perspective: 1400px;
  perspective-origin: 50% 35%;
  position: relative;
  padding: 60px 0;
}
.board-inner {
  width: 100%;
  position: relative;
  animation: board-spin 18s linear infinite;
  will-change: transform;
  transform-origin: 50% 50%;
}
.board-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 4px solid var(--ink);
  filter:
    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.32))
    drop-shadow(0 8px 16px rgba(138, 30, 22, 0.18));
}
/* rotateZ spins the board around the axis perpendicular to its face — pizza-style.
   The fixed rotateX(38deg) keeps the board tilted away from the viewer the whole time. */
@keyframes board-spin {
  from { transform: rotateX(58deg) rotateZ(0deg); }
  to   { transform: rotateX(58deg) rotateZ(360deg); }
}

/* Right side — interactive card carousel */
.synopsis-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-carousel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}
.card-carousel-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: center;
}
.card-carousel {
  width: 320px;
  height: 460px;
  position: relative;
  cursor: pointer;
  user-select: none;
  outline: none;
  flex-shrink: 0;
}
.card-carousel:focus-visible {
  outline: 3px solid var(--duck-red);
  outline-offset: 6px;
  border-radius: 20px;
}
.card-carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Hover lift via CSS independent transforms — never conflicts with the inline rotateY */
.card-carousel:not(.is-spinning):hover {
  translate: 0 -6px;
  transition: translate 280ms cubic-bezier(0.34, 1.32, 0.64, 1);
}
.card-carousel:not(.is-spinning) {
  transition: translate 280ms ease-out;
}
/* During spin: lift the whole card with translate (independent of the inline rotateY transform) */
.card-carousel.is-spinning {
  animation: card-spin-lift 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes card-spin-lift {
  0%   { translate: 0 0; }
  50%  { translate: 0 -18px; }
  100% { translate: 0 0; }
}
.card-carousel-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(138, 30, 22, 0.18);
  background: var(--paper);
}
.card-carousel-face.back { transform: rotateY(180deg); }
.card-carousel-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Front face stacks all card images on top of each other — only one visible via opacity.
   This eliminates ANY src-swap flicker because no <img> ever changes its src. */
.card-carousel-face.front {
  display: block;
}
.card-carousel-face.front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0ms;
}

/* ─── Arrow buttons ─── */
.card-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--duck-red);
  border: 3px solid var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease, background 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.card-arrow:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 var(--ink);
  background: var(--duck-red);
  color: var(--paper);
}
.card-arrow:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.card-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 3px 0 var(--ink);
}
.card-arrow svg { display: block; }
@keyframes arrow-nudge-left {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-4px); }
}
@keyframes arrow-nudge-right {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.card-arrow-prev { animation: arrow-nudge-left  2.4s ease-in-out infinite; }
.card-arrow-next { animation: arrow-nudge-right 2.4s ease-in-out infinite; }
.card-arrow-prev:hover, .card-arrow-next:hover { animation: none; }

.card-carousel-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}
.card-carousel-tap {
  background: var(--duck-red);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  animation: tap-bob 1.8s ease-in-out infinite;
}
@keyframes tap-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.card-carousel-count {
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 800;
}

/* ─── SOLUTION (Como funciona) ─── */
.solution-section {
  background: var(--duck-yellow);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}
.solution-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 80% 40%,
      rgba(255, 255, 255, 0.16) 0deg 5deg,
      transparent 5deg 12deg);
  pointer-events: none;
}
.solution-section > * { position: relative; z-index: 1; }

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.solution-image-wrap {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* Game box display */
.game-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  transform: rotate(-4deg);
  transition: transform 400ms ease;
  animation: box-bob 5s ease-in-out infinite;
}
.game-box img {
  width: 100%;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,0.28));
}
@keyframes box-bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-8px); }
}
.game-box:hover {
  animation-play-state: paused;
  transform: rotate(0) scale(1.04);
}

.solution-mix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.mix-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: left;
  transition: all 250ms ease;
  box-shadow: 5px 5px 0 var(--ink);
}
.mix-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--cream);
}
.mix-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mix-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.18));
}
.mix-card .label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mix-card .desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

.solution-audience {
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 24px 28px;
}
.solution-audience h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--duck-yellow);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.solution-audience ul { display: grid; gap: 8px; }
.solution-audience li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}
.solution-audience li::before {
  content: "→";
  color: var(--duck-yellow);
  font-weight: 900;
}

/* ─── PROOF / Conteúdo da Caixa ─── */
.proof-section {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

/* ─── Caixa 3D — scroll rotated ─── */
.caixa3d-wrap {
  /* Box shape: shallow card-game tray.
       Lid (tampa):  2368×1599 → ratio W:D = 1 : 0.675
       Front strip:  2368×273  → ratio W:H = 1 : 0.115
       Side  strip:  1353×234  → ratio D:H ≈ 1 : 0.173 (= 0.115/0.675) ✓ */
  --c3d-w: 560px;                          /* width  — left↔right */
  --c3d-d: calc(var(--c3d-w) * 0.675);     /* depth  — front↔back (long axis from above) */
  --c3d-h: calc(var(--c3d-w) * 0.115);     /* height — box thickness (shallow) */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  padding: 40px 0 12px;
  position: relative;
  z-index: 2;
}
.caixa3d-stage {
  width: var(--c3d-w);
  /* Reserve room for the tilted projection */
  height: calc(var(--c3d-d) * 0.8 + var(--c3d-h) * 2 + 40px);
  perspective: 2200px;
  perspective-origin: 50% 30%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.caixa3d {
  /* Layout footprint = the lid (W × D). All face transforms are relative to this. */
  width: var(--c3d-w);
  height: var(--c3d-d);
  position: relative;
  transform-style: preserve-3d;
  /* Base pose at scroll-start: tilted 3D view of the box.
     JS smoothly animates this toward (0deg, 0deg) — a flat top-down "on the
     table" pose — over the first half of scroll, then locks. */
  transform: rotateX(56deg) rotateY(28deg);
  will-change: transform;
  transition: transform 60ms linear;
}
.caixa3d-face {
  position: absolute;
  display: block;
  backface-visibility: hidden;
  overflow: hidden;
  background: #2a1810;
}
.caixa3d-face > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* TAMPA / LID — the hero face, naturally lying in the XY plane at z=0.
   The box body extends in the -Z direction below it. */
.caixa3d-top {
  top: 0;
  left: 0;
  width: var(--c3d-w);
  height: var(--c3d-d);
  transform: translateZ(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

/* FRENTE — the narrow strip with keyhole at the box's front edge (y = D).
   Naturally a W × H rectangle sitting just below the lid, hinged at its top
   edge and folded DOWN into 3D (-Z direction). */
.caixa3d-front {
  top: var(--c3d-d);
  left: 0;
  width: var(--c3d-w);
  height: var(--c3d-h);
  transform-origin: 50% 0%;
  transform: rotateX(-90deg);
}

/* LATERAL ESQUERDA — H × D strip placed flush with the left edge of the
   lid (in layout) and hinged at its right edge to fold DOWN into 3D (-Z). */
.caixa3d-left {
  top: 0;
  left: calc(var(--c3d-h) * -1);
  width: var(--c3d-h);
  height: var(--c3d-d);
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}
/* The side source artwork is delivered as a wide horizontal strip
   (1353×234). The left face is shaped as a narrow vertical strip (H×D),
   so we rotate an inner wrapper 90° to fit the artwork in correctly. */
.caixa3d-left-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--c3d-d);
  height: var(--c3d-h);
  transform-origin: 0 0;
  transform: rotate(90deg) translateY(-100%);
}
.caixa3d-left-inner > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* Soft contact shadow under the box */
.caixa3d-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .caixa3d-wrap { --c3d-w: 86vw; padding: 20px 0 8px; }
}

.proof-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 206, 61, 0.15), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(200, 51, 42, 0.18), transparent 40%);
  pointer-events: none;
}

.proof-hero {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 70px;
}
.proof-hero .eyebrow { color: var(--duck-yellow); }
.proof-hero h2 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  margin: 16px 0 24px;
  text-wrap: balance;
}
.proof-hero p {
  font-size: 18px;
  color: rgba(255, 248, 232, 0.82);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.proof-hero p strong { color: var(--duck-yellow); font-weight: 900; }

/* Big stat trio */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 70px;
  position: relative; z-index: 1;
}
.stat-big {
  text-align: center;
  padding: 40px 24px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 24px;
  transition: transform 250ms ease;
  position: relative;
  box-shadow: 8px 8px 0 var(--duck-red);
}
.stat-big:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--duck-red); }
.stat-big:nth-child(2) { box-shadow: 8px 8px 0 var(--duck-yellow); }
.stat-big:nth-child(2):hover { box-shadow: 12px 12px 0 var(--duck-yellow); }
.stat-big:nth-child(3) { box-shadow: 8px 8px 0 var(--duck-red); }
.stat-big-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.85;
  color: var(--duck-red);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  letter-spacing: -0.02em;
}
.stat-big-label {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.stat-big-desc {
  font-size: 14px;
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  font-weight: 600;
}

/* Social proof line (5000+, etc.) */
.social-proof-row {
  text-align: center;
  position: relative; z-index: 1;
}
.social-proof-row h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 32px;
  color: var(--paper);
}
.social-proof-row h3 .big {
  color: var(--duck-yellow);
  font-size: 1.5em;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.bubble {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 24px 28px;
  position: relative;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  transform: rotate(-1deg);
  transition: transform 200ms ease;
}
.bubble:nth-child(even) { transform: rotate(1deg); background: var(--duck-yellow); }
.bubble:nth-child(3n) { background: var(--duck-red); color: var(--paper); }
.bubble:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 32px;
  width: 28px;
  height: 28px;
  background: inherit;
  border: 3px solid var(--ink);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.bubble-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.65;
}

/* ─── DEMO (Card Flip) ─── */
.demo-section {
  background: var(--paper);
  color: var(--ink);
}
.demo-frame {
  background: var(--duck-yellow);
  border-radius: 32px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.demo-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255,255,255,0.18) 0deg 6deg,
    transparent 6deg 14deg);
  pointer-events: none;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Card flip showcase */
.flip-card-stage {
  perspective: 1600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flip-card {
  width: 280px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.3));
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--ink);
}
.flip-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card-face.back { transform: rotateY(180deg); }

.demo-text { color: var(--ink); }
.demo-text .eyebrow { color: var(--duck-red); }
.demo-text h2 {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--ink);
  margin: 16px 0 20px;
  line-height: 1.05;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.demo-text p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--ink);
  border-radius: 999px;
}
.demo-switch button {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--paper);
  transition: all 200ms ease;
}
.demo-switch button.active.is-dungeons {
  background: var(--duck-yellow);
  color: var(--ink);
}
.demo-switch button.active.is-ducks {
  background: var(--duck-red);
  color: var(--paper);
}

/* ─── PACKAGES ─── */
.packages-section {
  background: var(--duck-yellow-bright);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.packages-section::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 0%,
    rgba(255,255,255,0.2) 0deg 5deg,
    transparent 5deg 12deg);
  pointer-events: none;
  opacity: 0.7;
}
.packages-section > * { position: relative; z-index: 1; }

.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.packages-grid.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.package {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 300ms ease;
}
.package:hover { transform: translateY(-6px); }
.package.featured {
  background: var(--duck-red);
  color: var(--paper);
  transform: rotate(0.5deg);
}
.package.featured:hover { transform: translateY(-6px) rotate(0.5deg); }
.package.featured h3 { color: var(--paper); }
.package-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--duck-yellow);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 3px solid var(--ink);
  transform: rotate(3deg);
}
.package-image {
  margin: 16px -8px 22px;
  position: relative;
  text-align: center;
  overflow: visible;
}
.package-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
  transition: transform 400ms cubic-bezier(0.34, 1.32, 0.64, 1);
}
.package:hover .package-image img { transform: scale(1.04) rotate(-1deg); }

.package-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--duck-red);
  margin-bottom: 8px;
}
.package.featured .package-eyebrow { color: var(--duck-yellow); }

.package h3 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--ink);
}
.package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.package-price .price-old {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: rgba(26, 20, 16, 0.42);
  position: relative;
  letter-spacing: 0.02em;
  padding: 0 3px;
}
.package-price .price-old::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 55%;
  border-top: 3px solid #C8332A;
  border-radius: 2px;
  transform: rotate(-9deg);
  transform-origin: center;
  pointer-events: none;
}
.package-price .price-old-currency {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-right: 1px;
  opacity: 0.8;
}
.package-price .price-new {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent, #C8332A);
}
.package-price .price-new .currency {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.package-price .price-new .amount {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.package-price .unit {
  font-size: 14px;
  opacity: 0.6;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package ul {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.package li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
.package li::before {
  content: "✓";
  color: var(--duck-red);
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}
.package.featured li::before { color: var(--duck-yellow); }
.package li.bonus::before { content: "★"; color: var(--duck-yellow); }

.package .btn-package {
  width: 100%;
  justify-content: center;
}

/* ─── OBJECTIONS ─── */
.objections-section {
  background: var(--paper);
}
.objections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.objection {
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 32px;
  background: var(--cream);
  transition: transform 200ms;
  box-shadow: 6px 6px 0 var(--ink);
}
.objection:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.objection h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--ink);
}
.objection h4 .quotes {
  color: var(--duck-red);
  font-size: 36px;
  line-height: 0;
  position: relative;
  top: 8px;
  margin-right: 4px;
}
.objection p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ─── GUARANTEE ─── */
.guarantee-section {
  background: var(--duck-yellow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guarantee-section::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255,255,255,0.18) 0deg 5deg,
    transparent 5deg 14deg);
  pointer-events: none;
}
.guarantee-section > * { position: relative; z-index: 1; }

.guarantee-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: 64px 48px;
  position: relative;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1deg);
}
.guarantee-card .seal {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--duck-red);
  color: var(--paper);
  border: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}
.guarantee-card .seal img { width: 32px; margin-bottom: 4px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)); }
.guarantee-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin: 28px 0 24px;
  color: var(--ink);
}
.guarantee-card p {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.guarantee-card p strong { color: var(--duck-red); }

/* ─── FAQ ─── */
.faq-section { background: var(--paper); }
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: grid;
  gap: 16px;
}
.faq-item {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.faq-item.open { box-shadow: 6px 6px 0 var(--ink); }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 28px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink);
}
.faq-q .toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--duck-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform 250ms ease;
}
.faq-item.open .toggle { transform: rotate(45deg); background: var(--duck-red); color: var(--paper); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── FINAL CTA ─── */
.final-cta {
  background: var(--duck-red);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.08) 0deg 6deg,
      transparent 6deg 14deg);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--paper);
  text-wrap: balance;
}
.final-cta h2 .accent { color: var(--duck-yellow); }
.final-cta p {
  font-size: 22px;
  color: rgba(255, 248, 232, 0.92);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.4;
  font-weight: 600;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 16px;
}
.footer-brand img { height: 48px; width: auto; }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.8;
}
.footer-links a:hover { opacity: 1; color: var(--duck-yellow); }
.footer-meta {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── DENSITY MODES ─── */
body.density-compact { --section-pad: 80px; font-size: 17px; }
body.density-spacious { --section-pad: 160px; font-size: 19px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding: 20px 24px 60px; gap: 24px; }
  .hero-character-img { max-width: 460px; margin: 0 auto; }
  .synopsis-wrap, .synopsis-wrap.reverse, .solution-grid, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  /* On stacked layout, always show text first */
  .synopsis-wrap.reverse .synopsis-image { order: 1; }
  .synopsis-wrap.reverse .synopsis-text  { order: 0; }
  .packages-grid, .objections-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .proof-stats { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  body { font-size: 16px; }
  .container, .container-wide { padding: 0 20px; }
  .hero-grid > *, .synopsis-wrap > *, .solution-grid > *, .demo-grid > * { min-width: 0; }

  /* Hero — flatten and reorder so image sits right under logo */
  .hero-grid {
    padding: 16px 20px 32px;
    gap: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-text, .hero-character { display: contents; }

  /* Explicit order: logo → image → headline → CTA → microcopy */
  .hero-logo-img        { order: 1; margin: 0 auto 8px !important; max-width: 88%; }
  .hero-character-stack { order: 2; margin: 0 auto 4px; }
  .hero-sub             { order: 3; }
  .hero-cta-row         { order: 4; }
  .hero-microcopy       { order: 5; }

  .hero-text { text-align: center; }
  .hero-sub { font-size: 16px !important; line-height: 1.45 !important; margin: 0 auto 16px !important; max-width: 100%; }
  .hero-cta-row { justify-content: center; }

  /* Microcopy — back to the original look (colored dot bullet) */
  .hero-microcopy {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    font-size: 16px;
    margin-top: 8px;
    position: relative;
    z-index: 4;
  }

  /* Hero floating tokens — show only 3 (shield, heart, sword) clustered
     around the microcopy block. Override the desktop float-token animation
     with one that keeps the inline rotate. */
  .hero-tokens {
    display: block !important;
    pointer-events: none;
  }
  .hero-tokens img {
    display: none;
    animation: none;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
  /* Pick one of each icon: child 1 = heart, child 2 = sword, child 3 = shield */
  .hero-tokens img:nth-child(1),
  .hero-tokens img:nth-child(2),
  .hero-tokens img:nth-child(3) {
    display: block;
    position: absolute;
    animation: mobile-token-bob 3.2s ease-in-out infinite;
  }
  .hero-tokens img:nth-child(3) { /* shield — near "2 jogadores 8+" (bottom of bullet list) */
    bottom: 8% !important; right: 4% !important; width: 40px;
    transform: rotate(-14deg);
    animation-delay: 0s;
  }
  .hero-tokens img:nth-child(1) { /* heart — near "75 cartas originais" (top of bullet list), right side */
    bottom: 16% !important; right: 4% !important; width: 44px;
    transform: rotate(8deg);
    animation-delay: 0.8s;
  }
  .hero-tokens img:nth-child(2) { /* sword — near "75 cartas originais", left side */
    bottom: 16% !important; left: 4% !important; width: 44px;
    transform: rotate(-20deg);
    animation-delay: 1.6s;
  }
  @keyframes mobile-token-bob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
  }

  .hero-character-img { max-width: 100%; }
  .hero-sticker { font-size: 12px; padding: 8px 12px; }
  .hero-sticker-1 { left: -4px; top: 2%; }
  .hero-sticker-2 { right: -4px; bottom: 4%; }
  .nav-cronicas-logo { height: 48px; }
  .nav { padding: 14px 16px; }
  .hero-marquee-track { font-size: 14px; gap: 28px; }
  .hero-marquee-track span { gap: 28px; }

  /* Synopsis */
  .synopsis-headline { font-size: 28px !important; line-height: 1.05; }
  .synopsis-body { font-size: 16px; }
  .card-carousel { width: 240px; height: 345px; }
  .card-carousel-hint { font-size: 12px; }
  .card-arrow { width: 44px; height: 44px; }
  .card-arrow svg { width: 18px; height: 18px; }
  .card-carousel-row { gap: 10px; }
  .item-types li { padding: 14px 16px; gap: 14px; }
  .item-types li strong { font-size: 17px; }
  .item-types li span { font-size: 14px; }
  .item-type-icon { width: 44px; height: 44px; }
  .item-type-icon img { width: 28px; height: 28px; }
  .patalha-stats { grid-template-columns: 1fr; gap: 10px; }
  .patalha-stat strong { font-size: 18px; }

  /* Board: escape the container width and span full viewport, centered */
  .story-patalha .synopsis-image {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -8px;
  }
  .board-stage {
    width: 130vw;
    max-width: none;
    margin: 0;
    perspective: 700px;
    padding: 30px 0 70px;
  }
  .board-inner { animation-duration: 14s; }

  /* Tighter gap between patalha text content and the board */
  .story-patalha .synopsis-wrap { gap: 12px; }

  /* Clouds — bigger, aspect-correct, faster scroll on mobile */
  .story-patalha .story-clouds {
    width: max-content;
    height: 55vh;
    bottom: 0;
    animation-duration: 22s;
  }
  .story-patalha .story-clouds img {
    height: 100%;
    width: auto;
    aspect-ratio: 7279.39 / 2378.72;
    flex-shrink: 0;
  }

  /* Section headers */
  .section-header h2 { font-size: 30px !important; line-height: 1.05; }
  .section-header p { font-size: 16px; }

  /* Solution */
  .solution-mix { grid-template-columns: 1fr; gap: 14px; }
  .mix-card { padding: 22px; }

  /* Proof */
  .stat-big { padding: 28px 20px; }
  .stat-big-num { font-size: 80px; }
  .stat-big-label { font-size: 18px; }
  .bubble { font-size: 18px; padding: 18px 22px; }

  /* Demo */
  .demo-frame { padding: 32px 20px; border-radius: 22px; }
  .demo-text h2 { font-size: 30px !important; }
  .demo-text p { font-size: 16px; }
  .demo-switch { padding: 6px; }
  .demo-switch button { padding: 10px 14px; font-size: 12px; }
  .flip-card { width: 220px; height: 320px; }

  /* Packages */
  .package { padding: 28px 22px; border-radius: 22px; }
  .package h3 { font-size: 32px; }
  .package-price .price-new .amount { font-size: 56px; }
  .package-price .price-old { font-size: 24px; }
  .package li { font-size: 15px; }
  .package-badge { right: 14px; font-size: 12px; }

  /* Objections */
  .objection { padding: 24px; }
  .objection h4 { font-size: 20px; }
  .objection p { font-size: 15px; }

  /* Guarantee */
  .guarantee-card { padding: 56px 24px 36px; }
  .guarantee-card .seal { width: 80px; height: 80px; top: -36px; font-size: 11px; }
  .guarantee-card h2 { font-size: 30px !important; }
  .guarantee-card p { font-size: 17px; }

  /* FAQ */
  .faq-q { font-size: 17px; padding: 18px 20px; gap: 12px; }
  .faq-q .toggle { width: 30px; height: 30px; font-size: 18px; }
  .faq-a-inner { padding: 0 20px 18px; font-size: 15px; }

  /* Final CTA */
  .final-cta h2 { font-size: 40px !important; }
  .final-cta p { font-size: 17px; }

  /* Buttons */
  .btn { padding: 16px 24px; font-size: 14px; gap: 8px; }
  .btn-large { padding: 20px 28px; font-size: 16px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

  /* Tokens — hide a few on tiny screens */
  .hero-tokens img:nth-child(n+5) { display: none; }
}

@media (max-width:600px){
  .card-carousel-row{gap:6px;width:100%}
  .card-carousel{width:min(196px,calc(100vw - 152px));height:auto;aspect-ratio:320/460}
  .card-arrow{width:40px;height:40px;flex-shrink:0}
  .card-arrow svg{width:16px;height:16px}
  .card-carousel-stage{gap:16px}
  .card-carousel-hint{gap:8px;font-size:11px;letter-spacing:.04em;flex-wrap:nowrap;justify-content:center;max-width:100%}
  .card-carousel-tap{padding:7px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .card-carousel-count{padding:6px 10px;white-space:nowrap;flex-shrink:0}
}
@media (max-width:400px){
  .card-carousel{width:calc(100vw - 140px)}
  .card-carousel-hint{font-size:10px}
  .card-arrow{width:36px;height:36px}
}
