/* ==========================================================================
   Novelia · Manuscrita — folha de estilo
   Sumário
   1.  Design tokens (:root)
   2.  Reset e base
   3.  Keyframes
   4.  Layout — section, container, grids
   5.  Tipografia
   6.  Links e botões
   7.  Cabeçalho / navegação
   8.  Fundos cinematográficos (backdrop)
   9.  Hero
   10. Tempo (sticky scroll)
   11. Cartões e listas de features
   12. Marquee (esteira de autores)
   13. Chips, tags e estatísticas
   14. Linhas de tabela (templates / roadmap)
   15. Inspector (assinatura)
   16. Toggles (ajuste fino)
   17. Outline / árvore de cenas
   18. Planos
   19. FAQ
   20. Rodapé + grão
   21. Media queries
   22. Scrollbar customizada
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* cores */
  --bg: #0A0908;
  --surface: #121010;
  --border: #241F1A;
  --text: #F2EEE7;
  --muted: #8E877C;
  --gold: #C39E6A;
  --gold-light: #DBBE94;

  /* tipografia */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Newsreader', serif;
  --font-sans: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* medidas */
  --maxw: 1240px;
  --pad-x: 6vw;
  --radius: 2px;

  /* decorativo */
  --sweep-duration: 48s;
}

/* 2. Reset e base -------------------------------------------------------- */
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold-light); }

::selection { background: rgba(201, 162, 39, 0.25); color: var(--text); }

img { max-width: 100%; }

em { font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* 3. Keyframes ----------------------------------------------------------- */
@keyframes sweepShadow { 0% { transform: translateX(-45%); } 100% { transform: translateX(45%); } }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* 4. Layout -------------------------------------------------------------- */
.section { border-top: 1px solid var(--border); }
.section--flush { border-top: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  box-sizing: border-box;
}

/* espaçamentos verticais reutilizáveis */
.pad-block { padding-top: 160px; padding-bottom: 160px; }
.pad-block--lg { padding-top: 180px; padding-bottom: 180px; }
.pad-block--xl { padding-top: 260px; padding-bottom: 260px; }

/* grids responsivos */
.grid { display: grid; }
.grid--2 { grid-template-columns: 5fr 6fr; gap: 60px; }
#metodo .grid--2 { grid-template-columns: 7fr 6fr; }
.grid--2-wide { grid-template-columns: 7fr 4fr; gap: 80px; }
.grid--2-even { grid-template-columns: 1fr 1fr; gap: 80px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }

.grid--items-start { align-items: start; }
.grid--items-center { align-items: center; }

.self-end { align-self: end; }
.self-center { align-self: center; }

/* 5. Tipografia ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .muted { color: var(--muted); }

.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--rule {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, 8vw, 8.5rem);
      line-height: 97px;
  letter-spacing: -0.03em;
  margin: 28px 0 0;
  max-width: 14ch;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.h2--principle { font-size: clamp(3rem, 6.4vw, 6.4rem); }
.h2--closing { font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
.h2-accent { color: var(--gold); font-size: 1.25em; }

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 14px 0 10px;
}

.lead {
  font-size: 1.35rem;
  line-height: 1.65;
}
.prose {
  font-size: 1.125rem;
  line-height: 1.72;
}
.body-copy {
  font-size: 1rem;
  line-height: 1.7;
}
.note {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.measure { max-width: 62ch; }
.font-sans { font-family: var(--font-sans); }
.measure--narrow { max-width: 58ch; }

.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.gold-em { color: var(--gold); font-style: italic; }

/* citações de destaque em serifa */
.pull {
  font-family: var(--font-display);
  line-height: 1.3;
}
.pull--sm { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.pull--md { font-style: italic; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.25; }
.pull--outline { font-size: clamp(2.1rem, 3.2vw, 2.8rem); letter-spacing: 0.04em; }
.pull--gold {
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--gold);
  text-align: center;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* 6. Links e botões ------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-position 260ms ease, color 260ms ease, border-color 220ms ease;
}

/* contorno dourado com preenchimento em varredura */
.btn--outline {
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 9px 20px;
  background: linear-gradient(90deg, var(--gold) 50%, transparent 50%) right / 200% 100% no-repeat;
}
.btn--outline:hover { background-position: left; color: var(--bg); }

/* preenchido, dourado */
.btn--solid {
  font-size: 0.8rem;
  color: var(--bg);
  padding: 16px 34px;
  background: linear-gradient(90deg, var(--gold-light) 50%, var(--gold) 50%) right / 200% 100% no-repeat;
}
.btn--solid:hover { background-position: left; color: var(--bg); }

/* link com sublinhado que acende */
.link-underline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 250ms ease, color 250ms ease;
}
.link-underline:hover { border-bottom-color: var(--gold); color: var(--gold-light); }

