/* =============================================================
   Puppy Store — Elixires de Ragnarok Online LATAM
   Design system: warm parchment + ONE gold accent, pixel display,
   glossy hand-built SVG, spring motion. Anti-AI-template by design.
   ============================================================= */

:root {
  /* — neutrals (scaffolding) — */
  --paper: #FAF6EC;
  --parchment: #F3E3C3;
  --stone: #E8D9B5;
  --ink: #4A2F18;
  --wood: #6B4A2B;
  --hairline: #D9C7A0;
  --muted: #6F5E3C; /* darkened for WCAG AA (>=4.5:1 on parchment) */
  --loot-1: #4A3115; /* dark loot-panel top */
  --loot-2: #2F1D0C; /* dark loot-panel bottom */
  --on-loot: #D7C49A; /* readable muted text on the loot panel */
  --gain: #2C6B2C; /* savings green on light */
  --gain-lt: #A7DD74; /* savings green on dark */

  /* — the one accent: RO gold — */
  --gold: #E6B422;
  --gold-hi: #F7D970;
  --gold-ink: #8A5E12; /* deep gold for gold-colored TEXT on light surfaces (passes AA ~4.5:1) */
  --bronze: #A77B3B;

  /* — atmosphere — */
  --sky: #6EC1E4;
  --sky-lt: #BFE6F5;
  --cloud: #FBFCFE;
  --teal: #2E8B8B;

  /* — mascot / product semantics — */
  --pink: #FF9EC4;
  --pink-deep: #F26B9A;
  --vermelho: #E33B3B;
  --dourado: #F2C037;
  --dourado-ink: #B07d12;
  --azul: #3E78D1;

  /* — type — */
  --font-display: 'Pixelify Sans', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-pixel: 'Silkscreen', 'Pixelify Sans', monospace;

  /* — radius scale — */
  --r-chip: 8px;
  --r-card: 18px;
  --r-panel: 26px;

  /* — spacing scale — */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* — layered, hue-tinted shadows — */
  --shadow-soft: 0 1px 2px rgba(74,47,24,.05), 0 4px 8px rgba(74,47,24,.07), 0 16px 32px rgba(74,47,24,.09);
  --shadow-lift: 0 1px 2px rgba(74,47,24,.06), 0 8px 16px rgba(74,47,24,.11), 0 18px 34px rgba(74,47,24,.10);
  --shadow-gold: 0 6px 18px rgba(230,180,34,.35);

  /* — easing — */
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-quart: cubic-bezier(.25,1,.5,1);
  --ease-smooth: cubic-bezier(.45,0,.55,1);

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 800; }

h1, h2, h3 { font-family: var(--font-display); line-height: .98; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wood); /* darker than bronze so the pixel labels pass AA on parchment */
}

/* ---------- helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 0 0 var(--r-chip) 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  border-radius: 6px;
}

.ico { flex: none; }

/* ---------- atmosphere fx ----------
   grain sits ON TOP of everything (texture), glow sits BEHIND content (ambient light).
   No body>* override — that would clobber position:sticky/fixed on nav, toast & order bar. */
.fx-grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46vw 40vw at 82% -6%, rgba(110,193,228,.40), transparent 60%),
    radial-gradient(40vw 38vw at 6% 8%, rgba(191,230,245,.34), transparent 62%),
    radial-gradient(50vw 46vw at 50% 116%, rgba(255,158,196,.16), transparent 60%);
}

/* =============================================================
   NAV (glass, sticky)
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(243,227,195,.82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(251,252,254,.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(243,227,195,.97); }
}
.nav__inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { transition: transform .4s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.08); }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.brand__name span { color: var(--gold-ink); }
.nav__links { display: flex; gap: var(--s4); margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 700; color: var(--wood); padding: 6px 2px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0% 2px;
  transition: background-size .3s var(--ease-quart), color .2s;
}
.nav__links a:hover { color: var(--ink); background-size: 100% 2px; }
.nav__cta { margin-left: var(--s2); }

/* botão de carrinho (nav) + badge de contagem */
/* no desktop os .nav__links (margin-left:auto) já empurram o grupo pra direita;
   no mobile eles somem, então o margin-left:auto migra pro carrinho (media query lá embaixo). */
