/* =========================================================
   Natal na Travessa — página de vendas
   Marfim quente · verde-pinheiro · vinho · dourado fosco
   ========================================================= */
:root {
  --ivory: #f6efe2;
  --ivory-2: #efe4d0;
  --paper: #fbf7ef;
  --pine: #1b3f33;
  --pine-deep: #122d24;
  --pine-soft: #2c5546;
  --wine: #7a2232;
  --wine-deep: #5e1826;
  --gold: #b08d57;
  --gold-soft: #d4bc8f;
  --ink: #2a221c;
  --muted: #6b5d50;
  --line: rgba(42, 34, 28, .14);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-turn: cubic-bezier(.45, .05, .25, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
p { margin: 0; }
em { font-style: italic; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pine); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 3px; }

.kicker {
  font: 700 .75rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.kicker--light { color: var(--gold-soft); }
.micro { font-size: .875rem; color: var(--muted); letter-spacing: .01em; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  background: var(--bg); color: var(--paper);
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease), background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--pine-soft); }
.btn:active { transform: scale(.97); }
.btn--primary {
  --bg: var(--wine);
  min-height: 56px; padding: 0 30px; font-size: 1.0625rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -12px rgba(94, 24, 38, .7);
}
.btn--primary:hover { background: var(--wine-deep); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

.link-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 2px;
  background: none; border: 0; cursor: pointer;
  color: var(--pine); font-weight: 600; font-size: 1rem;
  text-decoration: underline; text-decoration-color: rgba(27,63,51,.35); text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s, transform .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.link-btn:hover { color: var(--wine); text-decoration-color: currentColor; }
.link-btn:active { transform: scale(.97); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 239, 226, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pine); color: var(--gold-soft);
  font: 500 1.05rem/1 var(--serif);
}
.brand__name { font: 400 1.25rem/1 var(--serif); }
.brand__name em { color: var(--wine); }

/* =========================================================
   1. PRIMEIRA TELA
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before { /* luz quente vinda da direita */
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 70vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .32), rgba(255, 214, 150, 0));
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding-top: 26px; padding-bottom: 40px;
}
.hero__title {
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.018em;
  max-width: 13.5em;
  text-wrap: balance;
}
.hero__title em { color: var(--wine); }
.hero__lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: #4a3e34; max-width: 32em; }
.hero__actions { margin-top: 26px; display: grid; justify-items: start; gap: 10px; }
.hero__copy .link-btn { margin-top: 10px; }

/* Cena: foto ao fundo + livro 3D apoiado na mesa */
.scene {
  --bw: clamp(148px, 40vw, 250px);
  position: relative;
  height: clamp(340px, 98vw, 440px);
  margin-top: 8px;
}
.scene__photo {
  position: absolute; margin: 0;
  top: 0; right: calc(var(--gutter) * -1); left: 26%; bottom: 17%;
  overflow: hidden; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--ivory-2);
  box-shadow: 0 30px 60px -40px rgba(60, 30, 10, .55);
}
.scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.scene__photo::after { /* luz quente e vinheta suave */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 210, 140, .22), transparent 55%),
    linear-gradient(90deg, rgba(40, 22, 10, .35), transparent 38%),
    linear-gradient(0deg, rgba(40, 22, 10, .28), transparent 30%);
}
.scene__photo figcaption {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  font-size: .6875rem; letter-spacing: .04em; color: rgba(251, 247, 239, .82);
}

.book-stage {
  position: absolute; left: 4%; bottom: 7%;
  width: calc(var(--bw) * 1.25); height: calc(var(--bw) * 1.766 + 30px);
  display: grid; place-items: end start;
  padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
  perspective: 1400px; perspective-origin: 70% 30%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.book-stage:focus-visible { outline-offset: 8px; }

/* Livro 3D */
.book {
  --bh: calc(var(--bw) * 1.766);
  --bd: calc(var(--bw) * .085);   /* espessura */
  --rx: -10deg; --ry: 30deg; --rz: 0deg;
  position: relative; display: block;
  width: var(--bw); height: var(--bh);
  margin-left: calc(var(--bw) * .14);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transform-origin: 50% 100%;
  will-change: transform;
}
.book__face { position: absolute; display: block; backface-visibility: hidden; }
.book__cover, .book__first, .book__back { inset: 0; }
.book__cover {
  transform-origin: 0 50%;
  transform: translateZ(calc(var(--bd) / 2));
  transition: transform .5s var(--ease);
  border-radius: 1px 3px 3px 1px;
  overflow: hidden;
  background: var(--pine);
  box-shadow: inset 3px 0 0 rgba(0,0,0,.18);
  will-change: transform;
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__sheen { /* luz rasante sobre a capa */
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.05) 4%, rgba(255,255,255,.12) 6%, rgba(255,255,255,0) 14%),
    linear-gradient(115deg, rgba(255, 236, 200, .22) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,.12) 100%);
  pointer-events: none;
}
.book__first { /* primeira página, aparece quando a capa abre */
  transform: translateZ(calc(var(--bd) / 2 - 1px));
  background: linear-gradient(90deg, #e9dfcc, var(--paper) 18%);
}
.book__back {
  transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
  background: var(--pine-deep);
}
.book__spine {
  width: var(--bd); height: var(--bh);
  left: calc(50% - var(--bd) / 2); top: 0;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background: linear-gradient(90deg, #0e241d, #1e4638 45%, #143429);
  display: grid; place-items: center;
}
.book__spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 calc(var(--bw) * .043)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); white-space: nowrap; opacity: .9;
}
.book__edge-r { /* espessura das páginas */
  width: var(--bd); height: calc(var(--bh) - 4px);
  left: calc(50% - var(--bd) / 2); top: 2px;
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 1px));
  background:
    repeating-linear-gradient(90deg, #efe6d4 0 1px, #d9ccb4 1px 2px),
    #eee4d1;
  box-shadow: inset 0 0 6px rgba(80, 60, 30, .35);
}
.book__edge-t, .book__edge-b {
  width: calc(var(--bw) - 2px); height: var(--bd);
  left: 1px; top: calc(50% - var(--bd) / 2);
  background: repeating-linear-gradient(0deg, #efe6d4 0 1px, #d6c8ae 1px 2px);
}
.book__edge-t { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 1px)); }
.book__edge-b { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 1px)); background: #c9bb9f; }