/* botão de plano — contorno neutro */
.btn-plan {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 0;
  transition: border-color 220ms ease, color 220ms ease;
}
.btn-plan:hover { border-color: var(--gold); color: var(--gold-light); }

/* botão de plano — preenchido */
.btn-plan--solid {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(90deg, var(--gold-light) 50%, var(--gold) 50%) right / 200% 100% no-repeat;
  border-radius: var(--radius);
  padding: 15px 0;
  transition: background-position 260ms ease;
}
.btn-plan--solid:hover { background-position: left; }

/* 7. Cabeçalho / navegação ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 64px;
  background: rgba(10, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__mark { color: var(--gold); font-size: 0.8rem; }
.brand__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.brand__name--lg { font-size: 1rem; }
.brand__name--gold { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-link { color: var(--muted); transition: color 200ms ease; }
.nav-link:hover { color: var(--text); }

/* item de navegação com menu suspenso (mega menu) */
/* altura igual à do header: sem "zona morta" entre o gatilho e o painel,
   o hover sobrevive ao trajeto do mouse até o dropdown */
.nav-item { position: relative; display: flex; align-items: center; height: 64px; }
.nav-link--trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  cursor: pointer;
}
.nav-caret { width: 9px; height: 6px; color: var(--muted); transition: transform 240ms ease, color 200ms ease; }
.nav-item:hover .nav-link--trigger,
.nav-item.is-open .nav-link--trigger { color: var(--text); }
.nav-item:hover .nav-caret,
.nav-item.is-open .nav-caret { color: var(--gold); transform: rotate(180deg); }

/* painel claro, colado ao header e centralizado na página
   (o backdrop-filter do header o torna o bloco de contenção do fixed) */
.mega-menu {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(1160px, calc(100vw - 32px));
  background: #F3F3F3;
  color: #181818;
  /* anula a tipografia do .site-nav herdada (uppercase / tracking largo) */
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* proporções do layout de referência (1331×273):
   divisor único a 27,7%; descrições alinhadas na mesma linha via altura fixa */
.mega-menu__inner {
  display: grid;
  grid-template-columns: 27.7fr 36.1fr 36.2fr;
  padding: 30px 44px 46px 26px;
}
.mega-menu__col { display: block; min-width: 0; }
a.mega-menu__col { color: inherit; }
a.mega-menu__col:hover { color: inherit; }
.mega-menu__col--manuscrita { border-left: 1px solid #D1D1D1; padding-left: 76px; padding-right: 24px; }
.mega-menu__col--scripta { padding-left: 76px; }

.mega-menu__head { height: 104px; box-sizing: border-box; }
.mega-menu__head--end {
  display: flex;
  align-items: flex-end;
  padding-bottom: 22px;
}

.mega-menu__logo-novelia { width: 254px; max-width: 100%; height: auto; display: block; }
.mega-menu__logo-manuscrita { width: 226px; max-width: 100%; height: auto; display: block; }
.mega-menu__logo-scripta { width: 130px; max-width: 100%; height: auto; display: block; filter: grayscale(1); opacity: 0.28; }
.mega-menu__logo-row { display: flex; align-items: center; gap: 24px; }

.mega-menu__tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #181818;
  margin: 10px 0 0;
}
.mega-menu__tba {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9D9D9D;
}
.mega-menu__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #181818;
  margin: 0;
}
.mega-menu__col--brand .mega-menu__desc { max-width: 290px; }
.mega-menu__col--manuscrita .mega-menu__desc { max-width: 292px; }
.mega-menu__col--scripta .mega-menu__desc { max-width: 320px; }
.mega-menu__desc--muted { color: #9D9D9D; }

/* 8. Fundos cinematográficos --------------------------------------------- */
.backdrop { position: absolute; inset: 0; overflow: hidden; }
.backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.42);
}
.backdrop__img--dim { filter: grayscale(1) contrast(1.15) brightness(0.2); }

