.hero-bg {
  /* background: radial-gradient(
    125% 125% at 50% 10%,
    var(--background) 40%,
    var(--secondary) 100%
  ); */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f1f3f5 50%,
    rgba(255, 111, 0, 0.85) 100%
  );
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.25s ease-out;
}

.orbit-path {
  pointer-events: none;
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: calc(50% - var(--size) / 2);
  top: calc(50% - var(--size) / 2);
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(249, 250, 251, 0) 55%
  );
}

.orbit-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  padding: 8px;
  border-radius: 9999px;
  background: transparent !important;
  transform-origin: center;
  animation: orbit var(--duration) linear infinite;
}

.orbit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes orbit {
  from {
    transform: rotate(calc(var(--angle) * 1deg))
      translateX(calc(var(--radius) * 1px))
      rotate(calc(-1 * var(--angle) * 1deg));
  }

  to {
    transform: rotate(calc(360deg * var(--dir, 1) + var(--angle) * 1deg))
      translateX(calc(var(--radius) * 1px))
      rotate(calc(-360deg * var(--dir, 1) - var(--angle) * 1deg));
  }
}

/* ================================
   CHART WRAPPER
================================ */
.chart-wrapper {
  width: 100%;
  max-width: 420px;
}

/* ================================
   LINE DRAW ANIMATION
================================ */
.chart-wrapper path[stroke] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s ease-in-out;
}

/* When visible */
.chart-wrapper.active path[stroke] {
  stroke-dashoffset: 0;
}

/* ================================
   AREA FILL FADE
================================ */
.chart-wrapper path[fill^="url"] {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.chart-wrapper.active path[fill^="url"] {
  opacity: 1;
}

/* ================================
   END DOTS (CIRCLES)
================================ */
.chart-wrapper circle {
  transform: scale(0) !important;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease-out;
}

.chart-wrapper.active circle {
  transform: scale(1) !important;
  opacity: 1;
}

/* ================================
   LEGEND (LABELS)
================================ */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 1.2s;
}

