/* ==========================================================================
   Ewitec — Base, componentes e seções
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-400); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: var(--lh-snug); }
.display { font-size: var(--fs-5xl); line-height: var(--lh-tight); letter-spacing: -0.04em; font-weight: 600; }
.h2 { font-size: var(--fs-4xl); line-height: 1.08; letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-2xl); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.btn:hover { transform: translateY(-1px); --_bg: var(--surface-hover); --_bd: rgba(var(--fg-rgb),.28); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { --_bg: var(--accent); --_fg: var(--on-accent); --_bd: transparent; box-shadow: var(--glow-gold); }
.btn--primary:hover { --_bg: var(--accent-strong); --_bd: transparent; box-shadow: 0 14px 50px -10px rgba(226,192,69,.75); }
.btn--teal { --_bg: var(--teal-600); --_fg: #fff; --_bd: rgba(143,211,201,.3); box-shadow: var(--glow-teal); }
.btn--teal:hover { --_bg: var(--teal-500); --_bd: rgba(143,211,201,.5); }
.btn--ghost { --_bg: transparent; --_bd: transparent; }
.btn--sm { height: 38px; padding: 0 var(--space-4); }
.btn--lg { height: 56px; padding: 0 var(--space-8); font-size: var(--fs-base); }

/* ---- Badges / chips ------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px 6px 6px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: var(--fs-sm); color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.badge b { background: var(--grad-brand); color: var(--on-accent); font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--radius-full); font-weight: 700; }
.chip { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-muted);
}
.chip--teal { color: var(--teal-text); background: rgba(31,163,146,.12); border-color: rgba(31,163,146,.3); }
.chip--gold { color: var(--gold-text); background: rgba(226,192,69,.1); border-color: rgba(226,192,69,.3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---- Cards ---------------------------------------------------------- */
.card {
  position: relative; padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--grad-surface); border: 1px solid var(--border);
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
  overflow: hidden; isolation: isolate;
}
.card::before { /* spotlight segue o cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-base);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,189,174,.14), transparent 45%);
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.icon-box {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79,189,174,.2), rgba(226,192,69,.12));
  border: 1px solid rgba(143,211,201,.22); color: var(--teal-text);
}
.icon-box svg { width: 22px; height: 22px; }

/* ---- Navigation ----------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background var(--dur-base), border-color var(--dur-base), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(var(--bg-rgb),.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--space-6); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 14px; border-radius: var(--radius-full); font-size: var(--fs-sm); color: var(--text-muted); transition: color var(--dur-fast), background var(--dur-fast); }
.nav__links a:hover { color: var(--text); background: var(--surface-hover); }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; place-items: center; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out); position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: grid; }
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav.is-open { background: rgba(var(--bg-rgb),.96); backdrop-filter: blur(16px); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    padding: var(--space-4) var(--gutter) var(--space-8); background: var(--bg); height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav.is-open .nav__links a { font-size: var(--fs-lg); padding: 12px 0; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) { .nav__actions .btn--primary { display: none; } }

/* ---- Background FX -------------------------------------------------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--fg-rgb),.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb),.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: var(--orb-opacity); }
.orb--teal { background: radial-gradient(circle, var(--teal-500), transparent 70%); }
.orb--gold { background: radial-gradient(circle, rgba(226,192,69,.7), transparent 70%); opacity: calc(var(--orb-opacity) * .55); }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }
.orb { animation: drift 16s var(--ease-in-out) infinite; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Hero ----------------------------------------------------------- */
.hero { position: relative; padding: calc(76px + var(--space-20)) 0 var(--space-20); overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero__meta { display: flex; gap: var(--space-8); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.hero__meta strong { display: block; font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.03em; }
.hero__meta > div > span { font-size: var(--fs-sm); color: var(--text-subtle); }

@media (max-width: 960px) {
  .hero { padding-top: calc(76px + var(--space-12)); }
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero__meta { gap: var(--space-5); } .hero__cta .btn { flex: 1 1 auto; } }

/* Hero visual: telefone + painel + toasts */
.mock { position: relative; height: 560px; perspective: 1400px; }
.mock__panel {
  position: absolute; right: 0; top: 40px; width: 82%; padding: var(--space-5);
  border-radius: var(--radius-lg); background: rgba(var(--panel-rgb),.85); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
  transform: rotateY(-10deg) rotateX(4deg); transform-origin: right center;
}
.mock__bar { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-4); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock__bar span { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.kpi { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.kpi small { display: block; font-size: 11px; color: var(--text-subtle); }
.kpi b { font-family: var(--font-display); font-size: var(--fs-xl); }
.kpi em { font-style: normal; font-size: 11px; color: var(--success); margin-left: 4px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.chart div { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--teal-300), rgba(31,163,146,.15)); transform-origin: bottom; animation: grow 1.4s var(--ease-out) both; }
.chart div:nth-child(7) { background: linear-gradient(180deg, var(--gold-400), rgba(226,192,69,.15)); }
@keyframes grow { from { transform: scaleY(0); } }
.mock__rows { margin-top: var(--space-4); display: grid; gap: 8px; }
.mock__row { display: flex; align-items: center; gap: var(--space-3); font-size: 12px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); }
.mock__row span:first-of-type { flex: 1; color: var(--text-muted); }

.phone {
  position: absolute; left: 0; bottom: 0; width: 250px; height: 500px; padding: 12px;
  border-radius: 40px; background: #0b1514; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 0 0 6px #050c0b; z-index: 2;
  animation: float 7s var(--ease-in-out) infinite;
}
.phone__screen { height: 100%; border-radius: 30px; overflow: hidden; background: #F4F8F7; color: #0B1C1B; padding: 34px 16px 16px; position: relative; }
.phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 80px; height: 20px; translate: -50% 0; border-radius: 12px; background: #050c0b; }
.phone h5, .dev-phone h5 { margin: 0 0 4px; font: 700 13px var(--font-display); color: var(--teal-700); }
.phone p, .dev-phone p { margin: 0 0 12px; font-size: 11px; color: #5A7470; }
.q { padding: 10px; margin-bottom: 8px; border-radius: 12px; background: #fff; border: 1px solid #E1EAE8; font-size: 11px; }
.q b { display: block; margin-bottom: 6px; font-weight: 600; }
.stars { color: var(--gold-500); letter-spacing: 2px; font-size: 14px; }
.opts { display: flex; gap: 6px; }
.opts span { flex: 1; text-align: center; padding: 5px; border-radius: 8px; border: 1px solid #D7E4E2; }
.opts span.on { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.sign { height: 46px; border-radius: 8px; border: 1px dashed #A9BDBA; display: grid; place-items: center; }
.sign svg { width: 110px; color: var(--teal-700); }
.phone .submit, .dev-phone .submit { margin-top: 10px; height: 36px; border-radius: 10px; background: var(--teal-700); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: var(--radius-md);
  background: rgba(var(--panel-rgb),.9); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
  font-size: 12px; animation: float 6s var(--ease-in-out) infinite;
}
.toast i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; }
.toast small { display: block; color: var(--text-subtle); font-size: 11px; }
.toast--a { right: 4%; bottom: 70px; animation-delay: -2s; }
.toast--a i { background: rgba(52,211,153,.15); color: var(--success); }
.toast--b { left: 200px; top: 0; animation-delay: -4s; }
.toast--b i { background: rgba(226,192,69,.15); color: var(--gold-text); }
.toast svg { width: 16px; height: 16px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) { .mock { height: 520px; max-width: 560px; width: 100%; margin-inline: auto; } }
@media (max-width: 560px) {
  .mock { height: 470px; }
  .mock__panel { width: 100%; top: 0; transform: none; }
  .phone { width: 200px; height: 400px; left: 50%; margin-left: -100px; }
  .toast--b { left: auto; right: 0; top: 230px; }
  .toast--a { right: auto; left: 0; bottom: 20px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .chart { height: 110px; }
}

/* ---- Logos marquee -------------------------------------------------- */
.logos { padding: var(--space-12) 0; border-block: 1px solid var(--border); background: rgba(var(--fg-rgb),.012); }
.logos p { text-align: center; font-size: var(--fs-sm); color: var(--text-subtle); margin: 0 0 var(--space-8); }
.marquee { overflow: hidden; 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: var(--space-16); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 52px; width: auto; max-width: 150px; object-fit: contain; filter: var(--logo-filter); opacity: .6; transition: opacity var(--dur-base), filter var(--dur-base); }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-8))); } }

/* ---- Sections ------------------------------------------------------- */
.section { position: relative; padding: var(--space-32) 0; overflow-x: clip; }
.section--tight { padding: var(--space-20) 0; }
.section__head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-16); max-width: 760px; }
.section__head--center { text-align: center; align-items: center; margin-inline: auto; }
@media (max-width: 720px) { .section { padding: var(--space-20) 0; } .section__head { margin-bottom: var(--space-10); } }

/* Benefícios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.benefit { display: flex; flex-direction: column; gap: var(--space-4); min-height: 300px; }
.benefit__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-subtle); }
.benefit h3 { font-size: var(--fs-2xl); margin-top: auto; }
.benefit p { margin: 0; color: var(--text-muted); }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } .benefit { min-height: 0; } }

/* Bento de recursos */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
.bento .card { display: flex; flex-direction: column; gap: var(--space-3); }
.bento h3 { font-size: var(--fs-xl); }
.bento p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; }
@media (max-width: 960px) { .b-4, .b-2, .b-3 { grid-column: span 6; } }
.viz { margin-top: auto; padding-top: var(--space-6); }

/* Viz: formulário builder */
.builder { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-3); }
.builder__side { display: grid; gap: 6px; align-content: start; }
.builder__side span { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.builder__side span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal-300); }
.builder__side span:nth-child(2n)::before { background: var(--gold-400); }
.builder__canvas { padding: var(--space-3); border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); display: grid; gap: 8px; }
.field { height: 34px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.field::after { content: ""; position: absolute; left: 10px; top: 50%; width: 40%; height: 6px; translate: 0 -50%; border-radius: 3px; background: var(--border-strong); }
.field.is-drag { border-color: var(--gold-400); background: rgba(226,192,69,.08); box-shadow: var(--glow-gold); animation: nudge 3s var(--ease-in-out) infinite; }
.field.is-drag::after { background: var(--gold-400); width: 55%; }
@keyframes nudge { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,-3px); } }
@media (max-width: 560px) { .builder { grid-template-columns: 1fr; } .builder__side { display: flex; flex-wrap: wrap; } }

