/* GERADO POR scripts/build.ts A PARTIR DE src/shared/theme.ts — NAO EDITAR */
:root{
  --brand-cobalt: #1E2BC0;
  --brand-cobalt-deep: #161FA0;
  --brand-blue: #5B79C2;
  --brand-blue-deep: #44619F;
  --brand-blue-dark: #33487F;
  --brand-blue-night: #101A38;
  --brand-violet: #6F5BFF;
  --brand-violet-soft: #9B7FE8;
  --brand-magenta: #C04BD0;
  --brand-lime: #ADD84C;
  --brand-lime-soft: #C6E579;
  --brand-lime-glow: #E4F3BC;
  --brand-lime-shade: #9FCB40;
  --brand-cream: #F3F1E9;
  --brand-cream2: #EAE7DB;
  --brand-cream3: #EDEBE1;
  --brand-cream-yellow: #F0E4A6;
  --brand-ink: #242736;
  --brand-ink-soft: #3A3F55;
  --brand-muted: #5F6478;
  --brand-scrim: #172044;
  --brand-night: #0A0B18;
  --brand-night-deep: #06070E;
  --brand-burst-paper: #F7F7F5;
  --brand-burst-card: #FFFFFF;
  --brand-burst-bubble: #FFF0E3;
  --brand-burst-chip: #F1F2F4;
  --brand-burst-orange: #FF7A1A;
  --brand-burst-orange-soft: #FF9245;
  --brand-burst-lime: #B6F03C;
  --brand-burst-orange-ink: #A34300;
  --brand-burst-green-ink: #4C8B00;
  --brand-burst-text: #1A1C22;
  --brand-burst-text-muted: #5A6070;
  --brand-white: #FFFFFF;
  --surface-base: #F3F1E9;
  --surface-raised: #EAE7DB;
  --surface-brand: #44619F;
  --surface-hero-scrim: #2A3B6A;
  --surface-brand-strong: #33487F;
  --surface-night: #0A0B18;
  --surface-lime: #ADD84C;
  --surface-cobalt: #1E2BC0;
  --surface-white: #FFFFFF;
  --surface-burst-base: #F7F7F5;
  --surface-burst-card: #FFFFFF;
  --surface-burst-bubble: #FFF0E3;
  --surface-burst-chip: #F1F2F4;
  --surface-burst-orange: #FF7A1A;
  --surface-burst-lime: #B6F03C;
  --text-strong: #242736;
  --text: #3A3F55;
  --text-muted: #5F6478;
  --text-accent: #1E2BC0;
  --text-success: #276B45;
  --text-alert: #B3261E;
  --on-brand: #FFFFFF;
  --on-brand-muted: #DCE3F6;
  --on-brand-accent: #E4F3BC;
  --on-brand-warn: #F0E4A6;
  --on-night: #FFFFFF;
  --on-night-muted: #B9BEDA;
  --on-night-accent: #C6E579;
  --on-lime: #FFFFFF;
  --on-cobalt: #FFFFFF;
  --on-white: #242736;
  --on-burst: #1A1C22;
  --on-burst-muted: #5A6070;
  --on-burst-accent: #A34300;
  --on-burst-fill: #1A1C22;
  --border: #EAE7DB;
  --border-strong: #D9D5C6;
  --border-on-brand: rgba(243,241,233,.22);
  --border-on-night: rgba(255,255,255,.16);
  --border-on-burst: rgba(26,28,34,.12);
  --hero-gradient: linear-gradient(168deg, #5B79C2 0%, #44619F 46%, #33487F 100%);
  --lime-gradient: linear-gradient(135deg, #C6E579 0%, #ADD84C 55%, #9FCB40 100%);
  --shadow-brand: 0 24px 50px rgba(51,72,127,0.16);
  --shadow-brand-lg: 0 34px 70px rgba(51,72,127,0.3);
  --shadow-lime: 0 10px 26px rgba(173,216,76,0.38);
  --shadow-lime-hover: 0 16px 34px rgba(173,216,76,0.5);
  --radius: 22px;
  --radius-lg: 26px;
  --maxw: 1180px;
}

/* elevesse — folha principal.
   Regra: nenhuma cor de texto em hex aqui. Texto usa sempre um papel de src/shared/theme.ts
   (--text, --text-muted, --text-accent, --on-brand, --on-brand-muted, --on-brand-accent, ...). */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Fredoka", -apple-system, "Segoe UI", sans-serif;
  background: var(--surface-base);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand { font-family: "Fredoka", sans-serif; letter-spacing: -.01em; line-height: 1.05; color: var(--text-strong); }
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand-cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface-lime); color: var(--on-lime); padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------- navbar ---------------- */
nav.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 30px;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
nav.site-nav.solid {
  background: color-mix(in srgb, var(--surface-brand-strong) 94%, transparent);
  backdrop-filter: blur(12px);
  padding: 12px 30px;
  box-shadow: var(--shadow-brand);
}
nav.site-nav .brand { color: var(--on-brand); font-weight: 600; font-size: 1.55rem; letter-spacing: -.02em; }
.brand .dot { color: var(--on-brand-accent); }
nav.site-nav .links { display: flex; gap: 30px; align-items: center; }
nav.site-nav .links a { color: var(--on-brand-muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
nav.site-nav .links a:hover { color: var(--on-brand); }
/* precisa de `a.navcta`: `nav.site-nav .links a` tem mais especificidade que `.navcta` sozinho */
nav.site-nav .links a.navcta {
  background: var(--surface-lime); color: var(--on-lime);
  padding: 10px 20px; border-radius: 100px; font-weight: 600; font-size: .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
nav.site-nav .links a.navcta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lime); color: var(--on-lime); }
.burger { display: none; }

/* seletor de língua das landing pages por setor: PT-BR | PT-PT */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 100px; border: 1px solid var(--border-on-brand);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}
.lang .lang-on, nav.site-nav .links a.lang-off {
  padding: 5px 10px; border-radius: 100px; font-size: .78rem; font-weight: 600;
}
.lang .lang-on { background: rgba(255, 255, 255, .16); color: var(--on-brand); }
nav.site-nav .links a.lang-off { color: var(--on-brand-muted); }
nav.site-nav .links a.lang-off:hover { color: var(--on-brand); background: rgba(255, 255, 255, .08); }

.lang svg, .sec-chip svg, .sec-pill svg, .sec-card-links svg { display: inline-block; vertical-align: -1px; border-radius: 2px; }

/* ponte da home para os setores — variante A: linha de atalhos por baixo do título */
.sec-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; position: relative; z-index: 2; }
.sec-chips-label { color: var(--on-brand-muted); font-size: .9rem; font-weight: 500; margin-right: 4px; }
.sec-chip, .sec-pill {
  display: inline-flex; align-items: center; border-radius: 100px;
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease;
}
.sec-chip:hover, .sec-pill:hover { background: rgba(255, 255, 255, .14); border-color: var(--on-brand-accent); }
.sec-chip a, .sec-pill a { color: var(--on-brand); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.sec-chip-main, .sec-pill-main { padding: 9px 12px 9px 14px; }
.sec-chip-flag, .sec-pill-flag { padding: 9px 7px; border-left: 1px solid var(--border-on-brand); opacity: .85; }
.sec-chip-flag:last-child, .sec-pill-flag:last-child { padding-right: 12px; }
.sec-chip-flag:hover, .sec-pill-flag:hover { opacity: 1; background: rgba(255, 255, 255, .1); }

/* variante B: três cartões de setor depois dos serviços */
.band-blue .sec-cards-head.center { margin-top: 72px; }
.sec-cards-title { color: var(--on-brand); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; position: relative; z-index: 2; }
.sec-card {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface-base); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.sec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-brand); }
.sec-card-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-brand); color: var(--on-brand); font-size: 1.4rem; margin-bottom: 16px; }
.sec-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--text-strong); }
.sec-card p { color: var(--text-muted); font-size: .94rem; margin-bottom: 18px; }
.sec-card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-card-links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px;
  background: var(--surface-cobalt); color: var(--on-cobalt); font-weight: 600; font-size: .86rem;
  transition: transform .2s ease;
}
.sec-card-links a:hover { transform: translateY(-2px); }

