/* Final home/chat overrides loaded after styles.css. */

.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  right: 22px;
  bottom: 22px;
  width: auto;
  min-width: 70px;
  height: 44px;
  max-width: none;
  max-height: none;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ss-blue);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.chat-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ss-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 98, 0.12);
}

.chat-icon,
.chat-container h4::after,
#home .advertisement::after {
  display: none;
  content: none;
}

#home #adAndCarousel {
  overflow: visible !important;
}

#home .advertisement {
  display: block;
  max-width: 1180px;
  padding: clamp(30px, 4vw, 52px);
  text-align: center;
}

#home .ad-title {
  max-width: 900px;
  margin: 0 auto 28px;
  padding-bottom: 0;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 0.98;
  text-align: center;
}

#home .advertisement p {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.16rem);
}

.hero-copy p {
  max-width: 860px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.hero-primary-action,
.hero-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-primary-action {
  background: var(--ss-blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 111, 214, 0.22);
}

.hero-secondary-action {
  background: #ffffff;
  color: var(--ss-blue);
  border-color: rgba(31, 111, 214, 0.24);
}

.hero-primary-action:hover,
.hero-primary-action:focus-visible {
  background: var(--ss-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 111, 214, 0.26);
}

.hero-secondary-action:hover,
.hero-secondary-action:focus-visible {
  border-color: rgba(31, 111, 214, 0.42);
  background: #eef5ff;
  transform: translateY(-1px);
}

.support-card {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 20px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: var(--ss-soft-shadow);
}

.support-card h3 {
  margin: 0 0 8px;
  color: var(--ss-ink);
  font-size: 1.1rem;
}

.support-card p {
  margin: 0;
  font-size: 0.96rem;
}

.support-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

#home .features-section {
  max-width: 1180px;
  padding: clamp(24px, 3vw, 36px);
}

#home .features-section .feature-heading {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
}

#home .features-container,
#home .feature-box-container {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 12px;
  overflow: visible;
  scroll-snap-type: none;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

#home .features-container {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#home .feature-box-container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#home .feature-card,
#home .feature-box {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.card-art {
  width: 100%;
  height: clamp(180px, 22vw, 240px);
  display: block;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid var(--ss-line);
  background: #ffffff;
}

.section-controls {
  display: none;
}

#home .feature-card h3,
#home .feature-box h3 {
  margin: 0;
  padding: 16px 18px 0;
  font-size: 1rem;
  line-height: 1.25;
}

#home .feature-card ul,
#home .feature-box .feature-content {
  display: none;
  margin: 12px 18px 18px;
}

#home .feature-card.is-open,
#home .feature-box.is-open {
  border-color: rgba(31, 111, 214, 0.45);
  background: #eef5ff;
}

#home .feature-card.is-open ul,
#home .feature-box.is-open .feature-content {
  display: block;
}

#home .feature-card::after,
#home .feature-box::after {
  content: "View details";
  display: inline-block;
  margin: 10px 18px 18px;
  color: var(--ss-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

#home .feature-card.is-open::after,
#home .feature-box.is-open::after {
  content: "Hide details";
}

#home .feature-card,
#home .feature-box {
  scroll-snap-align: start;
  min-height: 100%;
  padding: 18px;
}

#home .feature-card h3,
#home .feature-box h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

#home .feature-card ul {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
}

#home .feature-card li {
  padding-left: 0;
  margin: 8px 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

#home .feature-card li::before {
  content: none;
}

#home .feature-box {
  display: block;
}

#home .comparison-card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

#home .comparison-card p {
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .chat-toggle {
    right: 16px;
    bottom: 16px;
    width: auto;
    min-width: 66px;
    height: 42px;
    padding: 0 16px;
  }

  #home .advertisement {
    padding: 24px 18px;
  }

  #home .ad-title {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  #home .features-container,
  #home .feature-box-container {
    grid-template-columns: 1fr;
  }
}

#home .walkthrough-video {
  width: min(980px, 100%);
  height: auto;
  margin: 0 auto;
  padding-bottom: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
}

#home .walkthrough-video .youtube-video {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Single support disclosure */
.support-card {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.support-card summary {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ss-blue);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31, 111, 214, 0.22);
  list-style: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.support-card summary::-webkit-details-marker {
  display: none;
}

.support-card summary:hover,
.support-card summary:focus-visible {
  background: var(--ss-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 111, 214, 0.26);
}

.support-card p {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.98rem;
  text-align: left;
  box-shadow: var(--ss-soft-shadow);
}

.support-card p a {
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--ss-blue);
  font-weight: 800;
  box-shadow: none;
}
