/* A refinement layer over the existing homepage. No replacement components,
   content, illustrations, or section order. Every selector is preview-scoped. */
html.homepage-astra2 {
  --v3-texture-opacity: 0.2;
  scroll-padding-top: 90px;
}

.homepage-astra2 .comp-label { display: none; }
.homepage-astra2 :focus-visible {
  outline: 3px solid var(--v3-color-primary);
  outline-offset: 4px;
}
.homepage-astra2 .v3-btn {
  min-height: 48px;
  justify-content: center;
}
.homepage-astra2 .v4-search-bar-pill { min-width: 0; }
.homepage-astra2 .v4-search-bar-input { min-width: 0; }
.homepage-astra2 .v4-search-bar-form:focus-within .v4-search-bar-pill {
  outline: 2px solid var(--v3-color-primary);
  outline-offset: 4px;
}
.homepage-astra2 .blink-caret { display: none; }
.homepage-astra2 .v3-feature-item__description { line-height: 1.65; }

@media (max-width: 1199px) {
  /* Keep text readable instead of shrinking the entire site at narrow widths. */
  html.homepage-astra2 { font-size: 16px !important; }
  .homepage-astra2 #v3-logo-bar { padding-block: 10px; }
  .homepage-astra2 .v3-header-logo { height: 32px; width: auto; }
  .homepage-astra2 #v3-mobile-toggle,
  .homepage-astra2 #v3-mobile-close { min-width: 44px; min-height: 44px; }
  .homepage-astra2 #v3-mobile-menu { width: min(340px, 90vw); overflow-y: auto; }
  .homepage-astra2 #v3-mobile-menu nav { flex-shrink: 0; }
  .homepage-astra2 #v3-mobile-menu nav a { font-size: 16px; min-height: 44px; }
  .homepage-astra2 #v3-mobile-menu > div:last-child { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

  /* Same bordered headline, orange CTA and trust cards, with content-led height. */
  .homepage-astra2 .homepage-hero { height: auto; min-height: 0; }
  .homepage-astra2 .homepage-hero > section { padding: 36px 20px 0; }
  .homepage-astra2 .homepage-hero-inner { height: auto; max-width: 620px !important; margin-inline: auto; }
  .homepage-astra2 .homepage-hero-content { height: auto; }
  .homepage-astra2 .homepage-hero-content > .flex-1 { display: none; }
  .homepage-astra2 .homepage-hero-h1 { font-size: clamp(29px, 7.8vw, 42px); line-height: 1.2; }
  .homepage-astra2 .homepage-hero-content h2 { font-size: 16px; line-height: 1.65; font-weight: 600; margin-top: 20px; }
  .homepage-astra2 .homepage-hero-content > .flex.justify-center { margin-block: 28px 24px; }
  .homepage-astra2 .homepage-hero-content > .flex.justify-center > div { width: 100%; }
  .homepage-astra2 .homepage-hero-content .v3-btn { width: 100%; min-height: 54px; font-size: 17px; }
  .homepage-astra2 .homepage-hero-content .blur-sm { display: none; }
  .homepage-astra2 .homepage-hero-content .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 8px; }
  .homepage-astra2 .homepage-hero-content .grid > div { padding: 14px 5px; }
  .homepage-astra2 .homepage-hero-content .grid .text-3xl { font-size: clamp(20px, 6vw, 25px); white-space: nowrap; }
  .homepage-astra2 .homepage-hero-content .grid .text-sm { font-size: 13px; line-height: 1.4; margin-top: 4px; }

  .homepage-astra2 .v4-search-bar { padding-block: 20px; }
  .homepage-astra2 .v4-search-bar-pill { width: 100%; }
  .homepage-astra2 .v4-search-bar-input { font-size: 16px; padding-inline: 12px; }
  .homepage-astra2 .v4-search-bar-pill > svg { width: 18px; margin-left: 16px; }
  .homepage-astra2 .v4-search-bar button { min-height: 46px; padding: 12px 18px; font-size: 15px; }

  .homepage-astra2 #main-content .v3-heading { font-size: clamp(28px, 4.6vw, 38px); line-height: 1.25; margin-bottom: 28px; }
  .homepage-astra2 #main-content p.text-xl { font-size: 17px; line-height: 1.65; }
  .homepage-astra2 #main-content p.text-lg { font-size: 16px; line-height: 1.75; }
  .homepage-astra2 .v3-feature-item__title { font-size: 18px; line-height: 1.4; }
  .homepage-astra2 .v3-feature-item__description { font-size: 16px; }
  .homepage-astra2 [data-regions] { gap: 28px 18px; }
  .homepage-astra2 [data-regions] li { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
  .homepage-astra2 [data-regions] > div > div { font-size: 14px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .homepage-astra2 [data-regions] .text-xs { font-size: 12px; }
}

@media (max-width: 599px) {
  .homepage-astra2 #main-content .v3-heading { font-weight: 600; }
  .homepage-astra2 .v3-feature-item { padding-bottom: 20px; }
  .homepage-astra2 .v3-feature-item__header { margin-bottom: 8px; }
  .homepage-astra2 section:has([data-regions]) { padding-block: 56px; }
  .homepage-astra2 section:has(img[src='/images/logo_wordpress.svg']) > div > div:first-child img { max-width: 160px; }
  .homepage-astra2 section:has(img[src='/images/badge_guarantee.svg']) img { max-width: 165px; }
  .homepage-astra2 section:has(img[src='/images/godaddy-250.svg']) img { max-width: 165px; }
  .homepage-astra2 section:has(img[src='/images/macbook-coffee-plants-pencil-notes.svg']) .v3-btn { width: 100%; max-width: 340px; font-size: 17px; }
}

@media (min-width: 600px) and (max-width: 999px) {
  /* Four WordPress feature columns were squeezed into the 70% text column. */
  .homepage-astra2 section:has(img[src='/images/logo_wordpress.svg']) ul { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
  /* Preserve the desktop composition; bring the CTA closer to its message. */
  .homepage-astra2 .homepage-hero { min-height: 38rem; }
  .homepage-astra2 .homepage-hero-content > .flex-1 { flex-grow: 0; min-height: 28px; }
  .homepage-astra2 .homepage-hero-content { justify-content: center; }
  .homepage-astra2 .homepage-hero-inner > div > img { max-height: 650px; }
  .homepage-astra2 .homepage-hero-content h2 { line-height: 1.6; }
  .homepage-astra2 .v3-feature-item__header { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-astra2 *, .homepage-astra2 *::before, .homepage-astra2 *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