/* variante C: faixa compacta no fim da secção */
.sec-strip {
  margin-top: 40px; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.sec-strip-text { display: flex; flex-direction: column; gap: 3px; }
.sec-strip-text strong { color: var(--on-brand); font-size: 1.05rem; font-weight: 600; }
.sec-strip-text span { color: var(--on-brand-muted); font-size: .9rem; }
.sec-strip-pills { display: flex; gap: 10px; flex-wrap: wrap; }

/* etiqueta acima do título do hero das landing pages por setor */
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .1);
  color: var(--on-brand-accent); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------------- botoes ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn-lime { background: var(--lime-gradient); color: var(--on-lime); box-shadow: var(--shadow-lime); }
.btn-lime:hover { transform: translateY(-3px); box-shadow: var(--shadow-lime-hover); }
.btn-ghost { background: transparent; color: var(--on-brand); border: 1.5px solid var(--border-on-brand); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--on-brand); }
.btn-cobalt { background: var(--surface-cobalt); color: var(--on-cobalt); }
.btn-cobalt:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 43, 192, .4); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------------- hero ---------------- */
header.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: var(--hero-gradient);
}
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(52px) saturate(122%); opacity: .82; z-index: 0; }
#auroraCore { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(18px) saturate(135%); opacity: .45; mix-blend-mode: screen; z-index: 0; }
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* scrim: fica por cima da aurora e por baixo do texto, para o contraste do hero
   nao depender do frame da animacao (ver surfaces.heroScrim em theme.ts) */
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--brand-scrim) 58%, transparent) 0%,
      color-mix(in srgb, var(--brand-scrim) 28%, transparent) 46%,
      transparent 72%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--brand-scrim) 34%, transparent) 0%,
      transparent 32%, transparent 64%,
      color-mix(in srgb, var(--brand-scrim) 50%, transparent) 100%);
}
.hero-inner { position: relative; z-index: 3; padding: 130px 0 80px; }
.hero h1 {
  color: var(--on-brand); font-weight: 600; font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 14ch; margin-bottom: 22px; text-shadow: 0 6px 40px rgba(23, 32, 68, .35);
}
/* lime como texto so em tamanho display (>=24px) */
.hero h1 em { font-style: normal; color: var(--brand-lime); }
.hero p.lead { color: var(--on-brand-muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 52ch; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--on-brand-muted); font-size: .85rem; margin-top: 22px; display: flex; align-items: center; gap: 8px; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--on-brand-muted); font-size: .8rem; text-align: center; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- estrutura de seccao ---------------- */
section { position: relative; }
.pad { padding: 100px 0; }
.eyebrow { font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; color: var(--text-strong); max-width: 20ch; margin-bottom: 18px; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; }
.center { text-align: center; margin: 0 auto; }
.center .section-title, .center .section-sub { margin-left: auto; margin-right: auto; }
.squiggle { display: block; width: 120px; height: 26px; margin: 0 auto 22px; }
.squiggle path { fill: none; stroke: var(--brand-cobalt); stroke-width: 9; stroke-linecap: round; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.pillar {
  padding: 34px 30px; border-radius: var(--radius);
  background: var(--surface-base); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-brand); }