.nav__cart { margin-left: var(--s2); padding-inline: 14px; position: relative; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px;
  font-family: var(--font-body); font-weight: 800; font-size: .72rem; line-height: 1; color: #3c2a06;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(120,80,10,.3); font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }
.nav__cart.bump { animation: cartbump .45s var(--ease-spring); }
@keyframes cartbump { 0%,100% { transform: translateY(0) scale(1); } 35% { transform: translateY(-3px) scale(1.08); } }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  --btn-bg: var(--parchment);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: .98rem; line-height: 1;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  color: var(--ink); background: var(--btn-bg);
  transition: transform .18s var(--ease-spring), box-shadow .2s var(--ease-smooth), background-color .2s, filter .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--lg { padding: 15px 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold {
  color: #3c2a06;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--bronze));
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(120,80,10,.25);
}
.btn--gold:hover { filter: brightness(1.05); box-shadow: 0 10px 26px rgba(230,180,34,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost {
  background: rgba(251,252,254,.6); color: var(--wood);
  border: 2px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--ink); }

/* =============================================================
   HERO (asymmetric)
   ============================================================= */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(30px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 3vw, 40px);
  align-items: center; position: relative;
}
.hero__copy { grid-column: 1 / 8; position: relative; z-index: 2; }
.hero__copy .eyebrow { display: inline-block; margin-bottom: var(--s3); }
.hero h1 { margin-bottom: var(--s3); color: var(--ink); }
.hero h1 .hl { color: var(--gold-ink); text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 0 16px rgba(247,217,112,.4); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--wood); max-width: 46ch; margin-bottom: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s3); }
.hero__note { font-size: .92rem; color: var(--muted); }

.hero__art {
  grid-column: 8 / 13; position: relative; min-height: 340px;
  display: flex; align-items: flex-end; justify-content: center;
  margin-block-start: clamp(0px, 3vw, 48px);
  margin-right: clamp(-60px, -4vw, 0px); /* bleeds off the right edge */
}
.hero__glow {
  position: absolute; inset: -10% -10% 5% -10%;
  background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(191,230,245,.45) 55%, transparent);
  filter: blur(8px); z-index: -1;
}
.hero__art .bottle { filter: drop-shadow(0 16px 18px rgba(74,47,24,.18)); }
.bottle--a { transform: rotate(-7deg); margin-right: -18px; z-index: 1; }
.bottle--b { z-index: 3; }
.bottle--c { transform: rotate(7deg); margin-left: -18px; z-index: 1; }
.hero__poring { position: absolute; left: 2%; bottom: 6%; z-index: 4; filter: drop-shadow(0 8px 10px rgba(74,47,24,.18)); }

/* clouds are decorative: sit in the empty top-right band, always BEHIND content (z-index:0) */
.hero__cloud { position: absolute; opacity: .85; z-index: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(110,150,180,.15)); }
.hero__cloud--1 { top: 2%; right: 8%; }
.hero__cloud--2 { top: 0; right: 40%; }

.spark { position: absolute; color: var(--gold-hi); filter: drop-shadow(0 0 6px rgba(247,217,112,.8)); }
.spark--1 { top: 8%; right: 24%; }
.spark--2 { top: 40%; right: 6%; }
.spark--3 { bottom: 24%; left: 14%; }

/* =============================================================
   TRUST STRIP
   ============================================================= */
.trust { max-width: var(--maxw); margin: var(--s4) auto var(--s6); padding-inline: clamp(16px, 4vw, 40px); }
.trust__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3);
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-panel);
  padding: var(--s4) var(--s4); box-shadow: var(--shadow-soft);
}
.trust__list li { display: flex; align-items: center; gap: 12px; }
.trust__ico { font-size: 1.7rem; flex: none; }
.trust__list b { display: block; font-size: .98rem; }
.trust__list small { color: var(--muted); font-size: .82rem; }