/* Viz: mapa GPS */
.map { position: relative; height: 170px; border-radius: var(--radius-md); overflow: hidden; background:
  radial-gradient(circle at 30% 40%, rgba(31,163,146,.18), transparent 50%),
  repeating-linear-gradient(0deg, rgba(var(--fg-rgb),.05) 0 1px, transparent 1px 22px),
  repeating-linear-gradient(90deg, rgba(var(--fg-rgb),.05) 0 1px, transparent 1px 22px), var(--surface); border: 1px solid var(--border); }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(226,192,69,.25); }
.pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold-400); animation: ping 2.4s var(--ease-out) infinite; }
.pin--t { background: var(--teal-300); box-shadow: 0 0 0 4px rgba(79,189,174,.25); }
.pin--t::after { border-color: var(--teal-300); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.fence { position: absolute; left: 18%; top: 18%; width: 46%; height: 62%; border: 1.5px dashed rgba(143,211,201,.6); border-radius: 40% 55% 45% 50%; }

/* Viz: fluxo de aprovação */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow span { font-size: 12px; padding: 6px 10px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: var(--surface); }
.flow span.ok { color: var(--success); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.flow span.now { color: var(--gold-text); border-color: rgba(226,192,69,.4); background: rgba(226,192,69,.08); }
.flow svg { width: 14px; color: var(--text-subtle); }

/* Viz: código / integração */
.code { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; padding: var(--space-4); border-radius: var(--radius-md); background: #050d0c; border: 1px solid var(--border); color: var(--ink-200); overflow-x: auto; white-space: pre; }
.code .k { color: var(--teal-300); } .code .s { color: var(--gold-300); } .code .c { color: var(--ink-400); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--teal-400), var(--gold-400), transparent); opacity: .5; }
.step { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.step__n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); }
.step h3 { font-size: var(--fs-xl); margin-top: var(--space-3); }
.step p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--space-10) var(--space-5); } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Split (Interativa / OS) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split + .split { margin-top: var(--space-32); }
.split--rev .split__media { order: -1; }
.split__copy { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checks li { display: flex; gap: var(--space-3); color: var(--text-muted); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--teal-text); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: var(--space-10); } .split--rev .split__media { order: 0; } .split + .split { margin-top: var(--space-20); } }

