/* ==========================================================================
   TN Costa Tecnologia — sistema de design do site (v2, 29/09/2026)
   Direção: dark tech disciplinado. Um acento (ciano→violeta), tipografia forte,
   vidro só onde há sobreposição real, brilho só em ação. Mobile-first.
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0e19;
  --bg-3: #0f1424;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #9aa5bd;
  --faint: #6b7590;
  --cyan: #38bdf8;
  --cyan-2: #7dd8ff;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --blue: #4f7bff;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.14));
  --r-xl: 2.5rem;
  --r-lg: 2rem;
  --r-md: 1.25rem;
  --r-sm: 12px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 12px 40px -10px rgba(56, 189, 248, 0.55);
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: rgba(56, 189, 248, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #04121a; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }

/* Fundo: malha discreta + dois halos fixos (sem blob animado) */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
/* um único blob animado, como no conceito (desligado no celular e com reduced-motion) */
.bg-mesh::before {
  content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: #0284c7; filter: blur(120px); opacity: 0.16; animation: blob 15s infinite alternate ease-in-out; will-change: transform;
}
@keyframes blob { to { transform: translate(40px, -40px) scale(1.1); } }
.bg-mesh::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text { background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
strong { font-weight: 600; color: var(--text); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* cabeçalho flutuante em vidro (pílula), como no conceito */
main { padding-top: 112px; }
.topbar {
  position: fixed; top: calc(24px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(92%, 1152px); z-index: 50; border-radius: 2rem;
  background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow);
  transition: background 0.3s var(--ease), box-shadow 0.3s;
}
.topbar.scrolled { background: rgba(5, 7, 13, 0.7); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 12px 0 22px; }
.brand { display: inline-flex; align-items: center; }
.logo { height: 44px; width: auto; display: block; }
.logo-simbolo { filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4)); }
.logo-tn { font-family: var(--font-display); font-weight: 800; font-size: 56px; fill: #ffffff; letter-spacing: -2px; }
.logo-costa { font-weight: 300; fill: #cbd5e1; }
.logo-sub { font-family: var(--font-text); font-weight: 600; font-size: 13px; fill: #6366f1; letter-spacing: 4px; }
.brand-footer .logo { height: 48px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav > a:hover, .nav > a.active { color: var(--text); background: var(--surface-2); }
.nav > a.nav-cta, .nav > a.nav-cta:hover, .nav > a.nav-cta.active { color: #04121a; margin-left: 8px; background: var(--grad); }
.nav-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--grad); color: #04121a; vertical-align: middle; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  main { padding-top: 92px; }
  .topbar { top: calc(10px + env(safe-area-inset-top, 0px)); width: calc(100% - 20px); border-radius: 1.5rem; }
  .topbar-in { height: 64px; padding: 0 10px 0 14px; }
  .logo { height: 38px; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; top: calc(84px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; max-height: calc(100vh - 110px); border-radius: 1.5rem; background: rgba(8, 11, 20, 0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line-2); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { font-size: 1.1rem; padding: 14px 16px; border-radius: 1rem; }
  .nav > a.nav-cta { margin: 10px 0 0; text-align: center; }
  .topbar.menu-open { background: rgba(5, 7, 13, 0.96); }
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; line-height: 1;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(90deg, #0284c7, #9333ea); color: #ffffff; box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 0 28px rgba(56, 189, 248, 0.45); }
.btn-white { background: #ffffff; color: #05070d; box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
.btn-white:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); }
.btn-outline { border-color: rgba(56, 189, 248, 0.5); color: var(--cyan-2); background: rgba(56, 189, 248, 0.06); }
.btn-outline:hover { background: rgba(56, 189, 248, 0.14); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--cyan-2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Cards, tags, badges
   -------------------------------------------------------------------------- */
.card {
  position: relative; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -40px rgba(0, 0, 0, 0.6);
  padding: clamp(22px, 3vw, 32px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s, box-shadow 0.5s, background 0.3s;
  overflow: hidden;
}
.card:hover { border-color: rgba(56, 189, 248, 0.4); background: rgba(255, 255, 255, 0.035); }
.card.lift:hover { transform: translateY(-8px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.1); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .ico { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(56,189,248,0.25); color: var(--cyan-2); margin-bottom: 18px; }
.card.featured { background: linear-gradient(160deg, rgba(56,189,248,0.12), rgba(139,92,246,0.10) 60%, var(--surface)); border-color: rgba(56,189,248,0.3); }
/* spotlight: um halo que segue o cursor (JS define --mx/--my) */
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.16), transparent 60%);
}
.spotlight:hover::before { opacity: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.tag.cyan { color: var(--cyan-2); border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.08); }
.tag.violet { color: var(--violet-2); border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.08); }
.tag.ok { color: var(--ok); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 32px; color: var(--muted); }
.list-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad-soft); border: 1px solid rgba(56,189,248,0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.2L4.8 9L10 3.5' stroke='%237dd8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.list-check li strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 110px) clamp(48px, 7vw, 90px); overflow: hidden; }
.hero .split { align-items: center; }
.hero-copy h1 { margin-top: 18px; }
.hero-copy .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--faint); font-size: 0.88rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero-stage { position: relative; min-height: 420px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; pointer-events: none; will-change: transform; }
.orb-1 { width: 320px; height: 320px; background: rgba(56,189,248,0.35); top: 0; left: 6%; }
.orb-2 { width: 280px; height: 280px; background: rgba(139,92,246,0.35); bottom: 0; right: 4%; }
.mascot-wrap { position: relative; width: min(300px, 62%); }
.mascot { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5)); }
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.stage-card { position: absolute; background: rgba(10, 14, 25, 0.75); border: 1px solid var(--line-2); border-radius: 1.25rem; padding: 14px 16px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow); font-size: 0.85rem; max-width: 230px; }
.stage-card b { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.stage-card { z-index: 2; }
.stage-card.c1 { left: 0; top: 2%; }
.stage-card.c2 { right: 0; top: 38%; }
.stage-card.c3 { left: 0; bottom: 2%; }
@media (max-width: 980px) { .hero-stage { min-height: 400px; margin-top: 8px; } .stage-card { max-width: 190px; } }
/* no celular os cards saem de cima do mascote e viram uma lista compacta embaixo dele */
@media (max-width: 620px) {
  .hero-stage { min-height: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .mascot-wrap { width: 58%; margin-bottom: 8px; }
  .stage-card, .stage-card.c1, .stage-card.c2, .stage-card.c3 { position: static; max-width: 100%; width: 100%; font-size: 0.82rem; padding: 10px 14px; display: block; }
  .stage-card b { display: inline-block; margin: 0 8px 0 0; }
}

/* --------------------------------------------------------------------------
   Marquee (rolagem infinita horizontal)
   -------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.marquee-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Blocos de conteúdo
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > .card { grid-column: span 2; }
.bento > .card.wide { grid-column: span 4; }
.bento > .card.tall { grid-row: span 2; }
@media (max-width: 980px) { .bento > .card, .bento > .card.wide { grid-column: span 3; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento > .card, .bento > .card.wide { grid-column: auto; } }
.steps { counter-reset: passo; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,0.02); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.step::before { counter-increment: passo; content: "0" counter(passo); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--cyan); letter-spacing: 0.08em; }
.step h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.stat .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); border: 1px solid rgba(56,189,248,0.3); background: linear-gradient(120deg, rgba(56,189,248,0.14), rgba(139,92,246,0.14)); }
.cta-strip h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 26ch; }
.quote { padding: clamp(24px, 4vw, 40px); border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; font-size: 1.1rem; color: var(--text); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* chat mockup (WhatsApp) */
.wa { border-radius: 2.5rem; border: 1px solid var(--line-2); background: #0b0f1a; overflow: hidden; box-shadow: var(--shadow); max-width: 380px; margin-inline: auto; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #101827; border-bottom: 1px solid var(--line); }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04121a; font-weight: 700; font-family: var(--font-display); overflow: hidden; }
.wa-avatar img, .wa-avatar svg { width: 100%; height: 100%; }
.wa-who strong { display: block; font-size: 0.92rem; }
.wa-who span { font-size: 0.74rem; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.wa-who span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.wa-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 280px; background: radial-gradient(500px 300px at 50% 0%, rgba(56,189,248,0.06), transparent); }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; background: #16203a; border-bottom-left-radius: 4px; opacity: 0; transform: translateY(6px); animation: msgin 0.4s var(--ease) forwards; }
.msg.me { align-self: flex-end; background: #144d3a; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg small { display: block; text-align: right; font-size: 0.66rem; color: var(--faint); margin-top: 4px; }
@keyframes msgin { to { opacity: 1; transform: none; } }
.wa-card { margin-top: 4px; padding: 12px; border-radius: 12px; border: 1px solid rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); font-size: 0.84rem; }
.wa-card strong { display: block; }

/* --------------------------------------------------------------------------
   Portfólio / casos
   -------------------------------------------------------------------------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.case.reverse { direction: rtl; }
.case.reverse > * { direction: ltr; }
.case-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-2); }
.case-media img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.case:hover .case-media img { transform: scale(1.02); }
.case-body .eyebrow { margin-bottom: 12px; }
.case-body p { color: var(--muted); margin-top: 12px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 980px) { .case, .case.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* --------------------------------------------------------------------------
   Loja (automações)
   -------------------------------------------------------------------------- */
.price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price .old { display: block; font-size: 0.9rem; color: var(--faint); text-decoration: line-through; font-weight: 500; margin-bottom: 4px; letter-spacing: 0; }
.pack { display: flex; flex-direction: column; gap: 14px; }
.pack .pack-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.pack ul li { display: flex; gap: 8px; align-items: flex-start; }
.pack ul li::before { content: "•"; color: var(--cyan); }
.pack .btn { margin-top: auto; }
.pack.selected { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.pack .ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--grad); color: #04121a; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 40px; }
.tpl { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tpl:hover { border-color: var(--line-2); background: var(--surface-2); }
.tpl.selected { border-color: var(--cyan); background: rgba(56,189,248,0.08); }
.tpl input { margin-top: 4px; accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.tpl .tpl-body { flex: 1; }
.tpl .tpl-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 600; }
.tpl .tpl-price { color: var(--cyan-2); font-family: var(--font-display); white-space: nowrap; }
.tpl p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.tpl.disabled { opacity: 0.6; cursor: default; }
.area-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--text); }
.area-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checkout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; color: var(--muted); }
.summary .line.total { border: 0; padding-top: 14px; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.summary .line.total .price { font-size: 1.6rem; }
.summary .empty { color: var(--faint); font-size: 0.92rem; }
.cupom-row { display: flex; gap: 8px; margin-top: 10px; }
.cupom-row input { text-transform: uppercase; }
.coupon-ok { color: var(--ok); font-size: 0.85rem; margin-top: 6px; }
.coupon-bad { color: var(--danger); font-size: 0.85rem; margin-top: 6px; }
@media (max-width: 980px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.notice { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); color: #fde68a; font-size: 0.92rem; }
.notice.info { border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.08); color: var(--cyan-2); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: center; }
.flow .node { padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); text-align: center; font-size: 0.82rem; font-weight: 500; position: relative; }
.flow .node.on { border-color: rgba(56,189,248,0.5); box-shadow: 0 0 0 3px rgba(56,189,248,0.12); }
.flow .node + .node::before { content: ""; position: absolute; left: -9px; top: 50%; width: 10px; height: 2px; background: var(--line-2); }
@media (max-width: 620px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow .node + .node::before { display: none; } }

/* --------------------------------------------------------------------------
   Guias (feed infinito)
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.filters button.active, .filters button:hover { color: var(--text); border-color: var(--cyan); background: rgba(56,189,248,0.1); }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guia { display: flex; flex-direction: column; gap: 10px; }
.guia .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--faint); }
.guia h3 { font-size: 1.12rem; }
.guia .corpo { display: none; color: var(--muted); font-size: 0.95rem; }
.guia .corpo p + p { margin-top: 10px; }
.guia .corpo ol, .guia .corpo ul { margin: 10px 0 0 18px; padding: 0; display: grid; gap: 6px; }
.guia.open .corpo { display: block; }
.guia.open { grid-column: 1 / -1; }
.guia .toggle { align-self: flex-start; margin-top: auto; }
.sentinel { height: 1px; }
.loader { display: flex; justify-content: center; padding: 28px; color: var(--faint); font-size: 0.9rem; gap: 10px; align-items: center; }
.loader i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1s infinite alternate; }
.loader i:nth-child(2) { animation-delay: 0.2s; } .loader i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { to { opacity: 0.25; transform: translateY(-3px); } }
@media (max-width: 980px) { .feed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feed { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .cupom-row input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text);
  padding: 12px 14px; font: inherit; font-size: 0.96rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .cupom-row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,189,248,0.18); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--faint); }
.field.error input { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.form-status { margin-top: 12px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 32px; background: linear-gradient(180deg, transparent, rgba(10,14,25,0.8)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 34ch; }
.footer-legal { font-size: 0.82rem !important; color: var(--faint) !important; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: var(--text); margin-bottom: 6px; font-family: var(--font-text); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--faint); }
.footer-note { max-width: 62ch; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Revelação (progressive enhancement: visível sem JS)
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
body.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.js-anim .reveal.in { opacity: 1; transform: none; }
body.js-anim .reveal[data-delay="1"] { transition-delay: 0.08s; }
body.js-anim .reveal[data-delay="2"] { transition-delay: 0.16s; }
body.js-anim .reveal[data-delay="3"] { transition-delay: 0.24s; }
body.js-anim .reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Mascote: piscar, aceno */
.mascot .palpebras { transform-origin: center; transform-box: fill-box; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.mascot .braco-d { transform-origin: 218px 232px; transition: transform 0.4s var(--ease); }
.mascot-wrap:hover .braco-d, .mascot.wave .braco-d { animation: wave 1.2s ease-in-out; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-38deg); } 50% { transform: rotate(-22deg); } 75% { transform: rotate(-40deg); } }
.mascot .olhos { transition: transform 0.15s linear; }
.mascot .antena-luz { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

@media (max-width: 620px) { .bg-mesh::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-mesh::before { animation: none; }
  .floaty, .marquee-track, .mascot .palpebras, .mascot .antena-luz, .loader i, .msg { animation: none !important; opacity: 1; transform: none; }
  body.js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .case-media img { transition: none; }
}

/* --------------------------------------------------------------------------
   Página de pagamento (Pix / boleto)
   -------------------------------------------------------------------------- */
.pay-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; margin-top: 8px; }
.qr-box { background: #fff; border-radius: var(--r-md); padding: 12px; width: min(280px, 100%); margin: 16px auto 10px; aspect-ratio: 1 / 1; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field textarea, .copy-field input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; min-height: 0; resize: none; word-break: break-all; }
.pay-status { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); margin-bottom: 14px; }
.pay-status.ok { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); color: var(--ok); }
.pay-status.err { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); color: var(--danger); }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 0.95rem; }
.stat-line strong { color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* status de pedido: caixa (página de pagamento) e chip (lista de pedidos) */
.st-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.st-box.is-wait, .st-chip.is-wait { background: #fde68a; color: #422006; }
.st-box.is-ok, .st-chip.is-ok { background: #bbf7d0; color: #052e16; }
.st-box.is-err, .st-chip.is-err { background: #fecaca; color: #450a0a; }
.st-box::before, .st-chip::before { content: ""; flex: none; box-sizing: border-box; }
.st-box.is-wait::before, .st-chip.is-wait::before { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(66,32,6,0.25); border-top-color: #422006; animation: st-spin 0.9s linear infinite; }
.st-box.is-ok::before, .st-chip.is-ok::before { width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e16' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.st-box.is-err::before, .st-chip.is-err::before { display: none; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.st-chip.is-wait::before, .st-chip.is-ok::before { width: 13px; height: 13px; }
.st-chip.is-wait::before { border-width: 2px; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-box.is-wait::before, .st-chip.is-wait::before { animation-duration: 3.5s; } }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.cancel-box { margin-top: 14px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.cancel-box p { margin: 0 0 10px; }
.cancel-box .row { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 0.9rem; }

/* Meus pedidos */
.ped-list { display: grid; gap: 16px; margin-top: 24px; }
.ped-card { display: grid; gap: 10px; }
.ped-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ped-num { font-weight: 700; overflow-wrap: anywhere; }
.ped-items { color: var(--muted); overflow-wrap: anywhere; }
.ped-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ped-form { max-width: 460px; display: grid; gap: 14px; }
.ped-form .row { display: flex; flex-wrap: wrap; gap: 10px; }
.ped-msg { font-size: 0.92rem; }
.ped-msg.err { color: var(--danger); }

/* atributo hidden vence o display de componentes (.btn, .card…) */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Parceria Sankhya (destaque na home; a página /sankhya/ tem o próprio <style>)
   -------------------------------------------------------------------------- */
.nav-pill.sk { background: #66CB66; }
.parceria {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 40px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); border: 1px solid rgba(102, 203, 102, 0.3);
  background: linear-gradient(120deg, rgba(102, 203, 102, 0.12), rgba(56, 189, 248, 0.08) 55%, rgba(139, 92, 246, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.parceria-logos { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.parceria-logos .logo { height: 46px; width: auto; }
.parceria-logos .x { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; color: var(--faint); line-height: 1; }
.parceria-logos img { height: 32px; width: auto; }
.parceria-copy .eyebrow::before { background: #66CB66; }
.parceria-copy h2 { margin-top: 12px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.parceria-copy p { margin-top: 12px; color: var(--muted); max-width: 58ch; }
.parceria-pontos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.parceria-pontos li { display: flex; gap: 10px; align-items: baseline; }
.parceria-pontos li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #66CB66; flex: none; transform: translateY(-2px); }
.parceria-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-self: end; }
@media (max-width: 980px) { .parceria { grid-template-columns: 1fr; } .parceria-cta { justify-self: start; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 620px) { .parceria-logos .logo { height: 40px; } .parceria-logos img { height: 28px; } .parceria-cta .btn { width: 100%; } }
