/* ============================================================
   CDI — Cynthian Digital Innovations
   Folha de estilo única do site. Tokens em BRAND.md.
   Alumni Sans SC (display) + Montserrat (corpo/UI).
   Dois temas: light por omissão, dark via [data-theme="dark"].
   ============================================================ */

:root {
  color-scheme: light;

  /* --- marca --- */
  --purple:        #9849E9;
  --purple-light:  #C279FF;
  --purple-symbol: #AD61FA;
  --blue:          #95ADE5;
  --blue-strong:   #618FFA;
  --blue-soft:     #BACFFF;
  --magenta:       #C650D6;

  --purple-4: #DCBAFF;
  --purple-3: #C68FFE;
  --purple-2: #AD61FA;

  --ink:   #201F1C;
  --navy:  #0A1117;

  /* Gradiente para superfícies COM texto branco: os dois extremos passam AA
     (5,65:1 e 4,50:1). O gradiente decorativo da marca (roxo → roxo claro)
     fica em --grad-soft, para superfícies sem texto. */
  --grad:       linear-gradient(90deg, #8A3CD8 0%, #9C4DEA 100%);
  --grad-soft:  linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
  --grad-diag:  linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);

  /* --- superfícies (light) --- */
  --bg:        #FFFFFF;
  --bg-alt:    #FBFBFB;
  --bg-tint:   #F6E5F9;
  --band:      #DCBAFF;
  /* Regra do brandbook: sobre fundo colorido, texto preto a 100 %.
     Branco sobre #DCBAFF dá 1,6:1 — o mockup usa branco, mas reprova AA. */
  --band-fg:   #201F1C;
  --on-tint:   #201F1C;   /* texto sobre roxo claro / azul / magenta */
  --on-purple: #FFFFFF;   /* texto sobre #9849E9 (4,9:1 — passa AA) */
  --card:      #FFFFFF;
  --line:      rgba(32, 31, 28, .10);
  --line-soft: rgba(32, 31, 28, .06);

  --text:      #201F1C;
  --text-muted:#5A6274;
  --text-dim:  #8A8F9C;
  --on-accent: #FFFFFF;

  --hero-glow: rgba(199, 143, 254, .38);
  --shadow-card: 0 18px 40px -24px rgba(32, 31, 28, .35);
  --shadow-btn:  0 12px 26px -12px rgba(152, 73, 233, .65);

  /* --- tipografia --- */
  --font-display: "Alumni Sans SC", "Arial Narrow", sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- métrica --- */
  --w-max: 1140px;
  --pad-x: clamp(1.25rem, 5vw, 150px);
  --r-pill: 48px;
  --r-card: 20px;
  --r-field: 8px;
  --nav-h: 96px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #201F1C;
  --bg-alt:    #201F1C;
  --bg-tint:   #14100E;
  --band:      #000000;
  --band-fg:   #FFFFFF;
  --on-tint:   #201F1C;
  --on-purple: #FFFFFF;
  --card:      #2A2926;
  --line:      rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .08);

  --text:      #F4F2EF;
  --text-muted:#B9B6B0;
  --text-dim:  #8C8880;
  --on-accent: #FFFFFF;

  --hero-glow: rgba(152, 73, 233, .30);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-btn:  0 12px 26px -12px rgba(194, 121, 255, .55);
}

/* ============================================================
   Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .92;
  letter-spacing: .01em;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.125rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Só os links de texto herdam a cor da marca. Componentes (.btn, .nav__cta,
   .footer a, …) definem a sua própria cor e não podem ser sobrepostos por isto. */
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not([class]) { color: var(--purple); }
[data-theme="dark"] a:not([class]) { color: var(--purple-light); }

:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (min-width: 1440px) { .wrap { padding-inline: 0; } }

.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;
}

.accent { color: var(--purple); }
[data-theme="dark"] .accent { color: var(--purple-light); }

.lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

/* ============================================================
   Botões
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { filter: brightness(1.06); }

.btn--secondary {
  background: var(--blue-soft);
  color: var(--on-tint);
  box-shadow: 0 12px 26px -14px rgba(97, 143, 250, .8);
}
[data-theme="dark"] .btn--secondary { background: var(--blue-soft); color: var(--on-tint); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.6rem; font-size: 1.05rem; }

/* Botão em Montserrat (usado nos CTA de par, como no mockup) */
.btn--body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 2.25rem;
}