/* =============================================================
   SECTION HEADINGS
   ============================================================= */
.section-head { max-width: var(--maxw); margin: 0 auto var(--s4); padding-inline: clamp(16px, 4vw, 40px); }
.section-head .eyebrow { display: inline-block; margin-bottom: var(--s2); }
.section-head h2 { color: var(--ink); }
.section-sub { color: var(--wood); max-width: 56ch; margin-top: var(--s2); font-size: 1.05rem; }

.elixires, .como, .confianca, .faq { padding-block: clamp(28px, 4vw, 56px); }

/* =============================================================
   PRODUCT CARDS
   ============================================================= */
.cards {
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 28px);
}
.cards:empty { display: none; } /* no empty grid gap before the no-JS fallback */
.card {
  --accent: var(--gold); --accent-soft: rgba(230,180,34,.14);
  position: relative;
  grid-column: span 12;
  display: flex; flex-direction: column;
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-smooth);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* "Mais vendido" ribbon on the featured card */
.ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  font-family: var(--font-pixel); font-size: .56rem; letter-spacing: .04em;
  color: #3c2a06; background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255,255,255,.4);
}

/* Desktop: os 3 elixires lado a lado — cards VERTICAIS, 1/3 da largura cada.
   A promo fica full-width embaixo. (No mobile, abaixo de 760px, eles empilham.) */
@media (min-width: 760px) {
  .card--feat,
  .card--mid,
  .card--small { grid-column: span 4; }
  .card--promo { grid-column: span 12; }
}

.card__media {
  position: relative; display: grid; place-items: center;
  padding: var(--s3);
  background:
    radial-gradient(70% 80% at 50% 35%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, rgba(251,252,254,.5), transparent);
  border-bottom: 1px solid var(--hairline);
  min-height: 150px;
}
.card__media .bottle { filter: drop-shadow(0 12px 14px rgba(74,47,24,.2)); animation: float 5s var(--ease-smooth) infinite; }
.card__media .spark { position: absolute; color: var(--accent); opacity: 0; }
.card:hover .card__media .spark { animation: twinkle 1.4s var(--ease-smooth) infinite; }
.card__media .spark.s1 { top: 18%; left: 20%; } .card:hover .s1 { animation-delay: 0s; }
.card__media .spark.s2 { top: 30%; right: 18%; } .card:hover .s2 { animation-delay: .4s; }
.card__media .spark.s3 { bottom: 16%; left: 30%; } .card:hover .s3 { animation-delay: .8s; }

.card__body { padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.card__name { color: var(--ink); }
.card__name em { font-style: normal; color: var(--accent); }
.badge {
  font-family: var(--font-pixel); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wood); background: rgba(167,123,59,.14); border: 1px solid rgba(167,123,59,.35);
  padding: 6px 8px; border-radius: var(--r-chip); white-space: nowrap; flex: none;
}

.tiers { display: flex; flex-direction: column; gap: 6px; }
.tier {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-chip); background: rgba(251,252,254,.55);
  border: 1px solid var(--hairline); font-size: .9rem;
}
.tier__q { font-weight: 800; }
.tier__u { color: var(--muted); font-size: .82rem; }
.tier__p { font-weight: 800; color: var(--ink); }
.tier .best {
  font-family: var(--font-pixel); font-size: .5rem; letter-spacing: .05em; color: #2c6b2c;
  background: rgba(127,194,66,.2); border: 1px solid rgba(127,194,66,.5); padding: 3px 5px; border-radius: 6px; margin-left: 6px;
}

