/* =====================================================================
   FÁBRICA DE DEMANDA — estilos
   Mobile first: a base é o telemóvel; o computador entra nos @media.

   Paleta tirada do logótipo (media/logotipo.jpeg):
   tinta #101116 · papel #F5F2EA · sinal #FF5C39 (o "ponto" de notificação).
   O sinal é usado com parcimónia: palavras-chave, botões, o ponto.
   ===================================================================== */

:root {
  /* ---- Cores da marca ---- */
  --ink: #101116;               /* fundo do logótipo */
  --paper: #f5f2ea;             /* balão do logótipo */
  --signal: #ff5c39;            /* ponto de notificação */
  --signal-ink: #c0391a;        /* sinal escurecido para texto sobre papel (≈4,8:1) */

  --bg-light: var(--paper);
  --bg-dark: var(--ink);
  --bg-accent: var(--signal);
  --text-on-light: var(--ink);
  --muted-on-light: #55524b;
  --text-on-dark: var(--paper);
  --muted-on-dark: #b4b0a6;
  --accent: var(--signal-ink);
  --accent-on-dark: var(--signal);  /* ≈6,2:1 sobre tinta */
  --placeholder-bg: #0b0c10;
  --pending-missing: #ffe066;
  --pending-confirm: #a5d8ff;

  /* ---- Tipografia ---- */
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: 1.25rem;
  --header-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Zonas de cor (o texto inverte automaticamente) ---- */
[data-zone="light"] {
  --zone-bg: var(--bg-light);
  --fg: var(--text-on-light);
  --muted: var(--muted-on-light);
  --kw: var(--accent);
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --line: rgba(16, 17, 22, .14);
  color: var(--fg);
}
[data-zone="dark"] {
  --zone-bg: var(--bg-dark);
  --fg: var(--text-on-dark);
  --muted: var(--muted-on-dark);
  --kw: var(--accent-on-dark);
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --line: rgba(245, 242, 234, .16);
  color: var(--fg);
}
[data-zone="accent"] {
  --zone-bg: var(--bg-accent);
  --fg: var(--ink);
  --muted: rgba(16, 17, 22, .8);
  --kw: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --line: rgba(16, 17, 22, .22);
  color: var(--fg);
}
/* Na zona de destaque a palavra-chave ganha um "marcador" de papel */
[data-zone="accent"] .kw {
  background: var(--paper);
  padding: 0 .14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Logótipo ---- */
.mark { display: block; height: 1.7em; width: auto; flex: none; overflow: visible; }
.mark-dot { fill: var(--signal); transform-box: fill-box; transform-origin: center; }
.logo .mark-dot, .loader-mark .mark-dot { animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-loading body { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--kw, var(--accent)); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  padding: .7rem 1rem; background: var(--bg-dark); color: var(--text-on-dark);
  border-radius: 6px; transform: translateY(-200%); text-decoration: none;
}
.skip-link:focus { transform: none; }
.noscript { padding: 2rem var(--gutter); font-weight: 600; }

/* Palavras-chave: negrito na cor de destaque */
.kw { color: var(--kw); font-weight: 700; }

/* Marcadores [EM FALTA] e [CONFIRMAR COM O CLIENTE] — sempre visíveis */
.pending {
  font-family: var(--font-mono);
  font-size: .78em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  padding: .12em .45em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pending--missing { background: var(--pending-missing); color: #1a1400; }
.pending--confirm { background: var(--pending-confirm); color: #06263f; }

.pending-block {
  margin-top: 1.75rem;
  padding: 1.4rem 1.25rem;
  border: 2px dashed var(--line);
  border-radius: 8px;
  font-size: 1.05rem;
  animation: dash-pulse 2.8s ease-in-out infinite;
}
@keyframes dash-pulse { 50% { border-color: var(--kw); } }

/* Notas internas (?notas=1 no URL) */
.dev-note {
  margin-bottom: 1.5rem;
  padding: .6rem .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.5;
  background: var(--pending-missing);
  color: #1a1400;
  border-radius: 4px;
}

/* =====================================================================
   Camadas fixas
   ===================================================================== */
.page-bg { position: fixed; inset: 0; z-index: 0; background: var(--bg-light); }

.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}
#canvas { display: block; width: 100%; height: 100%; }

#dark-overlay {
  position: fixed; inset: 0; z-index: 2;
  background: #060606; opacity: 0; pointer-events: none;
}

main, footer { position: relative; z-index: 4; }
#scroll-container, .flow-section, .hero-standalone { overflow-x: clip; }

/* ---- Loader ---- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background: var(--bg-dark); color: var(--text-on-dark);
}
.loader-brand {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 6vw, 2.2rem); letter-spacing: -.03em;
}
.loader-brand .mark { height: 3.2em; }
.loader-track { width: min(18rem, 64vw); height: 2px; background: rgba(245, 242, 234, .14); overflow: hidden; }
#loader-bar { width: 0%; height: 100%; background: var(--accent-on-dark); transition: width .25s linear; }
#loader-percent { font-family: var(--font-mono); font-size: .75rem; color: var(--muted-on-dark); }

/* =====================================================================
   Cabeçalho
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  transition: transform .55s var(--ease-out), color .4s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1;
  background: linear-gradient(to bottom, var(--zone-bg) 35%, transparent);
  opacity: .92; transition: background .4s ease; pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-110%); }
.nav {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.logo .mark { height: 1.9em; }
.nav-links { display: none; }
.nav-links a {
  position: relative; text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--kw); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* =====================================================================
   Botões (WhatsApp)
   ===================================================================== */
.cta-group { margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .85rem 1.35rem;
  border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .btn-arrow { transition: transform .45s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .88rem; }
.btn[aria-disabled="true"] { cursor: help; }
.cta-pending { margin-top: .7rem; font-size: .9rem; }

/* =====================================================================
   Marcadores de media (fundo escuro + nome exato do ficheiro)
   ===================================================================== */
.media-slot { margin-top: 2.25rem; width: 100%; max-width: 30rem; }
.media-slot__inner {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10);
  display: flex; align-items: flex-end;
  padding: 1rem 1.1rem;
  background-color: var(--placeholder-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 6px;
  color: var(--text-on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.media-slot__scan {
  position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 138, 76, .13), transparent);
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan { to { transform: translateY(350%); } }
.media-slot figcaption { position: relative; display: grid; gap: .35rem; }
.media-slot__kind {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-on-dark);
}
.media-slot__file {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1rem, 4.4vw, 1.3rem); line-height: 1.25;
  color: var(--accent-on-dark); word-break: break-word;
}
.media-slot__proposed { font-family: var(--font-mono); font-size: .75rem; color: var(--text-on-dark); }
.media-slot__cond { font-size: .76rem; line-height: 1.45; color: #d6d1c8; }

/* =====================================================================
   Tipografia de secção
   ===================================================================== */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.section-heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 9.5vw, 4.6rem);
  line-height: .98; letter-spacing: -.03em;
  text-wrap: balance;
}
.section-body { margin-top: 1.25rem; font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
.section-body .kw, .section-note .kw { font-weight: 700; }
.section-note { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }

/* =====================================================================
   01 — Abertura (hero)
   Telemóvel: fluxo normal + pista de scroll para o circle-wipe.
   Computador: hero fixado (sticky) durante ~20% do scroll.
   ===================================================================== */
.hero-standalone { position: relative; padding-bottom: 55svh; }
.hero-sticky {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 4.5rem;
}
.hero-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 12rem);
  line-height: .92; letter-spacing: -.04em;
  margin: 0 0 1.4rem;
}
.hero-heading .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .02em .02em .1em; margin-bottom: -.08em;
}
.hero-heading .w-i { display: inline-block; will-change: transform; }
.hero-heading .kw { font-weight: 800; }
.hero-label { color: var(--muted); }
.hero-tagline { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.hero-bottom { display: grid; gap: .5rem; }
.hero-bottom .cta-group { margin-top: 1.5rem; }
.hero-media { margin-top: 1.75rem; }

.scroll-indicator {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-indicator i {
  position: relative; display: block; width: 1px; height: 2.2rem; overflow: hidden;
  background: var(--line);
}
.scroll-indicator i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--fg);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { top: 110%; } }