.os-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.os-col h4 { display: flex; justify-content: space-between; font: 600 12px var(--font-body); color: var(--text-subtle); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.os-card { padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; font-size: 12px; }
.os-card b { display: block; font-weight: 600; margin-bottom: 6px; }
.os-card .meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-subtle); font-size: 11px; }
.av { width: 20px; height: 20px; border-radius: 50%; background: var(--grad-brand); display: inline-block; }
.prio { display: inline-block; width: 28px; height: 4px; border-radius: 2px; }
@media (max-width: 560px) { .os-board { grid-template-columns: 1fr 1fr; } .os-col:last-child { display: none; } }

.stat-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.rating { display: flex; align-items: baseline; gap: var(--space-3); }
.rating strong { font-family: var(--font-display); font-size: 4rem; line-height: 1; letter-spacing: -.04em; }
.rating .stars { font-size: 20px; }
.bars { display: grid; gap: 8px; margin-top: var(--space-5); }
.bars div { display: grid; grid-template-columns: 24px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-subtle); }
.bars i { height: 6px; border-radius: 3px; background: var(--surface-hover); overflow: hidden; }
.bars i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--grad-brand); border-radius: 3px; }

/* Planos */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: var(--space-10); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--space-5); }
.plan__head { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.plan__head h3 { font-size: var(--fs-2xl); display: flex; align-items: center; gap: var(--space-3); }
.plan__head p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--text-muted); }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-300); }
.plan li.inherit { color: var(--text); font-weight: 600; }
.plan li.inherit svg { color: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { border-color: rgba(226,192,69,.45); background: linear-gradient(180deg, rgba(226,192,69,.08), rgba(var(--fg-rgb),.015) 40%); box-shadow: var(--glow-gold); }
.plan--featured::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Depoimento */
.quote { position: relative; max-width: 920px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--accent); margin-bottom: var(--space-4); }
.quote figcaption { display: flex; align-items: center; gap: var(--space-3); text-align: left; }
.quote figcaption .av { width: 48px; height: 48px; display: grid; place-items: center; color: var(--on-accent); font-weight: 700; font-family: var(--font-display); }
.quote figcaption small { display: block; color: var(--text-subtle); font-size: var(--fs-sm); }

