/**
 * index.html only — loaded from index.html. Does not affect builder, dashboard, auth, etc.
 * Brand blue matches landing buttons: #4f46e5 (--accent / --nav-accent).
 */
.page-home {
  --home-brand: #4f46e5;
  /* One content rail for hero copy + light-band prose (aligns with .container horizontal padding) */
  --home-rail: min(42rem, 100%);
  /* Vertical rhythm between stacked homepage blocks */
  --home-gap: clamp(1.35rem, 3vw, 2rem);
  /* Section vertical padding (hero bottom, light band, CTA) */
  --home-band-y: clamp(2.5rem, 5vw, 3.75rem);
  /* Static template row: four phone mockups (no carousel; hero keeps the only slider) */
  --home-template-showcase-max: min(62rem, 100%);
  --home-template-phone-w-grid: min(100%, clamp(8.25rem, 20vw, 11rem));
  /* Solid brand field (hero uses same; no mixed wash from .hero defaults) */
  background: var(--home-brand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-home #site-header {
  flex-shrink: 0;
}

.page-home #main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Never hide main discover block behind scroll-reveal (avoids “missing” content) */
html.motion-ok .page-home .home-post-hero.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.motion-ok .page-home .home-post-hero.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Light footer band — clearly separated from the blue homepage stack */
.page-home .site-footer {
  flex-shrink: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 -1px 0 rgba(15, 23, 42, 0.06),
    0 -20px 48px rgba(15, 23, 42, 0.12);
}

.page-home .site-footer .footer-nav {
  gap: 0.45rem;
}

.page-home .site-footer .footer-label {
  margin-bottom: 0.95rem;
}

.page-home .site-footer .footer-nav a {
  line-height: 1.35;
}

.page-home .site-footer .footer-contact__body a {
  color: #475569;
}

.page-home .site-footer .footer-contact__body a:hover {
  color: var(--accent-strong, #4338ca);
}

/* Hero: clean template slider with phone mockups */
.page-home .hero.home-hero-slider {
  background: var(--home-brand);
  color: #fff;
  min-height: clamp(26rem, 56vh, 38rem);
  padding-top: clamp(2rem, 4.5vw, 3.25rem);
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
}

.page-home .home-hero-slider::before {
  display: none;
}

.page-home .home-hero-slider__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: clamp(2rem, 4vw, 2.6rem);
}

.page-home .home-hero-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.page-home .home-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.8rem);
  padding: 0.55rem 0 0.75rem;
}

.page-home .home-hero-slide__copy {
  min-width: 0;
  text-align: left;
  padding-left: clamp(0.25rem, 1vw, 0.8rem);
  max-width: 42rem;
}

.page-home .home-hero-slide__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.8vw + 1rem, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 11ch;
  text-wrap: balance;
}

.page-home .home-hero-slide__sub {
  margin: clamp(0.8rem, 1.65vw, 1.2rem) 0 0;
  color: #ffffff;
  font-size: clamp(0.96rem, 1.35vw, 1.55rem);
  line-height: 1.28;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: min(22ch, 100%);
  text-wrap: balance;
}

.page-home .home-hero-slide__sub-line {
  display: block;
}

.page-home .home-hero-slide__sub-line + .home-hero-slide__sub-line {
  margin-top: 0.18em;
}

.page-home .home-hero-slide__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.page-home .home-hero-slide__mockup img {
  display: block;
  /* Keep all hero images straight + same on-screen size */
  height: clamp(360px, 52vh, 560px);
  width: auto;
  max-width: min(100%, 390px);
  object-fit: contain;
  transform: none;
  transition: opacity 0.35s ease;
}

.page-home .home-hero-slider__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(0.45rem, 1.5vw, 0.85rem);
  transform: translateX(-50%);
  z-index: 2;
}

.page-home .home-hero-slider__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  justify-self: center;
}

.page-home .home-hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
}

.page-home .home-hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.page-home .home-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-top: clamp(0.2rem, 1vw, 0.5rem);
}

.page-home .home-build-card-tagline {
  margin-block: 0;
  margin-inline: auto;
  width: 100%;
  max-width: min(22rem, 100%);
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.98rem, 1.15vw + 0.86rem, 1.14rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}

