/* =========================================================
   O Baú do Corvo — Landing page (produto digital)
   Direção: Dark Western Gothic
   ========================================================= */

:root {
  --ink: #0b0908;
  --coal: #14100e;
  --smoke: #1d1714;
  --line: #3a2e28;
  --bone: #f1e6d0;
  --bone-dim: #cfc1a6;
  --paper: #e6d6b4;
  --paper-ink: #1a120e;
  --red: #D62424;
  --red-hot: #e83a35;
  --red-deep: #6e0f0f;
  --red-paper: #9e1a1a;
  --amber: #e08a3a;
  --amber-light: #f0a06a;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Source Serif 4', Georgia, serif;
  --f-ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.1vw + 14px, 20px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* grão de filme sobre a página inteira */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' 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");
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 12vw, 5.8rem); font-weight: 800; }
h2 { font-size: clamp(2.3rem, 8vw, 4rem); }
h3 { font-size: clamp(1.55rem, 3vw, 1.9rem); line-height: 1.05; }

h1 em, h2 em {
  font-style: normal;
  color: var(--red);
}

.eyebrow {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--bone); }
.lead strong { color: #fff; }

/* ---------- Botões ---------- */
.btn {
  --lift: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 56px;
  padding: 14px 30px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  color: #fff8ea;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  border: 2px solid var(--amber-light);
  border-radius: var(--radius);
  box-shadow: 0 var(--lift) 0 var(--red-deep), 0 14px 30px rgba(214, 36, 36, .3);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(var(--lift)); box-shadow: 0 0 0 var(--red-deep), 0 6px 14px rgba(214, 36, 36, .3); }

.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 1.1rem; --lift: 3px; }
.btn--xl { min-height: 68px; padding: 18px 40px; font-size: clamp(1.4rem, 3.4vw, 1.7rem); }
.btn--block { display: flex; width: 100%; }
.btn--dark {
  background: linear-gradient(180deg, #2a1e19, #150f0d);
  border-color: var(--red);
  color: var(--bone);
  box-shadow: 0 var(--lift) 0 #000, 0 14px 30px rgba(0, 0, 0, .3);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 5px 0 var(--red-deep), 0 14px 30px rgba(214, 36, 36, .3), 0 0 0 0 rgba(214, 36, 36, .55); }
  60%      { box-shadow: 0 5px 0 var(--red-deep), 0 14px 30px rgba(214, 36, 36, .3), 0 0 0 16px rgba(214, 36, 36, 0); }
}
.btn--pulse { animation: pulse 2.8s ease-out infinite; }
.btn--pulse:hover, .btn--pulse:active { animation: none; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 8, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  min-height: 64px;
}

.brand {
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 64px), 880px);
  /* cor de reserva enquanto a imagem não carrega */
  background:
    radial-gradient(90% 60% at 60% 25%, rgba(110, 15, 15, .45), transparent 70%),
    var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("publico/bau.jpg") center 30% / cover no-repeat;
}
/* escurece a parte de baixo para o texto ficar legível */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 9, 8, .45) 0%,
    rgba(11, 9, 8, 0) 18%,
    rgba(11, 9, 8, .3) 30%,
    rgba(11, 9, 8, .85) 50%,
    var(--ink) 88%);
}
.hero__copy {
  padding-top: clamp(170px, 30vh, 420px);
  padding-bottom: clamp(36px, 7vw, 88px);
}
.hero__copy h1 { margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero__copy .lead { max-width: 32em; }

.hero__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.buyline {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.buyline b { color: #fff; font-weight: 700; }
.buyline span { color: var(--red); margin-inline: .25em; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 9vw, 116px); }
.sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.icon {
  width: 52px; height: 52px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 2. O que tem no Baú ---------- */
.inside { background: linear-gradient(180deg, var(--ink), var(--smoke)); overflow: hidden; }
.blocks { display: grid; gap: 18px; }
.block {
  padding: clamp(24px, 4vw, 38px);
  background: var(--coal);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}
.block h3 { margin: 14px 0 10px; }
.block h3 span { color: var(--red); }
.block p { color: var(--bone-dim); }

/* ---------- 3. Pra quando... ---------- */
.when {
  position: relative;
  text-align: center;
  background:
    linear-gradient(180deg, var(--smoke), rgba(11, 9, 8, .8) 25%, rgba(11, 9, 8, .8) 75%, var(--ink)),
    url("publico/corvo-lua-1200.jpg") center / cover no-repeat,
    var(--ink);
}
.when__line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 8.4vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--bone);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
}
.when__line + .when__line { margin-top: .45em; }
.when__line--hot { color: var(--red); }

/* ---------- 4. Como funciona (papel envelhecido) ---------- */
.paper {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, #efe1c1, transparent 70%),
    var(--paper);
  color: var(--paper-ink);
}
.paper h2 { color: var(--paper-ink); }
.paper .eyebrow { color: var(--red-paper); }
.paper::before, .paper::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, var(--paper) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, var(--paper) 25%, transparent 25%) 0 0 / 28px 28px;
}
.paper::before { top: -13px; transform: scaleY(-1); }
.paper::after  { bottom: -13px; }

