/* Homepage — public/css/home.css (classes prefixed home-* are page-specific) */
/* Base Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fafafa;
  color: #111827;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 {
  transition-delay: 50ms;
}
.reveal-delay-2 {
  transition-delay: 100ms;
}
.reveal-delay-3 {
  transition-delay: 150ms;
}
.reveal-delay-4 {
  transition-delay: 200ms;
}

/* Header Shadow on Scroll */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dropdown Animation */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 200ms ease-out;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Card Hover Effects */
.feature-card {
  transition:
    transform 250ms ease-out,
    box-shadow 250ms ease-out;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.listing-card {
  transition:
    transform 200ms ease-out,
    box-shadow 200ms ease-out;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.home-listing-section-heading {
  padding: 0.75rem 1rem;
}
@media (min-width: 640px) {
  .home-listing-section-heading {
    padding: 0.75rem 1.5rem;
  }
}

.home-sms-panel {
  position: relative;
  background: #ffffff;
  min-height: 24rem;
  overflow: hidden;
}
.home-sms-cut {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  background: #f3f4f6;
}
.home-sms-cut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-sms-cut--tr {
  top: 0;
  right: 0;
  width: min(46vw, 17.5rem);
  height: min(34vw, 13rem);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 78%);
  border-bottom-left-radius: 1.25rem;
}
.home-sms-cut--bl {
  bottom: 0;
  left: 0;
  width: min(42vw, 16rem);
  height: min(32vw, 12.5rem);
  clip-path: polygon(0 22%, 100% 8%, 100% 100%, 0 100%);
  border-top-right-radius: 1.25rem;
}
.home-sms-panel__inner {
  position: relative;
  z-index: 1;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
}
.home-sms-copy {
  width: 100%;
  max-width: 100%;
  padding-top: 4rem;
  padding-right: 0.5rem;
}
.home-sms-copy h2 {
  max-width: 36rem;
}
.home-sms-copy p {
  max-width: 100%;
  width: 100%;
}
.home-sms-foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  text-align: right;
  margin-top: auto;
  padding-bottom: 0.25rem;
}
@media (min-width: 640px) {
  .home-sms-panel__inner {
    padding: 2rem 1.75rem 1.75rem;
  }
}
@media (min-width: 1024px) {
  .home-sms-panel {
    min-height: 30rem;
  }
  .home-sms-cut--tr {
    width: 20rem;
    height: 15rem;
  }
  .home-sms-cut--bl {
    width: 18rem;
    height: 14rem;
  }
  .home-sms-panel__inner {
    min-height: 28rem;
    padding: 2rem 2.5rem 1.75rem;
    gap: 0.75rem;
  }
  .home-sms-copy {
    max-width: calc(100% - 9rem);
    padding-top: 0.15rem;
    padding-right: 8.5rem;
  }
  .home-sms-copy h2 {
    max-width: 42rem;
  }
  .home-sms-copy p {
    max-width: 52rem;
  }
  .home-sms-foot {
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
}

/* Social growth panel — compact corners, SVG scales to container */
.home-sms-panel--growth .home-sms-cut {
  clip-path: none;
  background: transparent;
}
.home-sms-panel--growth .home-sms-cut img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  display: block;
}
.home-sms-panel--growth .home-sms-cut--growth-tr {
  top: 0;
  right: 0;
  width: min(40vw, 14rem);
  height: min(32vw, 11.5rem);
  border-top-right-radius: 1.5rem;
  border-bottom-left-radius: 1.25rem;
}
.home-sms-panel--growth .home-sms-cut--growth-bl {
  bottom: 0;
  left: 0;
  width: min(38vw, 13rem);
  height: min(30vw, 11rem);
  border-top-right-radius: 1.25rem;
  border-bottom-left-radius: 1.5rem;
}
@media (max-width: 1023px) {
  .home-sms-panel--growth .home-sms-copy {
    padding-top: 4.25rem;
    padding-bottom: 5rem;
    padding-right: 0.75rem;
  }
}
@media (min-width: 1024px) {
  .home-sms-panel--growth .home-sms-cut--growth-tr {
    width: 15.5rem;
    height: 12.5rem;
  }
  .home-sms-panel--growth .home-sms-cut--growth-bl {
    width: 14.5rem;
    height: 11.5rem;
  }
  .home-sms-panel--growth .home-sms-copy {
    max-width: calc(100% - 8rem);
    padding-right: 7.75rem;
  }
  .home-sms-panel--growth .home-sms-foot .home-inbox-spotlight__stats {
    width: 100%;
    max-width: 24rem;
  }
}

.home-sms-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  width: 100%;
}
.home-sms-stats li {
  flex: 0 1 auto;
  min-width: 5.25rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.home-sms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
}
.home-sms-foot__note {
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 20rem;
}