.pillar .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-brand); color: var(--on-brand); margin-bottom: 18px; font-size: 1.5rem;
}
.pillar h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: .98rem; }

/* ---------------- banda azul ---------------- */
.band-blue { background: var(--surface-brand); position: relative; overflow: hidden; }
.band-blue .eyebrow { color: var(--on-brand-accent); }
.band-blue .section-title { color: var(--on-brand); }
.band-blue .section-sub { color: var(--on-brand-muted); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; position: relative; z-index: 2; }
.svc {
  background: rgba(255, 255, 255, .08); border: 1px solid var(--border-on-brand); border-radius: var(--radius);
  padding: 30px 26px; transition: background .25s ease, transform .25s ease, border-color .25s;
}
.svc:hover { background: rgba(255, 255, 255, .14); transform: translateY(-5px); border-color: var(--on-brand-accent); }
.svc .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-brand-accent); background: rgba(173, 216, 76, .16); padding: 4px 11px; border-radius: 100px; margin-bottom: 16px;
}
.svc h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--on-brand); }
.svc p { color: var(--on-brand-muted); font-size: .94rem; }

/* ---------------- numeros ---------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.stat { text-align: center; padding: 26px; }
.stat .num { font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); color: var(--text-accent); line-height: 1; }
.stat .lbl { color: var(--text-muted); font-size: .98rem; margin: 8px auto 0; max-width: 22ch; }
.stats-note { text-align: center; color: var(--text-muted); font-size: .78rem; margin-top: 24px; }

/* ---------------- como funciona ---------------- */
.band-cream2 { background: linear-gradient(180deg, var(--surface-base) 0%, var(--brand-cream3) 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--surface-base); border: 1px solid var(--border); }
/* numeral display: lime permitido acima de 24px */
.step .n { font-weight: 700; font-size: 2.6rem; color: var(--brand-lime); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .92rem; }