.calc { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.qty-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-label { font-weight: 700; font-size: .82rem; color: var(--wood); }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--hairline); border-radius: 999px; background: var(--paper); overflow: hidden; width: fit-content; }
.stepper__btn {
  width: 44px; min-height: 44px; font-size: 1.4rem; font-weight: 800; line-height: 1; flex: none;
  background: transparent; color: var(--wood); cursor: pointer; border: 0;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: background-color .15s, color .15s, transform .12s var(--ease-spring);
}
.stepper__btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--ink); }
.stepper__btn:active:not(:disabled) { transform: scale(.86); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__val { min-width: 80px; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; padding-inline: 6px; }
/* input editável de quantidade (digitar direto) */
.stepper__inp {
  width: 90px; text-align: center; font: inherit; font-weight: 800; color: var(--ink);
  background: transparent; border: 0; padding: 6px 4px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__inp::-webkit-outer-spin-button, .stepper__inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__inp:focus { outline: none; background: var(--accent-soft, rgba(230,180,34,.14)); }
.stepper__inp:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent, var(--gold)); border-radius: 4px; }
/* stepper menor pras linhas do carrinho */
.stepper--sm .stepper__btn { width: 38px; min-height: 38px; font-size: 1.2rem; }
.stepper--sm .stepper__inp { width: 66px; padding-block: 4px; }

.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset {
  font-family: var(--font-pixel); font-size: .56rem; letter-spacing: .04em;
  min-height: 40px; padding: 6px 12px; border-radius: var(--r-chip); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid var(--hairline); color: var(--wood);
  transition: all .18s var(--ease-spring);
}
.preset:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.preset[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* dark "loot panel" (RO item-tooltip) — gives the gold price ~10:1 contrast */
.total-box {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r-chip);
  background: linear-gradient(160deg, var(--loot-1), var(--loot-2));
  border: 1px solid rgba(247,217,112,.35);
  box-shadow: inset 0 1px 0 rgba(247,217,112,.18), inset 0 0 0 1px rgba(0,0,0,.15);
}
.total-box .perunit { grid-column: 1; color: var(--on-loot); font-size: .82rem; }
.total-box .total { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center;
  font-family: var(--font-body); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.2rem); color: var(--gold-hi); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 12px rgba(247,217,112,.25); transition: transform .3s var(--ease-spring); }
.total-box .total.flash { animation: priceflash .5s var(--ease-spring); }
.total-box .zeny { grid-column: 1; color: var(--on-loot); font-size: .8rem; font-variant-numeric: tabular-nums; }
.total-box .savings { grid-column: 1 / -1; color: var(--gain-lt); font-weight: 800; font-size: .82rem; }
.total-box .savings:empty { display: none; }

/* promo / help cell */
.card--promo {
  background: linear-gradient(150deg, var(--stone), var(--parchment));
  align-items: flex-start; justify-content: center; padding: var(--s5);
  gap: var(--s3);
}
.card--promo h3 { color: var(--ink); }
.card--promo p { color: var(--wood); max-width: 48ch; }
.card--promo .promo__poring { align-self: flex-end; margin-top: -20px; }

/* =============================================================
   BENTO (como funciona)
   ============================================================= */
.bento {
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 20px); grid-auto-rows: minmax(140px, auto);
}
.bento__cell {
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: var(--s4); box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.bento__cell h3 { color: var(--ink); margin-bottom: var(--s2); }
.bento__cell p { color: var(--wood); font-size: .95rem; }
.bento__cell .eyebrow { display: block; margin-bottom: var(--s2); }
.bento__cell--flow { grid-column: span 2; grid-row: span 2; }
.bento__cell--server { grid-column: span 2; }
.bento__cell--pix { grid-column: span 2; }
.bento__cell--min { grid-column: span 4; background: linear-gradient(150deg, rgba(230,180,34,.18), var(--parchment)); border-color: rgba(230,180,34,.4); }
.bento__cell--min h3, .bento__cell--min p { max-width: 60ch; }
.bento__cell--min h3 { color: var(--bronze); }

.flow { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s3); max-width: 62%; }
.flow li { display: flex; align-items: center; gap: 12px; }
.flow__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #3c2a06;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: var(--shadow-gold);
}
.flow b { display: block; }
.flow small { color: var(--muted); }
.como__puppy { position: absolute; right: -6px; bottom: -6px; animation: breathe 5s var(--ease-smooth) infinite; }

