/* ==========================================================================
   inspira+livros — Direção 1b "Conto de fadas moderno"
   Implementação do mini design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores */
  --plum: #3A1F5D;
  --plum-line: #5A3D80;
  --coral-strong: #E04E38;
  --coral: #FF6F59;
  --coral-shadow: #B83A27;
  --coral-light: #F27561;
  --sun: #FFC93C;
  --sun-light: #FFE49A;
  --sun-pale: #FFF1C9;
  --teal: #2EC4B6;
  --teal-light: #A6EAE3;
  --teal-ink: #0F3B37;
  --lavender: #EDE7F6;
  --lavender-deep: #B9A6D6;
  --line: #E3DAEE;
  --cloud: #FFFBF5;
  --white: #fff;
  --ink-soft: #4D3D66;
  --ink-mute: #6B5A85;
  --ink-faint: #C9BBDD;

  /* Tipografia */
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  /* Espaçamento, base 4 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Margem lateral e seção: trocam no desktop */
  --gutter: 20px;
  --section-y: 48px;

  /* Raios */
  --r-btn: 14px;
  --r-img: 20px;
  --r-card: 24px;
  --r-card-lg: 32px;
  --r-pill: 999px;
  --blob-a: 62% 38% 55% 45% / 50% 60% 40% 50%;
  --blob-b: 45% 55% 40% 60% / 60% 45% 55% 40%;
  --blob-c: 44% 56% 38% 62% / 52% 40% 60% 48%;

  /* Sombras */
  --sh-card: 0 16px 40px -18px rgba(58, 31, 93, .35);
  --sh-card-sm: 0 10px 30px -14px rgba(58, 31, 93, .3);
  --sh-raised: 0 30px 50px -20px rgba(58, 31, 93, .45);
  --sh-step: 0 4px 0 var(--coral-shadow);

  /* Easings */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

@media (min-width: 900px) {
  :root {
    --gutter: 64px;
    --section-y: 96px;
    --r-card: 28px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cloud);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--plum);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-size: 18px; }
}

img, svg { display: block; max-width: 100%; }

a { color: var(--plum); }
a:hover { color: var(--coral-strong); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--plum);
  color: var(--cloud);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--cloud); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Tipografia — escala do design system
   -------------------------------------------------------------------------- */
.t-display {
  font: 800 40px/1.02 var(--font-display);
  letter-spacing: -.02em;
}
.t-h2 {
  font: 800 28px/1.08 var(--font-display);
  letter-spacing: -.01em;
}
.t-h3 {
  font: 800 24px/1.05 var(--font-display);
}
.t-h4 {
  font: 700 19px/1.15 var(--font-display);
}
.t-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.t-price {
  font: 800 17px var(--font-body);
}
.t-price small {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
}
.t-over {
  font: 800 12px var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .t-display { font-size: 76px; line-height: .98; letter-spacing: -.025em; }
  .t-h2      { font-size: 48px; line-height: 1.05; letter-spacing: -.015em; }
  .t-h3      { font-size: 34px; line-height: 1.02; }
  .t-h4      { font-size: 24px; }
  .t-lead    { font-size: 19px; }
  .t-price   { font-size: 20px; }
  .t-price small { font-size: 14px; }
  .t-over    { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}
.section--lavender { background: var(--lavender); }
.section--plum { background: var(--plum); color: var(--cloud); }
.section--plum .t-lead { color: var(--ink-faint); }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.stack--lg { gap: 36px; }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: space-between;
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-btn);
  font: 800 16px var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (min-width: 900px) {
  .btn { font-size: 17px; }
}

/* Primário · brilho passando no hover, degrau que afunda no clique */
.btn--primary {
  color: var(--white);
  background: linear-gradient(110deg,
      var(--coral-strong) 40%,
      var(--coral-light) 50%,
      var(--coral-strong) 60%) 120% 0 / 250% 100%;
  box-shadow: var(--sh-step);
  transition: background-position .7s ease, transform .15s, box-shadow .15s;
}
.btn--primary:hover {
  color: var(--white);
  background-position: -20% 0;
}
.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--coral-shadow);
}

/* Secundário · contorno que preenche */
.btn--ghost {
  color: var(--plum);
  padding: 12px 22px;
  border: 2px solid var(--plum);
  background: transparent;
  transition: background .2s, color .2s;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--plum);
  color: var(--cloud);
}