/* ============================================================
   Navbar
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--nav-h);
}

.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: 196px; height: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark  { display: block; }

.nav__links {
  display: flex; align-items: center; gap: 2.75rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__links a:hover { color: var(--purple); }
[data-theme="dark"] .nav__links a:hover { color: var(--purple-light); }
.nav__links a[aria-current="page"] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
[data-theme="dark"] .nav__links a[aria-current="page"] {
  color: var(--purple-light); border-bottom-color: var(--purple-light);
}

.nav__actions { display: flex; align-items: center; gap: 1.5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text); border-radius: 50%;
  transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--line-soft); color: var(--purple); }
.icon-btn svg { width: 20px; height: 20px; }

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.nav__cta {
  background: var(--purple-light);
  color: var(--on-tint);
  border-radius: var(--r-pill);
  padding: .7rem 1.6rem;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}
.nav__cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--on-tint); }

.nav__burger { display: none; }

@media (max-width: 1080px) {
  .nav__links { gap: 1.5rem; }
  .nav__links a { font-size: 1rem; }
  .nav__logo img { width: 160px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__burger { display: grid; }
  .nav__links { display: none; }
  .nav__cta { display: none; }

  .nav__mobile {
    border-top: 1px solid var(--line-soft);
    padding: 1rem 0 1.75rem;
  }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .25rem; }
  .nav__mobile a {
    display: block; padding: .8rem .25rem;
    color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: 500;
  }
  .nav__mobile a[aria-current="page"] { color: var(--purple); }
}
@media (min-width: 901px) { .nav__mobile { display: none; } }

/* ============================================================
   Secções e decorações
   ============================================================ */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt  { background: var(--bg-alt); }
.section--band { background: var(--band); color: var(--band-fg); }
.section--band .lead { color: color-mix(in srgb, var(--band-fg) 82%, transparent); }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-bottom: 1rem; }