.backdrop__sweep {
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 32%, rgba(0, 0, 0, 0.6) 50%, transparent 68%);
  animation: sweepShadow var(--sweep-duration) linear infinite alternate;
}
.backdrop__sweep--slow { --sweep-duration: 60s; }
.backdrop__sweep--fast { --sweep-duration: 40s; }

.backdrop__veil { position: absolute; inset: 0; background: rgba(10, 9, 8, 0.72); }
.backdrop__veil--soft { background: rgba(10, 9, 8, 0.66); }

.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, var(--bg) 100%);
}
.backdrop__vignette--center { background: radial-gradient(110% 90% at 50% 50%, transparent 35%, var(--bg) 100%); }
.backdrop__vignette--wide { background: radial-gradient(120% 90% at 50% 50%, transparent 30%, var(--bg) 100%); }

/* gradiente vertical (faixa das narrativas) */
.backdrop__fade-y { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 9, 8, 0.55) 45%, var(--bg) 100%); }
.backdrop__fade-diag { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 20%, rgba(0, 0, 0, 0.65) 78%, rgba(0, 0, 0, 0.75) 100%); }

/* 9. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: 1230px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 0 0;
  box-sizing: border-box;
}
.hero__line { display: block; }
.hero__lead {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  font-size: 1.0rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  max-width: 75ch;
  margin: 40px 0 0;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__fineprint { font-size: 0.95rem; color: var(--muted); margin-top: 26px; }
.hero__pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 60px 0 80px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill { border: 1px solid rgba(142, 135, 124, 0.3); border-radius: var(--radius); padding: 8px 16px; }

/* animações de entrada do hero (respeitam prefers-reduced-motion) */
.anim-fade { animation: fadeIn 400ms both; }
.anim-rise { animation: riseIn 700ms cubic-bezier(.16, 1, .3, 1) both; }
.d1 { animation-delay: 100ms; }
.d2 { animation-delay: 90ms; }
.d3 { animation-delay: 180ms; }
.d4 { animation-delay: 500ms; }
.d5 { animation-delay: 620ms; }
.d6 { animation-delay: 700ms; }
.d7 { animation-delay: 780ms; }

/* seção invertida — fundo claro, texto escuro */
.section-inverted {
  background: #E8E5E0;
  color: #1A1815;
}
.section-inverted .prose,
.section-inverted .pull,
.section-inverted .prose-light {
  color: #1A1815;
}
.section-inverted strong em {
  font-weight: 600;
  font-style: italic;
  color: #5C5550;
}
.section-inverted .card {
  background: #F7F4EF;
  border-color: rgba(26, 24, 21, 0.15);
}
.section-inverted .card .text-muted {
  color: #4A443C;
}
.section-inverted .card .body-copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: #1A1815;
}
.prose-light {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.7;
  color: #1A1815;
}
.headline-inverted {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A1815;
  margin: 0;
}
.marker-inverted {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  color: #1A1815;
  font-weight: 400;
  border-bottom: 1px dashed var(--muted);
  padding-bottom: 2px;
}

.marker-muted {
  background: var(--border);
  color: var(--text);
  padding: 6px 8px;
}

.section-inverted--hero,
.section-inverted--metodo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-inverted--hero { background-image: url('images/O7OFX90.webp'); }
.section-inverted--metodo { background-image: url('images/O7OFX90_B.webp'); }