/* Sobre */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.about .card { display: flex; flex-direction: column; gap: var(--space-4); }
.about p { margin: 0; color: var(--text-muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* CTA + contato */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border-strong); padding: clamp(var(--space-8), 6vw, var(--space-16));
  background: radial-gradient(ellipse at 0% 0%, rgba(31,163,146,.35), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(226,192,69,.18), transparent 55%), var(--surface-solid); }
.cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-12); }
.cta__info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text-muted); font-size: var(--fs-sm); }
.contact-list .icon-box { width: 40px; height: 40px; flex: none; }
.contact-list .icon-box svg { width: 18px; height: 18px; }
.contact-list b { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .cta__grid { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form .full { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); letter-spacing: .04em; }
.input {
  height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md);
  background: rgba(var(--bg-rgb),.6); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
textarea.input { height: 110px; padding: var(--space-3) var(--space-4); resize: vertical; }
.input::placeholder { color: var(--text-subtle); opacity: .8; }
.input:hover { border-color: rgba(var(--fg-rgb),.26); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,189,174,.15); background: rgba(var(--bg-rgb),.85); }
.input:user-invalid { border-color: var(--danger); }
.form__note { font-size: var(--fs-xs); color: var(--text-subtle); margin: 0; }
.form__status { font-size: var(--fs-sm); margin: 0; min-height: 1.4em; }
.form__status.ok { color: var(--success); } .form__status.err { color: var(--danger); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: var(--space-20) 0 var(--space-10); border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-10); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.footer__brand img { height: 32px; width: auto; }
.footer__brand p { margin: 0; color: var(--text-subtle); font-size: var(--fs-sm); max-width: 34ch; }
.footer h4 { font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-subtle); margin-bottom: var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--fs-sm); }
.footer ul a { color: var(--text-muted); transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-subtle); }
.footer__word { margin-top: var(--space-12); font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 19vw, 16rem); line-height: .8; letter-spacing: -.06em; text-align: center;
  background: linear-gradient(180deg, rgba(var(--fg-rgb),.09), rgba(var(--fg-rgb),0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---- Reveal on scroll ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---- i18n ------------------------------------------------------------ */
html.i18n-pending body { opacity: 0; }
body { transition: opacity .2s; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); cursor: pointer;
  font: 600 var(--fs-xs) var(--font-mono); letter-spacing: .06em; transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang__btn:hover, .lang.is-open .lang__btn { color: var(--text); border-color: rgba(var(--fg-rgb),.28); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted); font-size: var(--fs-sm); text-align: left; cursor: pointer;
}
.lang__menu button span { font: 600 11px var(--font-mono); color: var(--text-subtle); width: 22px; }
.lang__menu button:hover { background: var(--surface-hover); color: var(--text); }
.lang__menu button[aria-checked="true"] { color: var(--text); }
.lang__menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Planos: ícones de check via CSS */
.plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--teal-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan li.inherit::before {
  background: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.link-btn { padding: 0; border: 0; background: none; color: var(--text-muted); font-size: inherit; cursor: pointer; text-align: left; transition: color var(--dur-fast); }
.link-btn:hover { color: var(--text); }
.form__note a, .cookie a, .policy a { color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Cookie banner ---------------------------------------------------- */
.cookie {
  position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 90; width: min(560px, calc(100% - 2 * var(--space-4)));
  padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(var(--panel-rgb),.96); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(16px); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__body { display: flex; gap: var(--space-4); }
.cookie__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(226,192,69,.12); color: var(--gold-text); }
.cookie__icon svg { width: 22px; height: 22px; }
.cookie h2 { font-size: var(--fs-base); margin-bottom: 4px; }
.cookie p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 480px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px 16px; }
  .cookie__icon { display: none; }
  .cookie h2 { font-size: var(--fs-sm); }
  .cookie p { font-size: 13px; line-height: 1.5; }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .cookie__actions .btn { height: 40px; padding: 0 10px; }
  .cookie__actions [data-c="customize"] { grid-column: 1 / -1; order: 3; height: 32px; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 95; display: none; place-items: center; padding: var(--space-4); background: rgba(var(--bg-rgb),.7); backdrop-filter: blur(6px); }
.cookie-modal.is-open { display: grid; }
.cookie-modal__box { width: min(560px, 100%); max-height: calc(100dvh - 2 * var(--space-4)); overflow-y: auto; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.cookie-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.cookie-modal__head h2 { font-size: var(--fs-xl); }
.cookie-modal__x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.cookie-modal .muted { font-size: var(--fs-sm); margin: 0 0 var(--space-4); }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.cookie-opt b { font-size: var(--fs-sm); }
.cookie-opt p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-subtle); line-height: 1.5; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }

.switch { position: relative; flex: none; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: var(--switch-off); border: 1px solid var(--border-strong); transition: background var(--dur-fast); pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-100); transition: transform var(--dur-base) var(--ease-out); }
.switch input:checked + span + i { background: var(--teal-500); }
.switch input:checked + span + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Página de política ---------------------------------------------- */
.policy-page .nav { position: sticky; background: rgba(var(--bg-rgb),.85); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.policy { max-width: 780px; margin-inline: auto; padding: var(--space-16) 0 var(--space-20); }
.policy h1 { font-size: var(--fs-4xl); line-height: 1.08; letter-spacing: -.035em; margin: var(--space-4) 0 var(--space-3); }
.policy .updated { color: var(--text-subtle); font-size: var(--fs-sm); font-family: var(--font-mono); }
.policy h2 { font-size: var(--fs-2xl); margin: var(--space-12) 0 var(--space-4); scroll-margin-top: 100px; }
.policy h3 { font-size: var(--fs-lg); margin: var(--space-6) 0 var(--space-2); }
.policy p, .policy li { color: var(--text-muted); }
.policy ul { padding-left: 1.2em; display: grid; gap: 6px; }
.policy strong { color: var(--text); }
.policy .toc { margin-top: var(--space-8); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.policy .toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: var(--space-8); font-size: var(--fs-sm); }
.policy .toc a { color: var(--text-muted); text-decoration: none; }
.policy .toc a:hover { color: var(--text); }
.table-wrap { overflow-x: auto; margin: var(--space-4) 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.policy table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.policy th, .policy td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.policy th { color: var(--text); font-weight: 600; background: var(--surface); }
.policy tr:last-child td { border-bottom: 0; }
.policy code { font-family: var(--font-mono); font-size: .85em; color: var(--teal-text); }
@media (max-width: 560px) { .policy .toc ol { columns: 1; } }
.policy mark { background: rgba(226,192,69,.18); color: var(--gold-text); padding: 0 4px; border-radius: 4px; }
.policy td code { white-space: nowrap; }

/* ---- Tema claro/escuro ---------------------------------------------- */
.logo-on-light { display: none; }
[data-theme="light"] .logo-on-light { display: block; }
[data-theme="light"] .logo-on-dark { display: none; }
.theme-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast); }
.theme-btn:hover { color: var(--text); border-color: rgba(var(--fg-rgb),.28); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 380px) { .nav__actions { gap: 6px; } .lang__btn { padding: 0 9px; } }

