:root {
  --nav-h: 80px;
  --container-max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --color-primary: #1e2f5e;
  --color-primary-hover: #243a75;
  --color-primary-active: #17264a;
  --color-secondary: #6ea8fe;
  --color-secondary-hover: #5592f7;
  --color-secondary-light: #eaf2ff;
  --color-accent: #c7d9ff;

  --color-bg: #ffffff;
  --color-ink: #0f172a;
  --color-ink-secondary: #475569;
  --color-ink-tertiary: #94a3b8;
  --color-line: #e8edf5;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Compensa o header fixo ao rolar para uma seção via link âncora */
section[id],
main[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-primary-hover) 0%, var(--color-primary) 55%, var(--color-primary-active) 100%);
  color: #fff;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px 0 rgba(0, 0, 0, 0.2),
    0 10px 24px -10px rgba(30, 47, 94, 0.55),
    0 1px 3px 0 rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    box-shadow 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.4),
    transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 55%, var(--color-primary-active) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px 0 rgba(0, 0, 0, 0.18),
    0 14px 28px -10px rgba(30, 47, 94, 0.6),
    0 1px 3px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  transform: translateY(0) scale(0.97);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1.5px 3px 0 rgba(0, 0, 0, 0.25),
    0 6px 14px -8px rgba(30, 47, 94, 0.5),
    0 1px 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.btn-outline-secondary:hover {
  background: var(--color-secondary-light);
  border-color: var(--color-secondary-hover);
}

.btn-outline-secondary:active {
  background: var(--color-accent);
}

.btn-block {
  width: 100%;
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.btn-light:hover {
  background: var(--color-secondary-light);
  transform: translateY(-1px);
}

.btn-light:active {
  background: var(--color-accent);
  transform: translateY(0);
}

.eyebrow.eyebrow-light {
  color: var(--color-accent);
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 8px 30px -14px rgba(15, 23, 42, 0.18);
}

.nav-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
}

.nav-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-secondary);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--color-bg);
}

.hero-decor-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-constellation {
  position: absolute;
  top: -25%;
  left: -18%;
  height: 90%;
  width: auto;
  max-width: none;
  opacity: 0.30;
  transform: rotate(16deg);
}

.hero-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
}

.hero-decor::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 6%;
  width: 65%;
  height: 65%;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 72%);
  opacity: 0.3;
  filter: blur(70px);
}

