/* ==========================================================================
   Loyalty — template
   Troque as cores/fontes nas variáveis abaixo para aplicar a sua marca.
   ========================================================================== */

@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #14123a;
  --cream: #fff9f0;
  --white: #ffffff;
  --primary: #3b2bd6;
  --lime: #d7f75b;
  --coral: #ff6b4a;
  --lilac: #c9b8ff;
  --yellow: #ffd23f;

  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --radius: clamp(20px, 2.4vw, 36px);
  --gutter: clamp(16px, 4vw, 60px);
  --max: 1440px;
  --shadow: 0 30px 80px rgba(20, 18, 58, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.3, 1.5, .5, 1);
}

/* ---------- Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--lime); color: var(--ink); }
main { overflow-x: clip; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.display--xl { font-size: clamp(52px, 8.6vw, 148px); }
.display--lg { font-size: clamp(42px, 6.2vw, 104px); }
.display--md { font-size: clamp(32px, 3.8vw, 60px); }
.display strong {
  font-weight: 400;
  color: var(--ink);
  background: var(--hl, var(--lilac));
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.title-m { font-size: clamp(22px, 2vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.title-s { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; line-height: 1.25; }
.eyebrow { font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); margin-bottom: 1.2em; }

/* ---------- Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1.05em 1.9em;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .5s var(--ease-back), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); background: var(--primary); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--small { padding: .8em 1.4em; font-size: 14px; }

.link {
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 2px;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-position: 0 100%; background-size: 100% 2px; }

.tag {
  display: inline-block;
  padding: .35em .9em;
  border-radius: 999px;
  background: var(--lilac);
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.tag--dark { background: var(--ink); color: var(--cream); }
.tag--accent { background: var(--coral); color: var(--ink); }
.tag--line { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--primary); color: var(--cream);
  transition: opacity .7s var(--ease) .15s, transform 1s var(--ease), border-radius 1s var(--ease), visibility 0s linear 1s;
}
.loader__word {
  height: 1em; overflow: hidden;
  font-family: var(--font-display); font-size: clamp(64px, 8vw, 110px); line-height: 1;
}
.loader__word span { display: block; text-align: center; animation: loader-letters 1.4s steps(7) infinite; }
@keyframes loader-letters { to { transform: translateY(-700%); } }
body.is-loaded .loader { opacity: 0; visibility: hidden; transform: scale(.96); border-radius: var(--radius); }

/* ---------- Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
  transition: transform .6s var(--ease), color .3s;
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cream); box-shadow: 0 10px 40px rgba(20, 18, 58, .08);
  opacity: 0; transition: opacity .3s;
}
.header__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-block: 40px;
  transition: padding .4s var(--ease);
}
.header__nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: 15px; }
.header__nav--right { justify-content: flex-end; }
.header.has-bg { color: var(--ink); }
.header.has-bg::before { opacity: 1; }
.header.has-bg .header__inner { padding-block: 16px; }
.header.has-bg .btn--light { background: var(--ink); color: var(--cream); }
.header.is-hidden { transform: translateY(-100%); }

.logo {
  display: inline-flex; align-items: flex-start; gap: 4px;
  font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: 1; text-transform: uppercase;
}
.logo__star {
  width: .36em; height: .36em; margin-top: -.05em;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.header__burger { display: none; width: 44px; height: 44px; justify-self: end; position: relative; }
.header__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 25px; }
.menu-open .header__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .header__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1;
  display: grid; place-items: center;
  background: var(--primary); color: var(--cream);
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu-open .header { color: var(--cream); }
.menu-open .header::before { opacity: 0; }
.menu__nav button { font: inherit; text-transform: inherit; }
.menu__nav { display: grid; gap: 12px; text-align: center; font-family: var(--font-display); font-size: clamp(40px, 10vw, 64px); text-transform: uppercase; line-height: 1.05; }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; padding: 24px 32px; }
  .header.has-bg .header__inner { padding-block: 12px; }
  .header__burger { display: block; }
}

/* ---------- Hero */
.hero { padding: 16px; }
.hero__box {
  --hl: var(--lime);
  position: relative; overflow: hidden;
  min-height: calc(100svh - 32px);
  display: grid; place-items: center;
  padding: 150px var(--gutter) 90px;
  border-radius: var(--radius);
  background: var(--primary); color: var(--cream);
  text-align: center;
}
.hero__content { position: relative; z-index: 2; max-width: 860px; }
.hero__title { font-size: clamp(50px, 7.4vw, 128px); }
.hero__text { max-width: 520px; margin: 1.6em auto 2.2em; }
.hero__art { position: absolute; z-index: 1; width: clamp(110px, 15vw, 240px); }
.hero__art--left { left: 5%; bottom: 7%; }
.hero__art--right { right: 5%; top: 16%; }
.hero__art--spark { left: 12%; top: 26%; width: clamp(40px, 4vw, 70px); }
@media (max-width: 700px) {
  .hero__art--left { left: -20px; bottom: 2%; }
  .hero__art--right { right: -20px; top: 12%; }
  .hero__art--spark { display: none; }
}

