/* =========================================================
   Marq Fácil — camada de marca e interação (v2)
   Carrega depois de styles.css. Não muda estrutura nem textos:
   troca tipografia, logo e acrescenta respostas ao mouse e ao toque.
   Conceito: a página é uma "agenda viva" — o ponteiro (ou o dedo)
   acende a luz dourada nas seções escuras e revela a grade de
   horários nas seções claras.
   ========================================================= */

:root {
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gold-bright: #e4c27e;
  --spot: rgba(228, 194, 126, .16);
  --grid-line: rgba(122, 90, 43, .16);
}

/* ---------- Tipografia ---------- */
.section__title,
.hero__title,
.step h3, .pain h3, .tile h3, .calc__title, .plan__side-title,
.signup-card__title, .app__title, .done__title, .welcome__name, .dash__top b,
.plan__num, .plan__cur, .calc__value, .hero__facts strong, .marquee li,
.legal__toc-title, .legal__body h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.9rem, 7.6vw, 6.3rem);
  line-height: .94;
  letter-spacing: -.045em;
}
.section__title {
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}
.step h3, .pain h3, .tile h3, .calc__title, .plan__side-title, .signup-card__title {
  font-weight: 650;
  letter-spacing: -.025em;
}
.app__title, .done__title, .welcome__name, .dash__top b { font-weight: 700; letter-spacing: -.03em; }
.plan__num { font-weight: 800; letter-spacing: -.06em; }
.calc__value { font-weight: 800; letter-spacing: -.04em; }
.hero__facts strong { font-weight: 700; letter-spacing: -.03em; }

/* Ênfases: sem itálico sintético, cor e peso fazem o papel */
.hero__title em, .section__title em, .signup-card__title em,
.step__num, .marquee li { font-style: normal; }
.section__title em, .signup-card__title em { font-weight: 400; }
.hero__title em { font-weight: 400; }
.step__num { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.marquee li { font-weight: 500; letter-spacing: -.02em; }

/* ---------- Logo ---------- */
.logo { gap: 10px; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 0; filter: none;
  color: var(--gold-bright);
  overflow: visible;
  transition: transform var(--dur) var(--ease-out);
}
.footer .logo__mark { width: 52px; height: 52px; }
@media (max-width: 480px) { .header .logo__mark { width: 34px; height: 34px; } }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.055em; line-height: 1;
  font-optical-sizing: auto;
}
.logo__word em { font-style: normal; font-weight: 400; color: var(--gold-bright); letter-spacing: -.04em; }
.footer .logo__word { font-size: 2rem; }
.mf-check {
  stroke-dasharray: 44; stroke-dashoffset: 0;
}
.js:not(.is-loaded) .header .mf-check { stroke-dashoffset: 44; }
.is-loaded .header .mf-check { transition: stroke-dashoffset .9s var(--ease-out) .5s; }
.logo:hover .mf-check { animation: mf-draw .7s var(--ease-out); }
@keyframes mf-draw { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }

/* Logo dentro dos mockups do app */
.welcome__logo, .dash__logo { color: var(--gold-bright); border-radius: 0; }
.welcome__logo { width: 34%; height: auto; margin-inline: auto; filter: drop-shadow(0 6px 20px rgba(228, 194, 126, .35)); }
.dash__logo { width: 26px; height: 26px; }

/* ---------- Barra de progresso de leitura ---------- */
.header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px;
  width: calc(var(--read, 0) * 100%);
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(228, 194, 126, .6);
  pointer-events: none;
}

/* ---------- Luz que segue o ponteiro / dedo (seções escuras) ---------- */
.section--dark, .hero, .footer, .marquee { --sx: 70%; --sy: 30%; --so: 0; }
.spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--so);
  transition: opacity .6s var(--ease-out);
  background:
    radial-gradient(420px circle at var(--sx) var(--sy), var(--spot), transparent 65%),
    radial-gradient(140px circle at var(--sx) var(--sy), rgba(255, 236, 196, .07), transparent 70%);
}
.hero .spot { z-index: -1; }
.section--dark > .container, .footer > .container { position: relative; z-index: 1; }
.footer { position: relative; overflow: hidden; }