/* título animado — digitação, edição e troca de palavras via "mouse" */
.hero-title--anim {
  display: grid;
  max-width: none; /* as frases animadas são mais longas que o cap de 14ch */
  line-height: 0.90; /* o 97px fixo encavala as letras quando a fonte passa de ~100px */
}
.hero-title__sizer,
.hero-title__live { grid-area: 1 / 1; }
.hero-title__sizer { visibility: hidden; pointer-events: none; }
.ht-row { display: block; }
.hero-title__live {
  position: relative;
  transition: opacity 480ms ease;
}

.type-caret {
  display: inline-block;
  width: 3px;
  /* baixo o bastante para não crescer a line box (evita flicker ao trocar de linha) */
  height: 0.5em;
  margin-left: 3px;
  background: var(--gold);
  vertical-align: baseline;
  animation: blink 1.06s steps(1) infinite;
}
.type-caret[hidden] { display: none; }

.hero-mouse {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px; /* hotspot do I-beam no centro */
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: transform 620ms cubic-bezier(.3, .7, .3, 1), opacity 320ms ease;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.hero-mouse__icon {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transition: transform 140ms ease;
}
.hero-mouse.is-clicking .hero-mouse__icon { transform: scale(0.82); }

.ht-word {
  background-image: linear-gradient(rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.3));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 0% 100%;
}
.ht-word.is-selected {
  background-size: 100% 100%;
  transition: background-size 300ms ease-out;
}

/* fechamento — título com altura/largura fixas (grid empilhado) para a troca de
   palavra via "mouse" não causar flicker/reflow no restante da seção */
.h2--anim { display: grid; }
.h2-anim__sizer,
.h2-anim__live { grid-area: 1 / 1; }
.h2-anim__sizer { visibility: hidden; pointer-events: none; }
.h2-anim__live { position: relative; }

/* 10. Tempo (sticky scroll) ---------------------------------------------- */
.tempo { position: relative; height: 280vh; }
.tempo__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tempo__content { position: relative; text-align: center; padding: 0 var(--pad-x); }
.tempo__stage { position: relative; height: 220px; display: grid; place-items: center; }
.tempo__line {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.02em;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 600ms ease, filter 600ms ease;
}
.tempo__line--gold { font-style: italic; color: var(--gold); }

/* 11. Cartões e listas de features --------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color 220ms ease;
}
.card:hover { border-color: var(--gold); }

/* cartão numerado do método (03) */
.card__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3rem;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
}
.card .h3 { margin: 18px 0 10px; }

/* item de problema — regra no topo, sem fundo */
.problem {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.problem__mark { color: var(--gold); font-size: 0.7rem; }
.problem .body-copy { font-size: 0.85rem; }

/* lista de features com marcador ◈ */
.feature-list { display: grid; gap: 16px; font-size: 1.05rem; line-height: 1.6; font-family: var(--font-sans); font-weight: 200; }
.feature-list--sm { font-size: 0.9rem; gap: 12px; letter-spacing: 0.04em; }
.feature { display: flex; gap: 14px; }
.feature__mark { color: var(--gold); font-size: 0.65rem; margin-top: 0.5em; }

/* 12. Marquee ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.marquee__track--left { animation: marqueeLeft 42s linear infinite; }
.marquee__track--right { animation: marqueeRight 38s linear infinite; }

/* 13. Chips, tags e estatísticas ----------------------------------------- */
.tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease;
}
.tag:hover { border-color: var(--gold); color: var(--gold-light); }

/* faixa de estatística grande (+9 / +16) */
.stat-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 0 36px;
  transition: border-color 220ms ease;
}
.stat-band:hover { border-color: var(--gold); }
.stat-band__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  padding: 0 48px;
}
.stat-band__figure {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.8;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
}
.stat-band__figure sup { font-size: 0.45em; vertical-align: top; color: var(--muted); }

/* números grandes (grade 3×2) */
.stat-figure {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.8;
  color: var(--gold);
  font-variant-numeric: oldstyle-nums;
  transition: color 220ms ease;
}