/* Sombra de contato + sombra projetada */
.book-shadow {
  position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--bw) * .1); bottom: -22px;
  width: calc(var(--bw) * 1.1); height: 22px;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(35, 20, 8, .62), rgba(35, 20, 8, .25) 55%, rgba(35, 20, 8, 0) 75%);
  filter: blur(2.5px);
}
.book-shadow::after { /* sombra projetada para a direita, longe da luz */
  content: ""; position: absolute; left: 35%; right: -55%; top: -6px; height: 34px;
  background: radial-gradient(50% 50% at 40% 50%, rgba(35, 20, 8, .3), transparent 75%);
  filter: blur(9px);
}
.book-stage { isolation: isolate; z-index: 2; } /* livro sempre à frente do filete da foto */
.book-stage::before { /* superfície da mesa */
  content: ""; position: absolute; z-index: -2; left: -30%; right: -60%; bottom: 14px; height: 48px;
  background: radial-gradient(60% 50% at 40% 50%, rgba(255, 246, 228, .65), transparent 70%);
}
.book-hint {
  position: absolute; left: calc(var(--bw) * 1.02); bottom: calc(var(--bw) * .9);
  font: 500 .8125rem/1.2 var(--sans); letter-spacing: .02em;
  color: var(--paper); background: rgba(18, 45, 36, .78);
  padding: 7px 11px; border-radius: 999px;
  white-space: nowrap; pointer-events: none;
  transition: opacity .3s;
}
.book-stage.is-opening .book__cover { transform: translateZ(calc(var(--bd) / 2)) rotateY(-58deg); }
.book-stage.is-opening .book-hint { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .book-hint { display: none; }
  .book-stage:hover .book__cover { transform: translateZ(calc(var(--bd) / 2)) rotateY(-9deg); }
}

/* =========================================================
   2. RECEITAS
   ========================================================= */
.recipes { padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); }
.recipes__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.recipes__intro { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.recipes__grid { display: grid; gap: 22px; }

.dish__stage {
  position: relative;
  aspect-ratio: 760 / 505;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--ivory-2);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.dish__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
}
.dish__img.is-active { opacity: 1; transform: scale(1); }
.dish__tag {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-size: .6875rem; letter-spacing: .04em; color: rgba(251, 247, 239, .9);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.dish__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; margin-top: -24px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(251, 247, 239, .88); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.4);
  cursor: pointer; transition: transform .14s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.dish__nav:active { transform: scale(.92); }
.dish__nav--prev { left: 10px; }
.dish__nav--next { right: 10px; }

