/* ==========================================================================
   AXEN One — Design tokens
   ========================================================================== */
:root {
  /* Brand colors */
  --cobalt: #4136C3;
  --cobalt-strong: #362DA8;
  --deep-pulse: #3E3183;
  --graphite: #141415;
  --white: #FFFFFF;

  /* Neutrals, violet-tinted to stay in the brand family */
  --mist: #F5F5F9;
  --mist-strong: #ECEBF5;
  --hairline: #E4E3EE;
  --muted: #6B6875;
  --muted-strong: #4B4855;
  --cobalt-tint: #EEEDFB;
  --cobalt-tint-strong: #E1DFFA;

  /* Channel identity colors (used only as small badges/dots) */
  --wa: #25D366;
  --ig-1: #F58529;
  --ig-2: #DD2A7B;
  --ig-3: #8134AF;
  --ig-4: #515BD4;
  --fb: #0866FF;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--cobalt) 0%, var(--deep-pulse) 100%);
  --grad-dark: linear-gradient(160deg, var(--graphite) 0%, var(--deep-pulse) 120%);
  --grad-ig: linear-gradient(135deg, var(--ig-1), var(--ig-2), var(--ig-3), var(--ig-4));

  /* Type */
  --font-display: 'Clash Display', 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Type scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Spacing scale */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs: 0.75rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 8rem;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 20, 21, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 20, 21, 0.09);
  --shadow-lg: 0 24px 64px rgba(20, 20, 21, 0.14);
  --shadow-brand: 0 16px 40px rgba(65, 54, 195, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2.5px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--graphite);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

section { position: relative; }

.section-pad { padding-block: var(--sp-3xl); }
@media (max-width: 720px) {
  .section-pad { padding-block: var(--sp-2xl); }
}

.bg-mist { background: var(--mist); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--grad-dark); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2xs);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-tint);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-sm);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  flex-shrink: 0;
}
.bg-dark .eyebrow {
  background: rgba(255,255,255,0.1);
  color: #C9C4F5;
}
.bg-dark .eyebrow::before { background: #C9C4F5; }

.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-xl);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p {
  font-size: var(--fs-md);
  color: var(--muted);
  margin-top: var(--sp-sm);
}
.bg-dark .section-head p { color: #C7C4DA; }
@media (max-width: 720px) {
  .section-head h2 { font-size: var(--fs-2xl); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2xs);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(65, 54, 195, 0.36); }

.btn-secondary {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid var(--hairline);
}
.btn-secondary:hover { border-color: var(--cobalt); color: var(--cobalt); }

.bg-dark .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.25); }
.bg-dark .btn-secondary:hover { border-color: var(--white); }

.btn-ghost {
  color: var(--cobalt);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.5rem 0;
}
.btn-ghost svg { transition: transform var(--dur-fast) var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--sp-sm);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding-block: var(--sp-xs);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 30px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted-strong);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--cobalt); }

.nav-cta { display: flex; align-items: center; gap: var(--sp-sm); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--graphite);
  position: relative;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--white);
  z-index: 90;
  padding: var(--sp-lg) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mobile-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
html.nav-open { overflow: hidden; }
.mobile-panel a { font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 500; }
.mobile-panel .btn { margin-top: var(--sp-sm); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 961px) {
  .mobile-panel { display: none; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--sp-3xl) + 2rem);
  padding-bottom: var(--sp-2xl);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--cobalt-tint) 0%, transparent 70%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, var(--fs-4xl));
  margin-bottom: var(--sp-md);
}
.hero-copy p.lead {
  font-size: var(--fs-md);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: var(--sp-lg);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}
.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted-strong);
}
.hero-checklist svg { color: var(--cobalt); flex-shrink: 0; }

.hero-visual {
  position: relative;
}

/* ==========================================================================
   Signature element: Chat convergence mockup
   ========================================================================== */
