/* ==========================================================================
   Strategic Core — landing page
   ========================================================================== */

:root {
  --orange: #ff5722;
  --orange-600: #f4511e;
  --orange-700: #d84315;
  --orange-300: #ff8a65;
  --pink: #c7407a;
  --indigo: #3333aa;
  --indigo-400: #5c5ce0;
  --green: #43a047;
  --green-300: #81c784;
  --red: #e53935;
  --blue: #2196f3;
  --whatsapp: #25d366;
  --whatsapp-600: #128c7e;

  --ink: #15152e;
  --ink-2: #3d3d5c;
  --muted: #62627e;
  --line: #e7e7f1;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --dark: #0e0e24;
  --dark-2: #16163a;
  --dark-line: rgba(255, 255, 255, .1);

  --brand-gradient: linear-gradient(120deg, var(--orange) 0%, var(--pink) 50%, var(--indigo) 100%);

  --font-head: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-app: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 21, 46, .06), 0 2px 8px rgba(21, 21, 46, .05);
  --shadow-md: 0 10px 30px -12px rgba(21, 21, 46, .25);
  --shadow-lg: 0 30px 60px -24px rgba(21, 21, 46, .35);
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .45);

  --nav-h: 72px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* Base -------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--orange-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  padding: .85em 1.6em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn--lg {
  font-size: 1.12rem;
  padding: 1em 1.9em;
}

.btn .icon {
  transition: transform .2s ease;
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 30px -10px rgba(255, 87, 34, .7);
}

.btn--primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 87, 34, .8);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.btn--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
}

.btn--light:hover {
  color: var(--orange-600);
  transform: translateY(-2px);
}

.btn--whatsapp {
  color: #fff;
  background: var(--whatsapp-600);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6);
}

.btn--whatsapp:hover {
  background: #0f7a6c;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(37, 211, 102, .7);
}

.btn--whatsapp:hover .icon {
  transform: none;
}

/* Eyebrow & section heads ------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

.eyebrow--dark {
  color: var(--orange-300);
}

.eyebrow--light {
  color: #fff;
}

.eyebrow--light::before {
  background: #fff;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  text-wrap: balance;
}

.section-lead {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  text-wrap: pretty;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, .72);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(44px, 6vw, 64px);
}

/* Chips & checklists ------------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.checklist--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  line-height: 1.4;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 4px 10px -4px rgba(67, 160, 71, .8);
}

@media (max-width: 575.98px) {
  .checklist--2col {
    grid-template-columns: 1fr;
  }
}

/* Navigation -------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, height .3s ease;
}

.nav.is-scrolled {
  --nav-h: 64px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(21, 21, 46, .08), 0 8px 24px -16px rgba(21, 21, 46, .3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__logo {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 10px;
  fill: #fff;
  background: var(--orange);
  box-shadow: 0 6px 16px -6px rgba(255, 87, 34, .8);
}

.nav__menu {
  margin-left: auto;
}

.nav__menu ul {
  display: flex;
  gap: 2px;
}

.nav__menu-cta {
  display: none;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.nav__link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

.nav.is-scrolled .nav__link:hover {
  background: rgba(21, 21, 46, .06);
}

.nav__link.is-active {
  opacity: 1;
  color: var(--orange-300);
}

.nav.is-scrolled .nav__link.is-active {
  color: var(--orange-600);
}

.nav__cta {
  flex-shrink: 0;
  font-size: .95rem;
  padding: .7em 1.3em;
  box-shadow: 0 8px 20px -10px rgba(255, 87, 34, .8);
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1079.98px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__cta {
    margin-left: auto;
  }

  .nav__menu {
    position: absolute;
    top: calc(var(--nav-h) + 4px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 8px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(21, 21, 46, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav__menu ul {
    flex-direction: column;
    gap: 2px;
  }

  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav__link:hover {
    background: var(--bg-soft);
  }

  .nav__link.is-active {
    color: var(--orange-600);
  }

  .nav.is-open:not(.is-scrolled) {
    background: rgba(14, 14, 36, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 575.98px) {
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    margin-left: auto;
  }

  .nav__menu-cta {
    display: flex;
    margin: 8px 4px 4px;
  }
}

@media (max-width: 374.98px) {
  .nav__brand {
    gap: 8px;
    font-size: 1.15rem;
  }

  .nav__logo {
    width: 30px;
    height: 30px;
    padding: 5px;
  }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 80px)) 0 clamp(40px, 6vw, 64px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero::before {
  width: 780px;
  height: 780px;
  left: -260px;
  top: -320px;
  background: radial-gradient(closest-side, rgba(255, 87, 34, .5), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 820px;
  height: 820px;
  right: -300px;
  top: 10%;
  background: radial-gradient(closest-side, rgba(51, 51, 170, .7), transparent);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(60px, 40px) scale(1.08);
  }
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 20%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero__word {
  display: block;
}

.js .hero__word {
  opacity: 0;
  transform: translateY(.35em);
  animation: word-in .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

.js .hero__word:nth-child(2) {
  animation-delay: .15s;
}

.js .hero__word:nth-child(3) {
  animation-delay: .3s;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__word--accent {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-300) 30%, #ffc3ad 50%, var(--orange-300) 70%, var(--orange) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}

.js .hero__word--accent {
  animation: word-in .8s cubic-bezier(.2, .7, .2, 1) .3s forwards, shimmer 6s linear 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.hero__subtitle {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 28ch;
  text-wrap: balance;
}

.hero__text {
  margin-top: 16px;
  max-width: 54ch;
  color: rgba(255, 255, 255, .72);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Hero visual */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.hero__halo {
  position: absolute;
  inset: 8% 14%;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(70px);
  opacity: .5;
}