/* 14. Linhas de tabela --------------------------------------------------- */
.trow {
  display: grid;
  gap: 8px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.trow--templates { grid-template-columns: 180px 1fr 60px; }
.trow--roadmap { grid-template-columns: 200px 1fr 150px; padding: 18px 0; }
.trow__name { font-family: var(--font-display); font-size: 1.35rem; }
.trow__desc { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.trow__count { font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold); text-align: right; }
.trow__status {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}
.trow--muted .trow__name,
.trow--muted .trow__status { color: var(--muted); }
.status-live { color: var(--gold); }

/* seção de cabeçalho de tabela com espaço extra acima */
.label--rule-gap { padding: 56px 0 16px; border-bottom: 1px solid var(--border); }

/* ficha de exemplo (mono) */
.ficha {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 640px;
}
.ficha__label { color: var(--gold); letter-spacing: 0.1em; }
.ficha__key { color: var(--muted); margin-top: 16px; }
.ficha__value { color: var(--text); margin-top: 4px; }

/* lista de fichas de cena (descritivos / sequência) */
.scene-row { padding: 18px 0; border-bottom: 1px solid var(--border); }
.scene-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.scene-row__name { font-family: var(--font-display); font-size: 1.25rem; }
.scene-row__tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }
.scene-row__desc { font-size: 0.9rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* 15. Inspector (assinatura) --------------------------------------------- */
.sig-grid {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 56px;
  align-items: start;
}
.sig-deck-col { display: flex; flex-direction: column; }
.sig-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 72px 64px;
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.sig-page__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1.9;
  max-width: 46ch;
  margin: 0;
}
.sig-page__num {
  position: absolute;
  bottom: 28px; right: 36px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.sig-hl {
  background: linear-gradient(rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.16)) left / 0% 100% no-repeat;
  transition: background-size 900ms ease-out, border-bottom 250ms ease;
  border-bottom: 1px dashed transparent;
}
.sig-cursor {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background: var(--gold);
  vertical-align: -0.2em;
  margin-left: 2px;
  opacity: 0;
}

/* coverflow — cartão central de frente, os demais girados em 3D atrás dele */
.sig-deck {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}
.sig-deck__track {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1600px;
}
.sig-deck__track > * {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(220px, 26vw, 300px);
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 480ms ease, box-shadow 320ms ease, border-color 220ms ease;
}
.sig-deck__nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  transition: border-color 220ms ease, color 220ms ease, opacity 220ms ease;
}
.sig-deck__nav:hover { border-color: var(--gold); color: var(--gold-light); }
.sig-deck__nav[disabled] { opacity: 0.3; cursor: default; }
.sig-deck__nav[disabled]:hover { border-color: var(--border); color: var(--text); }
.sig-deck__nav--prev { margin-right: 8px; }
.sig-deck__nav--next { margin-left: 8px; }

.sig-deck__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.sig-deck__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.sig-deck__dot:hover { border-color: var(--gold-light); }
.sig-deck__dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }

.sig-ficha {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.sig-card {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sig-card:hover { border-color: var(--gold); }
.sig-card--keep {
  cursor: pointer;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sig-card--keep:hover { border-color: var(--gold); }

.sig-card__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sig-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  margin-top: 12px;
}
.sig-card__body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 14px;
}
.sig-card__body strong { color: var(--text); font-weight: 400; }
.sig-card__actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sig-card__cta { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }

/* 16. Toggles (ajuste fino) ---------------------------------------------- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row__title { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.toggle-row__hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.switch {
  flex: none;
  width: 34px;
  height: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: var(--muted);
  left: 2px;
}
.switch--on { border-color: var(--gold); }
.switch--on::after { background: var(--gold); left: auto; right: 2px; }

/* 17. Outline / árvore de cenas ------------------------------------------ */
.tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 40px 0;
}
.tree__bar {
  width: 180px;
  height: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transition: transform 300ms ease, border-color 300ms ease;
}
.tree__bar:hover,
.tree__bar--active { transform: translateX(22px); border-color: var(--gold); }
.tree__rule { width: 220px; height: 1px; background: var(--border); margin-top: 24px; }
.tree__caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 10px; }