/* Destaque · personalizados */
.btn--sun {
  color: var(--plum);
  background: var(--sun);
  transition: transform .15s, box-shadow .15s;
}
.btn--sun:hover { color: var(--plum); box-shadow: var(--sh-card-sm); }
.btn--sun:active { transform: translateY(2px); }

.btn--plum {
  color: var(--cloud);
  background: var(--plum);
  transition: transform .15s;
}
.btn--plum:hover { color: var(--cloud); }
.btn--plum:active { transform: translateY(2px); }

/* Produto ainda não lançado */
.btn--dashed {
  color: var(--plum);
  padding: 12px 22px;
  border: 2px dashed var(--ink-mute);
  background: transparent;
}

.btn--block { width: 100%; }

/* Link com sublinhado que cresce */
.link-grow {
  font: 800 16px var(--font-body);
  text-decoration: none;
  padding: 4px 0;
  background: linear-gradient(var(--coral-strong), var(--coral-strong)) left bottom / 0% 2.5px no-repeat;
  transition: background-size .25s ease-out;
}
.link-grow:hover,
.link-grow:focus-visible { background-size: 100% 2.5px; }

/* --------------------------------------------------------------------------
   6. Selos e badges
   -------------------------------------------------------------------------- */
.badge {
  align-self: flex-start;
  font: 800 11px var(--font-body);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--lavender);
  color: var(--plum);
}
.badge--teal { background: var(--teal); color: var(--teal-ink); }
.badge--sun  { background: var(--sun); color: var(--plum); }
.badge--coral { background: var(--coral-strong); color: var(--white); }
@media (min-width: 900px) {
  .badge { font-size: 12px; }
}

.badge--author {
  font: 800 12px var(--font-body);
  padding: 6px 12px;
}
@media (min-width: 900px) {
  .badge--author { font-size: 13px; padding: 7px 14px; }
}

/* Texto que ainda falta escrever — visível de propósito */
.todo {
  background: repeating-linear-gradient(45deg,
      var(--sun-pale) 0 6px, var(--sun-light) 6px 12px);
  color: #6A4A00;
  border: 1px dashed var(--coral-strong);
  border-radius: 6px;
  padding: 1px 6px;
  font-style: normal;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Header e navegação
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
@media (min-width: 1100px) {
  .site-header { height: 88px; }
}

.logo {
  font: 800 19px var(--font-display);
  color: var(--plum);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--coral-strong); }
.logo:hover { color: var(--plum); }
@media (min-width: 1100px) {
  .logo { font-size: 24px; }
}

/* Hambúrguer que vira livro aberto */
.burger {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--plum);
  position: relative;
  padding: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--cloud);
  transition: transform .35s var(--ease-inout), width .35s, left .35s;
}
.burger .bar-top { top: 15px; }
.burger .bar-mid { top: 21px; }
.burger .bar-bot { top: 27px; }

.burger[aria-expanded="true"] .bar-top {
  width: 11px;
  transform: translate(-1px, 6px) rotate(-22deg);
}
.burger[aria-expanded="true"] .bar-bot {
  width: 11px;
  transform: translate(10px, -6px) rotate(22deg);
}
.burger[aria-expanded="true"] .bar-mid {
  width: 2.5px;
  left: 20.75px;
  transform: translateY(1px) scaleY(3);
}

/* Menu mobile */
.nav-mobile {
  position: absolute;
  top: 64px;
  left: 12px;
  right: 12px;
  z-index: 30;
  background: var(--plum);
  border-radius: var(--r-card);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  box-shadow: 0 20px 40px -12px rgba(58, 31, 93, .5);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font: 700 22px var(--font-display);
  color: var(--cloud);
  text-decoration: none;
  padding: 10px 0;
}
.nav-mobile a:hover { color: var(--sun); }
.nav-mobile a[aria-current="page"] { color: var(--sun); }