.hero-shard {
  position: absolute;
  top: 50%;
  right: -20%;
  height: 82%;
  width: auto;
  max-width: none;
  transform: translateY(-50%);
  animation: shard-spin 40s linear infinite;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  padding-top: var(--nav-h);
  transform: translateY(-clamp(16px, 2.4vw, 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 72px);
}

.hero-content {
  max-width: 560px;
  flex: 1 1 480px;
}

.hero-visual {
  flex: 1 1 560px;
  display: flex;
  justify-content: center;
  opacity: 0;
  perspective: 1800px;
  animation: fade-up 0.7s var(--ease) 0.25s forwards;
}

.browser-frame {
  width: 100%;
  max-width: 760px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  transform: rotateY(-13deg) rotateX(3deg) rotateZ(0.5deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow:
    26px 34px 60px -20px rgba(15, 23, 42, 0.3),
    10px 14px 28px -14px rgba(15, 23, 42, 0.16);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-visual:hover .browser-frame {
  transform: rotateY(-7deg) rotateX(1.5deg) rotateZ(0.3deg);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f6f8fc;
  border-bottom: 1px solid var(--color-line);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot-red {
  background: #ff5f57;
}

.browser-dot-yellow {
  background: #febc2e;
}

.browser-dot-green {
  background: #28c840;
}

.browser-frame-img {
  width: 100%;
  height: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1rem + 4.6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.05s forwards;
}

.hero-title-line {
  white-space: nowrap;
}

.text-gradient {
  background: linear-gradient(120deg, var(--color-secondary) 10%, var(--color-primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 24px;
  max-width: 470px;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  line-height: 1.6;
  color: var(--color-ink-secondary);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.18s forwards;
}

.hero-actions {
  margin-top: 36px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.3s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shard-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-shard {
    animation: none;
  }
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-visual {
    animation: none;
    opacity: 1;
  }
  .carousel-track {
    animation: none;
  }
  .section-header,
  .carousel,
  .feature-mobile-eyebrow,
  .feature-mobile-media,
  .feature-mobile-content,
  .cta-eyebrow,
  .cta-card,
  .testimonial-eyebrow,
  .testimonial-container {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- para quem é (carrossel) ---------- */

.use-cases {
  position: relative;
  overflow: hidden;
  background: #f7f9fc;
  padding-block: clamp(72px, 10vw, 120px);
}

.use-cases-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.uc-shape {
  position: absolute;
}

.uc-shape-1 {
  width: 190px;
  top: -55px;
  left: -55px;
  opacity: 0.35;
  transform: rotate(-15deg);
}

.uc-shape-2 {
  width: 380px;
  right: -120px;
  bottom: -150px;
  opacity: 0.5;
  transform: rotate(12deg);
}

.uc-shape-3 {
  width: 120px;
  top: 14%;
  right: 10%;
  opacity: 0.3;
  transform: rotate(20deg);
}

.section-header {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.eyebrow-star {
  width: 13px;
  height: 13px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.section-subtitle {
  max-width: 620px;
  margin-top: 16px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink-secondary);
}

@media (min-width: 640px) {
  .use-cases .section-title {
    white-space: nowrap;
  }
}

.carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease) 0.15s,
    transform 0.8s var(--ease) 0.15s;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.use-cases.is-visible .section-header,
.use-cases.is-visible .carousel {
  opacity: 1;
  transform: none;
}

.carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 46s linear infinite;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.uc-card {
  flex: 0 0 auto;
  width: clamp(260px, 27vw, 380px);
  margin-right: 32px;
  padding: 16px 16px 8px;
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 12px 30px -18px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.uc-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-line);
}

.uc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease);
}

.uc-card-body {
  padding: 18px 6px 8px;
}

.uc-card-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.uc-card-body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-ink-secondary);
}

.uc-card-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--color-secondary-hover);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.uc-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 45px -20px rgba(30, 47, 94, 0.35),
    0 4px 10px -4px rgba(30, 47, 94, 0.15);
}

.uc-card:hover .uc-card-image img {
  transform: scale(1.12);
}

.uc-card:hover .uc-card-body h3 {
  color: var(--color-primary);
}

.uc-card:hover .uc-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- gestão na palma da mão ---------- */

.feature-mobile {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-block: clamp(72px, 10vw, 120px);
}

.feature-mobile-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fm-shape {
  position: absolute;
}

.fm-shape-1 {
  width: 260px;
  top: -70px;
  left: -100px;
  opacity: 0.3;
  transform: rotate(-10deg);
}

.fm-shape-2 {
  width: 210px;
  bottom: -70px;
  right: 8%;
  opacity: 0.35;
  transform: rotate(16deg);
}

.fm-shape-3 {
  width: 130px;
  top: 10%;
  right: 16%;
  opacity: 0.3;
  transform: rotate(-16deg);
}

.fm-shape-dots {
  width: 160px;
  bottom: 14%;
  left: 5%;
  opacity: 0.5;
}

.feature-mobile-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.feature-mobile-eyebrow {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto clamp(32px, 5vw, 56px);
  padding-inline: clamp(20px, 5vw, 48px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.feature-mobile.is-visible .feature-mobile-eyebrow {
  opacity: 1;
  transform: none;
}

.feature-mobile-media {
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.feature-mobile-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(30, 47, 94, 0.25));
}

.feature-mobile-content {
  flex: 1 1 480px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease) 0.15s,
    transform 0.8s var(--ease) 0.15s;
}

.feature-mobile.is-visible .feature-mobile-media,
.feature-mobile.is-visible .feature-mobile-content {
  opacity: 1;
  transform: none;
}

.feature-mobile-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink-secondary);
}

.feature-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
}

.feature-bullet-star {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* ---------- cta ---------- */

.cta {
  background: var(--color-bg);
  padding-block: clamp(48px, 7vw, 88px);
}

.cta-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.cta-eyebrow {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.cta.is-visible .cta-eyebrow {
  opacity: 1;
  transform: none;
}

.cta-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 380px;
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary) 55%, var(--color-primary-active));
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(30, 47, 94, 0.45);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.cta.is-visible .cta-card {
  opacity: 1;
  transform: none;
}

.cta-content {
  flex: 1 1 480px;
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
}

