/* =========================================================
   DESIGN SYSTEM — lp-assinantes
   Referência: orayon.ai (refs/orayon)
   ========================================================= */

/* ---------- Fonts (locais em /fonts) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/HankenGrotesk-Regular.woff2") format("woff2"),
       url("../../fonts/HankenGrotesk-Regular.woff")  format("woff");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/HankenGrotesk-SemiBold.woff2") format("woff2"),
       url("../../fonts/HankenGrotesk-SemiBold.woff")  format("woff");
}

/* =========================================================
   TOKENS — :root (tema dark é default)
   ========================================================= */
:root {
  /* ---------- Base ---------- */
  --font-base: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;

  /* ---------- Cores primitivas (ref: post-5.css) ---------- */
  --c-primary:   #171A24;
  --c-secondary: #3F4449;
  --c-text-ref:  #5D6368;
  --c-accent:    #2F46E4;
  --c-magenta:   #FF57C0;
  --c-skyblue:   #C2DAF7;
  --c-skytint:   #E8ECF8;
  --c-pinktint:  #F9E6F3;
  --c-gray-50:   #F2F2F2;

  /* Extras observados na LP ref */
  --c-white-soft: #F9FAFB;
  --c-muted:      #A3A0AE;
  --c-bg-deep:    #040817;
  --c-bg-dark:    #0E1118;
  --c-bg-dark-2:  #182231;
  --c-border-dark: rgba(40, 53, 75, 0.55);

  /* CTA verde (ref) */
  --c-cta-green:       #23D756;
  --c-cta-green-light: #A2F7BA;
  --c-cta-green-soft:  #26cd4d;
  --c-cta-green-wrap:  #23D75647;

  /* Status (sugestão, não vem do ref) */
  --c-success: #23D756;
  --c-warning: #F5A524;
  --c-danger:  #E5484D;
  --c-info:    #2F46E4;

  /* ---------- Cores semânticas (DARK — default) ---------- */
  --bg-base:       var(--c-bg-deep);
  --bg-surface:    var(--c-bg-dark);
  --bg-surface-2:  var(--c-bg-dark-2);
  --bg-elevated:   #141925;

  --text-primary:   var(--c-white-soft);
  --text-secondary: var(--c-muted);
  --text-muted:     #6b7280;
  --text-inverse:   #0A0B0E;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: var(--c-border-dark);
  --border-strong:  #3a476a;

  /* ---------- Gradientes ---------- */
  --gradient-brand:
    linear-gradient(91deg, #C2DAF7 -9.12%, #FF57C0 42.96%, #2F46E4 107.35%);
  --gradient-blue-soft:
    linear-gradient(to right, #5a6ee4 0%, #7CA9D9 100%);
  --gradient-pink:
    linear-gradient(to right, #ba409d 0%, #ED56C3 100%);
  --gradient-cta-green:
    radial-gradient(at bottom center, #A2F7BA 0%, #23D756 100%);
  --gradient-surface-dark:
    linear-gradient(180deg, rgba(10, 11, 14, 0.55) 0%, rgba(24, 34, 49, 0.55) 100%);
  --blur-surface-dark: blur(14px) saturate(140%);

  /* ---------- Tipografia (clamp responsivo) ---------- */
  /* Escala: mobile <767px → desktop 1920px+ */
  --fs-secondary: 0.9rem;                                 /* 14.4px */
  --fs-body:      clamp(0.95rem, 0.9rem + 0.15vw, 1rem);  /* ~15→16 */
  --fs-body-2:    clamp(1rem, 0.95rem + 0.15vw, 1.1rem);  /* ~16→17.6 */
  --fs-h5:        clamp(1.1rem, 1rem + 0.3vw, 1.4rem);    /* ~18→22.4 */
  --fs-h4:        clamp(1.2rem, 1.1rem + 0.3vw, 1.4rem);  /* ~19→22.4 */
  --fs-h3:        clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);  /* ~22→28.8 */
  --fs-h2:        clamp(1.6rem, 1.3rem + 1vw, 2rem);      /* ~26→32 */
  --fs-h1:        clamp(2rem, 1.5rem + 1.5vw, 2.5rem);    /* ~32→40 */

  --lh-heading: 1.1;
  --lh-subhead: 1.3;
  --lh-body:    1.4;

  --ls-default: 0;
  --ls-label:   0.01em;

  /* ---------- Espaçamento (sua escala + 80/120) ---------- */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;   /* observado no ref */
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;   /* observado no ref */
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;   /* adicionado */
  --space-30:  120px;  /* adicionado */

  /* ---------- Border-radius ---------- */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 9999px;
  --radius-full: 50%;

  /* ---------- Sombras — estilo GLOW (ref) ---------- */
  /* Elevação (decorativa, não tradicional) */
  --shadow-1: 0 0 22px 0 #212C3E inset;                            /* card inset sutil */
  --shadow-2: 0 0 42px 0 #acb5c9 inset;                            /* card claro */
  --shadow-3: 0 0 0 12px rgba(134, 31, 101, 0.07),
              0 0 0 24px rgba(134, 31, 101, 0.03);                 /* rings */

  /* Glows decorativos */
  --glow-accent:   0 0 12px 2px rgba(218, 27, 146, 0.30);
  --glow-accent-2: 0 0 22px 4px rgba(47, 70, 228, 0.35);
  --glow-cta:      0 0 38px 18px rgba(35, 215, 86, 0.50);
  --glow-danger:   0 0 18px 6px rgba(192, 21, 42, 0.70);

  /* ---------- Z-index ---------- */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   800;
  --z-modal:     900;
  --z-toast:     950;
  --z-tooltip:   1000;

  /* ---------- Transições ---------- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-std:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  300ms;
  --dur-slow:  500ms;

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-pad: var(--space-6);  /* 24px desktop */
  --grid-cols:   12;
  --grid-gutter: var(--space-6);    /* 24px */

  /* ---------- Focus ring (a11y — default proposto) ---------- */
  --focus-ring: 0 0 0 2px var(--bg-base), 0 0 0 4px var(--c-accent);
  --focus-outline-width: 2px;
  --focus-outline-offset: 2px;
}

/* =========================================================
   TEMA LIGHT — aplicar com [data-theme="light"] em seção/root
   ========================================================= */
[data-theme="light"] {
  --bg-base:      #FFFFFF;
  --bg-surface:   var(--c-gray-50);
  --bg-surface-2: var(--c-skytint);
  --bg-elevated:  #FFFFFF;

  --text-primary:   var(--c-primary);
  --text-secondary: var(--c-secondary);
  --text-muted:     var(--c-text-ref);
  --text-inverse:   var(--c-white-soft);

  --border-subtle:  rgba(23, 26, 36, 0.08);
  --border-default: rgba(23, 26, 36, 0.16);
  --border-strong:  rgba(23, 26, 36, 0.32);

  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--c-accent);
}

/* =========================================================
   BREAKPOINTS (referência):
   • desktop  ≥ 1920px
   • laptop   1366–1025px
   • tablet   1024–768px
   • mobile   ≤ 767px
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-max: 100%;
    --container-pad: var(--space-5); /* 20px */
    --grid-gutter:   var(--space-5);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --container-max: 100%;
    --container-pad: var(--space-4); /* 16px */
    --grid-gutter:   var(--space-4);
  }
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   RESET MÍNIMO + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;           /* 1rem = 16px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;  /* compensa o nav fixo nas âncoras */
}

