:root:root {
  --bg: #171b2a;
  --mat: #171b2a;
  --panel: #282b3c;
  --panel-2: #1e2133;
  --panel-3: #34384d;
  --surface: #282b3c;
  --surface-2: #1e2133;
  --text: #f0f0f6;
  --muted: #a1a1aa;
  --line: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.08);
  --accent: #818cf8;
  --accent-2: #6366f1;
  --highlight: #a78bfa;
  --highlight-2: #818cf8;
  --green: #34d399;
  --blue: #60a5fa;
  --warning: #fbbf24;
  --shadow: 0 0 0 1px rgba(255,255,255,.05), 0 8px 40px rgba(0,0,0,.38);
  --shadow-sm: 0 0 0 1px rgba(255,255,255,.05), 0 2px 10px rgba(0,0,0,.3);
  --max: 1220px;
}

html {
  scroll-behavior: smooth;
  background: var(--mat);
}

html body {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 2%, rgba(99,102,241,.12), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(139,92,246,.08), transparent 22rem),
    var(--mat);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

html body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .022;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 64px 64px;
}

html body .shell {
  width: min(calc(100% - 40px), var(--max));
}

/* Barra superior no mesmo acabamento do aplicativo. */
html body .header-wrap {
  inset: 12px 0 auto;
  padding: 0 20px;
}