/* =====================================================================
   02–06 — Secções sobre o canvas
   Telemóvel: texto ao centro com fundo escuro difuso por trás (sem cartões).
   ===================================================================== */
#scroll-container { position: relative; }
.scroll-section {
  position: relative;
  min-height: 135svh;
  display: flex; align-items: center;
  padding: 16svh var(--gutter);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
.scroll-section .section-inner { position: relative; width: 100%; max-width: 36rem; margin: 0 auto; }
.scroll-section .section-inner::before {
  content: ""; position: absolute; z-index: -1; inset: -3rem -2.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 17, 22, .86) 0%, rgba(16, 17, 22, .72) 50%, rgba(16, 17, 22, 0) 78%);
  pointer-events: none;
}
.scroll-section .media-slot, .scroll-section .btn, .scroll-section .pending { text-shadow: none; }
body.video-claro .scroll-section .section-inner::before {
  background: radial-gradient(ellipse at 50% 50%, rgba(243, 241, 236, .9) 0%, rgba(243, 241, 236, .75) 50%, rgba(243, 241, 236, 0) 78%);
}
body.video-claro .scroll-section { text-shadow: none; }

/* 02 — lista de perfis */
.who-list {
  margin-top: 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem;
  counter-reset: who;
}
.who-list li {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .7rem 0; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.2;
}
.who-list .idx { font-family: var(--font-mono); font-size: .66rem; color: var(--kw); flex: none; }