.hero__phone {
  width: 280px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .6);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float-card strong {
  display: block;
  font-weight: 800;
}

.float-card small {
  display: block;
  font-size: .78rem;
  color: var(--muted);
}

.float-card__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.float-card--kpi {
  top: 6%;
  left: -2%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  animation-delay: -1s;
}

.float-card__row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.float-card__value {
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
}

.mini-bars i {
  width: 7px;
  height: calc(var(--v) * 100%);
  border-radius: 3px;
  background: linear-gradient(var(--orange-300), var(--orange));
  transform-origin: bottom;
  animation: bar-pulse 3.2s ease-in-out infinite;
}

.mini-bars i:nth-child(2n) {
  animation-delay: -.8s;
}

.mini-bars i:nth-child(3n) {
  animation-delay: -1.6s;
}

@keyframes bar-pulse {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(.7);
  }
}

.float-card--notify {
  top: 30%;
  right: -4%;
  max-width: 250px;
  animation-delay: -3s;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--orange);
  flex-shrink: 0;
}

.float-card__icon .icon {
  width: 20px;
  height: 20px;
  animation: ring-bell 4s ease-in-out infinite;
  transform-origin: 50% 10%;
}

@keyframes ring-bell {

  0%,
  70%,
  100% {
    transform: rotate(0);
  }

  74% {
    transform: rotate(14deg);
  }

  78% {
    transform: rotate(-12deg);
  }

  82% {
    transform: rotate(8deg);
  }

  86% {
    transform: rotate(-4deg);
  }
}

.float-card--flow {
  bottom: 14%;
  left: -6%;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation-delay: -4.5s;
}

.mini-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
}

.mini-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
  white-space: nowrap;
}

.mini-flow li.is-done {
  color: #fff;
  background: var(--green);
  box-shadow: none;
}

.mini-flow li.is-current {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, .2);
}

.float-card--ok {
  bottom: 2%;
  right: 2%;
  font-weight: 800;
  animation-delay: -2s;
}

.float-card__check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.float-card__check .icon {
  width: 16px;
  height: 16px;
}

/* Proof strip */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--dark-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.proof li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .66);
}

.proof strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: #fff;
}