.dish__caption { padding-top: 18px; min-height: 196px; outline: none; }
.dish__count { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.dish__name { margin-top: 8px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.dish__text { margin-top: 10px; color: #4a3e34; max-width: 34em; }
.dish__meta { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.dish__caption > * { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dish__caption.is-swapping > * { opacity: 0; transform: translateY(6px); }

/* Lista de sabores: chips roláveis no celular */
.flavors {
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
  order: -1;
}
.flavors::-webkit-scrollbar { display: none; }
.flavor {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); cursor: pointer; text-align: left;
  font-size: .9375rem; font-weight: 600; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.flavor:active { transform: scale(.96); }
.flavor__n { font: 500 .8125rem/1 var(--serif); color: var(--wine); }
.flavor[aria-selected="true"] { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.flavor[aria-selected="true"] .flavor__n { color: var(--gold-soft); }
.flavor__name { white-space: nowrap; }

/* =========================================================
   3. CALCULADORA
   ========================================================= */
.calc {
  background: var(--pine);
  background-image:
    radial-gradient(80% 60% at 15% 0%, rgba(255, 220, 160, .1), transparent 60%),
    linear-gradient(180deg, var(--pine), var(--pine-deep));
  color: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0;
}
.calc__grid { display: grid; gap: 34px; }
.calc h2 { color: var(--paper); font-size: clamp(2rem, 1.25rem + 2.8vw, 3.35rem); max-width: 12em; text-wrap: balance; }
.calc__note { margin-top: 16px; color: rgba(251, 247, 239, .74); max-width: 30em; }

.price-ctl { margin-top: 30px; max-width: 460px; }
.price-ctl__label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.price-ctl__field {
  margin-top: 10px;
  display: inline-flex; align-items: baseline; gap: 10px;
  border-bottom: 1px solid rgba(212, 188, 143, .5);
  padding-bottom: 4px;
  transition: border-color .2s;
}
.price-ctl__field:focus-within { border-bottom-color: var(--gold-soft); }
.price-ctl__field span { font: 400 1.5rem/1 var(--serif); color: var(--gold-soft); }
.price-ctl__field input {
  width: 5.2ch; background: none; border: 0; outline: none; color: var(--paper);
  font: 400 clamp(2.75rem, 2rem + 3vw, 3.75rem)/1 var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
  padding: 0;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px; margin: 18px 0 0;
  background: transparent; cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-soft) var(--fill, 50%), rgba(251,247,239,.22) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(251,247,239,.22); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold-soft); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -13px; border-radius: 50%;
  background: var(--paper); border: 0;
  box-shadow: 0 0 0 6px rgba(212, 188, 143, .25), 0 4px 10px rgba(0,0,0,.35);
  transition: box-shadow .2s;
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 0;
  box-shadow: 0 0 0 6px rgba(212, 188, 143, .25), 0 4px 10px rgba(0,0,0,.35);
}
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(212, 188, 143, .3), 0 4px 10px rgba(0,0,0,.35); }
input[type="range"]:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.price-ctl__scale { display: flex; justify-content: space-between; font-size: .8125rem; color: rgba(251, 247, 239, .55); margin-top: 2px; }

/* Nota de conta */
.receipt {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  position: relative;
}
.receipt::before { /* filete dourado */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176, 141, 87, .35); border-radius: 3px; pointer-events: none;
}
.receipt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font: 500 1.25rem/1.2 var(--serif); }
.receipt__badge {
  font: 700 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine); border: 1px solid rgba(122, 34, 50, .35); border-radius: 999px; padding: 6px 10px;
}
.receipt__rows { margin: 18px 0 0; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-top: 1px dashed rgba(42, 34, 28, .2);
}
.row dt { font-weight: 600; }
.row dt small { display: block; margin-top: 4px; font-weight: 400; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.row dd { margin: 0; font: 500 1.25rem/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.row--minus dd { color: #5b4e43; }
.row--total { border-top: 1.5px solid var(--ink); padding-top: 16px; align-items: center; }
.row--total dt { font: 500 1.125rem/1.25 var(--serif); max-width: 11em; }
.row--total dd {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  color: var(--pine);
  transition: color .3s;
}
.row--total.is-negative dd { color: var(--wine); }
.row--total dd.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }

.split { display: flex; height: 10px; margin-top: 18px; border-radius: 10px; overflow: hidden; background: var(--ivory-2); }
.split__seg { display: block; height: 100%; transition: flex-basis .45s var(--ease); flex: 0 0 0; }
.split__cost { background: #8d7b68; }
.split__fee { background: var(--gold); }
.split__left { background: var(--pine); }
.split.is-negative .split__left { background: var(--wine); }
.split__legend { display: flex; gap: 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k--cost { background: #8d7b68; } .k--fee { background: var(--gold); } .k--left { background: var(--pine); }
.split.is-negative + .split__legend .k--left { background: var(--wine); }
.receipt__warn { margin-top: 12px; color: var(--wine); font-weight: 600; font-size: .9375rem; }

.calc__after {
  font: 400 italic clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.35 var(--serif);
  color: var(--gold-soft);
  max-width: 30em;
  padding-top: 26px; border-top: 1px solid rgba(212, 188, 143, .28);
}

/* =========================================================
   4. OFERTA
   ========================================================= */
.offer { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.offer__grid { display: grid; gap: 40px; }
.offer__visual { position: relative; height: clamp(380px, 110vw, 520px); }
.offer__visual::before { /* luz quente atrás da composição */
  content: ""; position: absolute; inset: 6% 0 10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 214, 150, .45), transparent 70%);
}
.offer__cover {
  position: absolute; left: 4%; top: 6%;
  width: 52%; aspect-ratio: 560 / 989;
  transform: rotate(-5deg);
  border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: -6px 0 0 -2px #0f261f, 0 2px 3px rgba(0,0,0,.2), 18px 28px 40px -18px rgba(40, 20, 5, .55);
}
.offer__cover img { width: 100%; height: 100%; object-fit: cover; }
.offer__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.08) 5%, transparent 14%); }
.phone {
  position: absolute; right: 2%; bottom: 7%;
  width: 46%; max-width: 250px; aspect-ratio: 9 / 18.6;
  padding: 7px; border-radius: 34px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow: 0 0 0 1.5px #3a3a3a inset, 24px 34px 50px -20px rgba(30, 15, 5, .6);
  transform: rotate(4deg);
}
.phone__screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: rgb(22, 62, 53); }
.phone__screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.phone__status {
  position: absolute; z-index: 2; inset: 0 0 auto; height: 26px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 .625rem/1 var(--sans); color: #fff; letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent);
}
.phone__notch { width: 34%; height: 16px; border-radius: 10px; background: #0b0b0b; }
.phone__story-bar { position: absolute; z-index: 2; top: 30px; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); }
.phone__story-bar i { display: block; width: 42%; height: 100%; border-radius: 2px; background: #fff; }
.offer__visual-note { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: .75rem; color: var(--muted); }

.offer h2 { max-width: 13em; text-wrap: balance; }
.items { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; counter-reset: it; }
.item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item__icon { width: 34px; height: 34px; color: var(--wine); margin-top: 2px; }
.item h3 { font: 500 1.3125rem/1.2 var(--serif); }
.item p { margin-top: 4px; color: #50443a; font-size: 1rem; }

.buy {
  margin-top: 30px; padding: 26px clamp(20px, 3vw, 30px) 22px;
  background: var(--pine); color: var(--paper); border-radius: var(--radius);
  display: grid; gap: 14px;
  position: relative;
}
.buy::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(212, 188, 143, .3); border-radius: 3px; pointer-events: none; }
.buy__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy__value { font: 400 clamp(2.75rem, 2rem + 3vw, 3.5rem)/1 var(--serif); }
.buy__terms { font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-soft); }
.buy__terms::before { content: "·"; margin-right: 10px; color: var(--gold-soft); }
.buy .micro { color: rgba(251, 247, 239, .7); text-align: center; }
.buy .btn { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); }
.faq__grid { display: grid; gap: 22px; }
.faq h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font: 500 1.25rem/1.3 var(--serif);
  -webkit-tap-highlight-color: transparent;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
details p { padding: 0 0 20px; color: #4a3e34; max-width: 40em; }

/* ---------- Rodapé ---------- */
.footer { background: var(--pine-deep); color: rgba(251, 247, 239, .7); padding: 36px 0 calc(36px + var(--safe-b)); font-size: .875rem; }
.footer__in { display: grid; gap: 8px; }
.footer__brand { font: 400 1.375rem/1 var(--serif); color: var(--paper); }
.footer__brand em { color: var(--gold-soft); }

/* ---------- CTA fixo (celular) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(251, 247, 239, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -18px rgba(40, 20, 5, .4);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; }
.sticky-buy__txt { display: grid; line-height: 1.1; }
.sticky-buy__txt strong { font: 500 1.5rem/1 var(--serif); }
.sticky-buy__txt span { font-size: .75rem; color: var(--muted); }
.sticky-buy .btn { min-height: 52px; padding: 0 20px; font-size: 1rem; flex: 1; max-width: 270px; }
body.has-sticky .footer { padding-bottom: calc(110px + var(--safe-b)); }

/* =========================================================
   AMOSTRA (dialog + folhear pela lombada)
   ========================================================= */
.sample {
  --pw: min(86vw, calc((100dvh - 190px) * .566), 380px);
  --ph: calc(var(--pw) * 1.766);
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--paper);
  overflow: hidden;
}
.sample::backdrop { background: rgba(14, 30, 24, .95); backdrop-filter: blur(4px); }
.sample[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sample__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 6px 20px;
}
.sample__title { font: 400 1.125rem/1 var(--serif); color: var(--gold-soft); white-space: nowrap; }
@media (max-width: 759px) { .sample__title .long { display: none; } }
.sample__count { font-size: .875rem; color: rgba(251,247,239,.75); text-align: center; white-space: nowrap; }
.sample__close {
  justify-self: end;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(251,247,239,.1); color: var(--paper); cursor: pointer;
  transition: background-color .2s, transform .14s var(--ease);
}
.sample__close:hover { background: rgba(251,247,239,.18); }
.sample__close:active { transform: scale(.92); }