/* ---- Primeira tela: topo + clientes cabem na altura da janela (desktop) ---- */
@media (min-width: 961px) {
  .first-screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  .first-screen .hero {
    flex: 1; display: flex; align-items: center;
    padding: calc(76px + clamp(12px, 3vh, 40px)) 0 clamp(12px, 3vh, 40px);
  }
  .first-screen .hero > .container { width: 100%; }
  .hero__copy { gap: clamp(12px, 2.4vh, 24px); }
  .hero .display { font-size: clamp(2.5rem, min(4.6vw, 8vh), 5.25rem); }
  .hero .lead { font-size: clamp(0.95rem, 1.9vh, 1.125rem); }
  .hero__cta { margin-top: 0; }
  .hero__cta .btn--lg { height: clamp(44px, 6vh, 56px); }
  .hero__meta { margin-top: 0; padding-top: clamp(12px, 2.2vh, 24px); }
  .hero__meta strong { font-size: clamp(1.5rem, 3.6vh, 2.5rem); }

  .mock { height: clamp(380px, 60vh, 560px); }
  .mock__panel { top: clamp(16px, 4vh, 40px); padding: clamp(12px, 2vh, 20px); }
  .chart { height: clamp(80px, 14vh, 150px); }
  .kpis { margin-bottom: clamp(8px, 1.5vh, 16px); }
  .mock__rows { margin-top: clamp(8px, 1.5vh, 16px); }
  .phone { transform-origin: bottom left; }

  .first-screen .logos { padding: clamp(12px, 2.4vh, 32px) 0; }
  .first-screen .logos p { margin-bottom: clamp(8px, 1.6vh, 24px); }
  .first-screen .marquee img { height: clamp(32px, 5vh, 52px); }
}
@media (min-width: 961px) and (max-height: 860px) { .phone { scale: .9; } }
@media (min-width: 961px) and (max-height: 760px) { .phone { scale: .8; } }
@media (min-width: 961px) and (max-height: 680px) { .phone { scale: .72; } }

