/* Fontes hospedadas no próprio site (mais rápido e sem enviar dados ao Google) */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/Onest.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Poppins-800.woff2") format("woff2"); }

/* Identidade 2hub: o roxo original (#4f1b98), Poppins nos títulos e
   formas orgânicas irregulares ("bolas roxas") como assinatura visual. */
:root {
  --ink: #16121f;
  --paper: #ffffff;
  --muted: #5d5870;
  --line: #e7e2f1;
  --purple: #4f1b98;
  --purple-2: #7a45e0;
  --purple-deep: #1f0b40;
  --lilac: #f3eefc;
  --lilac-2: #e4d8fb;
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; font-family: var(--f-display); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; position: relative; }
.eyebrow { font: 600 0.8rem/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }

/* Bolas roxas: border-radius de 8 valores dá a forma irregular; a animação só "respira" */
.blob { position: absolute; pointer-events: none; border-radius: 58% 42% 63% 37% / 45% 56% 44% 55%; animation: morph 14s ease-in-out infinite alternate; }
@keyframes morph {
  0%   { border-radius: 58% 42% 63% 37% / 45% 56% 44% 55%; transform: rotate(0deg); }
  50%  { border-radius: 40% 60% 38% 62% / 60% 38% 62% 40%; }
  100% { border-radius: 63% 37% 52% 48% / 38% 62% 45% 55%; transform: rotate(14deg); }
}

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--purple); color: #fff; font: 600 1rem/1 var(--f-display); text-decoration: none; box-shadow: 0 10px 24px -12px var(--purple); transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-2px); background: #5d22b3; }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn-ghost:hover { background: var(--lilac); }
.btn-invert { background: #fff; color: var(--purple); box-shadow: none; }
.btn-invert:hover { background: var(--lilac); }

/* Topo */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--purple); }
@media (max-width: 760px) { .nav { display: none; } .top-in .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); background: linear-gradient(180deg, var(--lilac) 0%, var(--paper) 85%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: relative; z-index: 2; }
.tag { font: 700 0.95rem/1 var(--f-display); color: var(--purple); background: var(--lilac-2); padding: 8px 14px; border-radius: 999px; }
.hero h1 em { font-style: normal; color: var(--purple); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.28em; background: var(--lilac-2); border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; z-index: -1; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-art { position: relative; aspect-ratio: 1 / 0.92; }
.blob-a { width: 340px; height: 340px; background: var(--lilac-2); top: -120px; left: -140px; opacity: 0.7; }
.blob-b { width: 120px; height: 120px; background: var(--purple-2); bottom: 40px; left: 46%; opacity: 0.18; animation-duration: 10s; }
.blob-c { width: 92px; height: 92px; background: var(--purple-deep); right: 6%; bottom: 2%; z-index: 3; animation-duration: 9s; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* Crença: "2 é melhor que 1" */
.belief { background: var(--purple); color: #fff; overflow: hidden; }
.belief-in { display: flex; align-items: center; gap: clamp(20px, 5vw, 64px); padding-block: clamp(40px, 6vw, 64px); }
.belief .big-2 { font: 800 clamp(7rem, 18vw, 12rem)/0.8 var(--f-display); color: var(--purple-2); flex-shrink: 0; }
.belief h2 { margin-bottom: 12px; }
.belief p { color: rgba(255, 255, 255, 0.82); max-width: 56ch; font-size: 1.08rem; }

/* Seções */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-tint { background: var(--lilac); }
.section h2 { margin-bottom: 40px; }
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--lilac-2); transform: translateY(-3px); }
.card p { color: var(--muted); }
.icon { width: 60px; height: 56px; display: grid; place-items: center; background: var(--lilac); color: var(--purple); border-radius: 58% 42% 63% 37% / 45% 56% 44% 55%; margin-bottom: 6px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 24px 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 54px; height: 50px; background: var(--purple); color: #fff; font: 700 1.2rem/1 var(--f-display); border-radius: 58% 42% 63% 37% / 45% 56% 44% 55%; margin-bottom: 8px; }
.steps li:nth-child(even)::before { border-radius: 40% 60% 38% 62% / 60% 38% 62% 40%; background: var(--purple-2); }
.steps p { color: var(--muted); font-size: 0.96rem; }

/* Clientes: placas roxo-escuras, porque os logos dos clientes são claros ou feitos para fundo escuro */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr)); gap: 14px; }
.logos li { min-height: 104px; display: grid; place-items: center; background: var(--purple-deep); border-radius: var(--radius); padding: 20px 18px; }
.logos img { max-height: 42px; max-width: 100%; width: auto; }
.logos img.logo-square { max-height: 72px; border-radius: 10px; }
.logos img.logo-tall { max-height: 54px; }
.logos img.logo-thin { max-height: 26px; }
.sub { margin-block: 64px 24px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; }
.apps { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px 24px; }
@media (min-width: 760px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apps { grid-template-columns: repeat(3, 1fr); } }