/* Receive SMS spotlight — split on desktop, top-right clip on mobile */
.home-inbox-spotlight {
  position: relative;
  background: #fff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.home-inbox-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.home-inbox-spotlight__visual {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(42vw, 15rem);
  height: min(34vw, 12.5rem);
  border-top-right-radius: 1.5rem;
  border-bottom-left-radius: 1.25rem;
  overflow: hidden;
  background: transparent;
  padding: 0;
}
.home-inbox-spotlight__visual-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-inbox-spotlight__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.home-inbox-spotlight__body {
  position: relative;
  z-index: 1;
  padding: 4.75rem 1.5rem 1.5rem;
}
.home-inbox-spotlight__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.home-inbox-spotlight__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem 0.65rem;
  border-radius: 0.85rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
}
.home-inbox-spotlight__stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.home-inbox-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.home-inbox-spotlight__note {
  margin-top: 0.75rem;
  margin-bottom: 0;
}
@media (min-width: 640px) {
  .home-inbox-spotlight__visual {
    width: min(38vw, 16rem);
    height: min(30vw, 13rem);
  }
  .home-inbox-spotlight__body {
    padding: 5rem 1.75rem 1.75rem;
  }
}
@media (min-width: 1024px) {
  .home-inbox-spotlight__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 28rem;
  }
  .home-inbox-spotlight__visual {
    position: relative;
    top: auto;
    right: auto;
    z-index: 0;
    width: auto;
    height: auto;
    min-height: 28rem;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem 2.5rem 2.75rem;
  }
  .home-inbox-spotlight__visual-frame {
    width: 100%;
    max-width: 26rem;
    height: min(26rem, 100%);
  }
  .home-inbox-spotlight__visual-frame img {
    width: 100%;
    height: 100%;
    max-height: none;
  }
  .home-inbox-spotlight__body {
    padding: 2.5rem 2.75rem 2.5rem 1.75rem;
  }
}

/* Button Hover */
.btn-primary {
  transition: all 200ms ease-out;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  transition: all 200ms ease-out;
}

.btn-secondary:hover {
  background-color: #111827;
  color: white;
}

/* Step Connector Line */
.step-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #dbeafe 0%,
    #2563eb 50%,
    #dbeafe 100%
  );
  z-index: 0;
}

@media (max-width: 768px) {
  .step-connector::before {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 300ms ease-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Testimonial Card */
.testimonial-card {
  transition: transform 250ms ease-out;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

/* Filter Select Styling */
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Platform Badge Colors */
.badge-instagram {
  background-color: #e4405f;
}
.badge-tiktok {
  background-color: #000000;
}
.badge-youtube {
  background-color: #ff0000;
}
.badge-twitter {
  background-color: #1da1f2;
}
.badge-facebook {
  background-color: #1877f2;
}

/* Prevent mobile overflow in straight listing rows */
@media (max-width: 640px) {
  #quick-listings .quick-listing-row {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
  }

  #quick-listings .quick-listing-row .listing-row-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  #quick-listings .quick-listing-row .listing-row-cta {
    width: 100%;
  }

  #quick-listings .quick-listing-row .listing-row-cta .listing-purchase-pill {
    width: 100%;
    justify-content: center;
  }
}

.home-providers-strip {
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
  padding: 0.875rem 0;
}
.home-providers-strip--below {
  margin-top: -1.5rem;
}
@media (min-width: 1024px) {
  .home-providers-strip--below {
    margin-top: -2rem;
  }
}
.home-providers-strip--in-hero {
  border-top: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.home-providers-strip__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  line-height: 1;
}
.home-providers-marquee {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.home-providers-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: home-providers-scroll 36s linear infinite;
}
.home-providers-marquee:hover .home-providers-track {
  animation-play-state: paused;
}
@keyframes home-providers-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-providers-track {
    animation: none;
  }
}
.home-provider-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}
.home-provider-logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.home-provider-logo img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  display: block;
}
.home-provider-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  line-height: 1;
}
@media (min-width: 640px) {
  .home-providers-strip {
    padding: 1rem 0;
  }
  .home-providers-track {
    gap: 2.5rem;
  }
  .home-provider-logo img {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.home-trust-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #fafafa 100%);
}
.home-trust-panel {
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.home-trust-item {
  transition: background-color 200ms ease;
}
.home-trust-item:hover {
  background-color: #f9fafb;
}
.home-trust-item__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  line-height: 1;
  padding-top: 0.35rem;
  width: 1.5rem;
  flex-shrink: 0;
}
.home-trust-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.home-trust-item__body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #111827;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.home-trust-item__body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7280;
}
.home-trust-intro {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .home-trust-intro {
    min-height: 100%;
  }
}
.home-trust-aside-img {
  margin: 0;
  padding-top: 2rem;
}
@media (min-width: 1024px) {
  .home-trust-aside-img {
    margin-top: auto;
    padding-top: 2.5rem;
  }
}
.home-trust-aside-img img,
.home-trust-aside-img svg {
  width: 9rem;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  display: block;
}
@media (min-width: 1280px) {
  .home-trust-aside-img img,
  .home-trust-aside-img svg {
    width: 11rem;
  }
}

.home-trust-flow-illustration {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  display: block;
}
@media (min-width: 1024px) {
  .home-trust-flow-illustration {
    max-width: 100%;
  }
}