/* =============================================================
   CONFIANÇA
   ============================================================= */
.conf-grid {
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px);
}
.conf-card { background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow-soft); transition: transform .25s var(--ease-spring), box-shadow .25s; }
.conf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.conf-card__ico { font-size: 2.2rem; display: block; margin-bottom: var(--s2); }
.conf-card h3 { color: var(--ink); margin-bottom: var(--s2); }
.conf-card p { color: var(--wood); }

/* =============================================================
   FAQ
   ============================================================= */
.faq__list { max-width: 820px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--s2); }
.faq__item {
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 4px var(--s4); box-shadow: var(--shadow-soft); transition: border-color .2s;
}
.faq__item[open] { border-color: var(--gold); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: var(--s3) 0; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-ink); transition: transform .3s var(--ease-spring); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--wood); padding-bottom: var(--s3); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { margin-top: calc(var(--s7) + 40px); padding-top: var(--s4); background: var(--stone); border-top: 1px solid var(--hairline); position: relative; }

/* Poring family parade sitting on the footer's top edge (replaces Prontera skyline) */
.footer__parade { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.footer__parade svg { position: absolute; bottom: 0; filter: drop-shadow(0 6px 8px rgba(74,47,24,.12)); }
.footer__cloud { opacity: .9; }
.footer__cloud.f1 { left: 8%; bottom: 8px; }
.footer__cloud.f2 { left: 44%; bottom: 14px; }
.footer__cloud.f3 { right: 6%; bottom: 6px; }
.footer__poring { animation: floatY 5s var(--ease-smooth) infinite; }
.footer__poring.p1 { left: 16%; animation-delay: .2s; }
.footer__poring.p2 { left: 36%; animation-delay: .9s; }
.footer__poring.p3 { right: 30%; animation-delay: 1.5s; }
.footer__poring.p4 { right: 10%; animation-delay: .6s; }
@media (max-width: 600px) {
  .footer__poring.p1, .footer__cloud.f2 { display: none; }
}

.footer__inner {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s5) clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
}
.footer__brand { display: flex; align-items: center; gap: var(--s3); }
.footer__brand .brand__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.footer__brand .brand__name span { color: var(--gold-ink); }
.footer__tag { color: var(--wood); font-size: .92rem; }
.footer__contact { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer__fine {
  max-width: var(--maxw); margin: 0 auto; padding: var(--s3) clamp(16px, 4vw, 40px) var(--s5);
  color: var(--muted); font-size: .78rem; border-top: 1px solid var(--hairline);
}

/* =============================================================
   MOBILE STICKY BAR
   ============================================================= */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  gap: 10px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(243,227,195,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline); box-shadow: 0 -6px 18px rgba(74,47,24,.12);
}
.sticky-bar > a { flex: none; } /* "Ver elixires" com largura natural */
.sticky-bar .btn--block { flex: 1; width: auto; } /* carrinho ocupa o resto */
.sticky-bar .cart-count { background: rgba(255,255,255,.35); color: #3c2a06; }

/* =============================================================
   MODAL + TOAST
   ============================================================= */
.modal {
  border: 0; padding: 0; border-radius: var(--r-panel); max-width: 420px; width: calc(100% - 32px);
  margin: auto; /* restore native dialog centering (global `* { margin: 0 }` strips it) */
  background: var(--parchment); color: var(--ink); box-shadow: 0 24px 60px rgba(74,47,24,.35);
  max-height: calc(100dvh - 24px); overflow: hidden; /* content scales to fit — never scrolls */
}
.modal::backdrop { background: rgba(74,47,24,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modalpop .35s var(--ease-spring); }
.modal > * { padding-inline: var(--s5); }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--hairline); color: var(--wood); cursor: pointer; font-size: 1rem; font-weight: 800;
  display: grid; place-items: center; padding: 0;
}
.modal__close:hover { background: var(--stone); }
.modal__head { display: flex; align-items: center; gap: var(--s3); padding-top: var(--s3); }
.modal__bottle { width: clamp(48px, 11vh, 74px); height: auto; filter: drop-shadow(0 8px 10px rgba(74,47,24,.2)); }
.modal__head h3 { color: var(--ink); }
.modal__head h3 em { font-style: normal; color: var(--accent, var(--gold)); }

