/* ============================================================
   AVALOON · essencial Sales Force — Product mockups & showcase
   Faithful stylized recreations of the real ESF screens
   ============================================================ */

/* tweak: disable floating motion */
.no-motion .hero-dash, .no-motion .chip-float, .no-motion .phone-front, .no-motion .sync-dot, .no-motion .about-orbit { animation: none !important; }

/* ---------- mini app chrome (shared) ---------- */
.appcard {
  position: relative; background: linear-gradient(180deg, #10161f, #0b1019);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.appbar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: #0a0e15; }
.appbar .brand-mini { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; color: #fff; }
.appbar .brand-mini img { height: 20px; }
.appbar .brand-mini .sf { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .02em; text-transform: none; color: var(--orange); }
.appbar .traffic { display: flex; gap: 6px; margin-left: 2px; }
.appbar .traffic i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.appbar .user { margin-left: auto; font-size: 11px; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.appbar .user .chip { background: var(--sky); color: #021; font-weight: 700; padding: 3px 9px; border-radius: 6px; font-size: 10px; }

/* ============================================================
   HERO — dashboard preview (compact)
   ============================================================ */
.hero-visual { position: relative; }
.hero-dash { animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-dash, .chip-float, .phone-float { animation: none !important; } }

.dash-body { padding: 16px; display: grid; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  position: relative; background: #0d131c; border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 13px 13px 16px; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-k, var(--orange)); }
.kpi.k-blue { --accent-k: var(--sky); }
.kpi.k-teal { --accent-k: var(--teal); }
.kpi.k-orange { --accent-k: var(--orange); }
.kpi.k-green { --accent-k: var(--green); }
.kpi .lbl { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.kpi .val { font-family: var(--font-display); font-size: 21px; color: #fff; margin-top: 4px; line-height: 1; }
.kpi .sub { font-size: 9px; color: var(--ink-mute); margin-top: 3px; }
.kpi .badge { position: absolute; top: 11px; right: 11px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-k) 16%, transparent); color: var(--accent-k); }
.kpi .badge .ic { width: 14px; height: 14px; }

.dash-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.panel { background: #0d131c; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.panel .p-title { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; text-align: center; }

/* gauge */
.gauge-wrap { display: grid; place-items: center; padding: 8px 0 4px; }
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { transform: rotate(-90deg); display: block; }
.gauge .track { fill: none; stroke: rgba(255,255,255,.07); }
.gauge .fill { fill: none; stroke: url(#gaugeGrad); stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.3,.8,.3,1); }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .center .pct { font-family: var(--font-display); font-size: 32px; color: #fff; line-height: 1; }
.gauge .center .cap { font-size: 10px; color: var(--ink-soft); margin-top: 3px; }
.gauge-foot { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; text-align: center; }
.gauge-foot .gf .a { font-size: 8.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.gauge-foot .gf .b { font-family: var(--font-display); font-size: 12px; margin-top: 2px; }
.gauge-foot .gf .b.o { color: var(--orange); }
.gauge-foot .gf .b.t { color: var(--teal); }

/* line chart */
.linechart { margin-top: 6px; }
.linechart svg { width: 100%; height: auto; display: block; overflow: visible; }
.lc-axis { font-size: 7px; fill: var(--ink-mute); }
.lc-grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.lc-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lc-line.meta { stroke: var(--sky); }
.lc-line.fat { stroke: var(--orange); }
.lc-area { opacity: .14; }
.lc-dot { stroke: #0d131c; stroke-width: 1.5; }
.lc-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .lc-draw { animation: none; stroke-dashoffset: 0; } }
.lc-legend { display: flex; justify-content: center; gap: 16px; margin-top: 6px; font-size: 9px; color: var(--ink-soft); }
.lc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* floating chips on hero */
.chip-float { position: absolute; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: 13px; padding: 11px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: #fff; animation: floaty 6.5s ease-in-out infinite; }
.chip-float .ic { width: 16px; height: 16px; }
.chip-float .badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.chip-totvs { top: -16px; left: -30px; animation-delay: .3s; }
.chip-totvs .badge { background: var(--orange-soft); color: var(--orange); }
.chip-ai { bottom: -18px; right: -22px; animation-delay: 1.1s; }
.chip-ai .badge { background: rgba(45,212,191,.16); color: var(--teal); }

/* ============================================================
   SHOWCASE — alternating feature rows
   ============================================================ */
.showcase { background: var(--bg); }
.feature-row { display: grid; grid-template-columns: 1fr 1.16fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(72px, 10vw, 130px); }
.feature-row.flip .feature-text { order: 2; }
.feature-row.flip .feature-visual { order: 1; }
.feature-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); background: var(--orange-soft); border: 1px solid var(--orange-line); padding: 9px 18px; border-radius: 999px; }
.feature-tag .ic { width: 17px; height: 17px; }
.feature-text h3 { font-size: clamp(28px, 3.5vw, 44px); margin: 18px 0 0; }
.feature-text p { color: var(--ink-soft); margin-top: 16px; font-size: 16.5px; line-height: 1.6; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-soft); }
.feature-list .tick { width: 22px; height: 22px; border-radius: 6px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feature-list .tick .ic { width: 13px; height: 13px; }
.feature-visual { position: relative; }

/* glow behind each mockup */
.feature-visual::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 48px;
  background: radial-gradient(55% 55% at 50% 42%, rgba(254,128,38,.16), transparent 72%);
  filter: blur(42px); opacity: 0; transition: opacity 1.1s ease; pointer-events: none;
}
.feature-visual.in::before { opacity: 1; }
.feature-visual.glow-teal::before { background: radial-gradient(55% 55% at 50% 42%, rgba(45,212,191,.17), transparent 72%); }

/* entrance: tilt + scale in */
.feature-visual > .appcard,
.feature-visual > .phones {
  opacity: 0; transform: perspective(1500px) rotateY(8deg) translateY(30px) scale(.94);
  transform-origin: center; transition: opacity .85s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.feature-row.flip .feature-visual > .appcard,
.feature-row.flip .feature-visual > .phones { transform: perspective(1500px) rotateY(-8deg) translateY(30px) scale(.94); }
.feature-visual.in > .appcard,
.feature-visual.in > .phones { opacity: 1; transform: perspective(1500px) rotateY(0) translateY(0) scale(1); }
.feature-row.flip .feature-visual.in > .appcard,
.feature-row.flip .feature-visual.in > .phones { transform: perspective(1500px) rotateY(0) translateY(0) scale(1); }

/* internal elements stagger in */
.feature-visual .kpi,
.feature-visual .rank-row,
.feature-visual .assist-chip,
.feature-visual .ins-row,
.feature-visual .race-cell {
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.feature-visual.in .kpi,
.feature-visual.in .rank-row,
.feature-visual.in .assist-chip,
.feature-visual.in .ins-row,
.feature-visual.in .race-cell { opacity: 1; transform: none; }
.feature-visual.in .kpi:nth-child(2),
.feature-visual.in .race-cell:nth-child(2) { transition-delay: .07s; }
.feature-visual.in .kpi:nth-child(3),
.feature-visual.in .race-cell:nth-child(3) { transition-delay: .14s; }
.feature-visual.in .kpi:nth-child(4),
.feature-visual.in .race-cell:nth-child(4) { transition-delay: .21s; }
.feature-visual.in .race-cell:nth-child(5) { transition-delay: .28s; }
.feature-visual.in .race-cell:nth-child(6) { transition-delay: .35s; }
.feature-visual.in .race-cell:nth-child(7) { transition-delay: .42s; }
.feature-visual.in .race-cell:nth-child(8) { transition-delay: .49s; }
.feature-visual.in .rank-row:nth-child(2) { transition-delay: .12s; }
.feature-visual.in .rank-row:nth-child(3) { transition-delay: .24s; }
.feature-visual.in .assist-chip:nth-child(4) { transition-delay: .1s; }
.feature-visual.in .assist-chip:nth-child(5) { transition-delay: .2s; }
.feature-visual.in .assist-chip:nth-child(6) { transition-delay: .3s; }
.feature-visual.in .ins-row:nth-child(3) { transition-delay: .1s; }
.feature-visual.in .ins-row:nth-child(4) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .feature-visual > .appcard, .feature-visual > .phones,
  .feature-visual .kpi, .feature-visual .rank-row, .feature-visual .assist-chip,
  .feature-visual .ins-row, .feature-visual .race-cell { opacity: 1 !important; transform: none !important; }
}

/* ---------- Corrida das Metas mock ---------- */
.race { padding: 16px; }
.race-head { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.race-head .ic { width: 15px; height: 15px; color: var(--orange); }
.race-track { display: flex; gap: 7px; align-items: stretch; }
.race-cell { flex: 1; background: #0d131c; border: 1px solid var(--border); border-radius: 11px; padding: 10px 6px; text-align: center; position: relative; min-width: 0; }
.race-cell.start { background: linear-gradient(180deg, rgba(40,199,111,.18), rgba(40,199,111,.04)); border-color: rgba(40,199,111,.3); }
.race-cell.finish { background: linear-gradient(180deg, rgba(254,128,38,.22), rgba(254,128,38,.05)); border-color: var(--orange-line); }
.race-cell.current { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 10px 30px -12px rgba(254,128,38,.5); }
.race-cell .rc-n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: #fff; font-family: var(--font-display); font-size: 11px; display: grid; place-items: center; margin: 0 auto 6px; }
.race-cell.current .rc-n { background: var(--orange); }
.race-cell .rc-m { font-family: var(--font-display); font-size: 11px; color: var(--ink); letter-spacing: .04em; }
.race-cell .rc-lab { font-size: 7.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.race-cell .rc-pct { font-family: var(--font-display); font-size: 12px; margin-top: 7px; color: var(--ink-soft); }
.race-cell.current .rc-pct { color: var(--green); }
.race-cell .flag { font-size: 16px; }
.race-cell .rc-start-label, .race-cell .rc-finish-label { font-family: var(--font-display); font-size: 7.5px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.race-cell .rc-pct.ok { color: var(--green); }
.race-cell .rc-pct.mid { color: var(--orange); }
.race-cell.done-m .rc-n { background: rgba(40,199,111,.22); color: var(--green); }
.race-avatars { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.race-avatars span { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 1.5px solid #0d131c; margin-left: -4px; display: grid; place-items: center; font-size: 9px; }
.race-avatars span:first-child { margin-left: 0; }
.race-progress { position: relative; height: 4px; background: var(--border-strong); border-radius: 4px; margin: 14px 6px 0; }
.race-progress .done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); border-radius: 4px; transition: width 1.6s cubic-bezier(.3,.8,.3,1); }
.race-progress .marker { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--green); border: 2px solid #0d131c; }
.race-progress .marker.cur { background: var(--orange); box-shadow: 0 0 0 4px rgba(254,128,38,.25); }

/* ranking */
.rank { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.rank-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .medal { font-size: 15px; text-align: center; }
.rank-row .who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-row .who .av { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); border: 1.5px solid var(--border-strong); flex: none; }
.rank-row .who .nm { font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .pct { font-family: var(--font-display); font-size: 13px; }
.rank-row .pct.up { color: var(--green); }
.rank-row .pct.mid { color: var(--orange); }
.rank-row .pct.low { color: var(--red); }
.rank-row .barwrap { width: 90px; height: 6px; background: var(--border-strong); border-radius: 6px; overflow: hidden; }
.rank-row .barwrap i { display: block; height: 100%; border-radius: 6px; }
.rank-row .barwrap i.up { background: var(--green); }
.rank-row .barwrap i.mid { background: var(--orange); }
.rank-row .barwrap i.low { background: var(--red); }

/* ---------- AI assistant mock ---------- */
.assistant { width: min(424px, 100%); margin-inline: auto; }

/* ============================================================
   SOLUÇÕES — animação (ícone pop + brilho)
   ============================================================ */
.sol-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.07) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .85s cubic-bezier(.2,.7,.3,1);
}
.sol-card:hover::after { transform: translateX(130%); }
@keyframes icoPop {
  0% { transform: scale(.4) rotate(-16deg); }
  60% { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.sol-card.in .sol-ico { animation: icoPop .6s cubic-bezier(.2,.7,.3,1) .1s backwards; }
@media (prefers-reduced-motion: reduce) {
  .sol-card.in .sol-ico { animation: none; }
  .sol-card::after { display: none; }
}
.assist-head { background: linear-gradient(120deg, var(--orange), var(--orange-700)); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.assist-head .av { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.assist-head .av img { width: 26px; filter: brightness(0) invert(1); }
.assist-head .t { font-family: var(--font-display); font-size: 16px; color: #fff; }
.assist-head .s { font-size: 11px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.assist-head .s .dot { width: 7px; height: 7px; border-radius: 50%; background: #b6f7c1; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.assist-body { padding: 18px; background: #0c1019; }
.assist-greet { color: #fff; font-family: var(--font-display); font-size: 17px; }
.assist-greet span { color: var(--ink-soft); font-family: var(--font-body); font-size: 14px; font-weight: 400; display: block; margin-top: 4px; }
.assist-qa { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-weight: 700; margin: 18px 0 10px; }
.assist-chip { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin-bottom: 9px; transition: border-color .2s, background .2s, transform .2s; cursor: default; }
.assist-chip:hover { border-color: var(--orange); background: var(--surface-3); transform: translateX(3px); }
.assist-input { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 11px 11px 14px; margin-top: 14px; }
.assist-input .ph { flex: 1; font-size: 13px; color: var(--ink-mute); }
.assist-input .send { width: 34px; height: 34px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; color: #fff; flex: none; }
.assist-input .send .ic { width: 16px; height: 16px; }

/* ---------- Phone frames ---------- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 480px; }
.phone {
  width: 250px; background: #05080d; border-radius: 36px; padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-strong);
}
.phone .screen { background: #0a0e16; border-radius: 28px; overflow: hidden; position: relative; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 56px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.15); z-index: 3; }
.phone-back { position: absolute; left: -54px; bottom: 36px; transform: rotate(-6deg) scale(.9); opacity: .7; filter: blur(.3px); z-index: 0; }
.phone-front { position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; }

.ph-top { padding: 16px 16px 12px; display: flex; align-items: center; gap: 8px; }
.ph-top .brand-mini { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 15px; color: var(--orange); }
.ph-top .brand-mini img { height: 20px; }
.ph-top .logout { margin-left: auto; color: var(--ink-soft); }
.ph-top .logout .ic { width: 17px; height: 17px; }
.ph-hello { padding: 0 16px; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.ph-hello .pa { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; flex: none; }
.ph-hello .pa .ic { width: 20px; height: 20px; }
.ph-hello .nm { font-family: var(--font-display); font-size: 15px; color: #fff; }
.ph-hello .sb { font-size: 10px; color: var(--ink-mute); }
.ph-cards { padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ph-card { border-radius: 14px; padding: 13px; color: #fff; }
.ph-card.teal { background: linear-gradient(150deg, #1fae93, #15806c); }
.ph-card.orange { background: linear-gradient(150deg, var(--orange), var(--orange-700)); }
.ph-card .pc-ico { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 22px; }
.ph-card .pc-ico .ic { width: 17px; height: 17px; }
.ph-card .pc-t { font-size: 11px; font-weight: 700; opacity: .92; }
.ph-card .pc-v { font-family: var(--font-display); font-size: 26px; line-height: 1; margin-top: 2px; }

.ph-meta { margin: 0 16px 14px; background: linear-gradient(180deg, var(--surface-2), #0c121b); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.ph-meta .mh { display: flex; align-items: center; justify-content: space-between; }
.ph-meta .mh .lbl { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.ph-meta .mh .ttl { font-family: var(--font-display); font-size: 18px; color: #fff; line-height: 1.1; margin-top: 3px; max-width: 130px; }
.ph-meta .mh .sub { font-size: 10px; color: var(--ink-mute); margin-top: 4px; }
.ph-ring { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--orange) 0% 100%); position: relative; }
.ph-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0c121b; }
.ph-ring .v { position: relative; font-family: var(--font-display); font-size: 15px; color: #fff; text-align: center; line-height: 1; }
.ph-ring .v small { display: block; font-size: 8px; color: var(--ink-mute); margin-top: 2px; }
.ph-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: 14px; height: 50px; }
.ph-bars .pb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-bars .pb .track { width: 7px; flex: 1; background: rgba(255,255,255,.06); border-radius: 4px; position: relative; }
.ph-bars .pb.cur .track { background: rgba(254,128,38,.2); box-shadow: inset 0 0 0 1px var(--orange); }
.ph-bars .pb .mo { font-size: 7px; color: var(--ink-mute); }
.ph-bars .pb.cur .mo { color: var(--orange); }

.ph-insights { padding: 0 16px 18px; }
.ph-insights .ih { font-family: var(--font-display); font-size: 15px; color: #fff; margin-bottom: 10px; }
.ins-row { display: flex; gap: 11px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px; margin-bottom: 9px; }
.ins-row .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ins-row .ico .ic { width: 18px; height: 18px; }
.ins-row .ico.o { background: rgba(254,128,38,.16); color: var(--orange); }
.ins-row .ico.t { background: rgba(45,212,191,.16); color: var(--teal); }
.ins-row .ico.g { background: rgba(245,185,66,.16); color: var(--gold); }
.ins-row .k { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.ins-row .k.o { color: var(--orange); }
.ins-row .k.t { color: var(--teal); }
.ins-row .k.g { color: var(--gold); }
.ins-row .ttl { font-family: var(--font-display); font-size: 14px; color: #fff; margin: 2px 0; }
.ins-row .ds { font-size: 11px; color: var(--ink-mute); line-height: 1.4; }

/* phone floating chat button */
.ph-fab { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(254,128,38,.7); z-index: 4; }
.ph-fab .ic { width: 20px; height: 20px; }

/* ============================================================
   SYNC / TOTVS band
   ============================================================ */
.sync { background: var(--bg-elev); }
.sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,6vw,72px); align-items: center; }
.sync-diagram { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.sync-node { display: flex; align-items: center; gap: 14px; background: #0d131c; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; position: relative; }
.sync-node + .sync-node { margin-top: 38px; }
.sync-node { transition: border-color .45s, box-shadow .45s, transform .45s, background .45s; }
.sync-node.active { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 22px 46px -22px rgba(254,128,38,.55); transform: translateX(5px); background: linear-gradient(180deg, rgba(254,128,38,.07), #0d131c); }
.sync-node .sn-ico { transition: transform .45s, background .45s; }
.sync-node.active .sn-ico { transform: scale(1.1); }
.sync-node.active .sn-tag { animation: tagpulse 1s ease-in-out infinite; }
@keyframes tagpulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sync-node.active .sn-tag { animation: none; } }
.sync-node .sn-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sync-node .sn-ico .ic { width: 24px; height: 24px; }
.sync-node.app .sn-ico { background: var(--orange-soft); color: var(--orange); }
.sync-node.esf .sn-ico { background: rgba(45,212,191,.16); color: var(--teal); }
.sync-node.totvs .sn-ico { background: rgba(77,141,240,.16); color: var(--sky); }
.sync-node .sn-t { font-family: var(--font-display); font-size: 16px; color: #fff; }
.sync-node .sn-d { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.sync-node .sn-tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(40,199,111,.14); color: var(--green); }
.sync-connector { position: absolute; left: 54px; height: 38px; width: 2px; background: repeating-linear-gradient(var(--orange-line) 0 4px, transparent 4px 8px); }
.sync-dot { position: absolute; left: 50px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(254,128,38,.2); animation: syncflow 3s ease-in-out infinite; }
@keyframes syncflow { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sync-dot { animation: none; opacity: 0; } }

@media (max-width: 1020px) {
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row.flip .feature-text { order: 1; }
  .feature-row.flip .feature-visual { order: 2; }
  .sync-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-main { grid-template-columns: 1fr; }
  .race-track { gap: 4px; }
  .race-cell .rc-lab, .race-cell .rc-pct { display: none; }
  .phone { width: 220px; }
  .phone-back { display: none; }
}

/* ============================================================
   PARALLAX
   ============================================================ */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }

/* section watermarks (parallax hosts) */
.wm-host { position: relative; overflow: hidden; }
.sec-wm { position: absolute; z-index: -1; pointer-events: none; opacity: .045; width: clamp(280px, 32vw, 440px); }
.sec-wm.l { left: -7%; }
.sec-wm.r { right: -7%; }
.sec-wm.t { top: -8%; }
.sec-wm.b { bottom: -14%; }
.sec-wm.mid { top: 50%; }

/* ============================================================
   PARA QUEM É (segmentos)
   ============================================================ */
.segments { background: var(--bg-elev); position: relative; overflow: hidden; }
.seg-watermark { position: absolute; left: -6%; bottom: -22%; width: 360px; opacity: .045; pointer-events: none; }
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.seg-card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px;
  overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.seg-card::after { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 110px; background: radial-gradient(120% 100% at 80% 0%, var(--orange-soft), transparent 70%); opacity: 0; transition: opacity .3s; }
.seg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.seg-card:hover::after { opacity: 1; }
.seg-ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); margin-bottom: 20px; position: relative; z-index: 1; }
.seg-ico .ic { width: 27px; height: 27px; }
.seg-card h3 { font-size: 22px; margin: 0 0 8px; position: relative; z-index: 1; }
.seg-card > p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; position: relative; z-index: 1; }
.seg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.seg-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.seg-list .tick { width: 20px; height: 20px; border-radius: 6px; background: rgba(40,199,111,.14); color: var(--green); display: grid; place-items: center; flex: none; margin-top: 1px; }
.seg-list .tick .ic { width: 12px; height: 12px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center;
  gap: 16px; font-family: var(--font-display); font-size: 18px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ico { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); margin-left: auto; transition: transform .3s, background .3s, color .3s; }
.faq-item summary .q-ico .ic { width: 18px; height: 18px; }
.faq-item[open] summary .q-ico { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-answer { padding: 0 24px 24px 70px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.faq-answer p { margin: 0; }

/* ============================================================
   CONTATO (form)
   ============================================================ */
.contact { padding-block: clamp(70px, 9vw, 120px); }
.contact-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(120% 130% at 92% 4%, rgba(254,128,38,.30), transparent 50%), linear-gradient(150deg, #11202b 0%, #0a0f17 100%);
  color: #fff; padding: clamp(36px, 5vw, 70px); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.contact-card .hero-grid { opacity: .5; }
.contact-card .cta-watermark { position: absolute; right: -3%; bottom: -28%; width: 360px; opacity: .08; pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-info .eyebrow { color: var(--orange); }
.contact-info h2 { font-size: clamp(28px, 3.6vw, 44px); color: #fff; margin: 14px 0 0; max-width: 16ch; }
.contact-info p { color: var(--ink-soft); margin: 18px 0 0; font-size: 16px; max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.contact-list .ic { width: 18px; height: 18px; color: var(--orange); flex: none; }
.contact-info .foot-social { margin-top: 24px; }

.contact-form { background: rgba(8,12,18,.55); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(6px); }
.field { margin-bottom: 16px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 14px 15px; color: #fff; font-family: var(--font-body); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254,128,38,.18); }
.field input.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,83,80,.16); }
.field .err { display: none; color: #ff9b99; font-size: 12px; margin-top: 6px; }
.field input.invalid ~ .err, .field textarea.invalid ~ .err { display: block; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--ink-mute); margin: 14px 0 0; text-align: center; }
.form-success { display: none; text-align: center; padding: 18px; }
.form-success.show { display: block; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(40,199,111,.16); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.form-success .ok .ic { width: 28px; height: 28px; }
.form-success h3 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.form-success p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ============================================================
   COMO COMEÇAR (steps)
   ============================================================ */
.steps { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps-grid::before {
  content: ""; position: absolute; top: 64px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--orange-line) 0 8px, transparent 8px 16px);
}
.step-card {
  position: relative; z-index: 1; background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.step-ico .ic { width: 28px; height: 28px; }
.step-card:hover .step-ico { background: var(--orange); color: #fff; transform: scale(1.05) rotate(-3deg); }
.step-n { margin-left: auto; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--surface-3); transition: color .3s; }
.step-card:hover .step-n { color: var(--orange-line); }
.step-card h3 { font-size: 22px; margin: 0 0 9px; }
.step-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

/* ============================================================
   FLOATING WHATSAPP + STICKY MOBILE CTA
   ============================================================ */
.fab-wpp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(37,211,102,.6);
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.fab-wpp:hover { transform: scale(1.09); }
.fab-wpp .ic { width: 28px; height: 28px; }
.fab-wpp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .5; z-index: -1; animation: fabpulse 2.4s ease-out infinite; }
@keyframes fabpulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab-wpp::before { animation: none; opacity: 0; } }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(9,13,19,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  transform: translateY(130%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .mobile-cta { display: block; }
  .fab-wpp { width: 52px; height: 52px; bottom: 84px; right: 16px; }
  .fab-wpp .ic { width: 25px; height: 25px; }
}

@media (max-width: 860px) {
  .segments-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-answer { padding-left: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}