/* Celulares bem estreitos (≤ 360px) */
@media (max-width: 360px) {
  .mock__panel { padding: 12px; }
  .kpis { gap: 6px; }
  .kpi { padding: 8px; min-width: 0; }
  .kpi b { font-size: var(--fs-lg); }
  .kpi em { display: none; }
}
/* Links de contato com área de toque confortável */
.contact-list a { display: inline-block; padding: 6px 0; }

/* ==========================================================================
   Soluções — abas de casos de uso com simulações de tela
   ========================================================================== */
.uc { --uc-dur: 7s; }
.uc__tabs {
  display: flex; gap: 8px; padding: 6px; margin: 0 auto var(--space-8); width: fit-content; max-width: 100%;
  border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.uc__tabs::-webkit-scrollbar { display: none; }
.uc__tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer; overflow: hidden; scroll-snap-align: center;
  transition: color var(--dur-fast), background var(--dur-base);
}
.uc__tab svg { width: 17px; height: 17px; flex: none; }
.uc__tab:hover { color: var(--text); background: var(--surface-hover); }
.uc__tab[aria-selected="true"] { color: var(--text); background: var(--surface-solid); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-strong); }
.uc__tab[aria-selected="true"] svg { color: var(--teal-text); }
.uc__progress { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.uc.is-auto .uc__tab[aria-selected="true"] .uc__progress { opacity: 1; animation: ucprog var(--uc-dur) linear forwards; }
@keyframes ucprog { to { transform: scaleX(1); } }

.uc__panels { display: grid; }
.uc__panel {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-12); align-items: center;
  padding: clamp(20px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--grad-surface); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s .45s;
}
.uc__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s; }
.uc__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.uc__copy h3 { font-size: var(--fs-3xl); line-height: 1.12; letter-spacing: -.03em; }
.uc__copy p { margin: 0; color: var(--text-muted); font-size: var(--fs-lg); }
.uc__copy .checks { margin-top: var(--space-2); }

