/* =========================================================
   Xixi no Lugar, Lar em Harmonia — estilos
   Para mudar as cores, edite as variáveis abaixo.
   ========================================================= */
:root {
  color-scheme: light;
  --cream: #f6f1e7;
  --cream-2: #efe8d9;
  --paper: #fbf8f1;
  --sage: #9bb097;
  --sage-d: #5f7c5d;
  --forest: #2f4a3a;
  --ink: #26362c;
  --muted: #5d6c62;
  --line: rgba(47, 74, 58, .14);

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; color: var(--forest); }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-d); font-weight: 600; margin-bottom: 14px;
}

/* ---------- Botão e preço ---------- */
.btn {
  display: inline-block; background: var(--forest); color: #f6f1e7;
  font-weight: 600; font-size: .95rem; letter-spacing: .12em;
  text-decoration: none; padding: 17px 34px; border-radius: 3px;
  box-shadow: 0 8px 20px -10px rgba(47,74,58,.65);
  transition: background .2s, transform .2s;
}
.btn:hover { background: #3b5c49; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

.buy { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.buy--center { justify-content: center; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--forest); line-height: 1; }

/* =========================================================
   1. PRIMEIRA TELA
   ========================================================= */
.hero {
  width: min(1240px, 100% - 40px); margin-inline: auto;
  min-height: 100svh;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy art" "buy art";
  align-content: center;
  column-gap: 40px; row-gap: 24px;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__art  { grid-area: art; align-self: center; }
.hero__buy  { grid-area: buy; align-self: start; }

.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.8rem); letter-spacing: -.01em; }
.hero h1 em { display: block; font-style: italic; color: var(--sage-d); font-weight: 600; }
.hero__sub { margin-top: 22px; font-size: 1.22rem; color: var(--ink); max-width: 30em; }
.hero__support { color: var(--muted); max-width: 30em; margin-bottom: 26px; }

/* ---------- Composição de folhas ---------- */
.desk {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  max-width: 720px; margin-inline: auto;
}
.desk::before { /* luz suave sobre a superfície */
  content: ""; position: absolute; inset: -8% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.75), rgba(255,255,255,0) 68%);
}
.sheet {
  position: absolute; z-index: var(--z, 1);
  left: var(--x); top: var(--y); width: var(--w);
  transform: rotate(var(--r, 0deg));
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(60,50,30,.18),
    0 4px 8px rgba(60,50,30,.12),
    0 14px 28px rgba(60,50,30,.14),
    0 30px 48px -12px rgba(60,50,30,.18);
  opacity: 0; animation: place .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s);
}
.sheet--cover {
  box-shadow:
    0 1px 1px rgba(60,50,30,.2),
    0 6px 12px rgba(60,50,30,.14),
    0 20px 36px rgba(60,50,30,.18),
    0 40px 64px -14px rgba(60,50,30,.25);
}
@keyframes place {
  from { opacity: 0; transform: translateY(14px) rotate(var(--r, 0deg)); }
  to   { opacity: 1; transform: translateY(0)    rotate(var(--r, 0deg)); }
}

/* =========================================================
   2. CARROSSEL
   ========================================================= */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section__lead { text-align: center; color: var(--muted); margin-top: 14px; }

.preview { background: var(--cream-2); border-block: 1px solid var(--line); }
.carousel { position: relative; margin-top: 44px; }
.carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 28px calc(50% - var(--slide-w) / 2) 44px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; outline: none;
  --slide-w: min(76vw, 400px);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide {
  margin: 0; flex: 0 0 var(--slide-w); scroll-snap-align: center;
  transition: transform .35s, opacity .35s;
  transform: scale(.93); opacity: .55;
}
.slide.is-active { transform: scale(1); opacity: 1; }
.slide img {
  width: 100%; aspect-ratio: 595 / 842; object-fit: contain; /* proporção A4 mantida */
  background: var(--paper); border-radius: 2px;
  box-shadow: 0 2px 4px rgba(60,50,30,.14), 0 18px 40px -8px rgba(60,50,30,.3);
  user-select: none; -webkit-user-drag: none;
}
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(251,248,241,.94);
  color: var(--forest); font-size: 2rem; line-height: 1; padding: 0 0 4px;
  cursor: pointer; box-shadow: 0 6px 16px -6px rgba(60,50,30,.4);
  transition: background .2s, opacity .2s;
}
.carousel__arrow:hover { background: #fff; }
.carousel__arrow[disabled] { opacity: .35; cursor: default; }
.carousel__arrow--prev { left: max(12px, calc(50% - 420px)); }
.carousel__arrow--next { right: max(12px, calc(50% - 420px)); }
.carousel__nav { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.carousel__count { font-size: .9rem; color: var(--muted); letter-spacing: .08em; }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(47,74,58,.25); cursor: pointer; transition: background .2s, transform .2s;
}
.dots button.is-active { background: var(--forest); transform: scale(1.25); }

/* =========================================================
   PARA QUEM É
   ========================================================= */
.eyebrow--center { text-align: center; }
.forwho__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.forwho__head h2 { text-align: left; }
.forwho__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.forwho__list li { display: flex; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.forwho__list span { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--sage-d); min-width: 2.2ch; }
.forwho__list p { font-size: 1.2rem; }
.forwho__list strong { color: var(--forest); font-weight: 600; }
.forwho__close { margin-top: 44px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage-d); }