.chat-mockup {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.chat-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.chat-mockup-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hairline);
}
.chat-mockup-bar .title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.chat-mockup-body { display: flex; height: 380px; }
.chat-list {
  width: 42%;
  border-right: 1px solid var(--hairline);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
}
.chat-list-item.active { background: var(--cobalt-tint); }
.chat-avatar {
  width: 30px; height: 30px;
  flex-shrink: 0;
  position: relative;
}
.chat-avatar .avatar-badge { width: 100%; height: 100%; }
.channel-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.channel-dot.wa { background: var(--wa); }
.channel-dot.ig { background: var(--grad-ig); }
.channel-dot.fb { background: var(--fb); }
.chat-list-item .meta { min-width: 0; flex: 1; }
.chat-list-item .name {
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-item .snippet {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread {
  flex: 1;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--mist);
}
.bubble {
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.4;
}
.bubble.in { background: var(--white); border: 1px solid var(--hairline); align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble.out { background: var(--grad-brand); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.thread-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  padding-top: 0.5rem;
}
.thread-status .tag {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.convergence-svg {
  position: absolute;
  top: -40px; left: -60px;
  width: 220px; height: 260px;
  z-index: -1;
  opacity: 0.85;
}
@media (max-width: 720px) { .convergence-svg { display: none; } }

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--hairline);
  animation: drift 6s var(--ease) infinite;
}
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.float-card.c1 { top: 6%; left: -8%; animation-delay: 0s; }
.float-card.c2 { bottom: 12%; right: -10%; animation-delay: 1.4s; }
.float-card.c3 { top: 44%; right: -14%; animation-delay: 2.8s; }
@media (max-width: 960px) {
  .float-card.c1 { left: 0; }
  .float-card.c2 { right: 0; }
  .float-card.c3 { display: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding-top: var(--sp-lg); }
}

/* ==========================================================================
   Problem section
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.problem-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--cobalt-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--cobalt);
  margin-bottom: var(--sp-sm);
}
.problem-card h3 { font-size: var(--fs-base); font-weight: 600; margin-bottom: 0.3rem; }
.problem-card p { font-size: var(--fs-sm); color: var(--muted); }

.problem-close {
  text-align: center;
  margin-top: var(--sp-xl);
}
.problem-close p {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-md);
}

@media (max-width: 960px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Solution — orbit diagram
   ========================================================================== */
.orbit {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border: 1.5px dashed var(--hairline);
  border-radius: 50%;
  width: 88%; height: 88%;
}
.orbit-core {
  position: relative;
  z-index: 2;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-brand);
}
.orbit-core span { font-size: var(--fs-xs); font-weight: 400; font-family: var(--font-body); opacity: 0.85; }
.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.orbit-node .icon-wrap {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.orbit-node.n1 { top: 2%; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 18%; right: 0%; }
.orbit-node.n3 { bottom: 18%; right: 2%; }
.orbit-node.n4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.orbit-node.n5 { bottom: 18%; left: 2%; }
.orbit-node.n6 { top: 18%; left: 0%; }
.orbit-node.n7 { top: 44%; left: -6%; }
.orbit-node.n8 { top: 44%; right: -6%; }

@media (max-width: 720px) {
  .orbit { max-width: 100%; aspect-ratio: auto; height: 560px; }
  .orbit-node { font-size: var(--fs-xs); padding: 0.4rem 0.75rem 0.4rem 0.4rem; }
  .orbit-core { width: 110px; height: 110px; font-size: var(--fs-sm); }
}

.solution-lede {
  max-width: 620px;
  margin: var(--sp-xl) auto 0;
  text-align: center;
  font-size: var(--fs-md);
  color: var(--muted);
}

/* ==========================================================================
   Split section (Chat / CRM shared layout)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-2xl);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }
.split.reverse .split-visual { order: -1; }

.benefit-list { display: flex; flex-direction: column; gap: var(--sp-md); margin-block: var(--sp-lg); }
.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  max-width: 980px;
  margin-inline: auto;
}
.crm-mockup-frame { margin-top: var(--sp-xl); }
@media (max-width: 860px) { .benefit-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefit-row { grid-template-columns: 1fr; } }
.benefit-item { display: flex; gap: var(--sp-sm); }
.benefit-item .icon-wrap {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-item h4 { font-size: var(--fs-base); font-weight: 600; margin-bottom: 0.2rem; }
.benefit-item p { font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
}

/* ==========================================================================
   Chat section — large app frame
   ========================================================================== */
.app-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-frame-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2xs);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--mist);
}
.app-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.app-frame-bar .title { margin-left: 0.6rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   App shell — the real AXEN One chrome (rail nav + topbar) reused across
   every product mockup so each section reads as one continuous product,
   not a one-off illustration.
   ========================================================================== */
.app-shell { display: flex; min-height: 480px; }
.app-rail {
  width: 56px;
  flex-shrink: 0;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-sm) 0;
  gap: 0.35rem;
}
.app-rail .rail-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad-brand);
  margin-bottom: var(--sp-sm);
  flex-shrink: 0;
  position: relative;
}
.app-rail .rail-logo::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  background: var(--white);
  clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
}
.rail-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.rail-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rail-icon.active { background: var(--cobalt); color: var(--white); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.app-topbar .crumb { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.app-topbar .crumb strong { color: var(--graphite); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.badge-demo {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.app-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: var(--sp-sm) 1.1rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.app-subbar-title { display: flex; align-items: baseline; gap: 0.5rem; }
.app-subbar-title h4 { font-size: var(--fs-sm); }
.app-subbar-title span { font-size: 0.7rem; color: var(--muted); }
.app-subbar-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-strong);
  background: var(--mist);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}
.app-body { padding: var(--sp-md); flex: 1; min-height: 0; }

.avatar-badge {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--grad-brand);
  flex-shrink: 0;
}
.avatar-badge.sm { width: 26px; height: 26px; font-size: 0.58rem; }
.avatar-badge.lg { width: 44px; height: 44px; font-size: 0.8rem; }
.avatar-badge.alt1 { background: var(--deep-pulse); }
.avatar-badge.alt2 { background: var(--muted-strong); }
.avatar-badge.alt3 { background: linear-gradient(135deg, #5C50D6, #3E3183); }

.fade-bottom { position: relative; }
.fade-bottom::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  background: linear-gradient(to bottom, rgba(245, 245, 249, 0) 0%, var(--mist) 88%);
  pointer-events: none;
}

@media (max-width: 560px) {
  .app-rail { width: 44px; }
  .rail-icon { width: 28px; height: 28px; }
  .app-rail .rail-logo { width: 24px; height: 24px; }
}

.chat-app { display: grid; grid-template-columns: 0.85fr 1.3fr; min-height: 460px; }
.chat-app-list {
  border-right: 1px solid var(--hairline);
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xs);
}
.chat-app-search {
  background: var(--mist);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--sp-xs);
}
.chat-app .chat-list-item { padding: 0.65rem; border-radius: var(--radius-sm); }
.chat-app .chat-avatar { width: 36px; height: 36px; }
.chat-app .name { font-size: var(--fs-sm); }
.chat-app .snippet { font-size: var(--fs-xs); }
.chat-app-list .status-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.status-pill.open { background: #FDECEC; color: #C23A3A; }
.status-pill.progress { background: var(--cobalt-tint); color: var(--cobalt); }

.chat-app-main { display: flex; flex-direction: column; }
.chat-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--hairline);
}
.chat-app-head .who { display: flex; align-items: center; gap: 0.65rem; }
.chat-app-head .who-name { font-weight: 600; font-size: var(--fs-sm); }
.chat-app-head .who-sub { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.chat-app-head .actions { display: flex; gap: 0.5rem; }
.chip {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 0.35rem;
}
.chip.assignee { background: var(--cobalt-tint); border-color: transparent; color: var(--cobalt); }

.chat-app-thread {
  flex: 1;
  background: #F7F3EC;
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  overflow: hidden;
}
.chat-app-thread.fade-bottom::after { background: linear-gradient(to bottom, rgba(247, 243, 236, 0) 0%, #F7F3EC 88%); }
.chat-app-thread .bubble { max-width: 62%; font-size: var(--fs-sm); padding: 0.7rem 1rem; }
.chat-app-thread .bubble.in { box-shadow: var(--shadow-sm); }
.thread-divider {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
}
.chat-app-footer {
  padding: var(--sp-sm) var(--sp-md);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.chat-app-footer .field {
  flex: 1;
  background: var(--mist);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

@media (max-width: 860px) {
  .chat-app { grid-template-columns: 1fr; }
  .chat-app-list { display: none; }
}
@media (max-width: 560px) {
  .chat-app-head { flex-direction: column; align-items: flex-start; gap: var(--sp-xs); }
  .chat-app-head .actions { flex-wrap: wrap; }
}

/* ==========================================================================
   CRM mockup
   ========================================================================== */
.pipeline-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xs);
}
.pipeline-col {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: var(--sp-xs);
}
.pipeline-col .col-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted-strong);
  margin-bottom: var(--sp-xs);
}
.pipeline-col .col-head .count-group { display: flex; align-items: center; gap: 0.35rem; }
.pipeline-col .col-head .count {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.4rem;
  font-family: var(--font-mono);
}
.pipeline-col .col-head .col-total {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.6rem;
}
.deal-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.deal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.deal-card .priority {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.deal-card .priority .dot { width: 6px; height: 6px; border-radius: 50%; background: #E08A3C; flex-shrink: 0; }
.deal-card .deal-name { font-weight: 600; margin-bottom: 0.35rem; }
.deal-card .deal-value { font-family: var(--font-mono); color: var(--cobalt); font-weight: 600; }
.deal-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--hairline);
}
.deal-card-foot .due { display: flex; align-items: center; gap: 0.25rem; font-size: 0.62rem; color: var(--muted); }
.deal-card-foot .due svg { flex-shrink: 0; }
@media (max-width: 860px) {
  .pipeline-cols { grid-template-columns: repeat(2, 1fr); }
  .pipeline-col:nth-child(n+3) { display: none; }
}

/* ==========================================================================
   Vendas — funnel
   ========================================================================== */
.funnel-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.funnel-stage {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
  position: relative;
}
.funnel-stage .stage-count { font-family: var(--font-mono); font-weight: 400; opacity: 0.85; font-size: var(--fs-xs); }
.funnel-stage[data-w="100"] { width: 100%; background: #4136C3; }
.funnel-stage[data-w="86"]  { width: 86%;  background: #4536BE; }
.funnel-stage[data-w="70"]  { width: 70%;  background: #4A38B4; }
.funnel-stage[data-w="55"]  { width: 55%;  background: #4038A0; }
.funnel-stage[data-w="40"]  { width: 40%;  background: #3E3183; }
.funnel-stage[data-w="27"]  { width: 27%;  background: #302868; }

.funnel-token {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #B8FFD9;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(184,255,217,0.25);
  animation: token-move 3.2s linear infinite;
}
@keyframes token-move {
  0% { left: -20px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .funnel-token { animation: none; opacity: 0.6; left: 50%; } }

.funnel-caption {
  text-align: center;
  max-width: 560px;
  margin: var(--sp-lg) auto 0;
  color: var(--muted);
  font-size: var(--fs-md);
}

@media (max-width: 720px) {
  .funnel-stage { font-size: var(--fs-xs); padding: 0.8rem 1rem; width: 100% !important; }
}

/* ==========================================================================
   Financeiro mockup
   ========================================================================== */
.fin-period-tabs { display: flex; gap: 0.3rem; }
.fin-period-tabs span {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
}
.fin-period-tabs span.active { background: var(--white); color: var(--graphite); box-shadow: var(--shadow-sm); }

.fin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xs); margin-bottom: var(--sp-sm); }
.fin-card {
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}
.fin-card .fin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.fin-card .label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; }
.fin-card .fin-card-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--cobalt);
  flex-shrink: 0;
}
.fin-card .value { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 600; }
.fin-card .value.pos { color: #1E9E5A; }
.fin-card .value.neg { color: #C23A3A; }

.fin-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-sm); }
.fin-chart-panel { background: var(--mist); border-radius: var(--radius-sm); padding: var(--sp-sm); }
.fin-chart-panel h5 { font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-xs); }
.fin-chart-legend { display: flex; gap: 0.9rem; margin-bottom: var(--sp-xs); }
.fin-chart-legend span { display: flex; align-items: center; gap: 0.3rem; font-size: 0.64rem; color: var(--muted); }
.fin-chart-legend .sw { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.fin-chart {
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-xs);
}
.fin-bar-group { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.fin-bar { flex: 1; border-radius: 4px 4px 0 0; }
.fin-bar.receita { background: var(--cobalt); }
.fin-bar.despesa { background: var(--deep-pulse); opacity: 0.5; }

.fin-summary { background: var(--mist); border-radius: var(--radius-sm); padding: var(--sp-sm); display: flex; flex-direction: column; gap: 0.75rem; }
.fin-summary h5 { font-size: var(--fs-xs); font-weight: 700; }
.fin-progress-label { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 700; color: var(--muted-strong); }
.fin-progress-bar { height: 6px; border-radius: var(--radius-pill); background: var(--hairline); overflow: hidden; }
.fin-progress-bar > span { display: block; height: 100%; background: var(--grad-brand); border-radius: var(--radius-pill); }
.fin-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; }
.fin-summary-row .k { color: var(--muted); }
.fin-summary-row .v { font-family: var(--font-mono); font-weight: 600; }
.fin-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FDECEC;
  color: #C23A3A;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  font-size: 0.76rem;
  margin-top: 0.1rem;
}
@media (max-width: 720px) { .fin-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .fin-body { grid-template-columns: 1fr; } }

/* ==========================================================================
   IA + Automação
   ========================================================================== */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.feature-panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
}
.feature-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #1E9E5A;
  background: #E9F9EF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}