.cta-lead {
  margin-top: 16px;
  max-width: 420px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.cta-content .btn {
  margin-top: 32px;
  align-self: flex-start;
}

.cta-media {
  flex: 1 1 420px;
  position: relative;
  min-height: 320px;
}

.cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- planos ---------- */

.plans {
  position: relative;
  overflow: hidden;
  background: #f7f9fc;
  padding-block: clamp(64px, 9vw, 110px);
}

.plans-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.plans-shape {
  position: absolute;
}

.plans-shape-1 {
  width: 220px;
  top: -60px;
  left: -70px;
  opacity: 0.35;
  transform: rotate(-10deg);
}

.plans-shape-2 {
  width: 200px;
  bottom: -70px;
  right: -50px;
  opacity: 0.12;
  transform: rotate(14deg);
}

.plans-shape-3 {
  width: 130px;
  top: 12%;
  right: 6%;
  opacity: 0.12;
  transform: rotate(18deg);
}

.plans-shape-4 {
  width: 90px;
  bottom: 14%;
  left: 7%;
  opacity: 0.14;
  transform: rotate(-14deg);
}

.plans-shape-5 {
  width: 160px;
  top: -40px;
  right: 24%;
  opacity: 0.25;
  transform: rotate(12deg);
}

.plans-shape-6 {
  width: 110px;
  bottom: -30px;
  left: 30%;
  opacity: 0.1;
  transform: rotate(-8deg);
}

.plans-header {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto clamp(44px, 6vw, 60px);
  padding-inline: clamp(20px, 5vw, 48px);
  text-align: center;
}

.plans-header .eyebrow {
  margin-bottom: 18px;
}

/* Banner da campanha promocional, acima do seletor de ciclo. As cores são as
   mesmas do warning do painel (tailwind.config.ts) pra ele ser reconhecido como
   o mesmo aviso nos dois lugares. */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 28px;
  padding: 12px 18px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  background: #fef3c7;
  text-align: left;
}

.promo-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #b45309;
}

.promo-text {
  /* flex:1 empurra o cronômetro pra ponta direita, como no banner do painel. */
  flex: 1 1 240px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b45309;
}

.promo-text strong {
  font-weight: 700;
}

.promo-countdown {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plans-toggle {
  position: relative;
  display: inline-flex;
  margin-top: 30px;
  padding: 5px;
  background: var(--color-secondary-light);
  border-radius: 999px;
}

.plans-toggle-slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: transform 0.3s var(--ease);
}

.plans-toggle[data-active='annual'] .plans-toggle-slider {
  transform: translateX(100%);
}

.plans-toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink-secondary);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.plans-toggle-btn.is-active {
  color: var(--color-primary);
}

.plans-save {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tabela comparativa de planos */

.plans-table-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Tabela plana (sem visual de card): sem sombra/borda externa, só as linhas
   e a coluna Essencial em destaque. */
.plans-table-card {
  min-width: 680px;
}

.plans-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Coluna de rótulos: funde com o fundo da seção (sem bloco branco à esquerda). */
.plans-table-corner {
  width: 30%;
  background: #f7f9fc;
}

/* As 3 colunas de plano formam um painel branco com cantos arredondados. */
.plans-table-plan {
  position: relative;
  width: 23.33%;
  min-width: 200px;
  padding: 32px clamp(14px, 1.6vw, 20px) 20px;
  vertical-align: top;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.plans-table thead th:nth-child(2) {
  border-top-left-radius: 18px;
}

.plans-table thead th:nth-child(4) {
  border-top-right-radius: 18px;
}

.plans-table tbody tr:last-child td:nth-child(2) {
  border-bottom-left-radius: 18px;
}

.plans-table tbody tr:last-child td:nth-child(4) {
  border-bottom-right-radius: 18px;
}

.plan-col-featured {
  background: var(--color-secondary-light);
}

thead .plan-col-featured {
  border-top: 3px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  border-radius: 18px 18px 0 0;
  /* -3px compensa a borda superior de 3px, alinhando o conteudo com as demais colunas */
  padding-top: 29px;
}

tbody tr:last-child td.plan-col-featured {
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0 0 18px 18px;
}

tbody tr:not(:last-child) td.plan-col-featured {
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
}

.plan-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(30, 47, 94, 0.5);
}

.plan-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 10px;
}