/* ---- carrinho dentro do modal ---- */
.modal--cart { overflow-y: auto; overscroll-behavior: contain; }
.modal__cartico { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(74,47,24,.2)); }

.cart-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.cart-list[hidden] { display: none; }
.cart-item {
  --accent: var(--gold);
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--hairline); border-left: 4px solid var(--accent);
  border-radius: var(--r-chip); padding: 10px 12px;
}
.cart-item__bottle { width: 40px; height: auto; filter: drop-shadow(0 4px 6px rgba(74,47,24,.18)); }
.cart-item__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cart-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item__name { font-weight: 800; color: var(--ink); font-size: .98rem; }
.cart-item__name em { font-style: normal; color: var(--accent); }
.cart-item__rm {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--parchment); color: var(--muted); cursor: pointer; font-weight: 800; line-height: 1;
  display: grid; place-items: center; padding: 0; font-size: .85rem;
}
.cart-item__rm:hover { background: rgba(227,59,59,.12); border-color: rgba(227,59,59,.5); color: #b53030; }
.cart-item__ctrls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-item__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ci-unit { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.ci-total { font-weight: 800; color: var(--gold-ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ci-total.flash { animation: priceflash .5s var(--ease-spring); }

/* carrinho vazio */
.cart-empty { text-align: center; padding: var(--s4) 0 var(--s2); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.cart-empty[hidden] { display: none; }
.cart-empty svg { animation: floatY 4.5s var(--ease-smooth) infinite; }
.cart-empty p { color: var(--wood); }

.modal__stepper { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.modal__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.modal__summary { margin-top: var(--s3); background: linear-gradient(160deg, var(--loot-1), var(--loot-2)); border: 1px solid rgba(247,217,112,.35); border-radius: var(--r-card); padding: var(--s3) var(--s4) !important; margin-inline: var(--s5); box-shadow: inset 0 1px 0 rgba(247,217,112,.18); }
.sumrow { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0; }
.sumrow span { color: var(--on-loot); }
.sumrow b { font-weight: 800; font-variant-numeric: tabular-nums; color: #F4E7C8; }
.sumrow--total { border-top: 1px solid rgba(247,217,112,.25); margin-top: 6px; padding-top: 10px; }
.sumrow--total span { font-weight: 800; color: #FBFCFE; }
.sumrow--total b { font-family: var(--font-body); font-weight: 800; font-size: 1.6rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.modal__zeny { color: var(--on-loot); font-size: .82rem; text-align: right; font-variant-numeric: tabular-nums; }
.modal__save { color: var(--gain-lt); font-weight: 800; font-size: .85rem; margin-top: 4px; }
.modal__min { color: #EBD3A0; font-size: .82rem; margin-top: 8px; }
.modal__form { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.modal__form[hidden] { display: none; } /* hidden vence o display:flex (carrinho vazio) */
.modal__form .field-label { margin-bottom: 2px; }
.modal__form .opt { color: var(--muted); font-weight: 600; }

/* ---- Entrar com Discord (OAuth2) ---- */
.btn--discord { background: #5865f2; color: #fff; border: none; }
.btn--discord:hover { background: #4752c4; color: #fff; }
.btn--discord .ico { vertical-align: -3px; }
.discord-auth { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s2); }
.discord-auth[data-state="in"] {
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  background: var(--paper); border: 2px solid var(--hairline); border-radius: var(--r-chip); padding: 10px 12px;
}
.discord-auth__who { font-weight: 700; color: var(--ink); }
.discord-auth__ok { color: #1f9d55; font-weight: 800; font-size: .9em; white-space: nowrap; }
.discord-auth__out { color: var(--muted); font-weight: 700; font-size: .85em; text-decoration: underline; }
.discord-auth__hint { color: var(--muted); font-weight: 600; font-size: .9em; margin: 0; }
.modal__input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--hairline); border-radius: var(--r-chip); margin-bottom: var(--s2);
}
.modal__input::placeholder { color: var(--muted); }
.modal__input:focus-visible { border-color: var(--gold); outline-offset: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal__status { font-weight: 800; font-size: .9rem; padding: 10px 12px; border-radius: var(--r-chip); margin: 4px 0; }
.modal__status.ok { color: #1f5b1f; background: rgba(127,194,66,.18); border: 1px solid rgba(127,194,66,.5); }
.modal__status.err { color: #8a2b2b; background: rgba(227,59,59,.12); border: 1px solid rgba(227,59,59,.45); }
/* when a status message is shown, hide the now-irrelevant min/foot lines so it fits without clipping or scroll */
.modal--feedback .modal__min,
.modal--feedback .modal__foot { display: none; }
.modal__foot { color: var(--muted); font-size: .8rem; text-align: center; padding-block: var(--s3); }

/* short viewports: tighten the modal so it always fits without scrolling */
@media (max-height: 740px) {
  .modal__head { padding-top: var(--s2); }
  .modal__stepper, .modal__chips, .modal__summary, .modal__form { margin-top: var(--s2); }
  .modal__summary { padding: var(--s2) var(--s4) !important; }
  .modal__min { margin-top: 4px; }
  .modal__foot { padding-block: var(--s2); }
}
@media (max-height: 640px) {
  .modal__foot { display: none; }
  .modal__min { display: none; }
  .modal__input { min-height: 42px; }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 300;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  transition: opacity .3s var(--ease-quart), transform .4s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript-note { max-width: 820px; margin: var(--s4) auto 0; padding: var(--s4); background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.noscript-note ul { margin-top: var(--s2); padding-left: 1.2em; }

/* =============================================================
   ANIMATIONS
   ============================================================= */
/* uses the individual `translate` property so it never clobbers `transform: rotate()` on the side bottles */
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes breathe { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.04,.96); } }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes priceflash { 0% { transform: scale(1); } 40% { transform: scale(1.16); filter: brightness(1.2); } 100% { transform: scale(1); } }
@keyframes modalpop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.hero__poring { animation: floatY 4.5s var(--ease-smooth) infinite; }
.bottle--b { animation: float 6s var(--ease-smooth) infinite; }
.bottle--a { animation: float 6s var(--ease-smooth) infinite .6s; }
.bottle--c { animation: float 6s var(--ease-smooth) infinite 1.1s; }
.hero .spark { animation: twinkle 2.6s var(--ease-smooth) infinite; }
.hero .spark--2 { animation-delay: .8s; }
.hero .spark--3 { animation-delay: 1.6s; }

/* scroll reveals — only hide initially when JS is present, so content never gets stuck invisible */
.reveal { transition: opacity .6s var(--ease-quart), transform .6s var(--ease-quart); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__copy { grid-column: 1; }
  .hero__art { grid-column: 1; margin: var(--s4) 0 0; min-height: 280px; margin-right: 0; }
  .bento__cell--flow { grid-column: span 4; grid-row: auto; }
  .bento__cell--server, .bento__cell--pix { grid-column: span 2; }
  .bento__cell--min { grid-column: span 4; }
  .flow { max-width: 100%; }
  .como__puppy { display: none; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cart { margin-left: auto; } /* sem os links, é o carrinho que empurra o grupo pra direita */
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .conf-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--flow, .bento__cell--server, .bento__cell--pix, .bento__cell--min { grid-column: span 2; }
  .sticky-bar { display: flex; }
  body { padding-bottom: max(84px, calc(24px + env(safe-area-inset-bottom, 0px))); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
/* nav bem estreita: encolhe os botões pra caber brand + carrinho + Discord */
@media (max-width: 420px) {
  .nav__inner { gap: var(--s2); }
  .nav .btn { padding: 10px 12px; font-size: .9rem; }
  .nav__cart { padding-inline: 11px; }
}
@media (max-width: 460px) {
  .trust__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
