/* =========================================================
   Barboz Help — Design System
   ========================================================= */
:root {
  /* Cores da marca (roxo da capa do eBook) */
  --purple-900: hsl(275 42% 16%);
  --purple-800: hsl(275 40% 22%);
  --purple-700: hsl(275 36% 30%);
  --purple-600: hsl(275 35% 38%);
  --purple-500: hsl(277 34% 48%);
  --purple-400: hsl(279 38% 62%);
  --purple-300: hsl(280 45% 78%);
  --purple-200: hsl(280 50% 88%);
  --purple-100: hsl(280 50% 94%);
  --purple-50:  hsl(280 50% 97.5%);

  --cream:      hsl(32 45% 98%);
  --cream-200:  hsl(30 40% 95%);
  --white:      #fff;

  --text:       hsl(270 18% 16%);
  --text-soft:  hsl(270 10% 38%);
  --text-mute:  hsl(270 8% 55%);

  --green:      hsl(152 45% 40%);
  --rose:       hsl(345 55% 58%);

  --grad-brand: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-500) 55%, var(--purple-400) 100%);
  --grad-soft:  linear-gradient(180deg, var(--cream) 0%, var(--purple-50) 100%);
  --grad-dark:  linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 100%);

  /* Tipografia */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  /* Espaçamento / forma */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px hsl(275 40% 30% / .06);
  --shadow:    0 10px 30px -10px hsl(275 40% 30% / .18);
  --shadow-lg: 0 30px 60px -20px hsl(275 45% 25% / .30);

  --container: 1180px;
  --section-y: clamp(72px, 9vw, 120px);

  --ease: cubic-bezier(.22, .9, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--purple-900);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

::selection { background: var(--purple-200); color: var(--purple-900); }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--grad-soft); }
.section--lilac { background: var(--purple-50); }
.section--dark { background: var(--grad-dark); color: var(--purple-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p { color: var(--text-soft); margin-top: 16px; font-size: 1.08rem; }
.section--dark .section-head p { color: var(--purple-200); }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--purple-300); }
.hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hand { font-family: var(--font-hand); color: var(--purple-500); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--grad-brand);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -12px hsl(275 45% 35% / .6);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after { /* brilho */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, hsl(0 0% 100% / .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px hsl(275 45% 35% / .7); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 12px 22px; font-size: .78rem; }
.btn--lg { padding: 22px 42px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--light { --bg: var(--white); color: var(--purple-700); }
.btn--pulse { animation: pulse 2.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 30px -12px hsl(275 45% 35% / .6), 0 0 0 0 hsl(277 34% 48% / .35); }
  50%      { box-shadow: 0 14px 30px -12px hsl(275 45% 35% / .6), 0 0 0 14px hsl(277 34% 48% / 0); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--purple-200); }

.icon-badge {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--purple-100);
  color: var(--purple-600);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { background: var(--purple-600); color: var(--white); transform: rotate(-6deg) scale(1.05); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

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

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