/* Título com elipse desenhada à mão + sparkles */
.scribble {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.scribble::after {
  content: "";
  position: absolute; inset: -26% -18% -30% -18%;
  background: url("/assets/img/deco-scribble.svg") center/100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
  filter: saturate(1.25) contrast(1.15);
}
[data-theme="dark"] .scribble::after { filter: saturate(1.3) brightness(1.35); }

.sparkle {
  position: absolute;
  width: 24px; height: 24px;
  color: var(--purple-light);
  pointer-events: none;
  opacity: .9;
}
.sparkle--blue { color: var(--blue-strong); }
.sparkle--lg { width: 40px; height: 40px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute; left: 50%; top: -30%;
  width: 130vw; max-width: 1435px; aspect-ratio: 1435 / 1150;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 { margin-inline: auto; text-wrap: balance; }
.hero__text { margin: 2rem auto 0; max-width: 66ch; }
.hero__cta { margin-top: 2.5rem; }

.hero .sparkle--1 { top: 22%; right: 8%; }
.hero .sparkle--2 { top: 28%; right: 14%; width: 16px; height: 16px; }
.hero .sparkle--3 { top: 52%; left: 9%; }

/* Seta "scroll" */
.scroll-hint {
  display: grid; place-items: center;
  margin: 2.5rem auto 0;
  color: var(--text);
  background: none; border: 0; cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 34px; height: 34px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ============================================================
   Carrossel (What we do / Steps / Industries)
   ============================================================ */

.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide { scroll-snap-align: center; }

.carousel__dots {
  display: flex; justify-content: center; gap: .55rem;
  margin-top: 2rem;
}
.carousel__dots button {
  width: 11px; height: 11px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, currentColor 32%, transparent);
  transition: background-color .2s ease, transform .2s ease;
}
.carousel__dots button[aria-selected="true"] { background: var(--purple); transform: scale(1.1); }
.section--alt .carousel__dots button,
.section--plain .carousel__dots button { background: var(--line); }
.section--alt .carousel__dots button[aria-selected="true"],
.section--plain .carousel__dots button[aria-selected="true"] { background: var(--purple); }

.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer; z-index: 3;
  box-shadow: var(--shadow-card);
}
.carousel__nav[hidden] { display: none; }
.carousel__nav--prev { left: -12px; }
.carousel__nav--next { right: -12px; }
.carousel__nav svg { width: 18px; height: 18px; }

/* ---- Cartões "What we do" ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.feature-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F6F9FC;
}
.feature-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.feature-card__body { padding: 1.75rem 1.75rem 2rem; color: var(--ink); }
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.375rem; font-weight: 700;
  text-transform: none; line-height: 1.3;
  margin-bottom: .6rem;
}
.feature-card p { color: #3C4353; font-size: 1rem; }

[data-theme="dark"] .feature-card__body { color: var(--text); }
[data-theme="dark"] .feature-card p { color: var(--text-muted); }

/* ============================================================
   How it works — 3 passos
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step__icon {
  display: grid; place-items: center;
  height: 56px; margin-bottom: 1.25rem;
  color: var(--magenta);
}
.step__icon svg, .step__icon img { height: 46px; width: auto; }
.step h3 {
  font-family: var(--font-body);
  font-size: 1.375rem; font-weight: 700; text-transform: none;
  color: var(--magenta); line-height: 1.3; margin-bottom: .5rem;
}
[data-theme="dark"] .step h3, [data-theme="dark"] .step__icon { color: var(--purple-light); }
.step p { color: var(--text); max-width: 30ch; margin-inline: auto; }

/* ============================================================
   Cartões de valor (Why CDI / Why choose CDI)
   ============================================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  border-radius: var(--r-card);
  padding: 2rem 1.5rem 2.25rem;
  color: #fff;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  min-height: 320px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -20px rgba(32,31,28,.45); }
.value-card svg, .value-card img { width: 44px; height: 44px; margin-bottom: 1.25rem; }
.value-card h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.value-card p { font-size: .9375rem; line-height: 1.55; opacity: .95; }

/* Contraste: branco só sobre #9849E9. Nos restantes, preto da marca
   (regra «color background + 100% black» do brandbook). */
.value-card--1 { background: var(--purple);       color: var(--on-purple); }
.value-card--2 { background: var(--purple-light); color: var(--on-tint); }
.value-card--3 { background: var(--blue);         color: var(--on-tint); }
.value-card--4 { background: var(--blue-strong);  color: var(--on-tint); }
.value-card--5 { background: #B03CC0;             color: var(--on-purple); }

/* Variante com título em Montserrat (página "Who we are") */
.value-card--body h3 {
  font-family: var(--font-body);
  font-size: 1.125rem; font-weight: 700;
  text-transform: none; line-height: 1.35;
}
.value-card--body { text-align: left; align-items: flex-start; }
.value-card--body p { text-align: left; }

/* ============================================================
   Passos numerados (How it works — cartões STEP)
   ============================================================ */

.step-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1080px) { .step-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .step-cards { grid-template-columns: 1fr; } }
.step-cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .step-cards--3 { grid-template-columns: 1fr; } }