.proof__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--orange-300);
  background: rgba(255, 87, 34, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 101, .25);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    align-items: center;
  }

  .hero__subtitle,
  .hero__text {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .hero__phone {
    width: 240px;
  }

  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hero__actions .btn {
    width: 100%;
  }

  .hero__phone {
    width: 210px;
  }

  .float-card {
    font-size: .76rem;
    padding: 10px 12px;
  }

  .float-card--kpi {
    left: 0;
    top: 2%;
  }

  .float-card__value {
    font-size: 1.35rem;
  }

  .float-card--notify {
    right: 0;
    max-width: 190px;
  }

  .float-card__icon {
    width: 32px;
    height: 32px;
  }

  .float-card--flow {
    display: none;
  }

  .float-card--ok {
    right: auto;
    left: 50%;
    bottom: 2%;
    translate: -50% 0;
    white-space: nowrap;
  }

  .proof {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proof li {
    text-align: left;
  }
}

/* Phone frame ------------------------------------------------------------- */

.phone {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2b2b3d, #0b0b14 40%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}

.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 14%;
  border-radius: 0 3px 3px 0;
  background: #22222f;
}

.phone img {
  width: 100%;
  border-radius: 27px;
  background: #fafafa;
}

.phone--ios {
  padding: 11px;
  border-radius: 46px;
}

.phone--ios img {
  border-radius: 36px;
}

/* Problem ----------------------------------------------------------------- */

/* Os cartões começam deslocados (efeito caos -> ordem) e não podem gerar rolagem lateral */
.problem {
  overflow: hidden;
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin-inline: auto;
}

.pain {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-2);
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, box-shadow .25s ease;
  transition-delay: calc(var(--i) * 60ms);
}

.pain .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: var(--red);
  background: #fdecea;
}

/* Caos -> ordem: os cartões chegam desalinhados e se organizam */
.js .pains:not(.is-visible) .pain {
  opacity: 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}

.js .pains.reveal {
  opacity: 1;
  transform: none;
}

.answer {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1000px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: 24px 28px;
  border-radius: 24px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 24px 48px -24px rgba(199, 64, 122, .8);
}

.answer p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .88);
}

.answer strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 4px;
}

.answer__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  flex-shrink: 0;
}

.answer__logo svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

@media (max-width: 991.98px) {
  .pains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pains {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pain {
    padding: 14px 16px;
  }

  .answer {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

/* Platform pillars -------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  position: relative;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(21, 21, 46, .04);
  transition: transform .3s ease, box-shadow .3s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.pillar__icon,
.res__icon,
.role__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 20px -10px rgba(255, 87, 34, .8);
}

.pillar__icon .icon {
  width: 26px;
  height: 26px;
}

.pillar__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #dcdcec;
}

.pillar h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pillar__msg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--orange-700);
  margin-bottom: 8px;
}

.pillar > p:not(.pillar__msg) {
  color: var(--muted);
}

.pillar .chips {
  margin-top: 22px;
}

@media (max-width: 767.98px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* How it works: core map -------------------------------------------------- */

.how::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 87, 34, .18), rgba(51, 51, 170, .12) 55%, transparent);
  pointer-events: none;
}

.core-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28px, .45fr) minmax(0, 1fr) minmax(28px, .45fr) minmax(0, 1.1fr) minmax(28px, .45fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 88px);
}

.core-map__node,
.core-map__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.core-map__node {
  padding: 24px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--dark-line);
}

.core-map strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-top: 12px;
}

.core-map__node span:last-child,
.core-map__core span:last-child {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.core-map__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.core-map__icon .icon {
  width: 28px;
  height: 28px;
}

.core-map__node--people .core-map__icon {
  background: rgba(67, 160, 71, .2);
  box-shadow: inset 0 0 0 1px rgba(129, 199, 132, .45);
  color: var(--green-300);
}

.core {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff8a65, var(--orange) 40%, var(--pink) 75%, var(--indigo));
  box-shadow: 0 0 70px rgba(255, 87, 34, .55), inset 0 0 24px rgba(255, 255, 255, .25);
}

.core svg {
  width: 62px;
  height: 62px;
  fill: #fff;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.core__ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 138, 101, .55);
  animation: ring 3.6s ease-out infinite;
}

.core__ring:nth-child(2) {
  animation-delay: 1.2s;
}

.core__ring:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: .9;
  }

  to {
    transform: scale(1.75);
    opacity: 0;
  }
}

.core-map__link {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 138, 101, .55), rgba(255, 255, 255, .08));
}

.core-map__link i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ffd0c0;
  box-shadow: 0 0 10px 3px rgba(255, 138, 101, .8);
  opacity: 0;
  animation: flow-x 2.4s linear infinite;
}