.steps { display: grid; gap: 26px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step__n {
  flex: none;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--paper);
  background: var(--red-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--red-paper);
}
.step h3 { margin-bottom: 6px; color: var(--paper-ink); }
.step p { color: #3a2c22; }

.how__note {
  max-width: 34em;
  margin: clamp(32px, 5vw, 48px) auto clamp(28px, 4vw, 40px);
  padding: 16px 20px;
  text-align: center;
  color: var(--paper-ink);
  border: 2px dashed var(--red-paper);
  border-radius: var(--radius);
}

/* ---------- 5. Comentários ---------- */
.comments { background: var(--smoke); }
.comments__grid {
  display: grid;
  gap: 22px;
  max-width: 1000px;
  margin-inline: auto;
}
.comment {
  overflow: hidden;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.comment img { display: block; width: 100%; height: auto; }

/* ---------- 6. Oferta ---------- */
.offer {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(214, 36, 36, .22), transparent 70%),
    var(--coal);
}
.offer__card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 52px);
  text-align: center;
  background: linear-gradient(180deg, #1f1714, #120d0b);
  border: 2px solid var(--amber);
  border-radius: 10px;
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 8px var(--line), 0 40px 80px rgba(0, 0, 0, .6);
}
.offer__card h2 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
.offer__items {
  margin-top: 10px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.offer__items span { color: var(--red); margin-inline: .3em; }
.offer__price {
  margin: 22px 0 8px;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: clamp(4.4rem, 18vw, 6.4rem);
  line-height: .95;
  color: #fff;
}
.offer__price small { font-size: .36em; margin-right: .15em; vertical-align: .95em; color: var(--red); letter-spacing: .04em; }
.offer__price span { font-size: .55em; vertical-align: .35em; }
.offer__terms {
  margin-bottom: 26px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.offer__terms span { color: var(--red); margin-inline: .25em; }
.offer__tap {
  margin-top: 16px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Selos */
.seals {
  background: var(--coal);
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 5vw, 44px);
}
.seals__list {
  display: grid;
  gap: 22px 32px;
  justify-content: center;
}
.seal { display: flex; align-items: center; gap: 16px; }
.seal__badge {
  flex: none;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 14px rgba(23, 112, 63, .45));
}
.seal__text { display: flex; flex-direction: column; line-height: 1.25; }
.seal__text b {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #62dc98;
}
.seal__text small { font-size: .95rem; color: var(--bone-dim); }

/* ---------- 7. FAQ ---------- */
.faq { background: var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  min-height: 60px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.65rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-ui);
  font-size: 2rem;
  color: var(--red);
}
.faq__list details[open] summary::after { content: '\2013'; }
.faq__list details[open] summary { color: var(--amber); }
.faq__list details p { padding: 0 0 24px; max-width: 40em; color: var(--bone-dim); }

/* Rodapé */
.footer { background: #070605; border-top: 1px solid var(--line); padding-block: 36px 110px; }
.footer__in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: .95rem; color: var(--bone-dim); }
.footer__copy { font-size: .85rem; opacity: .7; }

/* Barra fixa de compra (celular) */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 9, 8, .96);
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky.is-on { transform: translateY(0); }
.sticky__price {
  display: flex;
  flex-direction: column;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.sticky__price small { font-size: .5em; color: var(--red); margin-right: 2px; }
.sticky__price span { margin-top: 4px; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.sticky .btn { flex: 1; max-width: 240px; min-height: 52px; padding-inline: 16px; font-size: 1.2rem; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Telas maiores ---------- */
@media (min-width: 700px) {
  .blocks { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .step { flex-direction: column; }
  .seals__list { grid-template-columns: repeat(3, auto); }
  .comments__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

@media (min-width: 900px) {
  /* no desktop, a imagem (vertical) aparece inteira à direita e se funde no fundo */
  .hero {
    align-items: center;
    background:
      radial-gradient(50% 70% at 72% 75%, rgba(224, 138, 58, .14), transparent 70%),
      var(--ink);
  }
  .hero__bg {
    left: auto;
    right: max(0px, calc((100vw - 1160px) / 2));
    aspect-ratio: 941 / 1672;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 85%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 22%, #000 85%, transparent);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(11, 9, 8, .35) 0%, rgba(11, 9, 8, 0) 15%, rgba(11, 9, 8, 0) 80%, var(--ink) 100%);
  }
  .hero__copy { padding-block: 96px; }
  .hero__copy > * { max-width: 620px; }
  .hero__copy .lead { max-width: 28em; }
  .sticky { display: none; }
  .footer { padding-bottom: 36px; }
}

@media (max-width: 899px) {
  .topbar .btn { display: none; }
  .topbar__in { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__buy .btn { width: 100%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