/* 03 — desafios */
.challenge-list { margin-top: 1.5rem; display: grid; gap: .25rem; }
.challenge-list li {
  position: relative; padding: .95rem 0 .95rem 2.1rem;
  font-size: 1.12rem; line-height: 1.4;
}
.challenge-list li::before {
  content: "—"; position: absolute; left: 0; top: .95rem; color: var(--kw); font-weight: 700;
}
.challenge-list .rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform-origin: left;
}

/* 04 — ingredientes */
.ingredients { margin-top: 1.5rem; display: grid; gap: .1rem; }
.ingredients li {
  display: flex; align-items: baseline; gap: .8rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 5.6vw, 2rem); line-height: 1.25; letter-spacing: -.015em;
}
.ingredients li::before { content: "+"; color: var(--kw); font-weight: 700; flex: none; }

/* 04 — a viragem de pergunta */
.turn {
  margin-top: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--kw);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem); line-height: 1.3;
}

/* 05 — engrenagens */
.gears { margin-top: 1.75rem; display: grid; gap: 0; }
.gears li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.gear-n {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px dashed var(--kw);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--kw);
}
.gears h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.gears p { margin-top: .35rem; color: var(--muted); }
.support { margin-top: .75rem; display: grid; gap: .6rem; font-size: .98rem; color: var(--muted); }
.support strong { color: var(--fg); }
.areas-title, .sub-label {
  margin-top: 2.25rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--kw);
}
.areas { margin-top: .9rem; display: grid; gap: .1rem; }
.areas div { padding: .7rem 0; border-top: 1px solid var(--line); }
.areas dt { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.areas dd { margin-top: .15rem; color: var(--muted); font-size: .95rem; }

/* Contadores */
.stats-grid { margin-top: 2.5rem; display: grid; gap: 2rem; }
.stats-grid--inline { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stats-grid--inline .stat { justify-items: start; }
.stats-grid--inline .stat-number { font-size: clamp(3rem, 13vw, 4.6rem); }
.stat-figure { display: inline-flex; align-items: baseline; }

/* 06 — provas */
.section-stats { text-align: center; }
.section-stats .section-inner { max-width: 54rem; }
.section-stats .section-body { margin-left: auto; margin-right: auto; }
.section-stats .media-slot { margin-left: auto; margin-right: auto; text-align: left; }
.chain {
  margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .4rem;
}
.chain li {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 4.2vw, 1.5rem);
}
.chain li:not(:last-child)::after { content: "→"; color: var(--kw); font-weight: 700; }
.chain li:last-child span { color: var(--kw); }
.honesty { margin: 1.25rem auto 0; max-width: 36rem; font-size: .95rem; color: var(--muted); }
.examples-note { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.examples { margin-top: 1.25rem; display: grid; gap: 1rem; text-align: left; }
.example { padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.example h3 {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--kw);
}
.example-moment { margin-top: .4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.example p:last-child { margin-top: .35rem; color: var(--muted); }
.stat { display: grid; justify-items: center; gap: .3rem; }
.stat-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 6rem); line-height: 1; letter-spacing: -.04em;
}
.stat-suffix { font-family: var(--font-display); font-size: 1.6rem; color: var(--kw); }
.stat-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.testimonials { margin-top: 2.5rem; display: grid; gap: 2rem; text-align: left; }
.testimonials blockquote { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; }
.testimonials figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.provas-confirm { margin-top: 1.25rem; font-size: .95rem; }

/* =====================================================================
   07 — Dúvidas (fluxo normal, fundo claro)
   ===================================================================== */
.flow-section { position: relative; padding: 20svh var(--gutter) 16svh; }
.duvidas-grid { display: grid; gap: 3rem; max-width: 84rem; margin: 0 auto; }
.duvidas-intro .media-slot { max-width: 26rem; }
.faq-list { counter-reset: faq; }
.faq-item { counter-increment: faq; padding: 1.9rem 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em;
}
.faq-q::before {
  content: counter(faq, decimal-leading-zero);
  display: block; margin-bottom: .55rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--kw);
}
.faq-a { margin-top: .9rem; font-size: 1.05rem; color: var(--muted); max-width: 38rem; }
.faq-note { margin-top: .7rem; font-size: .92rem; }