/* Menu desktop */
.nav-desktop { display: none; }
@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
    gap: var(--sp-7);
    align-items: center;
  }
  .burger { display: none; }
}
.nav-desktop a {
  font: 700 15px var(--font-body);
  color: var(--plum);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  background: linear-gradient(var(--coral-strong), var(--coral-strong)) left bottom / 0% 2.5px no-repeat;
  transition: background-size .25s ease-out;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible { background-size: 100% 2.5px; }
.nav-desktop a[aria-current="page"] { background-size: 100% 2.5px; }

.header-cta { display: none; }
@media (min-width: 1100px) {
  .header-cta {
    display: inline-flex;
    font-size: 15px;
    padding: 12px 20px;
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-5) var(--section-y);
  perspective: 1600px;
}
@media (min-width: 900px) {
  .hero { padding-block: var(--sp-12) var(--sp-24); perspective: 2000px; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-16);
  }
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}
@media (min-width: 900px) {
  .hero__text { gap: 22px; }
}
.hero__text .t-lead { max-width: 520px; }

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--sp-1);
  width: 100%;
}
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; width: auto; }
}

/* Formas decorativas de fundo */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.blob--sun   { background: var(--sun); border-radius: var(--blob-a); }
.blob--teal  { background: var(--teal); border-radius: var(--blob-b); }
.blob--coral { background: var(--coral); border-radius: var(--blob-b); }

.hero .blob--sun {
  width: 240px; height: 240px;
  right: -90px; top: -80px;
}
.hero .blob--teal {
  width: 160px; height: 160px;
  left: 60%; bottom: -90px;
}
@media (min-width: 900px) {
  .hero .blob--sun  { width: 520px; height: 520px; right: -120px; top: -160px; }
  .hero .blob--teal { width: 260px; height: 260px; left: 42%; bottom: -140px; }
}

/* Letras e estrelinhas flutuando */
.float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: floatY 7s ease-in-out infinite;
}
.float--1 { top: 30px;  left: 55%; font-size: 18px; color: var(--coral); animation-duration: 6s; }
.float--2 { top: 56%;  right: 28px; font: 800 40px var(--font-display); color: var(--plum); opacity: .12; animation-duration: 8s; animation-delay: 1s; }
.float--3 { top: 42%;  left: 14px; font-size: 12px; color: var(--teal); animation-duration: 7s; animation-delay: .5s; }
.float--4 { display: none; }
@media (min-width: 900px) {
  .float--1 { top: 60px; left: 44%; font-size: 24px; }
  .float--2 { top: 70%; left: 42%; right: auto; font-size: 64px; opacity: .1; animation-duration: 9s; }
  .float--3 { top: 76%; left: 40px; font-size: 16px; }
  .float--4 {
    display: block;
    top: 30px; left: 26%;
    font: 800 40px var(--font-display);
    color: var(--coral-strong);
    opacity: .14;
    animation-duration: 8s;
    animation-delay: 2s;
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(8deg); }
}

/* --------------------------------------------------------------------------
   Abertura: três páginas virando, uma de cada vez.

   Para mudar o ritmo, mexa só em --hold: é quanto tempo cada frase fica
   parada na tela antes de a página virar. --turn é a duração do giro.

   A frase seguinte já aparece enquanto a anterior ainda gira, então o
   intervalo entre uma virada e a próxima é --hold apenas; o --turn se
   sobrepõe. Com 1,5s de leitura por frase, a abertura toda dura ~5,5s.
   -------------------------------------------------------------------------- */
.hero {
  --turn: .9s;
  --hold: 1.5s;
}
@media (min-width: 900px) {
  .hero { --turn: 1s; }
}