.sample__stage {
  display: grid; place-items: center;
  perspective: 2200px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.flip {
  position: relative; width: var(--pw); height: var(--ph);
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-turn);
}
.flip__base, .leaf { position: absolute; inset: 0; }
.flip__base {
  background: var(--paper); color: var(--ink);
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 14px 0 18px -14px rgba(60, 40, 20, .35);
  display: grid; place-items: center; text-align: center;
  padding: 10%;
}
.last { display: grid; justify-items: center; gap: 12px; }
.last .kicker { margin: 0; }
.last__title { font: 400 clamp(1.5rem, 5vw, 1.9rem)/1.12 var(--serif); }
.last__text { color: var(--muted); font-size: .9375rem; }
.last .btn { margin-top: 8px; min-height: 52px; padding: 0 22px; font-size: 1rem; }
.last .micro { font-size: .8125rem; }

.leaf {
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  transition: transform .9s var(--ease-turn), opacity .2s linear;
}
.leaf.is-turned { transform: rotateY(-180deg); }
.leaf__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); color: var(--ink);
  overflow: hidden;
}
.leaf__front { border-radius: 2px 4px 4px 2px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.leaf__front::after { /* curvatura junto à lombada */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 40, 20, .22), rgba(60,40,20,0) 7%);
}
.leaf__front img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leaf__front--cover::after { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.1) 3%, transparent 9%); }
.leaf__front--crop { background: #f7f1e6; }
.leaf__front--crop img { height: auto; }
.crop-note {
  position: absolute; left: 9%; right: 9%; bottom: 7%;
  font: 400 italic .9375rem/1.4 var(--serif); color: var(--wine);
  text-align: center;
}
.leaf__back {
  transform: rotateY(180deg);
  border-radius: 4px 2px 2px 4px;
  background: linear-gradient(270deg, #e6dac4, var(--paper) 10%);
  display: grid; place-items: center; padding: 14%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.leaf__back--end { background: var(--pine-deep); color: var(--gold-soft); }
.endpaper { display: grid; justify-items: center; text-align: center; font: 400 2rem/1.05 var(--serif); }
.endpaper em { color: var(--paper); }
.endpaper small { margin-top: 14px; font: 700 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.leaf__note { font: 400 1.125rem/1.45 var(--serif); color: #4a3e34; text-align: center; }
.leaf__note-k { display: block; margin-bottom: 10px; font: 700 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }

.sample__ctl {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom));
}
.ctl {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 128px; min-height: 56px; padding: 0 20px; justify-content: center;
  border: 1px solid rgba(251,247,239,.25); border-radius: 999px;
  background: rgba(251,247,239,.06); color: var(--paper); cursor: pointer;
  font-weight: 600; font-size: 1rem;
  transition: background-color .2s, opacity .2s, transform .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ctl:hover { background: rgba(251,247,239,.14); }
.ctl:active { transform: scale(.95); }
.ctl:disabled { opacity: .35; cursor: default; transform: none; }
.ctl--next { background: var(--paper); color: var(--pine); border-color: var(--paper); }
.ctl--next:hover { background: #fff; }
.dots { display: flex; gap: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,247,239,.3); transition: background-color .3s, transform .3s; }
.dots i.on { background: var(--gold-soft); transform: scale(1.2); }

/* Celular: página única; a folha virada some depois de passar da lombada */
@media (max-width: 759px) {
  .leaf.is-turned { opacity: 0; transition: transform .9s var(--ease-turn), opacity .25s linear .5s; }
  .ctl { min-width: 0; flex: 1; max-width: 170px; }
}
/* Desktop: o livro aberto se centraliza em página dupla */
@media (min-width: 760px) {
  .sample { --pw: min(40vw, calc((100dvh - 190px) * .566), 400px); }
  .flip.is-open { transform: translateX(calc(var(--pw) / 2)); }
}

/* ---------- Faixa de prévia e aviso ---------- */
.preview-flag {
  position: relative; z-index: 31;
  padding: 8px var(--gutter); text-align: center;
  background: #fff4c7; color: #5a4300; border-bottom: 1px solid #e6cf73;
  font: 600 .8125rem/1.35 var(--sans);
}
.preview-flag code { font-size: .8125rem; background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 3px; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 80;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: .9375rem;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 960px) {
  .topbar__in { height: 68px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center; gap: 40px;
    min-height: min(calc(100vh - 68px), 760px);
    padding-top: 30px; padding-bottom: 50px;
  }
  .scene { --bw: clamp(210px, 18.5vw, 262px); height: min(640px, calc(100vh - 140px)); min-height: 540px; margin: 0; }
  .scene__photo { left: 22%; right: 0; top: 4%; bottom: 15%; border-radius: var(--radius); }
  .scene__photo::before { /* filete dourado deslocado */
    content: ""; position: absolute; inset: 14px; z-index: 1; border: 1px solid rgba(212, 188, 143, .45); border-radius: 3px; pointer-events: none;
  }
  .book-stage { left: 0; bottom: 6%; }

  .recipes__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .dish__stage { margin: 0; border-radius: var(--radius); }
  .dish__nav { opacity: 0; transition: opacity .25s, transform .14s var(--ease); }
  .dish__stage:hover .dish__nav, .dish__nav:focus-visible { opacity: 1; }
  .flavors {
    order: 0; flex-direction: column; gap: 0; overflow: visible;
    margin: 0; padding: 0; border-top: 1px solid var(--line);
    position: sticky; top: 100px;
  }
  .flavor {
    position: relative;
    min-height: 0; padding: 18px 8px 18px 20px; gap: 18px;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: none; font-weight: 400;
  }
  .flavor::before {
    content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px;
    background: var(--wine); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
  }
  .flavor__n { font-size: 1rem; width: 1.6em; }
  .flavor__name { white-space: normal; font: 400 1.375rem/1.2 var(--serif); transition: transform .3s var(--ease); }
  .flavor:hover .flavor__name { transform: translateX(4px); }
  .flavor[aria-selected="true"] { background: none; color: var(--ink); }
  .flavor[aria-selected="true"]::before { transform: scaleY(1); }
  .flavor[aria-selected="true"] .flavor__n { color: var(--wine); }
  .flavor[aria-selected="true"] .flavor__name { font-style: italic; color: var(--wine); }
  .flavor:active { transform: none; }
  .dish__caption { display: grid; grid-template-columns: auto 1fr; column-gap: 32px; padding-top: 22px; min-height: 0; }
  .dish__count { grid-column: 1 / -1; }
  .dish__name { grid-column: 1 / -1; }
  .dish__text { grid-column: 1; max-width: 30em; }
  .dish__meta { grid-column: 2; align-self: end; justify-self: end; text-align: right; }

  .calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; }
  .calc__after { grid-column: 1 / -1; }

  .offer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .offer__visual { height: 600px; position: sticky; top: 90px; }
  .offer__cover { width: 50%; left: 2%; top: 4%; }
  .phone { width: 44%; right: 6%; bottom: 8%; }

  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; }
  .sticky-buy { display: none; }
  body.has-sticky .footer { padding-bottom: 36px; }
  .toast { bottom: 32px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .book, .book__cover, .dish__img, .dish__caption > *, .split__seg, .flip, .leaf, .sticky-buy { transition-duration: .01ms !important; }
  .dish__img { transform: none !important; }
}

/* =========================================================
   NATAL ANIMADO: neve, luzes e entradas
   ========================================================= */
/* Neve: canvas fixo por cima do fundo, sem bloquear cliques */
.snow {
  position: fixed; inset: 0; z-index: 25;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 1; transition: opacity .6s var(--ease);
}
.snow.is-paused { opacity: 0; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.snow-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--pine); cursor: pointer;
  transition: background-color .2s, color .2s, transform .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.snow-toggle:hover { background: #fff; }
.snow-toggle:active { transform: scale(.92); }
.snow-toggle svg { transition: transform .8s var(--ease); }
.snow-toggle[aria-pressed="true"] svg { animation: spin 14s linear infinite; }
.snow-toggle[aria-pressed="false"] { color: var(--muted); }
.snow-toggle[aria-pressed="false"]::after {
  content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor; transform: rotate(-45deg);
}
.snow-toggle { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Luzes quentes desfocadas sobre a foto */
.bokeh { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bokeh i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 160, .95), rgba(255, 196, 110, .35) 45%, transparent 70%);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: twinkle 3.6s ease-in-out var(--d) infinite alternate;
  opacity: .25;
}
@keyframes twinkle {
  0% { opacity: .2; transform: scale(.85); }
  100% { opacity: .95; transform: scale(1.12); }
}

/* Entrada da primeira tela */
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .12s; }
.hero__copy > :nth-child(3) { animation-delay: .22s; }
.hero__copy > :nth-child(4) { animation-delay: .32s; }
.hero__copy > :nth-child(5) { animation-delay: .4s; }
/* só movimento, sem esconder: o texto já aparece no primeiro quadro */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

.scene__photo { animation: photoIn 1.1s var(--ease) .1s both; }
@keyframes photoIn { from { transform: scale(1.05); } to { transform: none; } }
.book-hint { animation: hintPulse 2.4s ease-in-out 1.6s infinite; }
@keyframes hintPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Reflexo de luz passando pela capa */
.book__sheen::after {
  content: ""; position: absolute; inset: -10% auto -10% 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 245, 220, .38), transparent);
  transform: translateX(-160%) skewX(-12deg);
  animation: sheen 7s ease-in-out 2s infinite;
}
@keyframes sheen { 0% { transform: translateX(-160%) skewX(-12deg); } 22%, 100% { transform: translateX(330%) skewX(-12deg); } }