.plan-from {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--color-ink-tertiary);
  margin-bottom: 2px;
}

.plan-currency {
  align-self: flex-start;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.plan-period {
  font-size: 0.86rem;
  color: var(--color-ink-secondary);
}

.plan-billing {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-ink-tertiary);
}

.plan-annual-total {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.plan-annual-total[hidden] {
  display: none;
}

.plan-installments {
  display: block;
  margin-top: 1px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-ink-tertiary);
}

.plan-col-head .btn {
  margin-top: 14px;
}

/* Linhas de benefício */

.plans-table tbody th[scope='row'] {
  background: #f7f9fc;
  text-align: left;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-ink-secondary);
  padding: 14px 20px 14px 4px;
  border-bottom: 1px solid var(--color-line);
  white-space: normal;
}

.plans-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-line);
}

.plans-table tbody tr:nth-child(even) td:not(.plan-col-featured) {
  background: #fafbfd;
}

.plans-table tbody tr:last-child th[scope='row'],
.plans-table tbody tr:last-child td {
  border-bottom: none;
}

.pt-yes,
.pt-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
}

.pt-yes svg,
.pt-no svg {
  width: 14px;
  height: 14px;
}

.pt-yes {
  background: #16a34a;
}

.pt-no {
  background: #ef4444;
}

.pt-value {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-ink);
}

.plans-fineprint {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 22px auto 0;
  padding-inline: clamp(20px, 5vw, 48px);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--color-ink-tertiary);
  text-align: center;
}

/* Tablets: ícones e linhas um pouco menores */
@media (max-width: 900px) {
  .pt-yes,
  .pt-no {
    width: 22px;
    height: 22px;
  }
  .pt-yes svg,
  .pt-no svg {
    width: 12px;
    height: 12px;
  }
  .plans-table tbody td,
  .plans-table tbody th[scope='row'] {
    padding-block: 12px;
  }
}

/* Celulares: tabela compacta, coluna de rótulos estreita, ícones pequenos */
@media (max-width: 560px) {
  .plans-table-card {
    min-width: 500px;
  }
  .plans-table-corner {
    width: 124px;
  }
  .plans-table-plan {
    min-width: 122px;
    padding: 26px 8px 16px;
  }
  .plans-table tbody th[scope='row'] {
    font-size: 0.76rem;
    line-height: 1.3;
    padding: 10px 8px 10px 2px;
  }
  .plans-table tbody td {
    padding: 10px 6px;
  }
  .pt-yes,
  .pt-no {
    width: 20px;
    height: 20px;
  }
  .pt-yes svg,
  .pt-no svg {
    width: 11px;
    height: 11px;
  }
  .plan-name {
    font-size: 1rem;
  }
  .plan-amount {
    font-size: 1.65rem;
  }
  .plan-currency {
    font-size: 0.85rem;
    margin-top: 4px;
  }
  .plan-period {
    font-size: 0.8rem;
  }
  .plan-billing,
  .plan-annual-total {
    font-size: 0.72rem;
  }
  .plan-installments {
    font-size: 0.66rem;
  }
  .pt-value {
    font-size: 0.78rem;
  }
  .plan-badge {
    font-size: 0.64rem;
    padding: 3px 10px;
  }
  .plans-fineprint {
    font-size: 0.68rem;
  }
}

/* ---------- depoimento ---------- */

.testimonial {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-primary-hover), var(--color-primary) 55%, var(--color-primary-active));
  padding-block: clamp(56px, 7vw, 96px);
}

.testimonial-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ts-shape {
  position: absolute;
  opacity: 0.14;
}

.ts-shape-1 {
  width: 220px;
  top: -60px;
  left: -70px;
  transform: rotate(-8deg);
}

.ts-shape-2 {
  width: 260px;
  bottom: -90px;
  right: -60px;
  transform: rotate(14deg);
}

.testimonial-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.testimonial.is-visible .testimonial-container {
  opacity: 1;
  transform: none;
}

.testimonial-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.testimonial.is-visible .testimonial-eyebrow {
  opacity: 1;
  transform: none;
}

.testimonial-info {
  flex: 1 1 360px;
  max-width: 440px;
}