.page-turn {
  position: absolute;
  inset: 0;
  background: var(--cloud);
  transform-origin: left center;
  backface-visibility: hidden;
  pointer-events: none;
  box-shadow: inset -40px 0 50px -24px rgba(58, 31, 93, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  font: 800 28px/1.15 var(--font-display);
  color: var(--plum);
  text-wrap: balance;
  animation: pageTurn var(--turn) var(--ease-inout) forwards;
}

/* A primeira página fica por cima; cada seguinte espera a anterior virar.
   O z-index desce junto, para a que está virando passar na frente. */
.page-turn--1 { z-index: 7; animation-delay: var(--hold); }
.page-turn--2 { z-index: 6; animation-delay: calc(var(--hold) * 2); }
.page-turn--3 { z-index: 5; animation-delay: calc(var(--hold) * 3); }

@media (min-width: 900px) {
  .page-turn {
    font-size: 48px;
    padding: 0 64px;
    box-shadow: inset -60px 0 70px -30px rgba(58, 31, 93, .3);
  }
}

@keyframes pageTurn {
  from { transform: rotateY(0); }
  to   { transform: rotateY(-180deg); }
}

/* Área de ilustração (placeholder enquanto não há arte final) */
.illo {
  position: relative;
  z-index: 2;
  min-height: 220px;
  border-radius: var(--blob-c);
  background: repeating-linear-gradient(45deg,
      var(--lavender) 0 10px, var(--line) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  font: 700 12px var(--font-body);
  color: var(--ink-mute);
}
@media (min-width: 1000px) {
  .illo { min-height: 520px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   9. Portas (cards de entrada)
   -------------------------------------------------------------------------- */
.door {
  --glow: var(--sun-light);
  text-decoration: none;
  border-radius: var(--r-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
@media (min-width: 900px) {
  .door {
    border-radius: var(--r-card-lg);
    padding: 36px;
    min-height: 300px;
    gap: 14px;
  }
}
.door:hover,
.door:focus-visible,
.door:active {
  transform: translateY(-8px);
  box-shadow: 0 0 0 5px var(--glow), var(--sh-raised);
}

.door__title { font: 800 24px/1.05 var(--font-display); }
.door__desc  { font-size: 15px; line-height: 1.5; }
.door__arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
@media (min-width: 900px) {
  .door__title { font-size: 34px; line-height: 1.02; }
  .door__desc  { font-size: 17px; }
  .door__arrow { width: 56px; height: 56px; font-size: 24px; }
}

.door--sun {
  background: var(--sun);
  color: var(--plum);
  --glow: var(--sun-light);
}
.door--sun:hover { color: var(--plum); }
.door--sun .door__arrow { background: var(--plum); color: var(--sun); }

.door--plum {
  background: var(--plum);
  color: var(--cloud);
  --glow: var(--lavender-deep);
}
.door--plum:hover { color: var(--cloud); }
.door--plum .door__desc { color: var(--line); }
.door--plum .door__arrow { background: var(--sun); color: var(--plum); }

.door--teal {
  background: var(--teal);
  color: var(--plum);
  --glow: var(--teal-light);
}
.door--teal:hover { color: var(--plum); }
.door--teal .door__arrow { background: var(--plum); color: var(--teal); }

/* --------------------------------------------------------------------------
   10. Card de produto
   -------------------------------------------------------------------------- */
.product-grid { perspective: 1200px; }

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--sh-card);
  transform-style: preserve-3d;
}
.card--plum { background: var(--plum); color: var(--cloud); }

.card__media {
  height: 170px;
  border-radius: 16px;
  background: repeating-linear-gradient(45deg,
      var(--lavender) 0 10px, var(--line) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px var(--font-body);
  color: var(--ink-mute);
}
@media (min-width: 900px) {
  .card__media { height: 260px; border-radius: var(--r-img); font-size: 13px; }
}

/* Capa de livro personalizado, com nome digitado */
.card__media--named {
  background: var(--sun);
  color: var(--plum);
  flex-direction: column;
  gap: var(--sp-1);
}
.named__over {
  font: 700 12px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.named__name {
  font: 800 34px var(--font-display);
  min-height: 1.1em;
}
@media (min-width: 900px) {
  .named__over { font-size: 13px; letter-spacing: .12em; }
  .named__name { font-size: 52px; }
}
.caret {
  display: inline-block;
  width: .08em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.card__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--sp-1);
}
@media (min-width: 900px) {
  .card__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
  }
}

/* Monstrinho espiando por trás do card */
.peek {
  position: absolute;
  top: -30px;
  left: 28px;
  width: 62px;
  height: 46px;
  z-index: -1;
  background: var(--teal);
  border-radius: 50% 50% 12px 12px;
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  padding-top: 12px;
  transform: translateY(22px);
  transition: transform .4s var(--ease-back);
}
.peek--right { left: auto; right: 32px; }
.peek--coral { background: var(--coral); }
.peek i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset -3px -2px 0 3px var(--plum);
}
.peek--right i { box-shadow: inset 3px -2px 0 3px var(--plum); }
.card:hover .peek,
.card:focus-within .peek,
.card.is-in .peek { transform: translateY(0); }

@media (min-width: 900px) {
  .peek {
    top: -38px; left: 40px;
    width: 80px; height: 58px;
    border-radius: 50% 50% 14px 14px;
    padding-top: 16px;
    gap: 10px;
    transform: translateY(30px);
  }
  .peek--right { left: auto; right: 48px; width: 70px; }
  .peek i { width: 16px; height: 16px; box-shadow: inset -4px -3px 0 4px var(--plum); }
  .peek--right i { width: 20px; height: 20px; box-shadow: inset 4px -3px 0 5px var(--plum); }
}

/* --------------------------------------------------------------------------
   11. Carrossel mobile → grid desktop
   -------------------------------------------------------------------------- */
.rail {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px var(--gutter) var(--sp-3);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * {
  flex: none;
  width: 270px;
  scroll-snap-align: start;
}
@media (min-width: 1040px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-7);
    overflow: visible;
    padding: 40px 0 0;
    margin-inline: 0;
  }
  .rail > * { width: auto; }
}

.rail-hint { font-size: 15px; color: var(--ink-soft); }
@media (min-width: 1040px) { .rail-hint { display: none; } }

/* --------------------------------------------------------------------------
   12. Livro 3D que abre
   -------------------------------------------------------------------------- */
.book-3d {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  padding: var(--sp-6) 0;
}
.book {
  position: relative;
  width: 190px;
  height: 260px;
  transform-style: preserve-3d;
  transform: rotateY(-22deg);
  transition: transform .6s var(--ease-back);
}
.book__face {
  position: absolute;
  inset: 0;
  border-radius: 4px 10px 10px 4px;
  backface-visibility: hidden;
}
.book__pages {
  background: linear-gradient(90deg, var(--line) 0 6px, var(--white) 6px);
  box-shadow: var(--sh-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  text-align: center;
  font: 700 13px var(--font-body);
  color: var(--ink-mute);
}
.book__cover {
  background: var(--plum);
  color: var(--cloud);
  transform-origin: left;
  transition: transform .6s var(--ease-back);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  box-shadow: var(--sh-card);
}
.book__spine {
  position: absolute;
  left: 0; top: 0;
  width: 18px;
  height: 100%;
  background: var(--coral-strong);
  transform-origin: left;
  transform: rotateY(90deg);
  border-radius: 4px 0 0 4px;
}
.book:hover .book__cover,
.book:focus-within .book__cover,
.book.is-open .book__cover { transform: rotateY(-38deg); }

/* --------------------------------------------------------------------------
   13. Depoimentos em faixa
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: var(--sp-5);
}
.marquee__track {
  display: flex;
  gap: var(--sp-3);
  width: max-content;
  padding-left: var(--gutter);
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@media (min-width: 900px) {
  .marquee__track { gap: var(--sp-5); animation-duration: 48s; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.quote {
  width: 260px;
  flex: none;
  background: var(--lavender);
  border-radius: var(--r-img);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote--plum { background: var(--plum); color: var(--cloud); }
.quote--plum .quote__who { color: var(--sun); }
.quote--sun  { background: var(--sun); color: var(--plum); }
.quote__text { font-size: 15px; line-height: 1.55; }
.quote__who  { font: 800 13px var(--font-body); }
@media (min-width: 900px) {
  .quote { width: 380px; border-radius: var(--r-card); padding: var(--sp-7); gap: 14px; }
  .quote__text { font-size: 18px; }
  .quote__who  { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   14. Faixa de Instagram
   -------------------------------------------------------------------------- */
.ig {
  position: relative;
  overflow: hidden;
  background: var(--sun);
  color: var(--plum);
  border-radius: var(--r-card);
  padding: 32px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
  margin-bottom: var(--section-y);
}
@media (min-width: 900px) {
  .ig {
    border-radius: 40px;
    padding: 56px;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--sp-12);
  }
}
.ig > * { position: relative; z-index: 1; }
.ig .blob--coral {
  width: 160px; height: 160px;
  right: -50px; bottom: -60px;
  z-index: 0;
}
@media (min-width: 900px) {
  .ig .blob--coral { width: 300px; height: 300px; left: -110px; right: auto; bottom: -150px; }
}
.ig__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}
.ig__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (min-width: 900px) { .ig__tiles { gap: 10px; } }
.ig__tiles div {
  aspect-ratio: 1;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg,
      var(--cloud) 0 8px, var(--sun-pale) 8px 16px);
}
@media (min-width: 900px) { .ig__tiles div { border-radius: 16px; } }