.step-card {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.step-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #F6F9FC; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; }
.step-card__body { padding: 0 1.6rem 1.75rem; }

.step-card__pill {
  display: inline-block;
  transform: translateY(-50%);
  background: var(--purple-light);
  color: var(--on-tint);
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem 1.15rem;
  border-radius: var(--r-pill);
  margin-left: .1rem;
}
.step-card--2 .step-card__pill { background: var(--purple); color: var(--on-purple); }
.step-card--3 .step-card__pill { background: var(--blue); }
.step-card--4 .step-card__pill { background: var(--blue-strong); }

.step-card h3 {
  font-family: var(--font-body);
  font-size: 1.375rem; font-weight: 700; text-transform: none;
  line-height: 1.3; margin-bottom: .75rem; color: var(--text);
}
.step-card p { color: var(--text-muted); font-size: 1rem; }

.step-card__detail {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem; padding-top: 1.25rem;
}
.step-card__detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.step-card__detail li { position: relative; padding-left: 1.75rem; font-size: .9375rem; color: var(--text-muted); }
.step-card__detail li::before {
  content: "";
  position: absolute; left: 0; top: .28em;
  width: 1.05rem; height: 1.05rem;
  background: var(--purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.step-card__more {
  margin-top: 1.1rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--purple); font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
}
[data-theme="dark"] .step-card__more { color: var(--purple-light); }
.step-card__more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.step-card__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============================================================
   Banda "Tailored solutions for every industry"
   ============================================================ */

.industry {
  position: relative;
  background: var(--bg-tint);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 460px;
  display: grid; place-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 6rem);
  isolation: isolate;
}
.industry__swoosh {
  position: absolute; left: -7%; top: 50%;
  translate: 0 -50%;
  width: 38%; min-width: 240px;
  color: var(--purple-3);
  opacity: .95;
  z-index: -3;
}
/* Véu suave para o texto assentar sempre sobre o tom claro, como no mockup */
.industry::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 46% 70% at 56% 50%,
              var(--bg-tint) 0%, var(--bg-tint) 48%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.industry__swoosh svg { width: 100%; height: auto; }
.industry__laptop,
.industry__phones { position: absolute; z-index: -2; pointer-events: none; }
.industry__laptop { left: 0; bottom: 0; width: 24%; max-width: 275px; }
.industry__phones { right: 0; top: 0; width: 31%; max-width: 350px; }
.industry h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; color: var(--ink); }
.industry p { color: #3C4353; max-width: 46ch; margin-inline: auto; }
[data-theme="dark"] .industry { background: #241C2B; }
[data-theme="dark"] .industry h3 { color: var(--text); }
[data-theme="dark"] .industry p { color: var(--text-muted); }

@media (max-width: 720px) {
  .industry__laptop { width: 38%; opacity: .55; }
  .industry__phones { width: 46%; opacity: .55; }
}

/* ============================================================
   CTA final
   ============================================================ */

.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
  margin-top: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--grad);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
[data-theme="dark"] .footer { background: var(--ink); border-top: 1px solid var(--line-soft); }

.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.footer__logo img { width: 200px; }
.footer nav ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 2rem;
  margin: 0; padding: 0;
}
.footer nav .footer__label {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  font-size: 1.05rem;
}
[data-theme="dark"] .footer nav .footer__label { color: var(--purple-light); }
.footer nav a { color: #fff; text-decoration: none; font-size: 1.0625rem; }
.footer nav a:hover { text-decoration: underline; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: .875rem;
}
.footer__contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.footer__contacts a { color: #fff; text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; }

.footer__call {
  background: rgba(255, 255, 255, .22);
  color: #fff; text-decoration: none;
  padding: .6rem 1.4rem; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600;
  transition: background-color .18s ease;
}
.footer__call:hover { background: rgba(255, 255, 255, .34); color: #fff; }
[data-theme="dark"] .footer__call { background: var(--purple-light); }

.footer__legal {
  margin-top: 1.5rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .75);
}
.footer__legal a { color: rgba(255, 255, 255, .9); }

/* ============================================================
   Formulários
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: .55rem 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 3rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--purple);
}
.field select { appearance: none; cursor: pointer; }
.field--select { position: relative; }
.field--select::after {
  content: "";
  position: absolute; right: .25rem; bottom: 1.05rem;
  width: 12px; height: 8px;
  background: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5'  stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.field__error {
  display: block; min-height: 1.15rem;
  font-size: .8125rem; color: #D64545; margin-top: .3rem;
}
[data-theme="dark"] .field__error { color: #FF8A8A; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: #D64545; }

.form__status {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  border-radius: 12px; font-size: .9375rem;
}
.form__status[hidden] { display: none; }
.form__status--ok  { background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--text); }
.form__status--err { background: rgba(214, 69, 69, .12); color: #B93B3B; }
[data-theme="dark"] .form__status--err { color: #FF9C9C; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ============================================================
   Página de contacto / demo
   ============================================================ */

.contact-illus { display: grid; place-items: center; margin-block: clamp(2rem, 5vw, 3.5rem); }
.contact-illus img { width: min(430px, 80%); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: var(--purple-light);
  color: var(--on-tint);
  border-radius: var(--r-card);
  padding: clamp(2rem, 4vw, 3rem);
}
[data-theme="dark"] .panel { background: var(--purple); color: var(--on-purple); }
.panel h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }
.panel p { font-size: 1rem; }

.panel__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .25rem; }
.panel__list > li { border-bottom: 1px solid color-mix(in srgb, currentColor 26%, transparent); }
.panel__list > li:last-child { border-bottom: 0; }
.panel__list button {
  width: 100%; display: flex; align-items: center; gap: .75rem;
  background: none; border: 0; padding: .9rem 0; cursor: pointer;
  color: inherit; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-align: left;
}
.panel__list button::before {
  content: "";
  flex: 0 0 auto; width: 1.1rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.panel__list .plus { margin-left: auto; font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.panel__list button[aria-expanded="true"] .plus { transform: rotate(45deg); }
.panel__list .panel__answer { padding: 0 0 1rem 1.85rem; font-size: .9375rem; opacity: .95; }
.panel__list .panel__answer[hidden] { display: none; }

.quote {
  background: color-mix(in srgb, #fff 42%, transparent);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.quote__brand { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: .5rem; }
.quote blockquote { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: .65rem; font-size: .8125rem; }
.quote__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .75rem;
}
.quote strong { display: block; }
.quote span { opacity: .8; text-transform: uppercase; letter-spacing: .04em; }


/* ============================================================
   Comparação problema / solução / benefícios
   ============================================================ */

.compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  background: var(--purple-light);
  color: var(--on-tint);
  border-radius: var(--r-card);
  padding: 2rem 1.75rem 2.25rem;
}
[data-theme="dark"] .compare-card { background: var(--purple); color: var(--on-purple); }
.compare-card svg { width: 42px; height: 42px; margin-bottom: 1rem; opacity: .55; }
.compare-card h3 { font-size: 1.75rem; margin-bottom: .85rem; }
.compare-card > p { font-size: .9375rem; margin-bottom: 1.25rem; }
.compare-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.compare-card li {
  position: relative; padding-left: 1.7rem;
  font-size: .9375rem; font-weight: 600; line-height: 1.4;
}
.compare-card li::before {
  content: "";
  position: absolute; left: 0; top: .18em;
  width: 1.05rem; height: 1.05rem; background: currentColor;
  -webkit-mask: var(--bullet) center/contain no-repeat;
          mask: var(--bullet) center/contain no-repeat;
}
.compare-card--problem {
  --bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E");
}
.compare-card--solution,
.compare-card--benefits {
  --bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E");
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600;
  color: var(--text); text-align: left;
}
.faq__q .plus { margin-left: auto; color: var(--purple); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq__q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq__a { padding: 0 1.35rem 1.35rem; color: var(--text-muted); font-size: 1rem; }
.faq__a[hidden] { display: none; }

/* ============================================================
   Conteúdo corrido (privacidade, 404)
   ============================================================ */

.prose { max-width: 76ch; margin-inline: auto; }
.prose h2 { margin-top: 2.75rem; margin-bottom: .85rem; }
.prose h3 {
  font-family: var(--font-body); text-transform: none;
  font-size: 1.125rem; font-weight: 700;
  margin-top: 1.75rem; margin-bottom: .5rem;
}
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--text-muted); }
.prose li { margin-bottom: .5rem; }
.prose p { color: var(--text-muted); }
.todo {
  background: color-mix(in srgb, #FF8A00 16%, transparent);
  border: 1px dashed #FF8A00;
  padding: .1rem .4rem; border-radius: 4px; color: var(--text);
}

.error-page { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 9rem);
  line-height: .8;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   Consentimento de cookies
   ============================================================ */

.consent {
  position: fixed; inset: auto 1rem 1rem; z-index: 300;
  max-width: 640px; margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.consent p { font-size: .875rem; color: var(--text-muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.consent__actions .btn { padding: .7rem 1.5rem; font-size: 1rem; }
.consent__cats { display: grid; gap: .6rem; margin: 1rem 0; }
.consent__cats label { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; }
.consent__cats input { accent-color: var(--purple); margin-top: .2rem; }

/* ============================================================
   Animações (GSAP entra por cima; estes são os estados de base)
   ============================================================ */

.reveal { opacity: 1; }
html.js .reveal { opacity: 0; }
html.js.no-anim .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-hint { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .nav, .footer, .consent, .scroll-hint { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   Ícones por máscara — herdam a cor do contexto (temas)
   uso: <span class="i" style="--i:url(/assets/icons/flow.svg)"></span>
   ============================================================ */
.i {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--i) center/contain no-repeat;
          mask: var(--i) center/contain no-repeat;
}
.step__icon .i { width: 46px; height: 46px; }
.value-card .i { width: 44px; height: 44px; margin-bottom: 1.25rem; }

/* ============================================================
   Tabelas (política de cookies)
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
.prose table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: .9375rem;
}
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
}
.prose thead th {
  font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--purple);
  white-space: nowrap;
}
.prose tbody td { color: var(--text-muted); }
.prose tbody tr:nth-child(odd) { background: var(--bg-alt); }
.prose code {
  font-size: .875em;
  background: var(--line-soft);
  padding: .1rem .35rem; border-radius: 4px;
}