.core-map__link i:nth-child(2) {
  animation-delay: .8s;
}

.core-map__link i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes flow-x {
  0% {
    left: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes flow-y {
  0% {
    top: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 8px);
    opacity: 0;
  }
}

.core-map__outputs {
  display: grid;
  gap: 6px;
}

.core-map__outputs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: chip-glow 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1s);
}

.core-map__outputs .icon {
  width: 18px;
  height: 18px;
  color: var(--orange-300);
}

@keyframes chip-glow {

  0%,
  22%,
  100% {
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  }

  8% {
    background: rgba(255, 87, 34, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 101, .7), 0 0 24px -6px rgba(255, 87, 34, .7);
  }
}

/* How it works: steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .12);
}

.steps::after {
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.4s cubic-bezier(.4, 0, .2, 1) .2s;
}

.steps.is-visible::after {
  transform: scaleX(1);
}

.js .steps.reveal {
  opacity: 1;
  transform: none;
}

.step {
  position: relative;
  z-index: 1;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--dark);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
  transition: background-color .4s ease, box-shadow .4s ease;
  transition-delay: calc(var(--i) * .4s + .2s);
}

.steps.is-visible .step__num {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 87, 34, .18);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.step p {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

@media (max-width: 991.98px) {
  .core-map {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
  }

  .core-map__link {
    width: 2px;
    height: 44px;
    justify-self: center;
    background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 138, 101, .55), rgba(255, 255, 255, .08));
  }

  .core-map__link i {
    top: 0;
    left: 50%;
    margin: 0 0 0 -4px;
    animation-name: flow-y;
  }

  .core-map__outputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-map__outputs li:last-child {
    grid-column: span 2;
    justify-self: center;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .steps::before,
  .steps::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .steps::before,
  .steps::after {
    display: block;
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps::after {
    transform: scaleY(0);
    transform-origin: top;
  }

  .steps.is-visible::after {
    transform: scaleY(1);
  }

  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
  }

  .step__num {
    grid-row: span 2;
    margin: 0;
  }
}

/* Aprovação Relâmpago ----------------------------------------------------- */

.flash {
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--brand-gradient);
}

.flash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.flash__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.flash__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flash__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  background: rgba(14, 14, 36, .25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.flash__hint .icon {
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {

  0%,
  100% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(5px);
  }
}

.flash__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
}

.flash__icon .icon {
  width: 28px;
  height: 28px;
}

.flash__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.flash__content h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 18px;
  text-wrap: balance;
}

.flash__text {
  max-width: 50ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .88);
}

.swipe {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.swipe br {
  display: none;
}

.swipe__line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  margin-top: 12px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.swipe__line .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  color: #fff;
}

.swipe__line--ok .icon {
  background: var(--green);
}

.swipe__line--no .icon {
  background: var(--red);
}

/* Demonstração: app desenhado em HTML */

.swipe-demo {
  width: 310px;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
  border-radius: 27px;
  font-family: var(--font-app);
  color: #212121;
  background: #fafafa;
}

.app__status {
  flex-shrink: 0;
  padding: 6px 18px 2px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #e64a19;
}

.app__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
  position: relative;
  z-index: 1;
}

.app__bar .icon {
  width: 20px;
  height: 20px;
}

.app__bar span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app__filter {
  flex-shrink: 0;
  padding: 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #bbdefb;
}

.app__list {
  flex: 1;
  overflow: hidden;
}

.doc {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6e6e6;
}

.doc.is-leaving {
  transition: height .32s ease .1s;
}

.doc__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #fff;
  opacity: 0;
}

.doc__bg .icon {
  width: 26px;
  height: 26px;
}

.doc__bg--ok {
  justify-content: flex-start;
  background: var(--green);
}

.doc__bg--no {
  justify-content: flex-end;
  background: var(--red);
}

.doc.is-ok .doc__bg--ok,
.doc.is-no .doc__bg--no {
  opacity: 1;
}

.doc__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 18px;
  background: #fafafa;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .3s ease;
}

.doc__row:active {
  cursor: grabbing;
}

.doc__row:focus-visible {
  outline-offset: -3px;
}

.doc__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.doc__text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.doc__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}

.doc__text span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #757575;
}