/* =========================================================
   REVEAL ON SCROLL
   Uso: <div data-reveal>...</div>
        <div data-reveal="fade-in">...</div>
        <div data-reveal data-reveal-delay="120">...</div>
   JS aplica .is-revealed quando o elemento entra na viewport.
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="fade-in"]     { transform: none; }
[data-reveal="fade-up"]     { transform: translate3d(0, 28px, 0); }
[data-reveal="fade-down"]   { transform: translate3d(0, -20px, 0); }
[data-reveal="fade-left"]   { transform: translate3d(-28px, 0, 0); }
[data-reveal="fade-right"]  { transform: translate3d(28px, 0, 0); }
[data-reveal="zoom-in"]     { transform: scale(0.96); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: balance;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: var(--focus-outline-width) solid var(--c-accent);
  outline-offset: var(--focus-outline-offset);
  border-radius: var(--radius-sm);
}

/* =========================================================
   TIPOGRAFIA BASE
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4) 0;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-subhead); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-subhead); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-subhead); }

p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
}

small, .text-secondary { font-size: var(--fs-secondary); color: var(--text-secondary); }

strong, b { font-weight: var(--fw-semibold); }

/* =========================================================
   UTILITÁRIOS DE TIPOGRAFIA
   ========================================================= */
.text-h1        { font-size: var(--fs-h1);     font-weight: var(--fw-semibold); line-height: var(--lh-heading); }
.text-h2        { font-size: var(--fs-h2);     font-weight: var(--fw-semibold); line-height: var(--lh-heading); }
.text-h3        { font-size: var(--fs-h3);     font-weight: var(--fw-semibold); line-height: var(--lh-subhead); }
.text-h4        { font-size: var(--fs-h4);     font-weight: var(--fw-semibold); line-height: var(--lh-subhead); }
.text-h5        { font-size: var(--fs-h5);     font-weight: var(--fw-semibold); line-height: var(--lh-subhead); }
.text-body      { font-size: var(--fs-body);   font-weight: var(--fw-regular);  line-height: var(--lh-body); }
.text-body-2    { font-size: var(--fs-body-2); font-weight: var(--fw-regular);  line-height: var(--lh-body); }
.text-secondary { font-size: var(--fs-secondary); color: var(--text-secondary); }

