/* ==========================================================================
   eLab Digital — estilos
   Paleta controlada por 3 variáveis: --c1 (principal), --c2 (secundária),
   --c3 (terciária). --on1/--on2/--on3 = cor de texto legível sobre cada uma
   (calculadas no JS quando a paleta muda).
   ========================================================================== */
@font-face {
  font-family: "Bricolage";
  src: url(../fonts/bricolage-latin.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --c1: #3a0ca3;
  --c2: #10002b;
  --c3: #4cc9f0;
  --on1: #fff;
  --on2: #fff;
  --on3: #0d1224;

  --ink: #0d1224;
  --muted: #4a5270;
  --line: #e3e7f1;
  --bg: #fff;
  --soft: #f4f6fb;
  --t1: color-mix(in srgb, var(--c1) 9%, #fff);
  --t1b: color-mix(in srgb, var(--c1) 20%, #fff);
  --t3: color-mix(in srgb, var(--c3) 35%, #fff);

  --r: 22px;
  --r-sm: 14px;
  --pad: clamp(16px, 5vw, 48px);
  --max: 1240px;
  --bar: 0px;
  --ff: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  padding-bottom: var(--bar);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--c1); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: clamp(72px, 12vw, 150px) 0; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c2); color: var(--on2); padding: 12px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* SVG fills ligados à paleta */
.f1 { fill: var(--c1); } .f2 { fill: var(--c2); } .f3 { fill: var(--c3); }
.fw { fill: #fff; } .ft { fill: var(--t1); } .ft2 { fill: var(--t1b); } .fs { fill: var(--soft); }
.fg { fill: #dfe3ee; } .fi { fill: var(--ink); }
.s1 { stroke: var(--c1); } .s2 { stroke: var(--c2); } .si { stroke: var(--ink); }
.sd { stroke: #b9c0d4; stroke-width: 2.5; stroke-dasharray: 6 5; fill: none; }
.o5 { opacity: .5; } .o85 { opacity: .85; }
.svg-lbl { font: 700 17px var(--ff); fill: var(--c2); opacity: .55; letter-spacing: -.01em; }
.svg-lbl.strong { opacity: 1; font-size: 18px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c2); margin-bottom: 20px;
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c1); }
.eyebrow.on-dark { color: var(--on2); }
.eyebrow.on-dark .dot { background: var(--c3); }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.h-xl { font-size: clamp(2.3rem, 7.4vw, 4.8rem); }
.h-xxl { font-size: clamp(2.7rem, 10vw, 7rem); letter-spacing: -.045em; line-height: .92; }
.sec-head { margin-bottom: clamp(40px, 7vw, 80px); }
.sec-head .lead { margin-top: 22px; }

/* ---------- Botões (alvos >= 48px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap; touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.075rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-1 { background: var(--c1); color: var(--on1); }
.btn-1:hover { background: var(--c2); color: var(--on2); }
.btn-2 { background: var(--c2); color: var(--on2); }
.btn-2:hover { background: var(--c1); color: var(--on1); }
.btn-3 { background: var(--c3); color: var(--on3); }
.btn-3:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--c2); }
.btn-ghost:hover { background: var(--c2); border-color: var(--c2); color: var(--on2); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c2); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-size: 1.45rem; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.logo-word b { font-weight: 800; }
.logo-light { color: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav, .hdr-cta { display: none; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--muted);
  padding: 10px 4px; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: var(--c1); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(3.1rem, 14.5vw, 8.4rem); line-height: .88; letter-spacing: -.055em; }
.hero-title .kicker {
  display: block; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: -.01em; line-height: 1.2;
  font-weight: 700; color: var(--muted); margin-bottom: 16px;
}
.hero-title em { display: inline-block; position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: .08em; bottom: .04em; height: .12em;
  background: var(--c3); z-index: -1; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; animation: underline 1s .6s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { margin-top: 24px; max-width: 46ch; }
.hero .lead strong { color: var(--ink); font-weight: 700; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-proof b { display: block; font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -.04em; line-height: 1; color: var(--c1); }
.hero-proof span { display: block; font-size: .8rem; line-height: 1.3; color: var(--muted); margin-top: 6px; }

.hero-art { position: relative; height: clamp(440px, 118vw, 640px); max-width: 520px; width: 100%; margin: 0 auto; }
.desk-wrap { position: absolute; right: 0; top: 6%; width: 88%; }
.desk { width: 100%; height: auto; filter: drop-shadow(0 24px 36px color-mix(in srgb, var(--c2) 18%, transparent)); }
.phone-wrap { position: absolute; left: 14%; top: 20%; width: min(46%, 236px); }
.phone { width: 100%; height: auto; filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--c2) 22%, transparent)); }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: 150px 544px; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.shape { position: absolute; }
.sh-circle { width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); left: 11%; top: 16%; }
.sh-square { width: 22%; aspect-ratio: 1; border-radius: 18px; background: var(--c1); right: 2%; top: 4%; rotate: 14deg; }
.sh-ring { width: 26%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--c2); left: 0; bottom: 8%; }
.fcard {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--c2) 35%, transparent);
  font-size: .9rem; line-height: 1.2; white-space: nowrap;
}
.fcard small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.fc-order { left: 0; top: 38%; }
.fc-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--c1); }
.fc-ico svg { width: 20px; fill: none; stroke: var(--on1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fc-speed { right: 0; top: 58%; background: var(--c2); color: var(--on2); }
.fc-speed small { color: inherit; opacity: .75; }
.fc-speed .big { font-size: 2.2rem; letter-spacing: -.05em; color: var(--c3); }
.fc-cart { right: 6%; top: 18%; width: 60px; height: 60px; padding: 0; justify-content: center; border-radius: 20px; }
.fc-cart svg { width: 28px; fill: none; stroke: var(--c2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-cart i { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--c1); color: var(--on1); font: 800 .8rem/24px var(--ff); text-align: center; }

.platform-strip { margin-top: clamp(32px, 6vw, 64px); background: var(--c2); color: var(--on2); overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.strip-track ul { display: flex; }
.strip-track li { font-size: clamp(1.25rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; padding: 18px 28px; display: flex; align-items: center; gap: 28px; }
.strip-track li::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c3); rotate: 45deg; margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Qualquer tela ---------- */
.mobile { background: var(--soft); overflow: hidden; }
.giant-wrap { overflow: hidden; margin-bottom: clamp(24px, 5vw, 56px); }
.giant {
  font-size: clamp(4.5rem, 19vw, 15rem); font-weight: 800; line-height: .9; letter-spacing: -.05em;
  white-space: nowrap; will-change: transform;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--c1); }
.mobile-grid { display: grid; gap: 48px; align-items: center; }
.mobile-art { position: relative; width: min(78%, 330px); margin: 0 auto; }
.thumb-phone { width: 100%; height: auto; }
.tap-dot { position: absolute; left: 50%; bottom: 5.5%; width: 64px; height: 64px; margin-left: -32px; }
.tap-dot span, .tap-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c1);
  animation: ripple 2s ease-out infinite;
}
.tap-dot::before { animation-delay: 1s; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.mobile .lead { margin-top: 22px; }
.checks { margin-top: 32px; display: grid; gap: 4px; }
.checks li {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.checks li::before {
  content: ""; grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--c1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks b { font-size: 1.15rem; letter-spacing: -.02em; }
.checks span { color: var(--muted); font-size: .98rem; }

/* ---------- Serviços ---------- */
.svc-grid { display: grid; gap: 14px; counter-reset: svc; }
.svc {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--r);
  padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.svc:hover { border-color: var(--c1); transform: translateY(-4px); }
.svc-n { position: absolute; top: 20px; right: 22px; font-weight: 800; font-size: 1rem; color: var(--c1); opacity: .5; }
.svc-ico { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--t1); fill: none; stroke: var(--c1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: clamp(1.45rem, 3vw, 1.75rem); letter-spacing: -.03em; margin-top: 6px; }
.svc > p { color: var(--muted); }
.svc-m {
  margin-top: auto; display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; font-weight: 600; color: var(--c2) !important;
  background: var(--t3); border-radius: 12px; padding: 10px 12px;
}
.svc-m svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Statement ---------- */
.statement { background: var(--c1); color: var(--on1); padding: clamp(80px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.st-text { display: flex; flex-direction: column; font-size: clamp(3.2rem, 15vw, 12rem); font-weight: 800; line-height: .9; letter-spacing: -.055em; position: relative; z-index: 1; }
.st-text span { display: block; white-space: nowrap; will-change: transform; }
.st-text span:last-child { align-self: flex-end; color: var(--c3); }
.st-s { position: absolute; display: block; }
.st-a { width: clamp(140px, 30vw, 360px); aspect-ratio: 1; border-radius: 50%; background: var(--c2); right: -6%; top: -10%; }
.st-b { width: clamp(80px, 14vw, 180px); aspect-ratio: 1; border-radius: 22%; border: 12px solid var(--c3); left: 6%; bottom: -4%; rotate: -12deg; }
.st-c { width: clamp(40px, 6vw, 70px); aspect-ratio: 1; background: #fff; left: 44%; top: 12%; rotate: 45deg; border-radius: 8px; }

/* ---------- Plataformas ---------- */
.plat-list { display: grid; gap: 10px; }
.plat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: var(--r); background: var(--soft);
  transition: background-color .3s, transform .3s var(--ease);
}
.plat:hover { background: var(--t1); transform: translateX(6px); }
.plat-tag {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em;
}
.plat-tag.t1 { background: var(--c1); color: var(--on1); }
.plat-tag.t2 { background: var(--c2); color: var(--on2); }
.plat-tag.t3 { background: var(--c3); color: var(--on3); }
.plat h3 { font-size: 1.35rem; letter-spacing: -.03em; margin: 4px 0 6px; }
.plat p { color: var(--muted); font-size: .98rem; }
.plat-head .btn { margin-top: 28px; }

/* ---------- Processo ---------- */
.process { background: var(--c2); color: var(--on2); overflow: hidden; }
.process .eyebrow { color: inherit; }
.process .eyebrow .dot { background: var(--c3); }
.process em { color: var(--c3); }
.flow { margin: 0 calc(var(--pad) * -1) clamp(40px, 7vw, 80px); overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); }
.flow::-webkit-scrollbar { display: none; }
.flow-svg { width: 100%; min-width: 640px; height: auto; }
.flow-lbl { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 640px; margin-top: 14px; font-weight: 700; font-size: .9rem; opacity: .75; text-align: center; padding-right: 8%; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.step-n { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 800; line-height: .85; letter-spacing: -.06em; color: var(--c3); min-width: 1.6em; }
.step h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -.03em; margin-bottom: 8px; }
.step p { opacity: .8; }

/* ---------- Formatos ---------- */
.fmt-grid { display: grid; gap: 16px; }
.fmt {
  position: relative; border: 2px solid var(--line); border-radius: var(--r);
  padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 12px; background: #fff;
}
.fmt-art { width: 110px; height: auto; margin-bottom: 8px; }
.fmt h3 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.fmt p { color: var(--muted); }
.fmt ul { display: grid; gap: 8px; margin: 6px 0 18px; }
.fmt li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.fmt li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c1); flex: none; }
.fmt .btn { margin-top: auto; }
.fmt-hi { background: var(--c1); color: var(--on1); border-color: var(--c1); }
.fmt-hi p { color: inherit; opacity: .85; }
.fmt-hi li::before { background: var(--c3); }
.fmt-badge { position: absolute; top: -14px; left: 22px; background: var(--c3); color: var(--on3); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { background: var(--soft); }
.faq-list { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-sm); border: 2px solid transparent; transition: border-color .25s; }
.faq details[open] { border-color: var(--c1); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 18px 18px 20px; min-height: 64px; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--t1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1224' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--c3); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { background: var(--c2); color: var(--on2); overflow: hidden; }
.contact em { color: var(--c3); }
.contact .lead { color: inherit; opacity: .8; margin-top: 22px; }
.ct-wrap { position: relative; z-index: 1; }
.ct-shapes .ct-s { position: absolute; display: block; }
.ct-a { width: clamp(160px, 34vw, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--c1); left: -10%; bottom: -12%; }
.ct-b { width: clamp(60px, 10vw, 120px); aspect-ratio: 1; border-radius: 20px; background: var(--c3); right: 8%; top: 10%; rotate: 20deg; }
.ct-mail {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  min-height: 64px; padding: 12px 26px; border-radius: 999px; background: var(--c3); color: var(--on3);
  font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.6rem); letter-spacing: -.01em; text-decoration: none;
  overflow-wrap: anywhere; transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.ct-mail:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.ct-mail:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ct-mail svg { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.ftr { background: #070d24; color: #fff; padding: 56px 0 24px; }
.ftr-in { display: grid; gap: 32px; }
.ftr-desc { margin-top: 16px; opacity: .7; max-width: 46ch; font-size: .95rem; }
.ftr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ftr-nav a { text-decoration: none; opacity: .8; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.ftr-nav a:hover { opacity: 1; color: var(--c3); }
.ftr-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); opacity: .6; }

/* ---------- Barra inferior mobile ---------- */
.bbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 12px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.bbar.is-hidden { transform: translateY(110%); }
.bbar-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 56px; border: 0; background: none; border-radius: 14px; text-decoration: none;
  font-size: .72rem; font-weight: 700; color: var(--c2); cursor: pointer;
}
.bbar-btn:active { background: var(--t1); }
.bbar-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bbar-cta { min-height: 56px; font-size: 1.02rem; }
:root { --bar: calc(72px + env(safe-area-inset-bottom)); }

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--c2) 55%, transparent); opacity: 0; transition: opacity .3s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 28px 28px 0 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease);
  max-height: 90dvh; overflow: auto;
}
.sheet.is-open .sheet-bg { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sheet-nav { display: grid; margin-bottom: 12px; }
.sheet-nav a {
  display: flex; align-items: center; min-height: 58px; padding: 0 8px; text-decoration: none;
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; border-bottom: 1px solid var(--line);
}
.sheet-nav a:active { color: var(--c1); }

/* ---------- Laboratório de cores ---------- */
.tt-btn {
  position: fixed; z-index: 50; right: 12px; bottom: calc(var(--bar) + 12px);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: conic-gradient(var(--c1) 0 33%, var(--c2) 0 66%, var(--c3) 0); padding: 0;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); display: grid; place-items: center;
}
.tt-btn svg { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 3px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.tt {
  position: fixed; z-index: 70; left: 8px; right: 8px; bottom: calc(var(--bar) + 8px);
  background: #fff; color: var(--ink); border-radius: 22px; padding: 16px;
  box-shadow: 0 24px 60px -12px rgba(8, 14, 40, .45); max-height: 75dvh; overflow: auto;
}
.tt-head { display: flex; justify-content: space-between; align-items: center; }
.tt-head b { font-size: 1.15rem; letter-spacing: -.02em; }
.tt-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.tt-sub { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.tt-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tt-preset { border: 2px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; cursor: pointer; display: grid; gap: 4px; }
.tt-preset[aria-pressed="true"] { border-color: var(--ink); }
.tt-preset i { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.tt-preset i b { flex: 1; }
.tt-preset span { font-size: .68rem; font-weight: 700; line-height: 1.1; padding: 2px 0; }
.tt-row { display: grid; grid-template-columns: 1fr 44px 96px; gap: 8px; align-items: center; margin-bottom: 8px; }
.tt-row label { font-weight: 700; font-size: .95rem; }
.tt-row input[type=color] { width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 2px; background: #fff; cursor: pointer; }
.tt-hex { height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 0 10px; font-family: ui-monospace, Menlo, monospace !important; font-size: .95rem; width: 100%; text-transform: lowercase; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Revelar ao rolar (só com JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
[data-speed] { will-change: transform; }

/* ==========================================================================
   Breakpoints (mobile first)
   ========================================================================== */
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .plat-list { grid-template-columns: 1fr 1fr; }
  .tt { left: auto; right: 12px; width: 380px; }
  .ftr-nav { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (min-width: 900px) {
  :root { --bar: 0px; }
  .bbar, .sheet { display: none; }
  .nav { display: flex; gap: clamp(12px, 1.6vw, 22px); }
  .nav a { white-space: nowrap; }
  .hdr-cta { display: inline-flex; min-height: 46px; }
  .hdr-in { height: 80px; }
  .logo-mark { width: 42px; height: 42px; }
  html { scroll-padding-top: 88px; }

  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 0; }
  .hero { padding-top: 24px; }
  .hero-copy { container-type: inline-size; padding: 24px 32px 24px 0; }
  /* Tamanho pela largura da coluna (cqi), para o título nunca invadir a ilustração */
  .hero-title { font-size: min(12.5cqi, 6.4rem); }
  .hero .lead { margin-top: 20px; }
  .hero-ctas { margin-top: 26px; }
  .hero-art { height: 620px; }
  .desk-wrap { right: -4%; width: 90%; }
  .hero-ctas { flex-wrap: nowrap; }

  .mobile-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .mobile-art { width: 100%; max-width: 360px; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .svc { padding: 32px 28px 26px; }

  .plat-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .plat-head { position: sticky; top: 120px; margin: 0; }
  .plat-list { grid-template-columns: 1fr; }
  .plat { padding: 22px 24px; }

  .flow { overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  .flow-svg, .flow-lbl { min-width: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }

  .fmt-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .fmt { padding: 36px 30px 30px; }
  .fmt-hi { transform: translateY(-16px); }

  .faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .faq .sec-head { position: sticky; top: 120px; }


  .ftr-in { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .tt-btn { right: 20px; bottom: 20px; width: 54px; height: 54px; }
  .tt { bottom: 86px; right: 20px; }
}

@media (hover: none) {
  .svc:hover, .plat:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}

@media (min-width: 900px) {
  .plat-head .h-xxl, .faq .h-xxl { font-size: min(5.6vw, 5.4rem); }
}
.sheet-panel:focus { outline: none; }

/* Laboratório de cores oculto (mantido no HTML/JS para uso futuro) */
.tt-btn, .tt { display: none !important; }