/* E-commerce: texto + lista de itens com marcador em "bola" roxa */
.ecom-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 56px; align-items: start; }
.ecom-lede { font-size: clamp(1.05rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 46ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 17px; background: var(--purple); border-radius: 58% 42% 63% 37% / 45% 56% 44% 55%; }
.checks strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .ecom-in { grid-template-columns: 1fr; } }
.app { display: flex; flex-direction: column; gap: 8px; text-decoration: none; position: relative; }
.app-shot { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--lilac); border: 1px solid var(--line); margin-bottom: 10px; position: relative; isolation: isolate; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.app:hover .app-shot img { transform: scale(1.04); }
.app h4, .app h3 { font-size: 1.12rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.app h4::after, .app h3::after { content: "↗"; color: var(--purple); font-weight: 500; transition: transform 0.2s; }
.app:hover h4::after, .app:hover h3::after { transform: translate(2px, -2px); }
.app p { color: var(--muted); font-size: 0.97rem; }
.app:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 6px; border-radius: var(--radius); }

/* Chamada final */
.cta { position: relative; overflow: hidden; background: var(--purple); color: #fff; padding-block: clamp(72px, 10vw, 128px); }
.cta-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; z-index: 2; }
.cta h2 { max-width: 20ch; }
.cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 8px; font-size: 1.1rem; }
.blob-d { width: 460px; height: 420px; background: var(--purple-2); right: -120px; top: -140px; opacity: 0.55; }
.blob-e { width: 200px; height: 190px; background: var(--purple-deep); right: 22%; bottom: -80px; opacity: 0.7; animation-duration: 11s; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.foot-logo { height: 26px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn, .card, .app-shot img, .app h4::after { transition: none; }
  .btn:hover, .card:hover, .app:hover .app-shot img { transform: none; }
}

@media (max-width: 560px) {
  .belief-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .logos li { min-height: 88px; padding: 16px 18px; }
  .logos img { max-height: 32px; }
  .logos img.logo-tall { max-height: 42px; }
  .logos img.logo-thin { max-height: 20px; }
  .logos img.logo-square { max-height: 56px; }
}

/* Marca no centro da bola da abertura */
.hero-mark { position: absolute; width: 34%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); filter: drop-shadow(0 24px 40px rgba(31, 11, 64, 0.45)); z-index: 2; }

/* Animação da abertura: leve, só CSS (transform e opacity). */
.goo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.goo .g { transform-box: fill-box; transform-origin: center; }
.g1 { animation: drift1 12s ease-in-out infinite alternate; }
.g2 { animation: drift2 9s ease-in-out infinite alternate; }
.g3 { animation: drift3 11s ease-in-out infinite alternate; }
/* a bola menor sai, passeia e volta a se fundir com a grande */
.g4 { animation: join 10s ease-in-out infinite; }
@keyframes drift1 { to { transform: translate(-10px, 8px) scale(1.03); } }
@keyframes drift2 { to { transform: translate(-26px, 22px) scale(0.94); } }
@keyframes drift3 { to { transform: translate(24px, -16px) scale(1.06); } }
@keyframes join {
  0%, 100% { transform: translate(0, 0); }
  45%      { transform: translate(105px, 95px) scale(1.08); }
  60%      { transform: translate(105px, 95px) scale(1.08); }
}

.hero-mark { animation: mark-in 0.7s cubic-bezier(.2,.9,.3,1.3) 0.5s both, bob 6s ease-in-out 1.2s infinite alternate; }
@keyframes mark-in { from { opacity: 0; transform: translate(-50%, -40%) rotate(-18deg) scale(0.6); } }
@keyframes bob { to { transform: translate(-50%, -54%) rotate(-3deg); } }

/* título entra palavra por palavra; o resto vem logo depois */
.hero h1 .w { display: inline-block; animation: word-in 0.6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
.hero .lede, .hero .actions, .hero .tag { animation: word-in 0.6s cubic-bezier(.2,.8,.2,1) both; }
.hero .tag { animation-delay: 0s; }
.hero .lede { animation-delay: 0.6s; }
.hero .actions { animation-delay: 0.72s; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); } }
/* o sublinhado de "juntos" se desenha depois que a palavra aparece */
.hero h1 em::after { transform-origin: left; animation: underline 0.6s ease-out 0.75s both; }
@keyframes underline { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .goo .g, .hero-mark, .hero h1 .w, .hero .lede, .hero .actions, .hero .tag, .hero h1 em::after { animation: none; }
}

/* Páginas internas (manutenção, quanto custa): abertura simples, texto corrido e perguntas frequentes */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--lilac) 0%, var(--paper) 90%); }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); max-width: 20ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--purple); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 64ch; color: var(--muted); font-size: 1.05rem; display: grid; gap: 16px; }
.prose strong { color: var(--ink); }
.prose a, .faq a, .card a { color: var(--purple); }
.more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.98rem; }
.tbl th, .tbl td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 0.85rem/1.2 var(--f-display); color: var(--purple); background: var(--lilac); }
.tbl td { color: var(--muted); }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl tr:last-child td { border-bottom: none; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq summary { font: 600 1.08rem/1.35 var(--f-display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--purple); }