/* --------------------------------------------------------------------------
   15. Blocos de conteúdo reaproveitáveis
   -------------------------------------------------------------------------- */
.panel {
  background: var(--lavender);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel--white {
  background: var(--white);
  border: 1px solid var(--line);
}
.panel--plum { background: var(--plum); color: var(--cloud); }
.panel--plum p { color: var(--line); }
@media (min-width: 900px) {
  .panel { padding: var(--sp-7); gap: var(--sp-3); }
}

/* Passo a passo numerado */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  position: relative;
  padding-top: 56px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral-strong);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 19px var(--font-body);
}
.steps h3 { margin-bottom: var(--sp-2); }
.steps p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Lista de itens com marcador */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.checks li {
  display: flex;
  gap: var(--sp-3);
  font-size: 16px;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--coral-strong);
}

/* Tabela de preços / pacotes */
.plan {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.plan--feature {
  border-color: var(--coral-strong);
  box-shadow: var(--sh-card);
}
.plan__price {
  font: 800 32px var(--font-display);
  color: var(--plum);
}
.plan .checks { margin-top: var(--sp-2); }
.plan .checks li { font-size: 15px; }
.plan .btn { margin-top: auto; }

/* Perguntas frequentes */
.faq {
  border-top: 2px solid var(--plum);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-5) 36px var(--sp-5) 0;
  position: relative;
  font: 700 19px/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font: 800 26px var(--font-body);
  color: var(--coral-strong);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 0 var(--sp-5);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Cabeçalho interno de página */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6) var(--section-y);
}
.page-head__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
  max-width: 760px;
}
.page-head .blob--sun {
  width: 220px; height: 220px;
  right: -80px; top: -90px;
}
@media (min-width: 900px) {
  .page-head .blob--sun { width: 380px; height: 380px; right: -100px; top: -140px; }
}