.how-flex { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; margin-top: 64px; }
.chat {
  background: var(--surface-base); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-brand); max-width: 400px; margin-left: auto;
}
.chat .head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chat .av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-cobalt); color: var(--on-cobalt); display: grid; place-items: center; font-weight: 700; }
.chat .who { font-weight: 600; font-size: .95rem; color: var(--text-strong); }
.chat .stat-on { font-size: .75rem; color: var(--text-success); }
.bub { max-width: 80%; padding: 11px 15px; border-radius: 16px; margin-bottom: 10px; font-size: .9rem; line-height: 1.45; }
.bub.them { background: var(--surface-raised); color: var(--text); border-bottom-left-radius: 4px; }
.bub.us { background: var(--surface-cobalt); color: var(--on-cobalt); margin-left: auto; border-bottom-right-radius: 4px; }
.bub .t { display: block; font-size: .68rem; opacity: .75; margin-top: 4px; }
.chat .done { text-align: center; font-size: .82rem; color: var(--text-success); font-weight: 600; margin-top: 6px; }

/* ---------------- calculadora ---------------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.calc-inputs { background: var(--surface-base); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-brand); }
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; font-size: .96rem; margin-bottom: 12px; gap: 12px; color: var(--text); }
.field label b { font-weight: 600; font-size: 1.2rem; color: var(--text-accent); white-space: nowrap; }
.field .hint { font-size: .8rem; color: var(--text-muted); margin-top: 9px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px;
  background: var(--border); outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-lime); border: 4px solid var(--brand-white);
  box-shadow: 0 4px 14px rgba(51, 72, 127, .3); cursor: pointer; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-lime);
  border: 4px solid var(--brand-white); box-shadow: 0 4px 14px rgba(51, 72, 127, .3); cursor: pointer;
}
.calc-result {
  position: relative; overflow: hidden; background: var(--surface-brand); color: var(--on-brand);
  border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-brand-lg); display: flex; flex-direction: column;
}
.calc-result > * { position: relative; z-index: 2; }
.result-label { color: var(--on-brand-muted); font-size: .98rem; font-weight: 500; }
.result-big { font-weight: 700; font-size: clamp(2.9rem, 6vw, 4.3rem); line-height: 1; margin: 6px 0 4px; color: var(--on-brand); }
.result-big span { font-size: 1.35rem; color: var(--on-brand-accent); margin-left: 6px; font-weight: 600; }
.result-sub { color: var(--on-brand-muted); font-size: .92rem; margin-bottom: 24px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 24px; }
.result-grid > div { background: rgba(255, 255, 255, .1); border: 1px solid var(--border-on-brand); border-radius: 14px; padding: 15px 10px; text-align: center; }
.result-grid b { display: block; font-weight: 600; font-size: 1.4rem; color: var(--on-brand-accent); line-height: 1; }
.result-grid span { font-size: .74rem; color: var(--on-brand-muted); line-height: 1.3; display: block; margin-top: 6px; }
#r-cta { margin-top: auto; }
.result-note { color: var(--on-brand-muted); font-size: .75rem; margin-top: 14px; text-align: center; }

/* ---------------- glows decorativos ---------------- */
.glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; pointer-events: none; z-index: 0; }
.glow-lime { width: 420px; height: 420px; background: radial-gradient(circle, rgba(173, 216, 76, .5), transparent 70%); }
.glow-cobalt { width: 460px; height: 460px; background: radial-gradient(circle, rgba(30, 43, 192, .26), transparent 70%); }

/* ---------------- marquee de setores ---------------- */
.sectors { background: var(--surface-brand); padding: 22px 0; overflow: hidden; position: relative; border-block: 1px solid var(--border-on-brand); }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mtrack { display: flex; align-items: center; gap: 40px; white-space: nowrap; animation: scroll 32s linear infinite; }
.mtrack:hover { animation-play-state: paused; }
.mtrack span { font-weight: 500; font-size: 1.2rem; color: var(--on-brand-muted); }
.mtrack .d { color: var(--on-brand-accent); font-size: .9rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- diagnostico + formulario ---------------- */
.cta-final { background: var(--surface-brand); color: var(--on-brand); position: relative; overflow: hidden; }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cta-final .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.cta-final h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; margin-bottom: 18px; color: var(--on-brand); }
.cta-final p { color: var(--on-brand-muted); font-size: 1.12rem; margin-bottom: 26px; }
.cta-final .mini { margin-top: 20px; color: var(--on-brand-muted); font-size: .88rem; }