/* camadas onion (roadmap) — destaque âmbar percorre de fora para dentro */
.onion {
  --onion-step: 900ms;
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.onion__ring,
.onion__core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: onionGlow calc(var(--onion-step) * 5) ease-in-out infinite;
  animation-fill-mode: backwards;
}
.onion__ring {
  border: 1px solid var(--border);
}
.onion__ring:nth-of-type(1) { width: 100%; height: 100%; animation-delay: calc(var(--onion-step) * 4); }
.onion__ring:nth-of-type(2) { width: 75%; height: 75%; animation-delay: calc(var(--onion-step) * 3); }
.onion__ring:nth-of-type(3) { width: 50%; height: 50%; animation-delay: calc(var(--onion-step) * 2); }
.onion__ring:nth-of-type(4) { width: 25%; height: 25%; animation-delay: var(--onion-step); }
.onion__core {
  width: 12px;
  height: 12px;
  background: var(--border);
  animation-name: onionGlowCore;
  animation-delay: 0ms;
}
.onion__label {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}
.onion__label--fundacao { top: 66%; left: 38%; }
.onion__label--outline { top: 40%; left: 64%; }
.onion__label--manuscrito { top: 14%; left: 76%; }

@keyframes onionGlow {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  4%, 16% { border-color: var(--gold); box-shadow: 0 0 26px rgba(201, 162, 39, 0.35), inset 0 0 26px rgba(201, 162, 39, 0.12); }
  20% { border-color: var(--border); box-shadow: none; }
}
@keyframes onionGlowCore {
  0%, 100% { background: var(--border); box-shadow: none; }
  4%, 16% { background: var(--gold); box-shadow: 0 0 18px rgba(201, 162, 39, 0.55); }
  20% { background: var(--border); box-shadow: none; }
}

/* pilha de fichas de cena (seção 09) */
.scene-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.scene-stack__card {
  width: 200px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.scene-stack__link { width: 200px; height: 1px; background: rgba(201, 162, 39, 0.5); }
.scene-stack__caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 20px; }