/* Filtros da loja */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter {
  font: 800 14px var(--font-body);
  padding: 10px 18px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--plum);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--plum); }
.filter[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--cloud);
}

/* Formulário */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 760px) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .form .field--full { grid-column: 1 / -1; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font: 800 14px var(--font-body);
}
.field input,
.field select,
.field textarea {
  font: 400 16px var(--font-body);
  color: var(--plum);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r-btn);
  padding: 13px 16px;
  min-height: 48px;
  transition: border-color .2s;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-mute); }
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: 13px; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum);
  color: var(--cloud);
  padding-block: 40px;
}
@media (min-width: 900px) {
  .site-footer { padding-block: var(--sp-16) 40px; }
}
.site-footer a { color: var(--cloud); }
.site-footer a:hover { color: var(--sun); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { color: var(--cloud); font-size: 22px; }
.footer-brand .logo span { color: var(--coral); }
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 300px;
  margin-top: var(--sp-3);
}
@media (min-width: 900px) { .footer-brand .logo { font-size: 28px; } }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 15px;
}
.footer-col .t-over { color: var(--sun); margin-bottom: var(--sp-1); }

.footer-base {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--plum-line);
  font-size: 13px;
  color: var(--ink-faint);
}

/* Botão fixo de WhatsApp */
.wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: var(--teal-ink);
  font: 800 15px var(--font-body);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(15, 59, 55, .5);
  transition: transform .2s;
}
.wa:hover { color: var(--teal-ink); transform: translateY(-3px); }
.wa::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-ink);
}
@media (min-width: 900px) {
  .wa { right: 32px; bottom: 32px; height: 60px; padding: 0 24px; font-size: 16px; gap: 10px; }
}

/* --------------------------------------------------------------------------
   17. Revelação no scroll — só quando o JS está presente
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .6s var(--ease-out), translate .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   18. Movimento reduzido — desliga tudo
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal { opacity: 1 !important; translate: none !important; }
  .page-turn { display: none; }
  .peek { transform: translateY(0) !important; }

  /* Faixa de depoimentos vira rolagem manual */
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__track { animation: none; }
  .quote { scroll-snap-align: start; }
}