.text-muted    { color: var(--text-muted); }
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* =========================================================
   LAYOUT — Container + Grid 12
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gutter);
}

/* Em tablet/mobile, colapsa pra 1 coluna (override explícito na seção quando precisar) */
@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
  .grid-12 { grid-template-columns: 1fr; }
}

/* Helpers col-span (ex: .col-span-6) */
.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* =========================================================
   COMPONENTES
   ========================================================= */

/* ---------- Tag / Badge (ref) ----------
   Uso básico:
     <span class="tag">Texto</span>

   Com dot pulsante + texto em gradiente (hero):
     <span class="tag">
       <span class="tag__dot" aria-hidden="true"></span>
       <span class="tag__text tag__text--gradient">Enquanto você lê isso...</span>
     </span>

   Eyebrow de seção (FAQ, planos, etc — menor, uppercase):
     <span class="tag tag--section">FAQ</span>
*/
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-dark);
  background: var(--gradient-surface-dark);
  backdrop-filter: var(--blur-surface-dark);
  -webkit-backdrop-filter: var(--blur-surface-dark);
  box-shadow: var(--shadow-1);
  font-size: 0.875rem;  /* 14px */
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-label);
  color: var(--text-primary);
  text-wrap: balance;
  text-align: center;
}

.tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cta-green);
  box-shadow: 0 0 8px rgba(35, 215, 86, 0.7);
  flex-shrink: 0;
  animation: tag-dot-pulse 1.8s ease-in-out infinite;
}

.tag__text {
  font-weight: var(--fw-semibold);
}

.tag__text--gradient {
  background: linear-gradient(91deg, #C2DAF7 -9.12%, #FF57C0 42.96%, #2F46E4 107.35%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tag--section {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
}

@keyframes tag-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

@media (max-width: 767px) {
  .tag { font-size: 0.8rem; padding: 6px 14px; }
}

/* ---------- CTA verde (ref orayon) ----------
   Uso:
     <span class="btn-cta-wrap">
       <a href="#" class="btn-cta">
         Assinar agora
         <span class="btn-cta-icon" aria-hidden="true">
           <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
             <path d="M0 0h24v24H0z" fill="none"/>
             <path d="M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z" fill="currentColor"/>
           </svg>
         </span>
       </a>
     </span>
*/
.btn-cta-wrap {
  display: inline-block;
  padding: 5px 6px;
  background-color: var(--c-cta-green-wrap);
  border: 1px solid var(--c-cta-green);
  border-radius: var(--radius-pill);
  line-height: 0;
}

.btn-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 20px 30px;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: 0;
  color: #000;
  background-image: var(--gradient-cta-green);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-std),
              box-shadow var(--dur-base) var(--ease-std);
  animation: btn-cta-pulse 1.5s infinite;
}