.testimonial-title {
  font-family: var(--font-display);
  font-weight: 800;
  /* ~27px no celular, ~58px no tablet/PC */
  font-size: clamp(1.6875rem, -0.75rem + 9.2vw, 3.625rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.testimonial-lead {
  margin-top: 18px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-carousel {
  position: relative;
  flex: 1 1 560px;
  max-width: 640px;
}

.testimonial-stack {
  position: relative;
  min-height: 560px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(30px, 4vw, 44px);
  background: #fff;
  border-radius: 28px;
  transform-origin: top center;
  transition:
    transform 0.6s var(--ease),
    opacity 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
  will-change: transform, opacity;
}

/* Pilha de cards: profundidade controlada via data-depth (JS) */
.testimonial-card {
  z-index: 1;
  opacity: 0;
  transform: translateY(60px) scale(0.84);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.testimonial-card[data-depth='2'] {
  z-index: 2;
  opacity: 1;
  transform: translateY(38px) scale(0.9);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.45);
}

.testimonial-card[data-depth='1'] {
  z-index: 3;
  opacity: 1;
  transform: translateY(19px) scale(0.95);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.5);
}

.testimonial-card[data-depth='0'] {
  z-index: 4;
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

/* Card da frente saindo: voa para o lado antes de recuar pro fundo */
.testimonial-card.is-leaving {
  z-index: 6;
  opacity: 0;
  transform: translate(48px, -26px) rotate(5deg) scale(0.94);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.4);
}

.testimonial-card .testimonial-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 0.7;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.testimonial-card .testimonial-stars {
  display: flex;
  gap: 6px;
}

.testimonial-card .testimonial-stars img {
  width: 16px;
  height: 16px;
}

.testimonial-card .testimonial-quote {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ink-secondary);
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.testimonial-card .testimonial-avatar {
  display: block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  /* Gradiente serve de fundo enquanto a foto carrega. */
  background: linear-gradient(140deg, var(--color-secondary-light), var(--color-accent));
}

.testimonial-card .testimonial-author div {
  text-align: left;
}

.testimonial-card .testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.testimonial-card .testimonial-author span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--color-ink-secondary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    width 0.35s var(--ease),
    background 0.35s ease;
}

.testimonial-dot.is-active {
  width: 28px;
  background: #fff;
}

/* ---------- faq ---------- */

.faq {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-block: clamp(64px, 9vw, 110px);
}

.faq-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.faq-shape {
  position: absolute;
}

.faq-det-1 {
  width: 150px;
  top: -40px;
  right: 12%;
  opacity: 0.35;
  transform: rotate(-12deg);
}

.faq-det-2 {
  width: 120px;
  top: 34%;
  left: -50px;
  opacity: 0.4;
  transform: rotate(18deg);
}

.faq-det-3 {
  width: 100px;
  top: 60%;
  right: 5%;
  opacity: 0.12;
  transform: rotate(24deg);
}

.faq-det-4 {
  width: 200px;
  bottom: -70px;
  left: 6%;
  opacity: 0.1;
  transform: rotate(-8deg);
}

.faq-det-5 {
  width: 240px;
  bottom: -60px;
  right: -70px;
  opacity: 0.4;
  transform: rotate(14deg);
}

.faq-header {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding-inline: clamp(20px, 5vw, 48px);
  text-align: center;
}

.faq-header .eyebrow {
  margin-bottom: 18px;
}

.faq-list {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-item.is-open {
  border-color: var(--color-secondary);
  box-shadow: 0 14px 30px -18px rgba(30, 47, 94, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.12rem);
  color: var(--color-ink);
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-item.is-open .faq-question {
  color: var(--color-primary);
}

.faq-chevron {
  flex: 0 0 auto;
  color: var(--color-ink-tertiary);
  transition:
    transform 0.35s var(--ease),
    color 0.25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-secondary-hover);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-lead {
  padding: 0 24px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.faq-answer-detail {
  padding: 8px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-ink-secondary);
}

/* ---------- rodapé ---------- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-active);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}

.footer-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.footer-shape {
  position: absolute;
  opacity: 0.1;
}

.footer-shape-1 {
  width: 220px;
  top: -70px;
  right: 8%;
  transform: rotate(-12deg);
}

.footer-shape-2 {
  width: 260px;
  bottom: -110px;
  left: -60px;
  transform: rotate(16deg);
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  flex: 1 1 320px;
  max-width: 380px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  /* logo é navy; deixa branco no fundo escuro */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tooltip no hover: mostra o @, o número ou o e-mail (data-tooltip no HTML). */
.footer-social[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 3;
}

/* Setinha do balão apontando pro ícone. */
.footer-social[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 3;
}

.footer-social[data-tooltip]:hover::after,
.footer-social[data-tooltip]:focus-visible::after,
.footer-social[data-tooltip]:hover::before,
.footer-social[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-social img {
  width: 18px;
  height: 18px;
  /* ícones em cor sólida -> branco monocromático */
  filter: brightness(0) invert(1);
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

.footer-cols {
  flex: 1 1 480px;
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-legal a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

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

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .testimonial-container {
    flex-direction: column;
    text-align: center;
    gap: clamp(28px, 5vw, 44px);
  }

  .testimonial-info {
    flex: none;
    width: 100%;
    max-width: 560px;
  }

  .testimonial-lead {
    margin-top: 10px;
  }

  .testimonial-carousel {
    flex: none;
    max-width: 440px;
    width: 100%;
  }

  .testimonial-card {
    aspect-ratio: 3 / 4;
  }

  .testimonial-stack {
    min-height: 660px;
  }

  .testimonial-card .testimonial-stars {
    justify-content: center;
  }

  .testimonial-card .testimonial-author {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .testimonial-stack {
    min-height: 700px;
  }

  .testimonial-card .testimonial-quote {
    font-size: 1.05rem;
  }
}

@media (max-width: 860px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-cols {
    flex: none;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    flex-wrap: wrap;
  }

  .footer-col {
    flex: 1 1 140px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .hero-container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
  }

  .hero-content,
  .hero-visual {
    flex: 0 1 auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .browser-frame {
    transform: rotateY(-8deg) rotateX(2deg);
  }

  .hero-visual:hover .browser-frame {
    transform: rotateY(-8deg) rotateX(2deg);
  }
}

@media (max-width: 860px) {
  .feature-mobile-container {
    flex-direction: column;
    text-align: center;
  }

  .feature-mobile-media,
  .feature-mobile-content {
    flex: none;
    width: 100%;
  }

  .feature-mobile-media {
    order: 2;
  }

  .feature-mobile-content {
    order: 1;
    max-width: 100%;
  }

  .feature-list {
    text-align: left;
  }

  .feature-list li {
    justify-content: flex-start;
  }

  .feature-mobile-media img {
    max-width: 300px;
  }

  .fm-shape-1 {
    width: 160px;
  }

  .fm-shape-2 {
    width: 140px;
  }

  .fm-shape-3 {
    display: none;
  }

  .fm-shape-dots {
    width: 100px;
  }
}

@media (max-width: 760px) {
  .cta-card {
    flex-direction: column;
    min-height: 0;
  }

  .cta-content {
    flex: none;
    order: 2;
    text-align: center;
    align-items: center;
  }

  .cta-lead {
    max-width: 100%;
  }

  .cta-content .btn {
    align-self: center;
  }

  .cta-media {
    order: 1;
    min-height: 220px;
  }

  .cta-media img {
    object-position: center right;
  }
}

@media (max-width: 899px) {
  :root {
    --nav-h: 52px;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-container {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.18);
    padding: 8px 20px 24px;
  }

  .mobile-menu.is-open {
    display: flex;
    animation: menu-in 0.22s ease;
  }

  .mobile-menu > a {
    padding: 14px 4px;
    font-weight: 500;
    color: var(--color-ink-secondary);
    border-bottom: 1px solid var(--color-line);
  }

  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero-decor-left {
    width: 55%;
  }

  .hero-constellation {
    height: 55%;
    left: -26%;
    opacity: 0.45;
  }

  .hero-decor {
    width: 78%;
    opacity: 0.4;
  }

  .hero-shard {
    right: -40%;
    height: 60%;
  }

  .hero-content {
    max-width: 100%;
  }

  .browser-frame {
    max-width: 100%;
  }

  .uc-shape-1 {
    width: 120px;
  }

  .uc-shape-2 {
    width: 240px;
  }

  .uc-shape-3 {
    display: none;
  }

  .uc-card {
    width: clamp(210px, 62vw, 260px);
    margin-right: 18px;
  }
}

@media (max-width: 420px) {
  .btn-lg {
    padding: 15px 26px;
    font-size: 1rem;
  }

  .hero-title-line {
    white-space: normal;
  }
}