.doc__chevron {
  width: 18px;
  height: 18px;
  color: #9e9e9e;
}

.app__empty {
  position: absolute;
  inset: 110px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: #757575;
  font-size: 13px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.app__empty .icon {
  width: 54px;
  height: 54px;
  color: var(--green);
  margin-bottom: 6px;
}

.app__empty strong {
  font-size: 17px;
  color: #212121;
}

.app.is-empty .app__empty {
  opacity: 1;
}

.app__toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #fff;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .3s ease;
}

.app__toast.is-show {
  transform: none;
}

.app__toast.is-no {
  background: var(--red);
}

@media (max-width: 991.98px) {
  .flash__grid {
    grid-template-columns: 1fr;
  }

  .flash__content {
    align-items: center;
    text-align: center;
    order: -1;
  }

  .flash__text {
    margin-inline: auto;
  }
}

@media (max-width: 374.98px) {
  .swipe-demo {
    width: 270px;
  }

  .app {
    height: 500px;
  }
}

/* Dashboards -------------------------------------------------------------- */

.dash__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.dash__visual {
  position: relative;
}

.dash__visual::before {
  content: "";
  position: absolute;
  inset: 10% 6% 14%;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(80px);
  opacity: .28;
}

.tablet {
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(145deg, #2b2b3d, #0b0b14 40%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: perspective(1600px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s ease;
}

.dash__visual:hover .tablet {
  transform: perspective(1600px) rotateY(0) rotateX(0);
}

.board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--ink);
  background: #f4f4fa;
}

.board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}

.board__title .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 8px;
  fill: #fff;
  background: var(--orange);
}

.board__pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .72rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.board__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi,
.chart,
.board__table {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.kpi span {
  display: block;
  font-size: .7rem;
  color: var(--muted);
}

.kpi strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
}

.kpi__trend {
  font-style: normal;
  font-size: .7rem;
  font-weight: 800;
  color: var(--green);
}

.kpi__trend--neutral {
  color: var(--indigo-400);
}

.board__charts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
}

.chart__title {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: .72rem;
  color: var(--muted);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 104px;
  padding-top: 4px;
  border-bottom: 1px solid var(--line);
}

.bars i {
  flex: 1;
  height: calc(var(--v) * 100%);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(var(--orange-300), var(--orange));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 70ms + .3s);
}

.bars i:last-child {
  background: linear-gradient(var(--indigo-400), var(--indigo));
}

.is-visible .bars i {
  transform: scaleY(1);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donut {
  width: 92px;
  height: 92px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.donut circle {
  fill: none;
  stroke-width: 6;
}

.donut__track {
  stroke: var(--bg-soft);
}

.donut__seg {
  stroke: var(--orange);
  stroke-dasharray: 0 100;
  stroke-dashoffset: var(--off);
  transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1) .5s;
}

.donut__seg--2 {
  stroke: var(--pink);
}

.donut__seg--3 {
  stroke: var(--indigo);
}

.is-visible .donut__seg {
  stroke-dasharray: var(--len) 100;
}

.legend {
  display: grid;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--orange);
}

.legend .l2 {
  background: var(--pink);
}

.legend .l3 {
  background: var(--indigo);
}

.board__table {
  display: grid;
  gap: 10px;
}

.trow {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .74rem;
}

.trow b {
  text-align: right;
}

.tbar {
  height: 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  overflow: hidden;
}

.tbar i {
  display: block;
  height: 100%;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .6s;
}

.is-visible .tbar i {
  transform: scaleX(1);
}

.caption {
  margin-top: 18px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .dash__grid {
    grid-template-columns: 1fr;
  }

  .tablet {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .tablet {
    padding: 8px;
    border-radius: 20px;
  }

  .board {
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .board__kpis {
    gap: 6px;
  }

  .kpi,
  .chart,
  .board__table {
    padding: 10px;
  }

  .kpi strong {
    font-size: 1.3rem;
  }

  .board__charts {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 76px;
    height: 76px;
  }
}

/* Aplicações (tabs) ------------------------------------------------------- */

.tabs {
  max-width: 1040px;
  margin-inline: auto;
}

.tabs__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-2);
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.tabs__tab:hover {
  color: var(--orange-700);
}

.tabs__tab[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(21, 21, 46, .7);
}

.tabs__tab .icon {
  width: 18px;
  height: 18px;
}

.tabs__panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(21, 21, 46, .04);
}