.badge-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1E9E5A;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(30,158,90,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(30,158,90,0); }
}
@media (prefers-reduced-motion: reduce) { .badge-live .dot { animation: none; } }
.feature-panel .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-sm);
}
.feature-panel h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2xs); }
.feature-panel p { color: var(--muted); margin-bottom: var(--sp-md); }
.feature-panel ul { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-panel ul li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 500;
}
.feature-panel ul li svg { color: var(--cobalt); flex-shrink: 0; }

.automation-flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}
.flow-node {
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-mono);
}
.flow-arrow { color: var(--muted); flex-shrink: 0; }

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

/* ==========================================================================
   Dashboard mockup
   ========================================================================== */
.dash-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-xs); margin-bottom: var(--sp-sm); }
.dash-kpi { background: var(--mist); border-radius: var(--radius-sm); padding: 0.7rem 0.75rem 0.9rem; position: relative; overflow: hidden; }
.dash-kpi::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent, var(--cobalt)); }
.dash-kpi .label { font-size: 0.56rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.03em; }
.dash-kpi .value { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 600; margin-top: 0.15rem; }
.dash-kpi .delta { font-size: 0.6rem; font-weight: 600; }
.dash-kpi .delta.up { color: #1E9E5A; }
.dash-kpi .delta.down { color: #C23A3A; }
.dash-kpi .spark { display: block; width: 100%; height: 18px; margin-top: 0.35rem; }

.dash-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-xs); }
.dash-panel { background: var(--mist); border-radius: var(--radius-sm); padding: var(--sp-sm); }
.dash-panel h5 { font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-xs); }
.line-chart { height: 130px; }
.dash-chart-foot { display: flex; justify-content: space-between; margin-top: var(--sp-xs); padding-top: var(--sp-xs); border-top: 1px solid var(--hairline); }
.dash-chart-foot div { text-align: center; flex: 1; }
.dash-chart-foot .k { font-size: 0.56rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.dash-chart-foot .v { font-size: 0.68rem; font-weight: 700; margin-top: 0.15rem; }

.mini-funnel { display: flex; flex-direction: column; gap: 3px; margin-bottom: var(--sp-xs); }
.mini-funnel-row { display: flex; align-items: center; gap: 0.5rem; }
.mini-funnel-row .bar { height: 16px; border-radius: 4px; }
.mini-funnel-row .fname { font-size: 0.6rem; color: var(--white); font-weight: 600; padding-left: 0.5rem; white-space: nowrap; overflow: hidden; }
.donut-legend { font-size: 0.66rem; display: flex; flex-direction: column; gap: 0.3rem; }
.donut-legend li { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.donut-legend li .lbl { display: flex; align-items: center; gap: 0.35rem; }
.donut-legend .sw { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.donut-legend .num { font-family: var(--font-mono); color: var(--muted); }
@media (max-width: 960px) {
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Benefits grid
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-card .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-sm);
}
.benefit-card h3 { font-size: var(--fs-md); margin-bottom: 0.4rem; }
.benefit-card p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 960px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--sp-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--cobalt);
  display: block;
  margin-bottom: var(--sp-xs);
}
.step h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
.step-connector {
  position: absolute;
  top: calc(var(--sp-lg) - 2px);
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--hairline);
}
.step:first-child .step-connector { display: none; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Segments
   ========================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}