.lead-form { background: rgba(255, 255, 255, .09); border: 1px solid var(--border-on-brand); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(8px); }
.lead-form h3 { color: var(--on-brand); font-size: 1.35rem; margin-bottom: 6px; }
.lead-form .form-sub { color: var(--on-brand-muted); font-size: .92rem; margin-bottom: 22px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: block; font-size: .85rem; font-weight: 500; color: var(--on-brand-muted); margin-bottom: 6px; }
.lead-form .fld { margin-bottom: 14px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .95);
  color: var(--text); font-family: inherit; font-size: .95rem;
}
.lead-form textarea { resize: vertical; min-height: 84px; }
.lead-form .btn { width: 100%; margin-top: 6px; }
.lead-form .form-msg { font-size: .88rem; margin-top: 14px; min-height: 1.2em; }
.lead-form .form-msg.ok { color: var(--on-brand-accent); font-weight: 600; }
.lead-form .form-msg.err { color: var(--on-brand-warn); font-weight: 600; }
.lead-form .field-err { color: var(--on-brand-warn); font-size: .78rem; margin-top: 5px; display: block; }
.lead-form .hp { position: absolute; left: -9999px; }

/* ---------------- rodape ---------------- */
footer { background: var(--surface-brand-strong); color: var(--on-brand); padding: 70px 0 34px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
footer .brand { color: var(--on-brand); font-size: 2rem; margin-bottom: 14px; font-weight: 600; display: inline-block; }
footer .tag { color: var(--on-brand-muted); max-width: 34ch; font-size: .98rem; }
footer h4 { font-weight: 600; font-size: 1rem; margin-bottom: 16px; color: var(--on-brand-accent); }
footer a.fl { display: block; color: var(--on-brand-muted); margin-bottom: 10px; font-size: .95rem; transition: color .2s; }
footer a.fl:hover { color: var(--on-brand); }
.foot-bot {
  border-top: 1px solid var(--border-on-brand); margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--on-brand-muted); font-size: .85rem; position: relative; z-index: 2;
}