.tabs__panel:focus-visible {
  outline-offset: 4px;
}

.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.usecase h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.usecase p {
  color: var(--muted);
}

.usecase .checklist {
  margin-top: 22px;
}

.flowline {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg-soft);
}

.flowline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  background: #fff;
  box-shadow: var(--shadow-sm);
  animation: node-in .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * .35s);
}

.flowline li::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e8e8f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  animation: node-done .4s ease both;
  animation-delay: calc(var(--i) * .35s + .35s);
}

.flowline li:last-child::before {
  animation-name: node-final;
}

.flowline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 100%;
  width: 2px;
  height: 14px;
  background: #d8d8e6;
}

@keyframes node-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes node-done {
  to {
    background-color: var(--green);
  }
}

@keyframes node-final {
  to {
    background-color: var(--orange);
    box-shadow: 0 0 0 5px rgba(255, 87, 34, .2);
  }
}

@media (max-width: 767.98px) {
  .usecase {
    grid-template-columns: 1fr;
  }

  .tabs__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
  }

  .tabs__list::-webkit-scrollbar {
    display: none;
  }

  .tabs__tab {
    flex-shrink: 0;
  }
}

/* Mobilidade -------------------------------------------------------------- */

.mobility__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.store {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.store__label {
  display: block;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.badge-link {
  display: block;
  border-radius: 10px;
  transition: transform .2s ease, filter .2s ease;
}

.badge-link:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 14px rgba(21, 21, 46, .22));
}

.badge-link img {
  height: 48px;
  width: auto;
}

.tour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tour__phone {
  width: 280px;
  display: grid;
}

.tour__phone img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .6s ease;
}

.tour__phone img.is-active {
  opacity: 1;
}

.tour__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 380px;
}

.tour__step {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink-2);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.tour__step:hover {
  color: var(--orange-700);
}

.tour__step[aria-pressed="true"] {
  color: #fff;
  background: var(--orange);
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .mobility__grid {
    grid-template-columns: 1fr;
  }
}

/* Recursos ---------------------------------------------------------------- */

.res-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.res {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(21, 21, 46, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.res:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(21, 21, 46, .04);
}

.res__icon,
.role__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.res__icon .icon,
.role__icon .icon {
  width: 22px;
  height: 22px;
}

.res h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.res p {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .res-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .res {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding: 18px;
  }

  .res__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Sob medida + Para quem é ------------------------------------------------ */

.custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: var(--section-y);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.branch {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-head);
}

.branch__path {
  fill: none;
  stroke: #c9c9dc;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  animation: dash 1.2s linear infinite;
}

.branch__path--yes {
  stroke: var(--orange-300);
}

@keyframes dash {
  to {
    stroke-dashoffset: -22;
  }
}

.branch__node rect,
.branch__node path {
  fill: #fff;
  stroke: #d8d8e6;
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 8px rgba(21, 21, 46, .08));
}

.branch__node text,
.branch__label {
  text-anchor: middle;
  font-weight: 800;
  font-size: 15px;
  fill: var(--ink);
}

.branch__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  fill: var(--muted);
}

.branch__node--decision path {
  fill: var(--ink);
  stroke: var(--ink);
}

.branch__node--decision text {
  fill: #fff;
  font-size: 12px;
}

.branch__node--done rect {
  fill: var(--green);
  stroke: var(--green);
}

.branch__node--done text {
  fill: #fff;
}

.js .custom:not(.is-visible) .branch__node {
  opacity: 0;
}

.branch__node {
  transition: opacity .5s ease;
  transition-delay: calc(var(--i) * .3s + .3s);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.role {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(21, 21, 46, .06);
}

.role h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.role p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .custom {
    grid-template-columns: 1fr;
  }

  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .roles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .role {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding: 18px;
  }

  .role__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Integração -------------------------------------------------------------- */

.integration::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 700px;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(51, 51, 170, .55), transparent);
  filter: blur(20px);
}

.integration__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.tech {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 36px 0;
}