/* =========================================================
   PRODUTO PRINCIPAL E BÔNUS
   ========================================================= */
.products { background: var(--cream-2); border-block: 1px solid var(--line); }
.products h2 { max-width: 20em; margin-inline: auto; }
.stage { margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(12px, 2vw, 28px); }
.pcard {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  box-shadow: 0 2px 4px rgba(60,50,30,.06), 0 24px 48px -24px rgba(60,50,30,.28);
}
.pcard--bonus { background: #e4ebdc; border-color: rgba(95,124,93,.35); }
.pcard__img { position: relative; width: min(250px, 68%); }
.pcard__img::before { /* brilho suave atrás da capa */
  content: ""; position: absolute; inset: -14% -22%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155,176,151,.55), rgba(155,176,151,0));
}
.pcard__img img { position: relative; z-index: 1; width: 100%; border-radius: 2px; box-shadow: 0 4px 8px rgba(60,50,30,.18), 0 26px 44px -10px rgba(60,50,30,.4); transform: rotate(-2deg); }
.pcard__img--bonus { width: min(230px, 62%); }
.pcard__img--bonus::before { background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); }
.pcard__img--bonus img { border-radius: 0; box-shadow: none; mix-blend-mode: multiply; transform: rotate(2deg); filter: drop-shadow(0 18px 14px rgba(60,50,30,.22)); }
.tag {
  display: inline-block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--forest); border: 1px solid var(--forest); padding: 5px 14px; border-radius: 99px; margin-bottom: 14px;
}
.tag--bonus { background: var(--forest); color: #f6f1e7; }
.pcard h3 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); margin-bottom: 14px; }
.pcard__txt > p:not(.tag) { color: var(--muted); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .4em; width: 7px; height: 12px;
  border: solid var(--sage-d); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.plus {
  align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #f6f1e7;
  display: grid; place-items: center; font-family: var(--serif); font-size: 2.2rem; line-height: 1; padding-bottom: 4px;
  box-shadow: 0 10px 20px -8px rgba(47,74,58,.6);
}
.deal { margin-top: 56px; text-align: center; }
.deal__line { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage-d); margin-bottom: 18px; }

/* depoimentos (opcional) */
.quotes__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--forest); }
.quote footer { margin-top: 16px; color: var(--muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================
   4. OFERTA FINAL
   ========================================================= */
.offer { background: var(--forest); color: #efe9da; }
.offer h2 { color: #f6f1e7; }
.offer__box { text-align: center; max-width: 720px; }
.offer__box > p { margin-top: 18px; font-size: 1.15rem; color: #d6dccb; }
.offer .buy { margin-top: 38px; gap: 30px; }
.offer .price { color: #f6f1e7; }
.offer .btn { background: #f6f1e7; color: var(--forest); box-shadow: none; }
.offer .btn:hover { background: #fff; }

.footer { background: #263b2f; color: #aebba8; text-align: center; padding: 28px 20px; font-size: .85rem; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .hero {
    min-height: 0; padding: 28px 0 48px;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "art" "buy";
    row-gap: 22px;
  }
  .hero__copy { align-self: start; }
  .hero__sub { font-size: 1.1rem; margin-top: 16px; }
  .desk { max-width: 560px; }
  .hero__buy { text-align: left; }
  .buy { gap: 18px; }
  .btn { padding: 16px 28px; }

  .carousel__arrow { display: none; }
  .carousel__track { gap: 16px; }

  .forwho__grid { grid-template-columns: 1fr; gap: 28px; }
  .forwho__list p { font-size: 1.1rem; }
  .stage { grid-template-columns: 1fr; }
  .plus { justify-self: center; width: 48px; height: 48px; margin: -4px 0; }
}
@media (max-width: 480px) {
  .price { font-size: 2.3rem; }
  .hero__buy .btn { width: 100%; text-align: center; }
  .hero__buy .buy { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
  .offer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet { animation: none; opacity: 1; }
  .slide, .btn { transition: none; }
}
