/* Nousha landing-page palette and action styles. */
:root {
  --bg: #0a0a0b;
  --text: #f5f5f4;
  --text-2: #a9a9a5;
  --brand-mint: #b8f2dc;
  --brand-mint-hover: #d4f9e9;
  --brand-lilac: #c4b5fd;
  --brand-lilac-ink: #4d396b;
  --action-radius: 8px;
}

.btn,
.nav-enhanced .nav-toggle,
.nav-close,
.footer-links a,
.connector-filters button,
.ui-tabs,
.ui-tabs button,
.ui-preview-more,
.ui-settings-preview summary,
.preview-disclosure > summary,
.faq-list summary::after,
.ui-insight-btn,
.ai-actions span,
.demo-foot span,
.q-btn {
  border-radius: var(--action-radius);
}

@media (min-width: 901px) {
  .nav .nav-signup { border-radius: inherit; }
}

.btn .arr {
  background: none;
  color: inherit;
}

.btn[href="#waitlist"],
.form .btn[type="submit"] {
  background: var(--brand-mint);
  color: var(--bg);
  box-shadow: none;
}

.btn[href="#waitlist"]:hover,
.form .btn[type="submit"]:hover {
  background: var(--brand-mint-hover);
  color: var(--bg);
}

.hero-actions {
  align-items: center;
  gap: 20px;
}

.hero-actions .text-link {
  gap: 6px;
  margin-top: 0;
  color: var(--text);
  white-space: nowrap;
}

.hero-actions .text-link:hover,
.hero-actions .text-link:focus-visible {
  color: var(--brand-mint);
}

.hero-actions .text-link span {
  font-size: 1em;
}

.hero .hero-title {
  max-width: 19ch;
  font-size: clamp(3rem, 6.1vw, 6.75rem);
  line-height: 1.06;
}

.hero .hero-line {
  white-space: normal;
  text-wrap: balance;
}

.ui-search,
.ui-brief {
  color: var(--brand-lilac-ink);
  background: color-mix(in srgb, var(--brand-lilac) 23%, white);
}

.ui-search .ai-mark,
.ui-brief .ai-mark {
  color: var(--brand-lilac-ink);
}

@media (max-width: 760px) {
  .hero .hero-title {
    max-width: 24ch;
    font-size: clamp(2rem, 8.8vw, 3.375rem);
    letter-spacing: -.045em;
  }

  .hero .hero-line {
    text-wrap: wrap;
  }

  .hero .hero-line + .hero-line {
    margin-top: 0;
  }

  .hero .hero-lead {
    color: var(--text-2);
    margin-top: 16px;
    line-height: 1.55;
  }

  .hero .stage {
    margin-top: 20px;
  }

  .hero .badge-tag::before {
    background: var(--brand-lilac);
  }

  .hero-actions {
    margin-top: 22px;
    width: auto;
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 46px;
    padding-inline: clamp(10px, 3vw, 18px);
    font-size: 13px;
    font-weight: 600;
  }

  .hero .hero-note {
    display: block;
    margin-top: 12px;
    color: var(--text-2);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-word {
    display: inline-block;
    animation: hero-word-in 520ms var(--ease) backwards;
    animation-delay: calc(var(--line-delay, 0ms) + var(--word-delay, 0ms));
  }

  .hero-line + .hero-line { --line-delay: 245ms; }
  .hero-word:nth-child(2) { --word-delay: 60ms; }
  .hero-word:nth-child(3) { --word-delay: 120ms; }
  .hero-word:nth-child(4) { --word-delay: 180ms; }
  .hero-word:nth-child(5) { --word-delay: 240ms; }

  @keyframes hero-word-in {
    from {
      opacity: .12;
      transform: translateY(.12em);
      filter: blur(6px);
    }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-actions .text-link span {
    transition: transform 220ms var(--ease);
  }

  .hero-actions .text-link:hover span {
    transform: translateX(3px);
  }

  .hero-actions .btn:hover:not(:active) {
    transform: translateY(-2px);
  }
}