html body .header {
  width: min(100%, var(--max));
  min-height: 62px;
  padding: 11px 14px 11px 16px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(40,43,60,.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

html body .brand {
  gap: 9px;
}

html body .brand-img {
  width: 34px;
  height: 34px;
}

html body .brand-name {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 21px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.7px;
}

html body .brand-name .logo-top {
  color: var(--accent);
}

html body .header-button,
html body .button,
html body .ghost {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 750;
  transition:
    transform .52s cubic-bezier(.16,1,.3,1),
    box-shadow .52s cubic-bezier(.16,1,.3,1),
    background-color .32s ease,
    border-color .32s ease;
  transform-origin: center;
}

html body .header-button,
html body .button {
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 7px 18px rgba(99,102,241,.2);
}

html body .ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
}

@media (hover:hover) and (pointer:fine) {
  html body a:hover,
  html body button:hover {
    transform: scale(1.018) !important;
  }
  html body .header-button:hover,
  html body .button:hover {
    background: linear-gradient(135deg, #8f98ff, #6f72f5);
    box-shadow: 0 10px 24px rgba(99,102,241,.28);
  }
  html body .ghost:hover {
    color: var(--accent);
    border-color: rgba(129,140,248,.3);
    background: rgba(129,140,248,.1);
  }
}

html body a:active,
html body button:active {
  transform: scale(.985) !important;
  transition-duration: .12s;
}

html body a:focus-visible,
html body button:focus-visible {
  outline: 3px solid rgba(129,140,248,.28);
  outline-offset: 3px;
}

/* Landing em blocos de aplicativo. */
html body .page {
  padding: 104px 0 0;
}

html body .hero {
  margin: 0 0 18px;
  padding: 58px 42px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(129,140,248,.15), transparent 43%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

html body .hero::before,
html body .hero-visual::before,
html body .hero-visual::after,
html body .pricing::before,
html body .pricing::after,
html body .testi-glow-a,
html body .testi-glow-b,
html body .faq-glow {
  display: none !important;
}

html body .hero-title {
  max-width: 900px;
  font-family: "Space Grotesk", "Haffer XH SemiBold", sans-serif;
  font-size: clamp(39px, 5.3vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

html body .hero-title .accent {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

html body .hero-copy {
  max-width: 700px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
}

html body .hero-actions {
  margin-top: 23px;
  gap: 9px;
}

html body .hero-visual {
  width: min(100%, 1020px);
  margin-top: 34px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: 0 20px 52px rgba(0,0,0,.27);
}

html body .hero-visual img {
  display: block;
  width: 100%;
  border-radius: 5px;
}

html body .features,
html body .pricing,
html body .testi-section,
html body .faq-section,
html body .numbers {
  padding: 0 !important;
  margin: 0 0 18px;
}

html body .features-inner,
html body .pricing-inner,
html body .testi-section,
html body .faq-section,
html body .numbers-inner {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

html body .features-inner,
html body .pricing-inner {
  padding: 42px;
}

html body .features-head,
html body .pricing-head,
html body .testi-head,
html body .faq-head {
  margin-bottom: 26px;
  text-align: left;
}

html body .features-title,
html body .pricing-title,
html body .testi-title,
html body .faq-title {
  font-family: "Space Grotesk", "Haffer XH SemiBold", sans-serif;
  font-size: clamp(28px, 3.4vw, 43px);
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--text);
}

html body .features-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

html body .feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: none;
}

html body .feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 6px;
  color: var(--accent);
  background: rgba(129,140,248,.14);
}

html body .feature-card:nth-child(2) .feature-icon,
html body .feature-card:nth-child(5) .feature-icon {
  color: var(--green);
  background: rgba(52,211,153,.13);
}

html body .feature-card:nth-child(3) .feature-icon,
html body .feature-card:nth-child(6) .feature-icon {
  color: var(--blue);
  background: rgba(96,165,250,.13);
}

html body .feature-title {
  margin-bottom: 7px;
  color: var(--text);
  font: 750 15px/1.3 Inter, sans-serif;
}

html body .feature-text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

html body .pricing {
  min-height: 0;
}

html body .pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html body .price-card,
html body .price-card.featured {
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
}

html body .price-card.featured {
  border-color: rgba(129,140,248,.34);
  background:
    linear-gradient(145deg, rgba(129,140,248,.13), rgba(99,102,241,.04)),
    var(--surface-2);
}

html body .price-name {
  color: var(--text);
  font: 750 16px/1.25 Inter, sans-serif;
}

html body .price-note,
html body .price-list li {
  color: var(--muted);
}

html body .price-value {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5vw, 58px);
}

html body .price-currency,
html body .price-cycle {
  color: var(--accent);
}

html body .price-check {
  color: var(--green);
  background: rgba(52,211,153,.12);
}

html body .testi-section,
html body .faq-section {
  padding: 42px !important;
}

html body .testi-rating-bar {
  justify-content: flex-start;
}

html body .testi-hero,
html body .testi-ccard,
html body .faq-item {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: none;
}

html body .testi-hero {
  padding: 34px;
}

html body .testi-hero-quote,
html body .testi-ccard-text,
html body .testi-name,
html body .testi-ccard-name,
html body .faq-btn {
  color: var(--text);
}

html body .testi-role,
html body .testi-ccard-role,
html body .testi-rating-text,
html body .faq-answer,
html body .faq-subtitle {
  color: var(--muted);
}

html body .testi-compact {
  gap: 12px;
}

html body .faq-list {
  gap: 8px;
}

html body .faq-item.open {
  border-color: rgba(129,140,248,.28);
  background: rgba(129,140,248,.08);
}

html body .faq-btn {
  padding: 18px 20px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

html body .faq-icon {
  width: 29px;
  height: 29px;
  border-radius: 5px;
  background: var(--panel-3);
}

html body .faq-answer {
  padding: 0 20px 20px;
  font-size: 13px;
  line-height: 1.7;
}

html body .faq-answer strong {
  color: var(--text) !important;
}

html body .numbers {
  left: auto;
  width: auto;
  margin: 0 0 18px;
  overflow: visible;
}

html body .numbers-inner {
  width: 100%;
  min-height: 520px;
  margin: 0;
  padding: 0 42px 42px;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

html body .numbers-ribbons {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
}

html body .numbers-ribbon,
html body .numbers-ribbon.top,
html body .numbers-ribbon.bottom {
  position: absolute;
  left: -70px;
  width: calc(100% + 140px);
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(49,46,129,.26);
  transform-origin: center;
}

html body .numbers-ribbon.top {
  top: 110px;
  transform: rotate(3.2deg);
  background: linear-gradient(90deg, #4f46e5, #6366f1 48%, #8b5cf6);
  z-index: 2;
}

html body .numbers-ribbon.bottom {
  top: 110px;
  transform: rotate(-3.2deg);
  background: linear-gradient(90deg, #7c3aed, #6366f1 48%, #2563eb);
  z-index: 1;
}

html body .numbers-track {
  min-width: 100%;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  animation: td-ribbon-drift 10s ease-in-out infinite alternate;
}

html body .numbers-ribbon.bottom .numbers-track {
  animation-direction: alternate-reverse;
}

@keyframes td-ribbon-drift {
  from { transform: translateX(-14px); }
  to { transform: translateX(14px); }
}

html body .numbers-item {
  color: rgba(255,255,255,.94);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1px;
}

html body .numbers-item svg {
  width: 14px;
  height: 14px;
}

html body .numbers-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding-top: 262px;
  gap: 18px;
}

html body .numbers-value {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(52px, 8vw, 86px);
}

html body .numbers-label {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
  font-size: clamp(24px, 3vw, 36px);
}

html body .numbers-cta.button {
  min-height: 46px;
  padding: 0 24px;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(99,102,241,.22);
}

html body .site-footer {
  padding: 0 0 20px;
}

html body .site-footer-inner {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

html body .site-footer-links a {
  color: var(--muted);
  font-size: 12px;
}

/* Documentos legais também viram uma coleção legível de cards. */
html body .doc-page {
  padding: 106px 0 44px;
}

html body .doc-shell {
  width: min(calc(100% - 40px), 920px);
}

html body .doc-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--accent);
  background: rgba(129,140,248,.12);
}

html body .doc-title {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

html body .doc-updated {
  margin-bottom: 20px;
  padding-bottom: 0;
  border: 0;
  color: var(--muted);
}

html body .doc-shell > p:not(.doc-label):not(.doc-updated) {
  color: var(--muted);
  line-height: 1.7;
}

html body .doc-section {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

html body .doc-section-header {
  margin-bottom: 14px;
}

html body .doc-num {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--accent);
  background: rgba(129,140,248,.12);
}

html body .doc-section h2 {
  color: var(--text);
  font-family: Inter, sans-serif;
}

html body .doc-body {
  padding-left: 42px;
}

html body .doc-body p,
html body .doc-body li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

html body .doc-body strong {
  color: var(--text);
}

@media (max-width: 860px) {
  html body .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  html body .hero,
  html body .features-inner,
  html body .pricing-inner,
  html body .testi-section,
  html body .faq-section,
  html body .numbers-inner {
    padding: 30px !important;
  }
}

@media (max-width: 640px) {
  html body .shell,
  html body .doc-shell {
    width: min(calc(100% - 24px), var(--max));
  }
  html body .header-wrap {
    padding: 0 12px;
  }
  html body .header {
    min-height: 56px;
    padding: 9px 10px 9px 12px;
  }
  html body .brand-img {
    width: 30px;
    height: 30px;
  }
  html body .brand-name {
    font-size: 18px;
  }
  html body .header-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 11.5px;
  }
  html body .page {
    padding-top: 88px;
  }
  html body .hero,
  html body .features-inner,
  html body .pricing-inner,
  html body .testi-section,
  html body .faq-section,
  html body .numbers-inner {
    padding: 24px 18px !important;
  }
  html body .hero-title {
    font-size: clamp(34px, 11vw, 48px);
  }
  html body .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  html body .hero-actions .button,
  html body .hero-actions .ghost {
    width: 100%;
  }
  html body .features-grid,
  html body .pricing-grid,
  html body .testi-compact {
    grid-template-columns: 1fr;
  }
  html body .feature-card {
    min-height: 0;
  }
  html body .price-card,
  html body .price-card.featured,
  html body .testi-hero,
  html body .testi-ccard {
    padding: 22px 18px;
  }
  html body .numbers-track {
    justify-content: flex-start;
  }
  html body .doc-body {
    padding-left: 0;
  }
  html body .doc-section {
    padding: 20px 17px;
  }
  html body .site-footer-top {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  html body .numbers-inner {
    min-height: 490px;
    padding: 0 30px 34px !important;
  }
  html body .numbers-ribbon,
  html body .numbers-ribbon.top,
  html body .numbers-ribbon.bottom {
    left: -46px;
    width: calc(100% + 92px);
    height: 58px;
  }
  html body .numbers-ribbon.top,
  html body .numbers-ribbon.bottom { top: 96px; }
  html body .numbers-content { padding-top: 232px; }
}

@media (max-width: 640px) {
  html body .numbers-inner {
    min-height: 456px;
    padding: 0 18px 26px !important;
  }
  html body .numbers-ribbon,
  html body .numbers-ribbon.top,
  html body .numbers-ribbon.bottom {
    height: 52px;
  }
  html body .numbers-ribbon.top,
  html body .numbers-ribbon.bottom { top: 78px; }
  html body .numbers-track {
    min-width: 780px;
    gap: 20px;
    padding: 0 18px;
  }
  html body .numbers-item {
    font-size: 10px;
  }
  html body .numbers-content {
    padding-top: 204px;
    gap: 14px;
  }
}

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