/* 18. Planos ------------------------------------------------------------- */
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.plan--featured {
  border-color: var(--gold);
  transform: translateY(-16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.plan__head { display: flex; justify-content: space-between; align-items: center; }
.plan__badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border-radius: var(--radius);
  padding: 4px 10px;
}
.plan__price { font-family: var(--font-display); font-weight: 300; font-size: 3rem; margin-top: 18px; }
.plan__price span { font-size: 1.1rem; color: var(--muted); }
.plan__caption { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
.plan__features { display: grid; gap: 12px; font-size: 0.98rem; line-height: 1.55; margin: 32px 0 40px; }
.plan__feature { display: flex; gap: 12px; }
.plan__mark { color: var(--gold); font-size: 0.6rem; margin-top: 0.55em; }
.plan__feature--off,
.plan__feature--off .plan__mark { color: var(--muted); }
.plan__features strong { font-weight: 400; font-style: italic; }

/* 19. FAQ ---------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--border); }
.faq > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq__mark { color: var(--gold); font-size: 1rem; flex: none; }
.faq__answer { font-size: 1.05rem; line-height: 1.72; color: var(--muted); margin: 0 0 28px; max-width: 62ch; }

/* 20. Rodapé + grão ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-col__links { display: grid; gap: 12px; font-family: var(--font-sans); font-size: 0.85rem; }
.footer-col__links a { color: var(--muted); }
.footer-link--disabled { color: #55504A; cursor: default; pointer-events: none; }
.footer-brand__tag { font-family: var(--font-sans); font-size: 0.95rem; color: var(--muted); margin: 16px 0 0; max-width: 30ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 28px;
}
.footer-social { display: flex; gap: 24px; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-version { font-family: var(--font-mono); font-size: 0.65rem; color: color-mix(in srgb, var(--muted) 50%, transparent); }

/* link que acende em dourado */
.link-gold { transition: color 200ms ease; }
.link-gold:hover { color: var(--gold-light); }

/* grão sobre a página */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22160%22 height=%22160%22 filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

/* utilidades pontuais */
.center { text-align: center; }
.text-left { text-align: left; }
.em-strong { font-weight: 400; font-style: italic; }

/* marca do produto no rodapé */
.product-name { font-family: var(--font-sans); font-weight: 500; }
.product-name em { font-family: var(--font-display); font-style: italic; color: var(--gold); }

/* faixa de imagem curta (seção Estruturas narrativas) */
.band {
  position: relative;
  height: 40vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.band__inner { position: relative; width: 100%; padding-bottom: 40px; }
.backdrop__img--fill { position: absolute; inset: 0; }

/* seção de fechamento com imagem de fundo */
.closing {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.closing__lead { font-family: var(--font-sans); font-size: 1.2rem; line-height: 1.7; }

/* citação em bloco monoespaçada (Princípio) */
.quote-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  max-width: 620px;
  text-align: left;
  line-height: 1.7;
  color: var(--text);
}
.quote-box__source { color: var(--muted); margin-top: 16px; }

/* Utilitários — espaçamento */
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }
.mt-52 { margin-top: 52px; }
.mt-56 { margin-top: 56px; }
.mt-72 { margin-top: 72px; }
.mt-90 { margin-top: 90px; }
.mt-100 { margin-top: 100px; }
.mt-0 { margin-top: 0; }

.relative { position: relative; }

.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-60 { margin-bottom: 60px; }
.mb-64 { margin-bottom: 64px; }
.mb-80 { margin-bottom: 80px; }
.mb-90 { margin-bottom: 90px; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-48 { margin: 48px 0; }
.my-80 { margin: 80px 0; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Utilitários — largura e conteúdo */
.mw-24 { max-width: 24ch; }
.mw-30 { max-width: 30ch; }
.mw-42 { max-width: 42ch; }
.mw-60 { max-width: 60ch; }
.mw-640 { max-width: 640px; }
.mw-820 { max-width: 820px; }
.mw-900 { max-width: 900px; }

/* Utilitários — espaçamentos de seção verticais soltos */
.pt-60 { padding-top: 60px; }
.pt-90 { padding-top: 90px; }
.pt-120 { padding-top: 120px; }
.pb-40 { padding-bottom: 40px; }
.pb-60 { padding-bottom: 60px; }
.pb-120 { padding-bottom: 120px; }
.pb-160 { padding-bottom: 160px; }
.pb-200 { padding-bottom: 200px; }

/* Utilitários — itálico condensado / grupos de ação */
.italic { font-style: italic; }
.actions-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* 21. Media queries ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 1240px) and (min-width: 1001px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .site-nav .nav-link,
  .site-nav .nav-item { display: none; }
  .grid--2,
  .grid--2-wide,
  .grid--2-even,
  .grid--3 { grid-template-columns: 1fr; }
  .trow--templates,
  .trow--roadmap { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .sig-grid { grid-template-columns: 1fr; gap: 40px; }
  .sig-page { height: auto; }
  .sig-deck { height: 380px; }
}

/* 22. Scrollbar customizada ---------------------------------------------- */
.scrollbar {
  position: fixed;
  top: 8px;
  bottom: 8px;
  right: 5px;
  width: 4px;
  z-index: 80;
  border-radius: 2px;
  background: rgba(36, 31, 26, 0.45);
  opacity: 0.35;
  transition: opacity 400ms ease, width 200ms ease;
}
.scrollbar:hover,
html.is-scrolling .scrollbar,
html.is-dragging .scrollbar { opacity: 1; }
.scrollbar:hover,
html.is-dragging .scrollbar { width: 8px; }
.scrollbar.is-hidden { display: none; }

.scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: inherit;
  background: var(--gold);
  cursor: grab;
  transition: background 200ms ease;
}
.scrollbar:hover .scrollbar__thumb,
html.is-dragging .scrollbar__thumb { background: var(--gold-light); }
html.is-dragging .scrollbar__thumb { cursor: grabbing; }

/* durante o arrasto o thumb dita a posição — sem smooth nem seleção de texto */
html.is-dragging { scroll-behavior: auto; }
html.is-dragging body { -webkit-user-select: none; user-select: none; }

@media (pointer: coarse) {
  .scrollbar { display: none; }
}