/* Micro-taglines on blue bands (between hero and template strip) */
.page-home .home-section-tagline {
  margin: 0.45rem 0 0;
  font-size: clamp(0.78rem, 2.6vw + 0.55rem, 0.92rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

.page-home .home-primary-info__inner .home-section-tagline {
  max-width: min(36rem, 100%);
  margin-inline: auto;
}

.page-home .home-about-preview__inner .home-section-tagline {
  max-width: min(34rem, 100%);
  margin-inline: auto;
  margin-bottom: 0.35rem;
}

/* New primary informational block under hero slider */
.page-home .home-primary-info {
  background: var(--home-brand);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.page-home .home-primary-info__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: min(52rem, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 2.8vw, 2.1rem) clamp(1.05rem, 2.5vw, 1.85rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.page-home .home-primary-info__kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.page-home .home-primary-info__text {
  margin: 0;
  max-width: min(68ch, 100%);
  text-align: center;
  color: #ffffff;
  font-size: clamp(0.98rem, 0.44vw + 0.9rem, 1.08rem);
  line-height: 1.74;
  font-weight: 450;
  text-wrap: pretty;
}

.page-home .home-primary-info__text + .home-primary-info__text {
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .page-home .hero.home-hero-slider {
    padding-top: 2.15rem;
    padding-bottom: 2.35rem;
  }

  .page-home .home-hero-slide {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: center;
    padding: 0.35rem 0 0.7rem;
  }

  .page-home .home-hero-slide__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .page-home .home-hero-slide__title {
    font-size: clamp(1.95rem, 10vw, 3.1rem);
    line-height: 0.98;
    margin-inline: auto;
    text-align: center;
  }

  .page-home .home-hero-slide__sub {
    margin: 0.55rem auto 0;
    max-width: min(22ch, 100%);
    font-size: clamp(0.92rem, 3.85vw, 1.22rem);
    text-align: center;
  }

  .page-home .home-hero-slide__mockup img {
    height: clamp(300px, 46vh, 480px);
    width: auto;
    max-width: min(100%, 340px);
    transform: none;
  }

  .page-home .home-hero-slider__controls {
    position: static;
    transform: none;
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
  }

  .page-home .home-primary-info {
    padding: 2rem 0 2.45rem;
  }

  .page-home .home-primary-info__inner {
    border-radius: 14px;
    padding: 1.2rem 0.95rem 1.35rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.13);
  }

  .page-home .home-primary-info__kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .page-home .home-primary-info__text {
    max-width: min(33rem, 100%);
    font-size: clamp(0.92rem, 0.75vw + 0.8rem, 1rem);
    line-height: 1.68;
  }
}

/* About preview — brand blue field, white type (excerpt from about.html lead) */
.page-home .home-about-preview {
  background: var(--home-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.page-home .home-about-preview__inner {
  max-width: min(52rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.page-home .home-about-preview__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.page-home .home-about-preview__text {
  margin: 0 auto;
  max-width: min(62ch, 100%);
  font-size: clamp(0.96rem, 0.44vw + 0.9rem, 1.06rem);
  line-height: 1.74;
  font-weight: 500;
  color: #ffffff;
  text-wrap: pretty;
}

.page-home .home-about-preview__actions {
  margin: clamp(1rem, 2.5vw, 1.35rem) 0 0;
  text-align: center;
}

.page-home .home-about-preview__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.35vw + 0.85rem, 0.98rem);
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

.page-home .home-about-preview__link:hover {
  text-decoration-color: #ffffff;
  color: #f8fafc;
}

.page-home .home-about-preview__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 4px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .page-home .home-about-preview {
    padding: 1.65rem 0 2rem;
  }

  .page-home .home-about-preview__text {
    font-size: clamp(0.92rem, 0.75vw + 0.8rem, 1rem);
    line-height: 1.68;
  }
}

/* Below hero */
.page-home .home-post-hero {
  background: var(--home-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--home-band-y);
  /* Default text inherits body --ink on some hosts; keep blue-band copy white */
  color: #ffffff;
}

.page-home .home-post-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-gap);
  width: 100%;
}

.page-home .home-template-showcase {
  width: 100%;
  max-width: var(--home-template-showcase-max);
  margin: 0 auto;
  padding-block: clamp(0.35rem, 1.5vw, 0.75rem);
}

.page-home .home-template-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  justify-items: center;
  gap: clamp(0.65rem, 2.5vw, 1.35rem);
  width: 100%;
}

.page-home .home-template-showcase__label {
  margin: 0;
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.95rem, 1vw + 0.82rem, 1.08rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.page-home .home-template-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding-inline: clamp(0.2rem, 1.2vw, 0.45rem);
  box-sizing: border-box;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .page-home .home-template-showcase .home-template-carousel__phone {
    width: min(100%, clamp(7rem, 13vw, 9.5rem));
    margin-top: auto;
  }
}

@media (max-width: 959px) and (min-width: 768px) {
  .page-home .home-template-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Flat phone chassis — reused class names for inner frame + screen */
.page-home .home-template-carousel__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--home-template-phone-w-grid);
  aspect-ratio: 10 / 19;
  margin: 0 auto;
  padding: 0.5rem 0.42rem 0.58rem;
  border-radius: clamp(20px, 5.5vw, 28px);
  background: linear-gradient(165deg, #475569 0%, #1e293b 22%, #0f172a 55%, #1e293b 100%);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.page-home .home-template-carousel__phone::before {
  content: "";
  flex: 0 0 auto;
  width: min(36%, 4.25rem);
  height: 0.3rem;
  margin: 0.05rem auto 0.38rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.page-home .home-template-carousel__screen {
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: clamp(11px, 2.8vw, 15px);
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.page-home .home-post-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: top center;
}

@media (max-width: 767px) {
  .page-home {
    --home-template-phone-w-grid: min(100%, clamp(10.25rem, 68vw, 11.75rem));
  }

  .page-home .home-template-showcase .home-template-carousel__phone {
    width: var(--home-template-phone-w-grid);
    margin-top: 0;
  }

  .page-home .home-template-showcase__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: min(13.5rem, 100%);
    margin-inline: auto;
  }

  .page-home .home-template-carousel__phone {
    border-radius: 22px;
    padding: 0.42rem 0.36rem 0.48rem;
  }

  .page-home .home-template-carousel__phone::before {
    height: 0.26rem;
    margin-bottom: 0.32rem;
  }

  .page-home .home-template-carousel__screen {
    border-radius: 12px;
  }
}

.page-home .home-support {
  text-align: center;
  max-width: var(--home-rail);
  margin: 0;
  width: 100%;
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(0.95rem, 2.4vw, 1.4rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.page-home .home-support__text {
  margin: 0 auto;
  font-size: clamp(0.96rem, 0.9vw + 0.82rem, 1.08rem);
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: #ffffff;
  max-width: 58ch;
  text-wrap: pretty;
}

.page-home .home-support__text + .home-build-card-tagline {
  margin-top: clamp(0.55rem, 1.35vw, 0.85rem);
}

.page-home .home-support__cta {
  margin: clamp(0.45rem, 1vw, 0.65rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-home .home-post-hero__more {
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: var(--home-rail);
}

.page-home .home-post-hero__about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-post-hero__about-link:hover {
  color: #1e293b;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.24);
  transform: translateY(-1px);
}

.page-home .home-testimonials {
  margin: 0;
  padding: calc(var(--home-gap) + 0.25rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: min(56rem, 100%);
  box-sizing: border-box;
  scroll-margin-top: 5.5rem;
}

@media (max-width: 820px) {
  .page-home .home-testimonials {
    scroll-margin-top: 6.75rem;
    padding-top: calc(var(--home-gap) + 0.85rem);
  }
}

.page-home .home-testimonials .trust-quote blockquote {
  text-align: center;
}

.page-home .home-testimonials .trust-quote figcaption {
  align-items: center;
  text-align: center;
}

.page-home .home-testimonials__heading {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
}

.page-home .home-testimonials__sub {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Static testimonials grid — homepage slider is hero-only */
.page-home .home-testimonials .home-testimonials-list {
  margin-top: 0;
  width: 100%;
}

.page-home .home-testimonials .home-testimonials-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: start;
  width: 100%;
}

.page-home .home-testimonials .trust-quote {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.12);
}

.page-home .home-testimonials .trust-quote blockquote {
  color: var(--ink, #0f172a);
}

.page-home .home-testimonials .trust-quote figcaption {
  color: var(--muted, #64748b);
}

@media (max-width: 900px) {
  .page-home .home-testimonials .home-testimonials-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-home .home-testimonials .home-testimonials-list__grid {
    grid-template-columns: 1fr;
  }
}

.page-home .home-testimonials-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-top: clamp(1.15rem, 2.8vw, 1.55rem);
}

/* Primary CTA patterns (homepage-only class names) */
.page-home .home-primary-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-home .home-primary-cta__hint {
  margin: 0.65rem 0 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.page-home .home-primary-cta__hint--on-light {
  color: #64748b;
}

.page-home .btn-home-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  color: var(--home-brand);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-home .btn-home-get-started--hero {
  color: #312e81;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.page-home .btn-home-get-started--hero:hover {
  background: #f8fafc;
  color: #1e1b4b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.page-home .btn-home-get-started--band:hover {
  background: #f8fafc;
  color: var(--home-brand);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14);
}

.page-home .btn-home-get-started:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.page-home .btn-home-get-started--band:focus-visible {
  outline-color: rgba(79, 70, 229, 0.45);
}

.page-home .home-final-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: calc(var(--home-gap) * 0.35);
}

.page-home .btn-home-get-started--band {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
}

/* Nav on blue hero: white logo + links (restored) */
.page-home .site-header .header-inner--unified {
  min-height: calc(var(--nav-pill-min-h) + 4px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.page-home .site-header.is-scrolled .header-inner--unified {
  min-height: calc(var(--nav-pill-min-h) + 4px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

/* White mark on home (size is now unified globally in navbar.css) */
.page-home .site-nav-brand__mark {
  filter: brightness(0) invert(1);
}

.page-home .site-header.is-scrolled .site-nav-brand__mark {
  filter: brightness(0) invert(1);
}

.page-home .site-nav-brand {
  color: #fff;
}

@media (min-width: 821px) {
  .page-home .site-nav--panel-app {
    flex-wrap: nowrap;
    gap: 0.2rem 0.45rem;
  }

  .page-home .site-nav {
    color: rgba(255, 255, 255, 0.92);
  }

  .page-home .site-nav__link {
    color: rgba(255, 255, 255, 0.94);
  }

  .page-home .site-nav__link:hover,
  .page-home .site-nav__link:focus-visible {
    color: #fff;
  }

  .page-home .site-nav__link.is-active {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.65);
  }

  .page-home .nav-btn-ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .page-home .nav-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
  }

  .page-home .site-nav .nav-cta,
  .page-home .site-nav__cta {
    color: var(--home-brand) !important;
    background: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: none;
  }

  .page-home .site-nav .nav-cta:hover,
  .page-home .site-nav__cta:hover {
    background: #f1f5f9 !important;
    border-color: #f1f5f9 !important;
  }

  /* Profile chip in the top bar only (blue glass) — white label */
  .page-home .site-header .profile-trigger {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .page-home .site-header .profile-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

@media (max-width: 820px) {
  .page-home .site-nav-panel .nav-cta {
    color: var(--home-brand) !important;
    background: #fff !important;
    border: 2px solid rgba(15, 23, 42, 0.08) !important;
  }

  .page-home .site-nav-panel .nav-cta:hover {
    background: #f1f5f9 !important;
  }

  /* Drawer is white in light mode only — do not beat html[data-theme="dark"] panel styles */
  html:not([data-theme="dark"]) .page-home .site-nav-panel {
    color: #0f172a;
  }

  html:not([data-theme="dark"]) .page-home .site-nav-panel .panel-theme-switch__label {
    color: #475569;
  }

  html:not([data-theme="dark"]) .page-home .site-nav-panel .profile-trigger {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
  }

  html:not([data-theme="dark"]) .page-home .site-nav-panel .profile-trigger:hover {
    color: #0f172a !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
    background: #e2e8f0 !important;
  }

  html:not([data-theme="dark"]) .page-home .site-nav-panel .profile-trigger #profile-name-mini {
    color: inherit;
  }
}

.page-home .nav-toggle-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.page-home .nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

.page-home .nav-toggle-btn__bar {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn-home-get-started,
  .page-home .btn-home-get-started:hover {
    transition: none;
    transform: none;
  }
}

/* CTA band — centered bullet list (homepage only) */
.page-home .cta-card .cta-points {
  text-align: center;
  max-width: 34rem;
}

.page-home .cta-card .cta-points li {
  padding-left: 0;
  text-align: center;
}

.page-home .cta-card .cta-points li::before {
  position: static;
  display: inline-block;
  vertical-align: 0.15em;
  margin-right: 0.45rem;
}

/* Premium CTA band — brand blue field + card (homepage only, visual) */
.page-home main .section.cta {
  background: var(--home-brand);
  padding: var(--home-band-y) 0;
  position: relative;
  overflow: hidden;
}

.page-home main .section.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 115% 90% at 50% -40%, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 50% at 100% 42%, rgba(165, 180, 252, 0.32), transparent 50%),
    radial-gradient(ellipse 48% 45% at 0% 72%, rgba(79, 70, 229, 0.38), transparent 52%);
  opacity: 0.88;
}

.page-home main .section.cta .cta-inner {
  position: relative;
  z-index: 1;
}

.page-home .cta-card {
  border-radius: clamp(26px, 4.5vw, 36px);
  padding: clamp(2.5rem, 5.5vw, 3.65rem) clamp(1.5rem, 4.2vw, 2.75rem);
  background: linear-gradient(
    165deg,
    #050a14 0%,
    #0c1026 24%,
    #16143e 48%,
    #25206e 72%,
    #312e81 100%
  );
  box-shadow:
    0 36px 88px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .cta-card .cta-eyebrow {
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 1px rgba(253, 230, 138, 0.25),
    0 10px 32px rgba(0, 0, 0, 0.22);
}

.page-home .cta-card h2 {
  font-size: clamp(1.72rem, 3.4vw, 2.28rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.page-home .cta-card .cta-lead {
  color: #c7d2fe;
  line-height: 1.68;
  max-width: 42ch;
}

.page-home .cta-card .cta-lead a {
  text-underline-offset: 3px;
}

.page-home .cta-card .cta-points li {
  color: #e8eaf8;
  line-height: 1.5;
}

.page-home .cta-card .cta-hints__primary {
  color: #e0e7ff;
}

.page-home .cta-card .cta-hints__secondary {
  color: rgba(226, 232, 240, 0.78);
}

.page-home .cta-card .cta-note {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.55;
}

.page-home .cta-card .cta-actions {
  gap: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}

@media (prefers-reduced-transparency: reduce) {
  .page-home main .section.cta::before {
    opacity: 0.55;
  }
}

/* Sample entries + 4-step how it works (index.html) */
.page-home .home-demo-entries {
  background: var(--home-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.page-home .home-demo-entries .container {
  max-width: min(52rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.page-home .home-demo-entries__heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.page-home .home-demo-entries__sub {
  margin: 0 auto 1.25rem;
  max-width: min(52ch, 100%);
  font-size: clamp(0.94rem, 0.4vw + 0.88rem, 1.04rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.page-home .home-demo-entries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  justify-content: center;
  align-items: center;
}

.page-home .home-demo-entries__list li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  padding: 0.48rem 0.72rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.35;
}

.page-home .home-demo-entries__tag {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-demo-entries__hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-how-it-works {
  background: var(--home-brand);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4vw, 2.85rem);
}

.page-home .home-how-it-works .container {
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.page-home .home-hiw__heading {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

.page-home .home-hiw__sub {
  margin: 0 auto 1.35rem;
  text-align: center;
  max-width: min(42ch, 100%);
  font-size: clamp(0.94rem, 0.4vw + 0.88rem, 1.02rem);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  line-height: 1.55;
}

.page-home .home-hiw__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.1rem);
}

@media (min-width: 720px) {
  .page-home .home-hiw__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .home-hiw__step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.page-home .home-hiw__num {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--home-brand);
  background: #ffffff;
}

.page-home .home-hiw__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.page-home .home-hiw__title {
  font-size: 1.02rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.page-home .home-hiw__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.page-home .home-hiw__text a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.page-home .home-hiw__text a:hover {
  text-decoration-color: #ffffff;
}

/* Mobile-first: centered CTAs, white-on-blue copy, anchor offset below sticky header */
@media (max-width: 820px) {
  .page-home #discover-more {
    scroll-margin-top: 6.75rem;
  }

  .page-home .home-hero-cta,
  .page-home .home-testimonials-cta {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(0.5rem, 3.5vw, 1rem);
    box-sizing: border-box;
  }

  .page-home .home-post-hero .container {
    max-width: 100%;
  }

  .page-home .home-support {
    margin-inline: auto;
    max-width: 100%;
  }

  .page-home .home-post-hero .home-build-card-tagline,
  .page-home .home-hero-cta .home-build-card-tagline,
  .page-home .home-testimonials-cta .home-build-card-tagline {
    color: #ffffff;
  }

  .page-home .home-template-showcase__label {
    color: #ffffff;
  }
}