/* ---------------- animacao de entrada ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mtrack, .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsivo ---------------- */
@media (max-width: 900px) {
  .pillars, .svc-grid, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .sec-cards { grid-template-columns: 1fr; }
  .how-flex, .calc, .cta-final .inner { grid-template-columns: 1fr; }
  .chat { margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* ---------------------------------------------------------------------------
   Otimizações de telemóvel. Tudo daqui para baixo vive dentro de media queries:
   o desktop não é tocado. Corrige o que foi medido no dispositivo — zoom do iOS
   ao focar campos, alvos de toque abaixo de 44px, texto miúdo e a altura do hero
   com a barra do browser a aparecer e desaparecer.
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* iOS dá zoom automático em qualquer campo com fonte < 16px. Isto desalinha a
     página e obriga o visitante a fazer zoom out à mão. 16px trava o comportamento.
     Os seletores repetem `.lead-form` porque a regra de base é mais específica que `input`. */
  input, select, textarea,
  .lead-form input, .lead-form select, .lead-form textarea { font-size: 16px; }

  /* hero: 100vh conta com a barra do browser que aparece e some, e corta o conteúdo.
     dvh acompanha a altura real visível. */
  header.hero { min-height: 100dvh; }
  .hero-inner { padding: 104px 0 72px; }

  /* alvos de toque: mínimo recomendado de 44px */
  .burger { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
  nav.site-nav .brand { padding: 6px 0; }
  nav.site-nav .links.open a { padding: 8px 0; }
  nav.site-nav .links.open a.lang-off { padding: 8px 12px; }
  footer a.fl { padding: 9px 0; margin-bottom: 2px; }

  /* o slider tinha 8px de altura: quase impossível de agarrar com o dedo.
     O padding alarga a zona de toque para 40px e o background-clip mantém a
     barra visual com os mesmos 8px do desktop. */
  input[type="range"] { height: 40px; padding: 16px 0; background-clip: content-box; }

  /* texto miúdo demais para ler ao sol, num ecrã pequeno */
  .eyebrow { font-size: .82rem; letter-spacing: .12em; }
  .svc .tag { font-size: .78rem; }
  .stats-note { font-size: .82rem; }
  .chat .stat-on { font-size: .8rem; }
  .result-grid span { font-size: .8rem; }
  .field .hint { font-size: .85rem; }
  .result-note, .hero-note { font-size: .85rem; }

  /* respiração: no telemóvel os cartões ficam encostados uns aos outros */
  .pillars, .svc-grid, .steps { gap: 16px; }
  .stats { gap: 8px; }
  .stat { padding: 18px 12px; }
  .how-flex { gap: 32px; margin-top: 40px; }
  .calc { gap: 16px; }
  .cta-final .inner { gap: 32px; }

  /* o marquee ocupa a largura toda e a máscara comia as pontas */
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
             mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .mtrack { gap: 26px; }
  .mtrack span { font-size: 1.05rem; }

  /* âncoras: a nav fixa tapava o topo da secção ao saltar */
  html { scroll-padding-top: 76px; }
}

@media (max-width: 400px) {
  /* ecrãs estreitos: os três quadrados do resultado ficavam com 1 palavra por linha */
  .result-grid { grid-template-columns: 1fr; }
  .result-grid > div { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 11px 10px; }
  .result-grid span { margin-top: 0; text-align: left; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 640px) {
  nav.site-nav .links { display: none; }
  nav.site-nav .links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--surface-brand-strong); padding: 20px 30px; gap: 18px;
  }
  .burger { display: block; background: none; border: none; cursor: pointer; padding: 6px; }
  .burger span { display: block; width: 24px; height: 2px; background: var(--on-brand); margin: 5px 0; border-radius: 2px; }
  .pillars, .svc-grid, .steps, .stats, .foot-grid, .lead-form .row { grid-template-columns: 1fr; }
  .pad { padding: 70px 0; }
  .calc-inputs, .calc-result, .lead-form { padding: 26px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 110px 0 60px; }
}

/* Pop-up de identificacao antes de abrir o WhatsApp.
   Entra nos dois bundles (app e aurora), por isso e autossuficiente:
   nao depende dos .btn de nenhuma das folhas. */

/* O `* { margin: 0 }` das folhas do site anula o `margin: auto` com que o browser
   centra o <dialog> nativo. Por isso a centragem e reposta aqui, explicitamente. */
.wa-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
}
/* trava o scroll da pagina enquanto o pop-up esta aberto */
html:has(dialog[open]) { overflow: hidden; }
.wa-modal::backdrop { background: rgba(23, 32, 68, .58); backdrop-filter: blur(3px); }

.wa-form {
  background: var(--surface-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-brand-lg);
  font-family: "Fredoka", -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.wa-form h3 { font-size: 1.3rem; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; line-height: 1.2; }
.wa-form .wa-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 20px; line-height: 1.45; }

.wa-form .fld { margin-bottom: 14px; }
.wa-form label { display: block; font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.wa-form input,
.wa-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--brand-white);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.wa-form input:focus-visible,
.wa-form select:focus-visible { outline: 3px solid var(--brand-cobalt); outline-offset: 2px; }

.wa-error { color: var(--text-alert); font-size: .82rem; margin-top: 10px; min-height: 1.2em; }

.wa-actions { display: flex; gap: 10px; margin-top: 18px; }
.wa-modal .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-modal .btn-lime { background: var(--lime-gradient); color: var(--on-lime); box-shadow: var(--shadow-lime); }
.wa-modal .btn-lime:hover { transform: translateY(-2px); box-shadow: var(--shadow-lime-hover); }
.wa-modal .btn-quiet { flex: 0 0 auto; background: var(--surface-raised); color: var(--text); }
.wa-modal .btn-quiet:hover { background: var(--border-strong); }

@media (max-width: 640px) {
  /* 16px trava o zoom automático do iOS ao focar o campo */
  .wa-form input, .wa-form select { font-size: 16px; padding: 13px 14px; }
  .wa-modal .btn { padding: 15px 20px; }
}

@media (max-width: 420px) {
  .wa-form { padding: 24px 20px; }
  .wa-actions { flex-direction: column-reverse; }
}

/* Pop-up de demonstração do atendimento — conversa ao estilo WhatsApp.
   Autossuficiente: não depende dos .btn nem do reset das outras folhas. */