/* ---- Marquees ---- */
.marquee-wrap { overflow: hidden; pointer-events: none; }
.marquee-text {
  display: inline-block; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
}
.marquee-fixed {
  position: fixed; left: 0; right: 0; top: 50%; z-index: 3;
  transform: translateY(-50%); opacity: 0;
}
.marquee-fixed .marquee-text {
  font-size: 24vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 234, .22);
}
.marquee-flow { position: relative; padding: 4svh 0 8svh; }
.marquee-flow .marquee-text { font-size: clamp(4.5rem, 20vw, 15rem); color: var(--fg); }
.marquee-flow .marquee-text .dot { color: var(--kw); }

/* =====================================================================
   08 — Chamada final
   ===================================================================== */
#chamada-final {
  background: var(--bg-accent);
  min-height: 100svh; display: flex; align-items: center;
  will-change: clip-path;
}
#chamada-final .section-inner { width: 100%; max-width: 84rem; margin: 0 auto; }
.final-grid { display: grid; gap: 2.5rem; align-items: center; }
.final-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 13vw, 9rem); line-height: .92; letter-spacing: -.04em;
  text-wrap: balance;
}
.final-heading .kw { font-weight: 800; }
#chamada-final .media-slot { max-width: 24rem; }

/* =====================================================================
   09 — Rodapé
   ===================================================================== */
#rodape { background: var(--bg-dark); overflow: hidden; padding: 14svh var(--gutter) 2rem; }
.footer-inner { max-width: 84rem; margin: 0 auto; }
.footer-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: 16vw; line-height: .86; letter-spacing: -.05em;
  overflow: hidden;
}
.footer-word .line { display: block; white-space: nowrap; }
.footer-word .ch { display: inline-block; will-change: transform; }
.footer-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
.footer-title {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer-links { display: grid; gap: .6rem; }
.footer-links a {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-size: 1.1rem; font-weight: 600;
}
.footer-links a:hover { color: var(--kw); }
.footer-links small { font-weight: 400; color: var(--muted); }
.footer-data { display: grid; gap: .55rem; }
.footer-data div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.footer-data dt { color: var(--muted); font-size: .92rem; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: grid; gap: .8rem; font-size: .82rem; color: var(--muted);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--kw); }