/* Brilho nos botões de compra */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: shine 4.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes shine { 0% { transform: translateX(-130%) skewX(-18deg); } 25%, 100% { transform: translateX(320%) skewX(-18deg); } }

/* Composição da oferta flutua de leve */
.phone { animation: floatPhone 6s ease-in-out infinite alternate; }
.offer__cover { animation: floatCover 7s ease-in-out infinite alternate; }
@keyframes floatPhone { from { transform: rotate(4deg) translateY(0); } to { transform: rotate(3deg) translateY(-10px); } }
@keyframes floatCover { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(-4deg) translateY(-6px); } }

/* Aparecer ao rolar (só com JS; sem JS tudo já aparece) */
/* começa já legível (opacidade .55): mesmo que a transição não rode, o texto continua visível */
html.js [data-reveal] {
  opacity: .55; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Calculadora: brilho quando o resultado muda de sinal já existe (bump); destaque suave do valor */
.row--total dd { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
  .snow-toggle { display: none; }
  .bokeh i, .hero__copy > *, .scene__photo, .book-hint, .book__sheen::after,
  .btn--primary::after, .phone, .offer__cover, .snow-toggle svg { animation: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   TEMA NOITE DE NATAL — fundo azul, céu, luzes e neve
   ========================================================= */
:root {
  --night: #081a33;
  --night-2: #0d2647;
  --night-3: #143866;
  --frost: #dce9f8;
  --snowfx: #f4f8fd;
  --gold-hi: #ecd29b;
  --text-on-night: #f5efe4;
  --soft-on-night: rgba(245, 239, 228, .8);
  --mute-on-night: rgba(245, 239, 228, .64);
  --line: rgba(220, 233, 248, .16);
}
body { background: var(--night); color: var(--text-on-night); }
:focus-visible { outline-color: var(--gold-hi); }
.kicker { color: var(--gold-hi); }
.micro { color: var(--mute-on-night); }

/* Topo */
.topbar { background: rgba(8, 26, 51, .82); }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.brand__name { color: var(--text-on-night); }
.brand__name em { color: var(--gold-hi); }
.brand__mark { background: #0f4a39; box-shadow: 0 0 0 1px rgba(236, 210, 155, .35); }
.topbar .btn--small { --bg: var(--gold-hi); color: var(--night); }
.topbar .btn--small:hover { background: #f5e2b8; }
.snow-toggle { background: rgba(255,255,255,.07); color: var(--frost); border-color: var(--line); }
.snow-toggle:hover { background: rgba(255,255,255,.14); }
.snow-toggle[aria-pressed="false"] { color: var(--mute-on-night); }

/* Primeira tela: céu noturno */
.hero {
  background:
    radial-gradient(70% 55% at 78% 30%, rgba(255, 196, 120, .18), transparent 65%),
    radial-gradient(90% 70% at 20% 0%, #1b467c 0%, transparent 60%),
    linear-gradient(180deg, #071630 0%, #0c2547 55%, #14386a 100%);
}
.hero::before { background: radial-gradient(closest-side, rgba(255, 200, 130, .22), rgba(255, 200, 130, 0)); }
.hero__grid { z-index: 2; padding-top: 64px; padding-bottom: 56px; }
.hero__title { color: var(--text-on-night); text-shadow: 0 2px 24px rgba(4, 12, 28, .45); }
.hero__title em { color: var(--gold-hi); }
.hero__lead { color: var(--soft-on-night); }
.link-btn { color: var(--frost); text-decoration-color: rgba(220, 233, 248, .4); text-shadow: 0 1px 10px rgba(4, 12, 28, .6); }
.link-btn:hover { color: var(--gold-hi); }
.btn--primary { --bg: #a3233a; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 28px -10px rgba(200, 40, 70, .55); }
.btn--primary:hover { background: #8a1c30; }
.scene__photo { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(236, 210, 155, .18); }
.book-stage::before { background: radial-gradient(60% 50% at 40% 50%, rgba(255, 255, 255, .55), transparent 70%); }
.book-shadow { background: radial-gradient(50% 50% at 50% 50%, rgba(10, 25, 50, .6), rgba(10, 25, 50, .22) 55%, rgba(10, 25, 50, 0) 75%); }
.book-shadow::after { background: radial-gradient(50% 50% at 40% 50%, rgba(10, 25, 50, .32), transparent 75%); }

/* Estrelas */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0 0 30% 0;
  background-repeat: repeat;
}
.sky::before {
  background-image:
    radial-gradient(1.4px 1.4px at 18px 26px, #fff, transparent),
    radial-gradient(1px 1px at 96px 70px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 160px 18px, #fff8dd, transparent),
    radial-gradient(1px 1px at 210px 120px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 60px 150px, #dfe9ff, transparent);
  background-size: 240px 180px;
  animation: stars 4.5s ease-in-out infinite alternate;
}
.sky::after {
  background-image:
    radial-gradient(1.2px 1.2px at 40px 90px, #fff, transparent),
    radial-gradient(1.8px 1.8px at 140px 40px, #ffeec2, transparent),
    radial-gradient(1px 1px at 250px 140px, #fff, transparent),
    radial-gradient(1.3px 1.3px at 300px 60px, #e3edff, transparent);
  background-size: 330px 210px;
  animation: stars 6s ease-in-out 1.5s infinite alternate-reverse;
}
@keyframes stars { from { opacity: .35; } to { opacity: 1; } }

/* Varal de luzes */
.garland { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 64px; pointer-events: none; overflow: visible; }
.garland__wire { fill: none; stroke: #1f3a2e; stroke-width: 2.4; }
.bulb { animation: bulb 2.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 5px currentColor); }
@keyframes bulb { 0% { opacity: .38; } 100% { opacity: 1; } }

/* Chão de neve com pinheiros */
.ground { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 160px; pointer-events: none; }
#tree-s .tl, .ground .tl { animation: bulb 1.8s ease-in-out var(--dl, 0s) infinite alternate; }

/* Receitas */
.recipes { position: relative; background: linear-gradient(180deg, #14386a 0%, #0f2c55 100%); overflow: hidden; }
.recipes > .wrap { position: relative; z-index: 2; }
.recipes h2 { color: var(--text-on-night); }
.recipes__intro { color: var(--soft-on-night); }
.dish__stage { background: #0b2242; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.dish__count { color: var(--gold-hi); }
.dish__name { color: var(--text-on-night); }
.dish__text { color: var(--soft-on-night); }
.dish__meta { color: var(--mute-on-night); }
.flavor { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--text-on-night); }
.flavor__n { color: var(--gold-hi); }
.flavor[aria-selected="true"] { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.flavor[aria-selected="true"] .flavor__n { color: #8a1c30; }

/* Enfeites pendurados */
.ornaments { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 1; pointer-events: none; }
.orn {
  position: absolute; top: 0; left: var(--x);
  width: var(--s); margin-left: calc(var(--s) / -2);
  transform-origin: 50% 0;
  animation: swing 3.6s ease-in-out var(--d) infinite alternate;
}
.orn::before { content: ""; display: block; width: 1.5px; height: var(--l); margin: 0 auto; background: linear-gradient(var(--gold-hi), rgba(236,210,155,.6)); }
.orn i {
  position: relative; display: block; width: var(--s); height: var(--s); margin-top: 6px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,0) 18%),
    repeating-linear-gradient(0deg, transparent 0 40%, rgba(255,255,255,.18) 40% 46%, transparent 46% 100%),
    radial-gradient(circle at 40% 35%, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.6), 0 0 16px -2px var(--c1);
}
.orn i::before {
  content: ""; position: absolute; left: 50%; top: -7px; width: 30%; height: 8px; transform: translateX(-50%);
  background: linear-gradient(90deg, #9b7434, var(--gold-hi), #9b7434); border-radius: 2px;
}
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* Calculadora: neve acumulada no topo */
.calc { position: relative; }
.calc::before, .offer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 30px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v10c-14 0-16 14-30 14s-14-9-28-9-16 15-32 15-14-12-30-12-14 8-28 8-16-11-30-11S48 22 32 22 14 12 0 12z' fill='%23f4f8fd'/%3E%3C/svg%3E") repeat-x;
  background-size: 240px 30px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.18));
}

/* Oferta */
.offer { position: relative; background: linear-gradient(180deg, #0d2647 0%, #0a1f3c 100%); overflow: hidden; }
.offer > .wrap { position: relative; z-index: 2; }
.offer h2 { color: var(--text-on-night); }
.offer__visual::before { background: radial-gradient(50% 50% at 50% 50%, rgba(255, 200, 130, .28), transparent 70%); }
.offer__visual-note { color: var(--mute-on-night); }
.item h3 { color: var(--text-on-night); }
.item p { color: var(--soft-on-night); }
.item__icon { color: var(--gold-hi); }
.buy { background: linear-gradient(160deg, #0f4a39, #0b3a2d); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.buy::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: -10px; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22' preserveAspectRatio='none'%3E%3Cpath d='M0 10C8 2 18 4 26 8s14-6 24-4 14 8 24 6 12-8 22-6 16 6 24 6v12H0z' fill='%23f4f8fd'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 22px;
  border-radius: 8px 8px 0 0;
}
.offer-gifts { position: absolute; z-index: 3; left: 0; bottom: 6%; width: 46%; max-width: 230px; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }

/* FAQ com a árvore */
.faq { position: relative; background: linear-gradient(180deg, #0a1f3c 0%, #081a33 100%); }
.faq h2 { color: var(--text-on-night); }
.faq__side { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.xmas-tree { width: 120px; height: auto; margin-bottom: -8px; }
.xmas-tree .bl { animation: bulb 1.7s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px currentColor); }
.xmas-tree .bb { animation: bauble 3s ease-in-out infinite alternate; }
.xmas-tree .star { transform-origin: 104px 34px; animation: starPulse 2.6s ease-in-out infinite; }
.xmas-tree .star-glow { transform-origin: 104px 34px; animation: glow 2.6s ease-in-out infinite; }
@keyframes bauble { from { opacity: .82; } to { opacity: 1; } }
@keyframes starPulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(8deg); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
summary { color: var(--text-on-night); }
summary::after { border-color: var(--gold-hi); }
details p { color: var(--soft-on-night); }
details p strong { color: var(--text-on-night); }

/* Rodapé */
.footer { background: #050f20; }
.footer__brand em { color: var(--gold-hi); }

/* CTA fixo */
.sticky-buy { background: rgba(8, 26, 51, .95); border-top-color: var(--line); box-shadow: 0 -14px 30px -16px rgba(0,0,0,.6); }
.sticky-buy__txt strong { color: var(--text-on-night); }
.sticky-buy__txt span { color: var(--mute-on-night); }

/* Amostra */
.sample::backdrop { background: rgba(5, 14, 30, .95); }

@media (min-width: 960px) {
  .hero__grid { padding-top: 96px; padding-bottom: 70px; }
  .hero__copy { padding-bottom: 24px; }
  .garland { height: 96px; }
  .ground { height: 180px; }
  .faq__side { display: block; }
  .xmas-tree { display: block; width: min(260px, 100%); margin: 28px 0 0; }
}
@media (max-width: 959px) {
  .orn::before { height: calc(var(--l) * .55); }
  .recipes .orn { --s: 22px; }
  .recipes .orn:nth-child(1) { left: 78%; }
  .recipes .orn:nth-child(2) { left: 88%; }
  .recipes .orn:nth-child(3) { left: 96%; }
  .recipes__head { padding-right: 12%; }
  .offer .orn { --s: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky::after, .bulb, .ground .tl, #tree-s .tl, .orn,
  .xmas-tree .bl, .xmas-tree .bb, .xmas-tree .star, .xmas-tree .star-glow { animation: none !important; }
  .bulb { opacity: 1; }
}

/* Desempenho em celulares: sem filtros caros sobre a neve em movimento */
@media (max-width: 959px), (pointer: coarse) {
  .bulb, .xmas-tree .bl { filter: none; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 26, 51, .96); }
  .sticky-buy { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 26, 51, .98); }
  .sample::backdrop { backdrop-filter: none; }
}

/* =========================================================
   ACABAMENTO ARTESANAL — caderno de confeitaria
   Papel, fita adesiva, anotações à mão. Menos efeito, mais matéria.
   ========================================================= */
:root { --hand: "Caveat", "Segoe Print", cursive; --kraft: #c9a27a; --tape: rgba(238, 228, 204, .82); }

/* grão de papel sobre a página inteira */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 24; pointer-events: none;
  opacity: .045; /* sem mix-blend-mode: mais leve para o celular */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* rótulos escritos à mão no lugar das etiquetas em caixa alta */
.kicker {
  display: inline-block;
  font: 600 1.5rem/1.1 var(--hand); letter-spacing: 0; text-transform: none;
  color: var(--gold-hi);
  transform: rotate(-1.5deg); transform-origin: 0 50%;
  margin-bottom: 10px;
}
.flip__base .kicker { color: var(--wine); }
.price-ctl__label { font: 600 1.35rem/1 var(--hand); letter-spacing: 0; text-transform: none; }

/* sem brilho artificial */
.hero__title { text-shadow: none; }
.btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 8px 18px -10px rgba(0, 0, 0, .55); }
.btn--primary::after, .book__sheen::after { display: none; }
.phone, .offer__cover, .scene__photo, .book-hint, .snow-toggle svg { animation: none !important; }
.calc::before, .offer::before { display: none; }

/* fotos como cópias impressas, presas com fita */
.scene__photo {
  border: 9px solid #f3eee4; border-radius: 2px;
  transform: rotate(1.4deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 30px 50px -26px rgba(0, 0, 0, .75);
}
.scene__photo::before { display: none; }
.scene__photo::after { background: linear-gradient(0deg, rgba(20, 12, 6, .3), transparent 32%); }
.scene__photo img, .dish__img { filter: saturate(.9) contrast(1.03) brightness(.98); }
.scene__photo figcaption { font: 500 1.05rem/1 var(--hand); letter-spacing: 0; color: rgba(255, 250, 240, .9); }

.tape {
  position: absolute; z-index: 4; width: 96px; height: 26px; pointer-events: none;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  clip-path: polygon(2% 8%, 9% 0, 17% 10%, 26% 2%, 38% 9%, 51% 0, 63% 8%, 74% 1%, 86% 9%, 95% 2%, 100% 12%, 98% 92%, 90% 100%, 79% 91%, 66% 100%, 53% 92%, 41% 100%, 29% 91%, 17% 100%, 7% 92%, 0 100%);
}
.tape--h1 { left: calc(26% - 34px); top: -9px; transform: rotate(-30deg); }
.tape--h2 { display: none; }
.tape--dish { display: none; }
.tape--receipt { left: 50%; top: 0; transform: translateX(-50%) rotate(-2deg); }

/* nota à mão apontando o livro */
/* fica acima do livro, no espaço livre à esquerda da foto, com a seta apontando para baixo */
.book-hint {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 0;
  left: calc(var(--bw) * .02); bottom: calc(var(--bw) * 1.766 + 8px);
  width: 4.6em; white-space: normal;
  padding: 0; background: none; border-radius: 0;
  font: 600 1.35rem/1 var(--hand); letter-spacing: 0; color: var(--frost);
  transform: rotate(-5deg);
}
.book-hint svg { margin: 2px 0 0 18px; }
.book-hint .t-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .book-hint .t-mouse { display: inline; }
  .book-hint .t-touch { display: none; }
}

/* receitas */
.dish__tag { font: 500 1.05rem/1 var(--hand); letter-spacing: 0; }

/* ficha de conta: papel pautado, serrilhado embaixo, carimbo */
.receipt {
  background-color: #f6f1e7;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(70, 100, 150, .13) 33px 34px);
  border-radius: 2px;
  padding-bottom: calc(clamp(22px, 3vw, 34px) + 10px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
}
.receipt::before { display: none; }
.receipt__badge {
  border: 2px solid rgba(122, 34, 50, .7); border-radius: 3px;
  padding: 5px 9px; letter-spacing: .14em;
  transform: rotate(-6deg); opacity: .82;
}
.receipt-wrap { position: relative; }

/* números escritos à mão nos itens da oferta */
.item { grid-template-columns: 34px 1fr; }
.item__n { font: 600 2.5rem/.85 var(--hand); color: var(--gold-hi); }

/* caixa de compra como cartão de papel */
.buy { background: #f5efe4; color: var(--ink); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 30px 50px -28px rgba(0,0,0,.8); border-radius: 3px; }
.buy::before { display: none; }
.buy::after {
  content: ""; position: absolute; left: 50%; top: -13px; right: auto; width: 110px; height: 26px;
  transform: translateX(-50%) rotate(2deg); border-radius: 0;
  background: var(--tape); box-shadow: 0 1px 2px rgba(0,0,0,.22);
  clip-path: polygon(2% 8%, 9% 0, 17% 10%, 26% 2%, 38% 9%, 51% 0, 63% 8%, 74% 1%, 86% 9%, 95% 2%, 100% 12%, 98% 92%, 90% 100%, 79% 91%, 66% 100%, 53% 92%, 41% 100%, 29% 91%, 17% 100%, 7% 92%, 0 100%);
}
.buy__value { color: var(--ink); }
.buy__terms, .buy__terms::before { color: var(--wine); }
.buy .micro { color: var(--muted); }

/* etiquetas de papel kraft penduradas */
.tags { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 1; pointer-events: none; }
.tag {
  position: absolute; top: 0; left: var(--x);
  transform-origin: 50% 0; transform: translateX(-50%) rotate(var(--r));
  animation: tagSway 6s ease-in-out var(--d) infinite alternate;
}
.tag::before { content: ""; display: block; width: 1.5px; height: var(--l); margin: 0 auto; background: #d8c6a2; }
.tag b {
  display: block; white-space: nowrap;
  margin-top: -2px; padding: 24px 14px 10px;
  background:
    radial-gradient(circle at 50% 11px, #0d2647 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 11px, #efe3c8 0 6.5px, transparent 7px),
    linear-gradient(180deg, #d1ab83, var(--kraft));
  color: #3b2a1b; font: 600 1.4rem/1 var(--hand);
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
}
@keyframes tagSway {
  from { transform: translateX(-50%) rotate(calc(var(--r) - 2.5deg)); }
  to { transform: translateX(-50%) rotate(calc(var(--r) + 2.5deg)); }
}

/* luzinhas quentes */
.garland { height: 56px; }
.garland__wire { stroke: #24382f; stroke-width: 1.3; }
.fl { animation: fairy 3.4s ease-in-out infinite alternate; }
@keyframes fairy { from { opacity: .55; } to { opacity: 1; } }

/* árvore de papel */
.xmas-tree { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); }

@media (min-width: 960px) {
  .garland { height: 80px; }
  .tape--h1 { left: calc(22% - 38px); top: calc(4% - 10px); }
  .tape--h2 { display: block; right: -22px; top: calc(4% - 6px); transform: rotate(32deg); }
  .dish { position: relative; }
  .dish__stage { border: 8px solid #f3eee4; border-radius: 2px; transform: rotate(-.5deg); box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 30px 50px -28px rgba(0,0,0,.75); }
  .tape--dish { display: block; left: 50%; top: -12px; transform: translateX(-50%) rotate(1.5deg); }
  .receipt { transform: rotate(.7deg); }
}
@media (max-width: 959px) {
  .tag::before { height: calc(var(--l) * .5); }
  .recipes .tag:nth-child(1) { left: 84%; }
  .recipes .tag:nth-child(2) { display: none; }
  .offer .tag { left: 18%; }
  .tag b { font-size: 1.2rem; padding: 22px 11px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .tag, .fl { animation: none !important; }
}

/* nota do livro no celular: ao lado direito do livro, abaixo da foto, seta apontando para ele */
@media (max-width: 959px) {
  .book-hint {
    flex-direction: row; align-items: center; gap: 4px;
    width: auto; white-space: nowrap;
    left: calc(var(--bw) * 1.2); bottom: -6px;
    font-size: 1.3rem; transform: rotate(-3deg);
  }
  .book-hint svg { order: -1; width: 28px; height: 30px; margin: 0; transform: rotate(90deg); }
}