.segment-card {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  text-align: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.segment-card:hover { background: var(--grad-brand); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.segment-card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-sm);
  box-shadow: 0 10px 22px rgba(65, 54, 195, 0.28);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.segment-card:hover .icon-wrap {
  background: var(--white);
  color: var(--cobalt);
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.segment-card h3 { font-size: var(--fs-sm); font-weight: 600; }
.segments-note {
  text-align: center;
  color: var(--muted);
  margin-top: var(--sp-lg);
  font-size: var(--fs-sm);
}
@media (max-width: 860px) { .segments-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Testimonials (placeholder)
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testi-quote {
  color: var(--muted-strong);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-md);
}
.testi-person { display: flex; align-items: center; gap: 0.7rem; }
.testi-person .name { font-size: var(--fs-sm); font-weight: 600; }
.testi-person .role { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Plans
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  align-items: stretch;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--cobalt);
  box-shadow: var(--shadow-brand);
  position: relative;
}
.plan-featured-tag {
  position: absolute;
  top: -14px; left: var(--sp-md);
  background: var(--grad-brand);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}
.plan-card h3 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.plan-card > p.desc { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-md); }
.plan-card ul { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: var(--sp-lg); flex: 1; }
.plan-card ul li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: var(--fs-sm);
}
.plan-card ul li svg { color: var(--cobalt); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 960px) { .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-md) 0.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--graphite);
}
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; }
.faq-item.is-open .faq-q .plus { transform: rotate(135deg); border-color: var(--cobalt); }
.faq-item.is-open .faq-q .plus::before, .faq-item.is-open .faq-q .plus::after { background: var(--cobalt); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--muted); font-size: var(--fs-sm); padding: 0 0.25rem var(--sp-md); max-width: 68ch; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; padding-block: var(--sp-3xl); }
.final-cta h2 { font-size: var(--fs-3xl); color: var(--white); max-width: 760px; margin-inline: auto; }
.final-cta p { color: #C7C4DA; font-size: var(--fs-md); max-width: 560px; margin: var(--sp-sm) auto var(--sp-lg); }
.final-cta .actions { display: flex; justify-content: center; gap: var(--sp-md); flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--graphite); color: #B8B5C4; padding-block: var(--sp-xl) var(--sp-lg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: var(--sp-sm); }
.footer-brand .logo img { height: 34px; }
.footer-brand p { font-size: var(--fs-sm); color: #918DA0; max-width: 30ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-md); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--cobalt); border-color: var(--cobalt); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #918DA0;
  margin-bottom: var(--sp-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
  font-size: var(--fs-xs);
  color: #6F6C80;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Overflow guards — prevent flex/grid items with unbreakable text
   (mono URLs, nowrap chat rows) from blowing out their column width
   ========================================================================== */
.hero-grid > *,
.split > *,
.twocol > *,
.chat-app > *,
.dash-body > *,
.dash-kpis > *,
.pipeline-cols > *,
.fin-cards > *,
.fin-body > *,
.app-shell > *,
.app-main > * {
  min-width: 0;
}
.chat-mockup-bar .title,
.app-frame-bar .title,
.app-topbar .crumb {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.center-actions { display: flex; justify-content: center; margin-top: var(--sp-xl); }
.text-center { text-align: center; }

/* ==========================================================================
   Legal pages (Privacidade / Termos)
   ========================================================================== */
.legal-hero {
  padding-top: calc(var(--sp-3xl) + 1rem);
  padding-bottom: var(--sp-xl);
}
.legal-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-strong);
  margin-bottom: var(--sp-md);
  transition: color var(--dur-fast) var(--ease);
}
.legal-hero .back-link:hover { color: var(--cobalt); }
.legal-hero .back-link svg { transition: transform var(--dur-fast) var(--ease); }
.legal-hero .back-link:hover svg { transform: translateX(-3px); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, var(--fs-3xl)); max-width: 20ch; }
.legal-hero .updated { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--sp-sm); }

.legal-body { padding-bottom: var(--sp-3xl); }
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--sp-xl) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-toc span { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; }
.legal-toc a { font-size: var(--fs-sm); color: var(--muted-strong); font-weight: 500; transition: color var(--dur-fast) var(--ease); }
.legal-toc a:hover { color: var(--cobalt); }

.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  scroll-margin-top: var(--sp-xl);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted-strong); margin-bottom: var(--sp-sm); }
.legal-content ul, .legal-content ol {
  color: var(--muted-strong);
  margin-bottom: var(--sp-sm);
  padding-left: 1.3rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--graphite); font-weight: 600; }
.legal-content .note {
  background: var(--cobalt-tint);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--muted-strong);
  margin-top: var(--sp-lg);
}
.legal-content .note strong { color: var(--cobalt-strong); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .legal-toc span { width: 100%; }
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 80;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

.footer-company { flex-basis: 100%; }

.footer-brand p + p { margin-top: 0.4rem; max-width: 40ch; }
.footer-company a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-company a:hover { color: var(--white); }

.legal-content h3 { font-size: var(--fs-md); margin-top: var(--sp-md); margin-bottom: var(--sp-xs); }
.legal-content ul ul, .legal-content ol ul { margin-top: 0.5rem; }