/* ---- Toast ---- */
#toast {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1rem; z-index: 120;
  max-width: 30rem; margin: 0 auto;
  padding: 1rem 1.1rem 1.1rem; border-radius: 10px;
  background: #1a1b21; color: var(--text-on-dark);
  border-left: 4px solid var(--accent-on-dark);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-size: .92rem;
}
#toast strong { display: block; margin-bottom: .35rem; font-size: 1rem; }
#toast q { display: block; margin-top: .5rem; color: var(--muted-on-dark); font-style: italic; }
#toast button {
  position: absolute; top: .5rem; right: .5rem;
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer;
}

/* =====================================================================
   Tablet
   ===================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .who-list { grid-template-columns: 1fr 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: end; }
}

/* =====================================================================
   Computador
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 5vw; --header-h: 76px; }

  .nav-links { display: flex; gap: 2.2rem; }

  /* Hero fixado ~20% do scroll total */
  .hero-standalone { height: 210vh; padding-bottom: 0; }
  .hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 0; padding-bottom: 5.5rem; }
  .hero-heading { font-size: clamp(6rem, min(13vw, 17vh), 12rem); margin-bottom: 2rem; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; gap: 4vw; }
  .hero-tagline { font-size: 1.2rem; }
  .hero-media { margin-top: 0; justify-self: end; }

  /* Texto só nas faixas laterais de 40% — o centro é do canvas */
  .scroll-section { min-height: 180vh; }
  .align-left  { padding-left: 5vw;  padding-right: 55vw; }
  .align-right { padding-left: 55vw; padding-right: 5vw; }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 40vw; margin: 0; }
  .scroll-section .section-inner::before { display: none; }
  .section-stats .section-inner::before { display: none; }

  /* Esbatimento nas margens do canvas para legibilidade */
  .canvas-wrap::before, .canvas-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 48vw; z-index: 1; pointer-events: none;
  }
  .canvas-wrap::before { left: 0;  background: linear-gradient(90deg, rgba(16, 17, 22, .78), rgba(16, 17, 22, 0)); }
  .canvas-wrap::after  { right: 0; background: linear-gradient(-90deg, rgba(16, 17, 22, .78), rgba(16, 17, 22, 0)); }
  body.video-claro .canvas-wrap::before { background: linear-gradient(90deg, rgba(243, 241, 236, .85), rgba(243, 241, 236, 0)); }
  body.video-claro .canvas-wrap::after  { background: linear-gradient(-90deg, rgba(243, 241, 236, .85), rgba(243, 241, 236, 0)); }

  .marquee-fixed .marquee-text { font-size: 14vw; }

  .duvidas-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: start; }
  .faq-item { padding: 2.4rem 0; }

  .final-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 6vw; }
  #chamada-final .media-slot { justify-self: end; margin-top: 0; }

  .footer-word { font-size: 15.5vw; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 6vw; }
}

/* =====================================================================
   Movimento reduzido: tudo visível, sem animações
   ===================================================================== */
html.reduce .canvas-wrap { clip-path: none; }
html.reduce .hero-standalone { padding-bottom: 0; height: auto; }
html.reduce .hero-sticky { position: relative; height: auto; min-height: 100svh; }
html.reduce #duvidas, html.reduce .marquee-flow { background: var(--bg-light); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Rodapé — logótipo + nome
   ===================================================================== */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.footer-brand .mark { height: 4.5rem; color: var(--paper); }
.footer-aviso { display: inline-block; margin-top: .5rem; font-size: .78rem; opacity: .85; }
@media (min-width: 1024px) {
  .footer-brand { flex-direction: row; align-items: flex-end; gap: 3vw; }
  .footer-brand .mark { height: 22vw; }
  .footer-word { font-size: 13vw; }
}