.uc__visual {
  position: relative; display: grid; place-items: center; min-height: 540px; padding: var(--space-6);
  border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(31,163,146,.16), transparent 60%), radial-gradient(circle at 80% 90%, rgba(226,192,69,.14), transparent 55%), var(--surface);
  border: 1px solid var(--border);
}
.uc__panel.is-active .dev-phone, .uc__panel.is-active .dev-win { animation: ucin .7s var(--ease-out) both; }
@keyframes ucin { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.uc-toast { right: 6%; bottom: 8%; }
.uc__panel.is-active .uc-toast { animation: ucin .7s .35s var(--ease-out) both, float 6s 1s var(--ease-in-out) infinite; }
.toast i.ok { background: rgba(52,211,153,.15); color: var(--success); }
.toast i.gold { background: rgba(226,192,69,.15); color: var(--gold-text); }
.toast i.warn { background: rgba(248,113,113,.14); color: var(--danger); }

/* Celular e janela das simulações */
.dev-phone {
  position: relative; width: 250px; height: 500px; padding: 12px; border-radius: 40px;
  background: #0b1514; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), inset 0 0 0 6px #050c0b;
}
.dev-win {
  width: 100%; max-width: 480px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 12px;
}
.dev-win .kpis { margin-bottom: 14px; }
.dev-win .kpi b { font-size: var(--fs-lg); }

/* Peças internas das simulações (telas claras do celular) */
.m-photos { display: flex; align-items: center; gap: 6px; }
.m-photos span { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #C6E8E3, #8FD3C9); position: relative; }
.m-photos span:nth-child(2) { background: linear-gradient(135deg, #F5E3A1, #EDD173); }
.m-photos span:nth-child(3) { background: linear-gradient(135deg, #D7E4E2, #A9BDBA); }
.m-photos em { font-style: normal; font-size: 10px; color: #5A7470; margin-left: 4px; }
.m-input { height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid #D7E4E2; background: #F4F8F7; font-weight: 600; }
.m-gps { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--teal-700); background: #E8F5F3; }
.m-gps svg { width: 12px; height: 12px; }
.m-os-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font: 600 10px var(--font-mono); color: #5A7470; }
.m-tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(14,133,118,.12); color: var(--teal-600); white-space: nowrap; }
.m-tag--danger { background: rgba(248,113,113,.16); color: #C2410C; }
.m-tag--gold { background: rgba(226,192,69,.2); color: #8A6C10; }
.m-meta { display: flex; justify-content: space-between; font-size: 11px; padding: 6px 0; border-bottom: 1px solid #E1EAE8; }
.m-meta span { color: #5A7470; }
.m-sla { margin: 8px 0; font-size: 11px; }
.m-sla div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.m-sla div span { color: #5A7470; }
.m-sla div b { color: #C2410C; }
.m-sla > i { display: block; height: 5px; border-radius: 3px; background: #E1EAE8; overflow: hidden; }
.m-sla > i i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-400), #F87171); }
.m-steps { display: flex; list-style: none; margin: 10px 0; padding: 0; gap: 4px; font-size: 9.5px; font-weight: 600; }
.m-steps li { flex: 1; text-align: center; padding: 5px 2px; border-radius: 6px; background: #EEF3F2; color: #7F9894; }
.m-steps li.done { background: #E8F5F3; color: var(--teal-700); }
.m-steps li.now { background: var(--teal-700); color: #fff; }

/* Janela (tema do site) */
.dev-win .m-list-head, .m-cal-title { font-weight: 700; font-size: 12px; margin: 2px 0 10px; color: var(--text); }
.m-list { display: grid; gap: 6px; }
.m-li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.m-li div { flex: 1; min-width: 0; }
.m-li b { display: block; font-size: 12px; }
.m-li small { color: var(--text-subtle); font-size: 11px; }
.dev-win .m-tag { background: rgba(14,133,118,.12); color: var(--teal-text); }
.dev-win .m-tag--danger { background: rgba(248,113,113,.15); color: var(--danger); }
[data-theme="light"] .dev-win .m-tag--danger { color: #C2410C; }
.dev-win .m-tag--gold { background: rgba(226,192,69,.18); color: var(--gold-text); }
.m-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--teal-400); }
.m-dot--danger { background: var(--danger); box-shadow: 0 0 0 4px rgba(248,113,113,.18); }
.m-dot--gold { background: var(--gold-400); box-shadow: 0 0 0 4px rgba(226,192,69,.2); }

/* Agenda (linha do tempo) */
.m-tl { display: grid; gap: 6px; }
.m-tl__hours, .m-tl__row { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; }
.m-tl__hours { grid-template-columns: 48px repeat(5, 1fr); font: 500 10px var(--font-mono); color: var(--text-subtle); }
.m-tl__row b { font-size: 11px; }
.m-tl__track { position: relative; height: 34px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--surface) 0 calc(20% - 1px), var(--border) calc(20% - 1px) 20%); border: 1px solid var(--border); }
.m-blk { position: absolute; top: 4px; bottom: 4px; display: flex; align-items: center; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(14,133,118,.16); color: var(--teal-text); border-left: 3px solid var(--teal-400); }
.m-blk--alt { background: rgba(226,192,69,.18); color: var(--gold-text); border-left-color: var(--gold-400); }
.m-blk--new { background: transparent; border: 1.5px dashed var(--gold-500); color: var(--gold-text); animation: blink 2.4s var(--ease-in-out) infinite; }
@keyframes blink { 50% { background: rgba(226,192,69,.18); } }

/* Escala */
.m-shift { display: grid; grid-template-columns: 48px repeat(7, 1fr); gap: 5px; align-items: center; font-size: 10px; }
.m-shift > span { text-align: center; font: 600 10px var(--font-mono); color: var(--text-subtle); }
.m-shift > b { font-size: 11px; }
.m-shift > i, .m-legend i { display: block; height: 26px; border-radius: 6px; }
.sm { background: rgba(31,163,146,.35); }
.sa { background: rgba(226,192,69,.45); }
.sn { background: rgba(11,59,58,.75); }
[data-theme="dark"] .sn { background: rgba(143,211,201,.35); }
.so { background: var(--surface-hover); border: 1px dashed var(--border-strong); }
.sx { background: transparent; border: 1.5px dashed var(--danger); animation: blinkr 2.4s var(--ease-in-out) infinite; }
@keyframes blinkr { 50% { background: rgba(248,113,113,.18); } }
.m-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 10px; color: var(--text-subtle); }
.m-legend span { display: inline-flex; align-items: center; gap: 6px; }
.m-legend i { width: 14px; height: 14px; border-radius: 4px; }
.m-legend em { font-style: normal; }

/* Otimização */
.m-steps-bar { display: grid; gap: 8px; }
.m-steps-bar > div { display: grid; grid-template-columns: 82px 1fr 44px; align-items: center; gap: 8px; font-size: 11px; }
.m-steps-bar span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-steps-bar b { text-align: right; font-family: var(--font-mono); font-size: 11px; }
.m-steps-bar > div > i { height: 12px; border-radius: 4px; background: var(--surface-hover); overflow: hidden; }
.m-steps-bar > div > i i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal-400), var(--teal-300)); transform-origin: left; }
.uc__panel.is-active .m-steps-bar > div > i i { animation: grow-x 1s var(--ease-out) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.m-steps-bar .is-bottleneck span, .m-steps-bar .is-bottleneck b { color: var(--gold-text); font-weight: 700; }
.m-steps-bar .is-bottleneck > i i { background: linear-gradient(90deg, var(--gold-400), #F59E0B); }
.m-tip { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(226,192,69,.35); background: rgba(226,192,69,.08); font-size: 11px; }
.m-tip b { color: var(--gold-text); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.m-result { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.m-result small { display: block; color: var(--text-subtle); font-size: 10px; }
.m-result b { font-family: var(--font-display); font-size: var(--fs-lg); }
.m-result em { font-style: normal; font-weight: 700; color: var(--success); font-size: var(--fs-lg); }
[data-theme="light"] .m-result em { color: #059669; }

@media (max-width: 960px) {
  .uc__panel { grid-template-columns: 1fr; gap: var(--space-8); }
  .uc__tabs { width: auto; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; padding: 6px var(--gutter); }
}
@media (max-width: 560px) {
  .uc__panel { padding: 16px; border-radius: var(--radius-lg); }
  .uc__copy h3 { font-size: var(--fs-2xl); }
  .uc__copy p { font-size: var(--fs-base); }
  .uc__visual { min-height: 0; padding: 20px 10px 64px; }
  .dev-phone { width: 230px; height: 460px; }
  .dev-win { padding: 12px; }
  .uc-toast { right: 8px; left: 8px; bottom: 10px; justify-content: flex-start; }
  .m-tl__hours, .m-tl__row { grid-template-columns: 40px 1fr; }
  .m-tl__hours { grid-template-columns: 40px repeat(5, 1fr); }
  .m-shift { grid-template-columns: 40px repeat(7, 1fr); gap: 3px; }
  .m-steps-bar > div { grid-template-columns: 70px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) { .uc__progress { display: none; } }