.toggle {
  position: relative; display: inline-flex;
  padding: 6px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
}
.toggle__pill {
  position: absolute; top: 6px; bottom: 6px; left: 0;
  border-radius: 999px; background: var(--lime);
  transition: transform .5s var(--ease-back), width .5s var(--ease-back);
}
.toggle__item { position: relative; z-index: 1; padding: 1em 1.8em; border-radius: 999px; font-weight: 600; font-size: 15px; }
.toggle:not(.is-ready) .toggle__item.is-active { background: var(--lime); }

/* ---------- Marquee */
.marquee {
  overflow: hidden;
  margin: clamp(40px, 6vw, 90px) -2vw 0;
  padding-block: 18px;
  background: var(--ink); color: var(--cream);
  transform: rotate(-2deg);
}
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px); line-height: 1; text-transform: uppercase; padding-inline: .4em; white-space: nowrap; }
.marquee__track i {
  width: clamp(28px, 3vw, 44px); aspect-ratio: 1; background: var(--yellow); flex: none;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Seções */
.section { padding-block: clamp(80px, 11vw, 180px); }
.section--tight { padding-block: clamp(40px, 5vw, 80px); }
.heading { max-width: 1100px; margin-bottom: clamp(48px, 6vw, 96px); }
.heading--center { margin-inline: auto; text-align: center; }
.heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* ---------- Cards empilhados */
.stack { max-width: 960px; margin-inline: auto; }
.stack__item {
  position: sticky;
  top: calc(16vh + var(--i, 0) * 28px);
  padding-bottom: 48px;
}
.stack__item:nth-child(odd) { --rot-in: 7deg; --rot-out: -3deg; }
.stack__item:nth-child(even) { --rot-in: -7deg; --rot-out: 3deg; }
.stack__card {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  transform-origin: 50% 0;
  transform:
    rotate(calc((1 - var(--e, 1)) * var(--rot-in, 0deg) + var(--p, 0) * var(--rot-out, 0deg)))
    scale(calc(1 - var(--p, 0) * .07));
  filter: brightness(calc(1 - var(--p, 0) * .06));
  will-change: transform;
}
.stack__card h3 { color: var(--primary); margin-bottom: .6em; }
.stack__card p { max-width: 460px; }
.stack__card img { width: clamp(100px, 14vw, 180px); flex: none; }
@media (max-width: 700px) {
  .stack__card { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Passos */
.steps { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 100px); }
.steps__sticky { position: sticky; top: 140px; }
.steps__sticky .btn { margin-top: 2em; }
.steps__art { width: clamp(140px, 16vw, 240px); margin-top: 48px; }
.steps__list { display: grid; gap: 24px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  padding: clamp(28px, 3.5vw, 52px);
  border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--lilac); font-weight: 600;
}
.step h3 { margin-bottom: .6em; color: var(--primary); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps__sticky { position: static; }
  .steps__art { display: none; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step__num { width: 48px; height: 48px; }
}

/* ---------- Números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats__item { display: grid; gap: 8px; padding-top: 24px; border-top: 2px solid var(--ink); }
.stats__item strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 7vw, 112px); line-height: 1; color: var(--primary); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA duplo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.cta {
  display: grid; justify-items: center; align-content: center; gap: 24px;
  min-height: 460px;
  padding: clamp(40px, 5vw, 80px);
  border-radius: var(--radius);
  background: var(--lilac); text-align: center;
}
.cta img { width: auto; height: clamp(90px, 9vw, 130px); }
.cta p { max-width: 380px; }
.cta--dark { background: var(--primary); color: var(--cream); --hl: var(--lime); }
.cta--accent { background: var(--coral); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .cta { min-height: 0; } }

.socials { display: flex; gap: 12px; }
.socials__item {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-weight: 600; font-size: 14px;
  transition: transform .5s var(--ease-back), background-color .3s;
}
.socials__item:hover { transform: translateY(-4px) rotate(-8deg); background: var(--lime); }

/* ---------- Slider */
.slider__viewport { overflow: hidden; cursor: grab; padding-block: 30px 50px; }
.slider__viewport:active { cursor: grabbing; }
.slider__container { display: flex; touch-action: pan-y pinch-zoom; }
.slider__slide { flex: 0 0 clamp(280px, 33vw, 480px); min-width: 0; padding-inline: 14px; }
.offer {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 380px;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  text-align: center;
  transform: scale(.92); opacity: .6;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.is-selected .offer { transform: none; opacity: 1; }
.offer header, .offer__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.offer .title-s { font-weight: 500; font-size: clamp(20px, 1.8vw, 28px); color: var(--primary); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
.slider__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink); font-size: 20px;
  transition: background-color .3s, color .3s, transform .5s var(--ease-back);
}
.slider__arrow:hover { background: var(--ink); color: var(--cream); transform: scale(1.08); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ink); opacity: .25; transition: width .4s var(--ease), opacity .3s; }
.slider__dot.is-active { width: 32px; opacity: 1; }

/* ---------- Time */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.profile { text-align: center; }
.profile figure { overflow: hidden; border-radius: 50%; aspect-ratio: 1; margin-bottom: 20px; background: var(--lilac); }
.profile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.profile:hover img { transform: scale(1.08) rotate(-3deg); }
.profile p { opacity: .7; }
@media (max-width: 800px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Declaração com linhas */
.statement { position: relative; overflow: hidden; padding-block: clamp(120px, 14vw, 220px); }
.statement__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.statement__lines path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.statement .heading { position: relative; margin-bottom: 0; }
.statement__text { max-width: 420px; margin: 1.8em auto 2.2em; }

/* ---------- Conteúdos */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.post { display: grid; gap: 16px; justify-items: start; }
.post figure { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); transition: border-radius .5s var(--ease); }
.post img { width: 100%; height: 100%; object-fit: cover; }
.post:hover figure { border-radius: calc(var(--radius) * 2); }
.post h3 { transition: color .3s; }
.post:hover h3 { color: var(--primary); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Footer */
.footer { padding-top: clamp(20px, 3vw, 40px); overflow: hidden; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px clamp(24px, 4vw, 60px); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 28px; font-size: 14px; }
.footer__legal .link { font-weight: 400; }
.footer__word {
  margin-top: clamp(40px, 5vw, 70px);
  font-family: var(--font-display); font-size: 25.5vw; line-height: .94; text-transform: uppercase; text-align: center;
  color: var(--primary);
  overflow: hidden;
}
.footer__word .char { display: inline-block; }

/* ---------- Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear .6s; }
.modal.is-open { visibility: visible; transition: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 58, .55); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: 100%; max-width: 540px; max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--cream);
  transform: translateY(40px) scale(.96); opacity: 0;
  transition: transform .6s var(--ease-back), opacity .4s var(--ease);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; transition: transform .4s var(--ease); }
.modal__close:hover { transform: rotate(90deg); }
.modal .display { margin-bottom: .3em; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea {
  width: 100%; padding: 14px 18px; border: 2px solid transparent; border-radius: 16px;
  background: var(--white); color: var(--ink); outline: none; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { border-color: var(--primary); }
.form .btn { justify-self: start; }
.form__ok { font-weight: 600; color: var(--primary); }

/* ==========================================================================
   Animações (só com JS ativo; html.js é adicionado pelo main.js)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-inview { opacity: 1; transform: none; }

.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
[data-split] .line { overflow: hidden; padding-block: .03em; margin-block: -.03em; }
[data-split] .line-inner {
  display: block;
  transform: translateY(110%) rotate(3deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease) var(--d, 0s);
}
[data-split].is-inview .line-inner { transform: none; }

.js .footer__word .char { transform: translateY(105%); transition: transform .9s var(--ease-back) calc(var(--i) * .06s); }
.js .footer__word.is-inview .char { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