/* Telemóvel estreito: o botão do cabeçalho fica só com o ícone (nome acessível mantido) */
@media (max-width: 479px) {
  .nav-cta .btn { width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; }
  .nav-cta .btn .btn-arrow { display: none; }
  .nav-cta .btn span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* =====================================================================
   07 — Investimento
   Colunas separadas por linhas; só o produto de entrada ganha bloco de tinta.
   ===================================================================== */
#investimento .section-inner { max-width: 84rem; margin: 0 auto; }
.invest-head { max-width: 46rem; }
.tiers { margin-top: 3rem; display: grid; gap: 0; }
.tier {
  display: flex; flex-direction: column;
  padding: 2rem 0 2.25rem; border-top: 1px solid var(--line);
}
.tier--main {
  background: var(--ink); color: var(--fg);
  padding: 2rem 1.5rem 2.25rem; border-top: 4px solid var(--signal); border-radius: 4px;
  margin-bottom: 1rem;
}
.tier-tag {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--kw);
}
.tier-tag span { color: var(--muted); margin-right: .35rem; }
.tier-name {
  margin-top: .7rem; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 6.5vw, 2.1rem); line-height: 1.05; letter-spacing: -.02em;
}
.tier-price {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em;
}
.tier--main .tier-price { display: flex; align-items: baseline; gap: .35rem; }
.tier--main .stat-number { font-size: clamp(3.6rem, 16vw, 5rem); line-height: .95; color: var(--signal); }
.tier-cur { font-size: 1.4rem; color: var(--muted); }
.tier-price .pending { font-size: .62em; }
.tier-note { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
.tier-list { margin-top: 1.25rem; display: grid; gap: .55rem; flex: 1; }
.tier-list li { position: relative; padding-left: 1.4rem; font-size: .98rem; line-height: 1.45; }
.tier-list li::before { content: "+"; position: absolute; left: 0; color: var(--kw); font-weight: 700; }
.tier-cta { margin-top: 1.75rem; }
.tier-cta .btn { width: 100%; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--zone-bg); }
.invest-teaser {
  margin-top: 2.5rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
}
html.reduce #investimento { background: var(--bg-light); }

@media (min-width: 720px) {
  .tiers { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .tier--main { margin-bottom: 0; }
}
@media (min-width: 1180px) {
  .tiers { grid-template-columns: 1.15fr 1fr 1fr 1fr; column-gap: 2rem; align-items: stretch; }
  .tier { border-top-width: 1px; }
  .tier--main { border-top-width: 4px; margin-top: -1rem; }
}

/* =====================================================================
   VÍDEOS — abertura em frames + palcos de vídeo (02–06) + vídeo em linha (08)
   ===================================================================== */
.page-bg { background: var(--ink); }
.canvas-wrap::before, .canvas-wrap::after { display: none !important; }
#canvas { transform-origin: 50% 42%; will-change: transform; }

/* ---- 01 Abertura: escura, fixada; o circle-wipe revela a sequência ---- */
.hero-standalone { height: 300svh; padding-bottom: 0; }
.hero-sticky {
  position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 4.5rem;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 17, 22, .95) 0%, rgba(16, 17, 22, .78) 30%, rgba(16, 17, 22, 0) 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-tagline { color: var(--muted); }
.hero-tagline .kw { color: var(--kw); }

/* ---- Palcos ---- */
#scroll-container { position: relative; }
.stage { position: relative; margin-top: -100svh; color: var(--fg); }
.stage-bg {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--ink); will-change: clip-path;
}
.video-box { position: absolute; inset: 0; will-change: transform; }
.video-el { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video-missing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
  padding: 6rem var(--gutter) 5.5rem;
  background-color: var(--placeholder-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-on-dark);
}
.video-missing[hidden], .video-el[hidden] { display: none; }
.stage-dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; }
.stage-content {
  position: relative; margin-top: -100svh;
  padding: 74svh var(--gutter) 100svh;
  pointer-events: none;
}
.stage-content .section-inner { pointer-events: auto; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.stage-content .btn, .stage-content .pending { text-shadow: none; }
.stage.section-stats .section-inner { margin: 0 auto; max-width: 54rem; }

@media (orientation: portrait) {
  .stage-shade { background: linear-gradient(0deg, rgba(16, 17, 22, .55) 0%, rgba(16, 17, 22, 0) 45%); }
}
@media (orientation: landscape) {
  .stage-content { padding-top: 48vh; }
  .stage[data-side="left"] .stage-shade {
    background: linear-gradient(90deg, rgba(16, 17, 22, .92) 0%, rgba(16, 17, 22, .66) 36%, rgba(16, 17, 22, 0) 62%);
  }
  .stage[data-side="right"] .stage-shade {
    background: linear-gradient(-90deg, rgba(16, 17, 22, .92) 0%, rgba(16, 17, 22, .66) 36%, rgba(16, 17, 22, 0) 62%);
  }
}
@media (orientation: landscape) and (min-width: 768px) {
  .hero-scrim {
    background: linear-gradient(-90deg, rgba(16, 17, 22, .94) 0%, rgba(16, 17, 22, .72) 34%, rgba(16, 17, 22, 0) 60%);
  }
  .hero-bottom { grid-template-columns: 1fr; justify-items: end; }
  .hero-copy { max-width: 31rem; }
}

/* Marquee dentro do palco 04 */
.stage-marquee { position: absolute; left: 0; right: 0; bottom: 9%; overflow: hidden; pointer-events: none; }
.stage-marquee .marquee-text {
  font-size: 16vw; color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 234, .3);
}