/* ---------- Grade de agenda revelada (seções claras) ---------- */
.section--cream { --sx: 50%; --sy: 30%; --so: 0; overflow: clip; }
.section--cream > .grid-reveal {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--so);
  transition: opacity .6s var(--ease-out);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(320px circle at var(--sx) var(--sy), #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
          mask-image: radial-gradient(320px circle at var(--sx) var(--sy), #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
}
.section--cream > .container { position: relative; z-index: 1; }

/* ---------- Cartões que inclinam com o ponteiro / dedo ---------- */
.pains, .bento, .plan, .signup__grid, .calc { perspective: 1100px; }
[data-tilt] {
  --rx: 0; --ry: 0; --gx: 50%; --gy: 50%; --ga: 0;
  rotate: var(--ax, 1) var(--ay, 0) 0 var(--ang, 0deg);
  transform-style: preserve-3d;
  will-change: rotate;
}
[data-tilt].is-tilting { transition: rotate .12s linear, transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
[data-tilt]:not(.is-tilting) { transition: rotate .6s var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), opacity var(--dur-slow) var(--ease-out) calc(var(--i, 0) * 80ms); }
.tile, .pain, .plan, .signup-card { position: relative; overflow: hidden; }
.glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  opacity: var(--ga);
  transition: opacity .4s var(--ease-out);
  background: radial-gradient(360px circle at var(--gx) var(--gy), rgba(255, 246, 225, .55), transparent 55%);
  mix-blend-mode: soft-light;
}
.section--dark .glare, .tile--dark .glare, .plan .glare, .signup-card .glare {
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(228, 194, 126, .22), transparent 60%);
  mix-blend-mode: screen;
}
.pain:hover .pain__icon, .tile:hover .tile__icon, .pain.is-tilting .pain__icon, .tile.is-tilting .tile__icon {
  transform: translateZ(30px) rotate(-6deg);
}
.pain__icon, .tile__icon { transition: transform var(--dur) var(--ease-out); }

/* ---------- Botões: onda no toque + atração magnética ---------- */
.btn, .qa summary, .chip, .slots span, .step { -webkit-tap-highlight-color: transparent; }
.btn { overflow: hidden; translate: var(--mgx, 0) var(--mgy, 0); transition: translate .25s var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur); }
.btn > * { position: relative; z-index: 1; }
.ripple {
  position: absolute; z-index: 0; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: rgba(255, 248, 230, .55);
  transform: scale(0); opacity: 1;
  animation: ripple .7s var(--ease-out) forwards;
}
.btn--ghost .ripple, .qa .ripple, .step .ripple { background: rgba(228, 194, 126, .35); }
.section--cream .qa .ripple { background: rgba(122, 90, 43, .18); }
@keyframes ripple { to { transform: scale(var(--rs, 40)); opacity: 0; } }
.btn--gold::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--gold:hover::before { transform: translateX(120%); }

/* ---------- Hero: telefones respondem ao dedo, horários clicáveis ---------- */
.hero__devices .slots span { cursor: pointer; transition: background-color .25s, color .25s, transform .25s var(--ease-out), border-color .25s; }
.hero__devices .slots span:not(.is-off):hover { border-color: var(--gold-bright); }
.hero__devices .slots span.is-off { cursor: not-allowed; }
.hero__devices { touch-action: pan-y; }
.hero__devices .device--center .phone { cursor: grab; }
.slot-hint {
  position: absolute; z-index: 4; left: 50%; top: -44px; translate: -50% 0;
  font-size: .75rem; font-weight: 600; color: var(--on-ink-muted);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-line); background: rgba(22, 19, 15, .7);
  transition: opacity .5s var(--ease-out);
}
.slot-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); animation: pulse 2s var(--ease-out) infinite; }
.slot-hint.is-gone { opacity: 0; }
.toast.is-pop { animation: toast-pop .5s var(--ease-out); }
@keyframes toast-pop { 0% { scale: 1; } 40% { scale: 1.06; } 100% { scale: 1; } }

/* ---------- Marquee arrastável ---------- */
.marquee { cursor: grab; touch-action: pan-y; user-select: none; position: relative; }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track { translate: var(--drag, 0px) 0; }
.marquee li { transition: color .3s; }
.marquee li:hover { color: var(--gold-bright); }

/* ---------- "Como funciona": passos tocáveis ---------- */
.step { cursor: pointer; overflow: hidden; }
.step:hover { opacity: .75; }
.step.is-active:hover { opacity: 1; }

/* ---------- Mini gráfico interativo ---------- */
.mini-week span { cursor: pointer; transition: height .5s var(--ease-out), filter .25s, transform .25s var(--ease-out); transform-origin: bottom; }
.mini-week span:hover, .mini-week span.is-hot { filter: brightness(1.25); transform: scaleY(1.06); }

/* ---------- FAQ ---------- */
.qa summary { position: relative; overflow: hidden; }

/* ---------- Ponteiro personalizado (só mouse) ---------- */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(228, 194, 126, .7);
  translate: var(--cx, -100px) var(--cy, -100px);
  scale: var(--cs, 1);
  opacity: 0;
  transition: scale .35s var(--ease-out), opacity .3s, background-color .3s, border-color .3s;
  mix-blend-mode: difference;
}
.has-cursor .cursor-dot { opacity: 1; }
.cursor-dot.is-link { --cs: 1.7; background: rgba(228, 194, 126, .18); border-color: rgba(228, 194, 126, .9); }
.cursor-dot.is-down { --cs: .7; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-tilt] { rotate: none !important; }
  .spot, .grid-reveal, .glare, .cursor-dot, .ripple, .slot-hint::before { display: none !important; }
  .btn { translate: none !important; }
  .js:not(.is-loaded) .header .mf-check { stroke-dashoffset: 0; }
}

.welcome__name { letter-spacing: -.05em; font-weight: 800; }
.welcome__name em { font-style: normal; font-weight: 400; color: var(--gold-bright); }