.demo-chat {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(430px, calc(100vw - 24px));
  max-width: none;
  height: min(640px, calc(100dvh - 40px));
  border: none;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.demo-chat::backdrop { background: rgba(23, 32, 68, .62); backdrop-filter: blur(3px); }

.dc-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brand-lg);
  overflow: hidden;
  font-family: "Fredoka", -apple-system, "Segoe UI", sans-serif;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* cabeçalho */
.dc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface-brand);
  color: var(--on-brand);
}
.dc-av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: var(--surface-cobalt); color: var(--on-cobalt);
  display: grid; place-items: center; font-weight: 700;
}
.dc-id { flex: 1 1 auto; min-width: 0; }
.dc-who { font-weight: 600; font-size: .95rem; color: var(--on-brand); line-height: 1.2; }
.dc-status { font-size: .74rem; color: var(--on-brand-accent); line-height: 1.3; }
.dc-sector select {
  font-family: inherit; font-size: .78rem; padding: 5px 8px; border-radius: 100px;
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .14);
  color: var(--on-brand); cursor: pointer; max-width: 118px;
}
.dc-sector select option { color: var(--text); background: var(--surface-base); }
.dc-fixed {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border-on-brand); background: rgba(255, 255, 255, .14); color: var(--on-brand);
  white-space: nowrap;
}
.dc-close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: var(--on-brand); font-size: 1.2rem; line-height: 1;
}
.dc-close:hover { background: rgba(255, 255, 255, .26); }

/* conversa */
.dc-log {
  flex: 1 1 auto; overflow-y: auto; padding: 16px 14px;
  background: var(--surface-raised);
  display: flex; flex-direction: column; gap: 8px;
}
.dc-note {
  font-size: .72rem; color: var(--text-muted); text-align: center;
  background: var(--surface-base); border-radius: 10px; padding: 7px 10px; margin-bottom: 4px;
}
.dc-bub {
  max-width: 82%; padding: 9px 13px; border-radius: 16px;
  font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
.dc-bub.them { background: var(--surface-base); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.dc-bub.us { background: var(--surface-cobalt); color: var(--on-cobalt); align-self: flex-end; border-bottom-right-radius: 4px; }
.dc-bub.dc-err { color: var(--text-alert); }

/* campo de escrita */
.dc-form {
  display: flex; gap: 8px; padding: 12px; align-items: center;
  background: var(--surface-base); border-top: 1px solid var(--border);
}
.dc-form input {
  flex: 1 1 auto; min-width: 0; padding: 11px 15px; border-radius: 100px;
  border: 1px solid var(--border-strong); background: var(--brand-white);
  color: var(--text); font-family: inherit; font-size: .92rem;
}
.dc-form input:focus-visible { outline: 3px solid var(--brand-cobalt); outline-offset: 2px; }
.dc-form input:disabled { opacity: .6; }
.dc-send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--lime-gradient); color: var(--on-lime); font-size: 1.1rem; font-weight: 700;
  transition: transform .2s ease;
}
.dc-send:hover:not(:disabled) { transform: scale(1.06); }
.dc-send:disabled { opacity: .5; cursor: progress; }
.dc-foot {
  padding: 0 14px 12px; font-size: .72rem; color: var(--text-muted);
  text-align: center; background: var(--surface-base); min-height: 0;
}

@media (max-width: 640px) {
  /* teclado do telemóvel: 16px evita o zoom do iOS ao focar o campo de escrita */
  .dc-form input { font-size: 16px; padding: 13px 16px; }
  /* 16px também aqui: o iOS dá zoom ao abrir um <select> com fonte menor */
  .dc-sector select { font-size: 16px; padding: 6px 8px; max-width: 116px; }
  .dc-note { font-size: .78rem; }
  .dc-bub { font-size: .94rem; max-width: 88%; }
  /* alvos de toque */
  .dc-send { width: 46px; height: 46px; }
  .dc-close { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  /* ecrã inteiro: uma conversa de WhatsApp não vive numa caixinha */
  .demo-chat { width: 100vw; height: 100dvh; max-height: none; }
  .dc-shell { border-radius: 0; }
  /* com o teclado aberto sobra pouca altura: o cabeçalho encolhe e a conversa manda */
  .dc-head { padding: 10px 12px; }
  .dc-av { width: 34px; height: 34px; }
  .dc-log { padding: 14px 12px; }
  .dc-form { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
}

/* links nas bolhas (o link de pagamento chega na conversa) */
.dc-bub a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.dc-bub a:hover { opacity: .8; }
