/* Animated Gradient Text adapted from magicui.design/docs/components/animated-gradient-text. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .smile-home #hero-title .magic-gradient-text {
    background-image: linear-gradient(90deg, #2455c4, #7041c2, #2455c4);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  @media (prefers-reduced-motion: no-preference) {
    .smile-home #hero-title .magic-gradient-text {
      animation: home-magic-gradient 4s ease-in-out 1;
    }
  }
}

@keyframes home-magic-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (forced-colors: active) {
  .smile-home #hero-title .magic-gradient-text {
    background: none;
    color: CanvasText;
  }
}

/* Magic Card's soft spotlight, adapted to CSS hover and keyboard focus. */
.smile-home :is(#support, #featured-articles) .smile-service {
  display: flex;
  flex-direction: column;
}

.smile-home :is(#support, #featured-articles) .smile-service > :is(.smile-text-link, .smile-service-caption) {
  align-self: flex-start;
  margin-top: auto;
}

.smile-home :is(#support, #featured-articles) .smile-service:focus-within {
  border-color: #7788b6;
  background-image: radial-gradient(ellipse at top left, #dce8ff 0%, transparent 68%);
}

@media (hover: hover) {
  .smile-home :is(#support, #featured-articles) .smile-service:hover {
    border-color: #7788b6;
    background-image: radial-gradient(ellipse at top left, #dce8ff 0%, transparent 68%);
  }
}

.smile-home .home-demo-panel {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid #c7d6f1;
  border-radius: 24px;
  background-color: #edf3ff;
  background-image: radial-gradient(circle at 90% 15%, #e3dafb, transparent 52%);
}

.smile-home .home-demo-panel p {
  max-width: 60ch;
}

.smile-home .home-demo-panel .smile-button {
  margin-top: 8px;
}

.smile-home :is(#support, #featured-articles, .home-demo-panel) a:focus-visible {
  outline: 2px solid #294a9b;
  outline-offset: 4px;
}

.smile-home .smile-header {
  background: #f7faff;
  border-bottom-color: #d1dbec;
}

/* Dock-style emphasis for the active destination, with stable touch targets. */
.smile-home .smile-bottom-nav {
  background: #f7faff;
  column-gap: 3px;
  border-top: 1px solid #d1dbec;
  box-shadow: 0 -4px 20px #17365d12;
}

.smile-home .smile-bottom-nav a {
  color: #45556c;
}

.smile-home .smile-bottom-nav a[aria-current="page"] {
  color: #203e83;
  background: linear-gradient(145deg, #e0edff, #ede5fb);
}

.smile-home .smile-bottom-nav a:focus-visible,
.smile-home .smile-search-panel :is(input, button, a):focus-visible,
.smile-home .smile-cta a:focus-visible {
  outline: 2px solid #294a9b;
  outline-offset: 2px;
}

.smile-home .smile-search-panel {
  border-color: #c7d6f1;
  background: linear-gradient(150deg, #f1f5ff, #fff 65%);
}

.smile-home .smile-search-form input {
  background: #fff;
}

.smile-home .smile-search-form .smile-button {
  flex: 0 0 auto;
  padding-inline: 12px;
}

.smile-home .home-ai-suggestions button {
  color: #29446b;
  background: #fff;
}

.smile-home .smile-cta {
  border: 1px solid #c7d6f1;
  background: linear-gradient(135deg, #e8f1ff, #f0eafb);
}

.smile-home .smile-quick-contact > a {
  border: 1px solid #c7d6f1;
  background: #fff;
}

.smile-home .smile-email {
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .smile-home .smile-search-form > div {
    flex-wrap: wrap;
  }

  .smile-home .smile-search-form .smile-button {
    width: 100%;
    justify-content: center;
  }
}