.chart-wrapper.active .chart-legend {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   OPTIONAL: REDUCE MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
  .chart-wrapper path[stroke],
  .chart-wrapper path[fill^="url"],
  .chart-wrapper circle,
  .chart-legend {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* BASE */
.calendar-wrapper {
  overflow: hidden;
}

/* ================= HEADER ================= */
.calendar-wrapper .grid:first-child {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.calendar-wrapper.active .grid:first-child {
  opacity: 1;
  transform: translateY(0);
}

/* ================= COMPLETED ================= */
.calendar-wrapper .bg-secondary {
  opacity: 0;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
  transition-delay: calc(var(--i) * 30ms);
}

.calendar-wrapper.active .bg-secondary {
  opacity: 1;
  transform: scale(1);
}

/* Check icon */
.calendar-wrapper .bg-secondary svg {
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calendar-wrapper.active .bg-secondary svg {
  transform: scale(1);
}

/* ================= IN PROGRESS ================= */
.calendar-wrapper .border-secondary {
  opacity: 0;
  transform: scale(0);
  background-color: rgba(255, 110, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
}

.calendar-wrapper.active .border-secondary {
  opacity: 1;
  transform: scale(1);
  animation: pulse-bg 2.5s ease-in-out infinite;
}

@keyframes pulse-bg {
  0% {
    background-color: rgba(255, 110, 0, 0.08);
  }

  50% {
    background-color: rgba(255, 110, 0, 0.2);
  }

  100% {
    background-color: rgba(255, 110, 0, 0.08);
  }
}

/* ================= UPCOMING ================= */
.calendar-wrapper .border-dashed {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-wrapper.active .border-dashed {
  opacity: 1;
  transition-delay: 0.7s;
}

/* ================= LEGEND ================= */
.calendar-wrapper > div:last-child {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.calendar-wrapper.active > div:last-child {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

/* ===== CARD ===== */
.chat-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 24px;
}

/* ===== THREAD ===== */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
}

/* ===== ROWS ===== */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.chat-row--sent {
  justify-content: flex-end;
}

.chat-row--received {
  justify-content: flex-start;
}

/* ===== AVATAR ===== */
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== BUBBLES ===== */
.chat-bubble {
  max-width: 280px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble--sent {
  background: #ff6e00;
  color: white;
  border-radius: 20px 20px 6px 20px;
}

.chat-bubble--received {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 20px 20px 20px 6px;
}

/* ===== WRAPPER (typing / response swap) ===== */
.chat-wrapper {
  position: relative;
  min-width: 220px;
}

/* Typing dots */
.chat-dots {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px 20px 20px 6px;
  animation: fadeIn 0.3s ease;
}

.dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 999px;
  animation: dotBounce 0.6s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.15s;
}

.dot:nth-child(3) {
  animation-delay: 0.3s;
}

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

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

/* Final response */
.chat-response {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px 20px 20px 6px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active state */
.chat-wrapper.active .chat-dots {
  opacity: 0;
}

.chat-wrapper.active .chat-response {
  opacity: 1;
  transform: translateX(0);
  height: 130px;
}

/* ===== FOOTER ===== */
.chat-card-footer {
  margin-top: 24px;
}

.chat-card-footer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.chat-card-footer p {
  color: #6b7280;
  font-size: 14px;
}

.service-lifecycle .lifecycle-line {
  width: 0;
  transition: width 1.2s ease-out;
}

.service-lifecycle.active .lifecycle-line {
  width: 75%;
}

.service-lifecycle .lifecycle-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-lifecycle.active .lifecycle-step {
  opacity: 1;
  transform: translateY(0);
}

.service-lifecycle.active .lifecycle-step:nth-child(1) {
  transition-delay: 0s;
}

.service-lifecycle.active .lifecycle-step:nth-child(2) {
  transition-delay: 0.15s;
}

.service-lifecycle.active .lifecycle-step:nth-child(3) {
  transition-delay: 0.3s;
}

.service-lifecycle.active .lifecycle-step:nth-child(4) {
  transition-delay: 0.45s;
}

.lifecycle-line-mobile {
  height: 0;
  transition: height 1.2s ease-out;
}

.service-lifecycle.active .lifecycle-line-mobile {
  height: calc(100% - 48px);
}

@media (max-width: 767px) {
  .service-lifecycle .lifecycle-step {
    transform: translateX(-20px);
  }

  .service-lifecycle.active .lifecycle-step {
    transform: translateX(0);
  }
}

/* FEATURES */

/* Base item */
.accordion-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  transition: background 150ms ease, box-shadow 150ms ease;
}

/* Active */
[data-feature-item][data-state="open"] {
  background: #fff;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.16);
}

/* Trigger */
.accordion-trigger {
  width: 100%;
  height: 45px;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

/* Content */
.feature-content {
  display: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

[data-feature-item][data-state="open"] .feature-content {
  display: block;
}

/* Line */
.accordion-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.feature-line-fill {
  height: 100%;
  width: 0%;
  background: #f97316;
  /* orange */
  transition-property: width;
  transition-timing-function: linear;
}

[data-feature-item][data-state="open"] .feature-line-fill {
  width: 100%;
}

[data-checklist] .checklist-header,
[data-checklist] .checklist-item,
[data-checklist] .checklist-footer {
  opacity: 0;
}

.checklist-header {
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.check-box {
  width: 24px;
  height: 24px;
  border: 2px solid #ff6e00;
  /* background: rgba(255, 110, 0, .1); */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff6e00;
}

.check-icon {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  opacity: 0;
  transform: scale(0);
  transition: 0.2s ease;
  background-color: #ff6e00;
}

.check-text {
  flex: 1;
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.check-badge {
  font-size: 10px;
  font-weight: 600;
  color: #ff6e00;
  background: rgba(255, 110, 0, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.2s ease;
}

.checklist-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.checklist-footer .ok {
  color: #16a34a;
  font-weight: 600;
}

[data-checklist].active .checklist-header {
  opacity: 1;
  transform: translateY(0);
}

[data-checklist].active .checklist-item.active {
  opacity: 1;
  transform: translateX(0);
}

[data-checklist].active .checklist-item.active .check-icon {
  opacity: 1;
  transform: scale(1);
}

[data-checklist].active .checklist-item.active .check-text {
  opacity: 1;
}

[data-checklist].active .checklist-item.active .check-badge {
  opacity: 1;
  transform: scale(1);
}

[data-checklist].active .checklist-footer {
  opacity: 1;
}

.security-halo {
  position: absolute;
  inset: 10%;
  border-radius: 9999px;

  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.025) 45%,
    rgba(0, 0, 0, 0.01) 60%,
    rgba(0, 0, 0, 0) 75%
  );

  filter: blur(4px);
}

.security-dots {
  position: absolute;
  inset: 12%;
  border-radius: 9999px;

  background-image: radial-gradient(
    rgba(107, 114, 128, 0.35) 0.8px,
    transparent 0.8px
  );
  background-size: 6px 6px;

  opacity: 0.8;
}

/* ---------- VISUAL WRAPPER ---------- */
.feature-visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.feature-visual[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- SHELL ---------- */
.pricing-shell {
  height: 100%;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 13px;
  background-image: url("/assets/img/screenshot.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pricing-shell.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- HEADER ---------- */
.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f97316;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
}

.client {
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  text-align: center;
}

/* ---------- GRID ---------- */
.pricing-grid {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

/* ---------- COLUMN ---------- */
.pricing-col {
  flex: 1;
  text-align: center;
}

.pricing-card {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  padding: 12px;
}

.price {
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- BAR ---------- */
.bar-wrap {
  height: 140px;
  display: flex;
  align-items: flex-end;
}

.bar {
  width: 100%;
  border-radius: 16px;
  height: var(--h);
  transform-origin: bottom;
  transform: scaleY(0);
}

.bar.gray {
  background: #e5e7eb;
}

.bar.orange {
  background: #f97316;
  box-shadow: 0 8px 25px rgba(255, 110, 0, 0.35);
}

/* ---------- LABEL ---------- */
.label {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
}

/* ---------- BEST ---------- */
.pricing-col.best .pricing-card {
  border: 1px solid #f97316;
}

.badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: white;
}

/* ---------- ANIMATION ---------- */
.feature-visual[data-state="open"] .bar {
  animation: growBar 500ms ease forwards;
}

.feature-visual[data-state="open"] .pricing-col:nth-child(1) .bar {
  animation-delay: 0ms;
}

.feature-visual[data-state="open"] .pricing-col:nth-child(2) .bar {
  animation-delay: 120ms;
}

.feature-visual[data-state="open"] .pricing-col:nth-child(3) .bar {
  animation-delay: 240ms;
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

/* =============================
   FEATURE VISUAL WRAPPER
============================= */

.feature-visual {
  width: 100%;
  height: 100%;
}

/* =============================
   SHELL
============================= */

.endorse-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

/* =============================
   GRID
============================= */

.endorse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  max-width: 520px;
  width: 100%;
  margin: 0 auto;

  align-content: start;
  /* 🔑 */
}

/* =============================
   OUTER CARD
============================= */

.endorse-card {
  height: 78px;
  /* 🔑 este es el magic number */
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.035);

  opacity: 0;
  transform: translateY(8px);
}

/* =============================
   INNER CARD (CLAVE)
============================= */

.endorse-inner {
  height: 100%;
  padding: 16px 12px;
  /* 🔑 menos padding */
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.035);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: background 0.2s ease;
}

.endorse-inner:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* =============================
   ICON BADGE
============================= */

.endorse-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #f97316;
}

.endorse-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* =============================
   LABEL
============================= */

.endorse-inner span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #111111;
}

/* =============================
   + MANY MORE
============================= */

.endorse-more {
  margin: 20px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);

  font-size: 11px;
  font-weight: 500;
  color: #666666;
}

.endorse-more .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
}

/* =============================
   ANIMATION
============================= */

.feature-visual[data-state="open"] .endorse-card {
  animation: endorseIn 360ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(1) {
  animation-delay: 0ms;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(2) {
  animation-delay: 60ms;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(3) {
  animation-delay: 120ms;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(4) {
  animation-delay: 180ms;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(5) {
  animation-delay: 240ms;
}

.feature-visual[data-state="open"] .endorse-card:nth-child(6) {
  animation-delay: 300ms;
}

@keyframes endorseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.remarket-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 24px;
  height: 100%;
}

.remarket-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.policy-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.policy-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.policy-icon svg {
  width: 28px;
  height: 28px;
}

.policy-hub span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}

.carrier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
  width: 55%;
}

.carrier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.carrier-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrier-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.carrier span {
  font-weight: 500;
  color: #111;
}

.footer-default {
  background-color: #141824;
  color: #ffffff;
}