/* ---- Botão de som (só aparece quando o ficheiro tem áudio) ---- */
.sound-btn {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(245, 242, 234, .35);
  background: rgba(16, 17, 22, .6); color: var(--paper);
  font: 600 .8rem/1 var(--font-body); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s;
}
.sound-btn[hidden] { display: none; }
.sound-btn:hover { background: rgba(16, 17, 22, .85); border-color: var(--signal); }
.sound-btn svg { width: 1.1rem; height: 1.1rem; }
.sound-btn span { display: inline-flex; }
.sound-btn .sound-on { display: none; }
.sound-btn.is-on .sound-on { display: inline-flex; color: var(--signal); }
.sound-btn.is-on .sound-off { display: none; }
@media (max-width: 479px) {
  .sound-btn { width: 2.75rem; padding: 0; justify-content: center; }
  .sound-btn .sound-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---- 07 Investimento: folha que sobe por cima das provas ---- */
.sheet { margin-top: -100svh; z-index: 2; background: var(--paper); will-change: clip-path; }
#duvidas, .marquee-flow { background: var(--paper); }

/* ---- 08 Dúvidas: vídeo em linha ---- */
.inline-video {
  position: relative; margin: 2.25rem 0 0; max-width: 30rem;
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink);
}
.inline-video .video-missing { padding: 1rem 1.1rem; }
.inline-video .sound-btn { right: .75rem; bottom: .75rem; height: 2.4rem; }
@media (min-width: 1024px) { .duvidas-intro .inline-video { max-width: 26rem; } }

/* ---- Movimento reduzido ---- */
html.reduce .stage-bg { clip-path: none; }
html.reduce .hero-scrim { opacity: 1; }
html.reduce .hero-standalone { height: auto; }
html.reduce .hero-sticky { position: relative; height: 100svh; }

/* Faixas laterais de 40% nos palcos (computador) */
@media (min-width: 1024px) and (orientation: landscape) {
  .stage-content.align-left  { padding-left: 5vw;  padding-right: 55vw; }
  .stage-content.align-right { padding-left: 55vw; padding-right: 5vw; }
}

/* Botão de som fora da faixa de texto */
.stage[data-side="right"] .sound-btn { right: auto; left: var(--gutter); }
@media (orientation: portrait) {
  .stage .sound-btn { top: calc(var(--header-h) + .75rem); bottom: auto; right: var(--gutter); left: auto; }
  /* marcador de vídeo em falta no topo, longe do texto que sobe */
  .stage .video-missing { justify-content: flex-start; padding-top: calc(var(--header-h) + 4.5rem); }
}