/* Brilho deslizante (shine) */
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    130deg,
    transparent,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent,
    transparent
  );
  animation: btn-cta-shine 2.5s infinite;
  pointer-events: none;
  z-index: 2;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  color: #FFFFFF;
  box-shadow: var(--glow-cta);
  animation: none;
}
.btn-cta:hover::after,
.btn-cta:focus-visible::after { animation: none; }

/* Ícone à direita (pill branca com seta, estilo Uiverse adaptado) */
.btn-cta:has(.btn-cta-icon) { padding-right: 60px; }

.btn-cta-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  color: #0a8a2e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition: width var(--dur-base) var(--ease-std),
              transform var(--dur-base) var(--ease-std);
  pointer-events: none;
}

.btn-cta-icon svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-std);
}

.btn-cta:hover .btn-cta-icon,
.btn-cta:focus-visible .btn-cta-icon {
  width: calc(100% - 12px);
}

.btn-cta:hover .btn-cta-icon svg,
.btn-cta:focus-visible .btn-cta-icon svg {
  transform: translateX(3px);
}

.btn-cta:active .btn-cta-icon {
  transform: translateY(-50%) scale(0.96);
}

/* Modifier: CTA extra-grande (CTA final, blocos de fechamento) */
.btn-cta--xl {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  padding: 22px 40px;
  letter-spacing: 0.01em;
  width: 100%;
  justify-content: center;
}
.btn-cta--xl:has(.btn-cta-icon) { padding-right: 72px; }
.btn-cta--xl .btn-cta-icon { width: 50px; height: 50px; right: 8px; }
.btn-cta--xl .btn-cta-icon svg { width: 20px; height: 20px; }

/* Modifier: CTA compacto (nav, cards secundários) */
.btn-cta--sm {
  font-size: 0.8rem;
  padding: 10px 18px;
  animation: none;
}
.btn-cta--sm:has(.btn-cta-icon) { padding-right: 44px; }
.btn-cta--sm .btn-cta-icon {
  width: 30px;
  height: 30px;
  right: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn-cta--sm .btn-cta-icon svg { width: 14px; height: 14px; }

/* Mobile: menor (ref) */
@media (max-width: 767px) {
  .btn-cta {
    font-size: 0.9rem;
    letter-spacing: -0.4px;
    padding: 16px 16px;
  }
  .btn-cta:has(.btn-cta-icon) { padding-right: 52px; }
  .btn-cta-icon { width: 38px; height: 38px; right: 5px; }
  .btn-cta-icon svg { width: 16px; height: 16px; }

  .btn-cta--sm { font-size: 0.75rem; padding: 8px 16px; }
  .btn-cta--sm:has(.btn-cta-icon) { padding-right: 40px; }
  .btn-cta--sm .btn-cta-icon { width: 28px; height: 28px; }
  .btn-cta--sm .btn-cta-icon svg { width: 13px; height: 13px; }
}

/* ---------- Botão secundário (outline neutro — opcional) ---------- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-std),
              background-color var(--dur-base) var(--ease-std);
}
.btn-ghost:hover { border-color: var(--c-accent); background: rgba(47, 70, 228, 0.08); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes btn-cta-pulse {
  0%   { box-shadow: 0 0 0 0 var(--c-cta-green-soft); }
  70%  { box-shadow: 0 0 20px 20px rgba(38, 205, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 205, 77, 0); }
}

@keyframes btn-cta-shine {
  0%   { left: -200%; }
  100% { left:  200%; }
}

/* Float suave (ref) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