.tech h3 {
  font-size: 1.12rem;
  margin: 12px 0 4px;
}

.tech p {
  font-size: .94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

.tech__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--orange-300);
  background: rgba(255, 87, 34, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 101, .25);
}

.integration__note {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .72);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}

.stack__layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  font-size: .88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--dark-line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.stack__layer strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
}

.stack__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.stack__icon svg:not(.icon) {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.stack__layer--core {
  background: var(--brand-gradient);
  box-shadow: 0 20px 40px -20px rgba(255, 87, 34, .8);
  color: rgba(255, 255, 255, .85);
}

.stack__layer--core .stack__icon {
  background: rgba(255, 255, 255, .18);
}

.stack__layer--erp .stack__icon {
  color: var(--green-300);
  background: rgba(67, 160, 71, .18);
}

.stack__lock {
  position: absolute;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(67, 160, 71, .18);
}

.stack__lock .icon {
  width: 16px;
  height: 16px;
}

.stack__link {
  position: relative;
  align-self: center;
  width: 2px;
  height: 34px;
  background: rgba(255, 255, 255, .16);
}

.stack__link i {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ffd0c0;
  box-shadow: 0 0 10px 3px rgba(255, 138, 101, .7);
  animation: flow-y 1.8s linear infinite alternate;
}

.stack__link:nth-of-type(4) i {
  animation-delay: -.6s;
}

.stack__link:nth-of-type(6) i {
  animation-delay: -1.2s;
}

@media (max-width: 991.98px) {
  .integration__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .tech {
    grid-template-columns: 1fr;
  }

  .integration__content .btn {
    width: 100%;
  }
}

/* FAQ --------------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.trust {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}

.trust .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.trust p {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}

.trust strong {
  color: var(--ink);
}

.faq__list {
  display: grid;
  gap: 12px;
}

.qa {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(21, 21, 46, .05);
  transition: box-shadow .2s ease;
}

.qa[open] {
  box-shadow: var(--shadow-md), 0 0 0 1.5px rgba(255, 87, 34, .35);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  color: var(--orange-700);
  background: #fff1ec;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.qa[open] summary .icon {
  transform: rotate(45deg);
  color: #fff;
  background: var(--orange);
}

.qa p {
  padding: 0 22px 22px;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .faq__head {
    position: static;
  }
}

/* CTA --------------------------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 13vw, 160px) 0;
  text-align: center;
  color: #fff;
  background: var(--dark);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%);
}

.cta__glow {
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 87, 34, .45), rgba(199, 64, 122, .35), rgba(51, 51, 170, .5), rgba(255, 87, 34, .45));
  filter: blur(90px);
  opacity: .8;
  animation: spin 24s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: var(--orange);
  box-shadow: 0 0 0 10px rgba(255, 87, 34, .15), 0 20px 40px -12px rgba(255, 87, 34, .8);
}

.cta__logo svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.cta h2 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  text-wrap: balance;
}

.cta__content > p:not(.cta__mail) {
  max-width: 58ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .78);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.cta__mail {
  margin-top: 24px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
}

.cta__mail a {
  font-weight: 700;
  color: #fff;
}

@media (max-width: 575.98px) {
  .cta__actions .btn {
    width: 100%;
  }
}

/* Footer ------------------------------------------------------------------ */

.footer {
  padding: 64px 0 32px;
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  background: #08081a;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer__brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer h3 {
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col li + li {
  margin-top: 6px;
}

.footer a {
  text-decoration: none;
  transition: color .2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .85rem;
}

@media (max-width: 991.98px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .footer {
    padding-bottom: 96px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__about {
    grid-column: auto;
  }
}

/* CTA fixo no celular ----------------------------------------------------- */

.sticky-cta {
  display: none;
}

@media (max-width: 575.98px) {
  .sticky-cta {
    position: fixed;
    z-index: 40;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    transform: translateY(160%);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }

  .sticky-cta.is-shown {
    transform: none;
  }

  .sticky-cta:hover {
    transform: none;
  }
}

/* Reveal on scroll -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal--delay {
  transition-delay: .12s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .hero__word {
    opacity: 1;
    transform: none;
  }

  .core-map__link i,
  .stack__link i {
    display: none;
  }
}
